-
Notifications
You must be signed in to change notification settings - Fork 96
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to get extraInitContainers
to work
#1423
Comments
I think this is a "yaml is awful" error. For historical reasons, Although this looks like an ordinary yaml array with the statefulset:
initContainers:
extraInitContainers: |-
- name: "update-advertised-rpc"
image: "mintel/docker-alpine-bash-curl-yq:latest"
command: [ "/bin/bash", "-c" ]
args:
- |
cat << EOF > advertised-rpc.yaml
redpanda:
advertised_rpc_api:
address: $SERVICE_NAME
port: 33145
EOF
yq '. *= load("advertised-rpc.yaml")' /etc/redpanda/redpanda.yaml >> redpanda.yaml
mv redpanda.yaml /etc/redpanda/redpanda.yaml
chown 101:101 /etc/redpanda/redpanda.yaml I think that |
See also #1427 |
Circling back on this, @jan-g was right! Adding the additional (ie. the correct amount of) indentation allowed the |
What happened?
I'm trying to create an extra initContainer with the folling values.yaml:
And running into this error:
When I change
extraInitContainers: |-
toextraInitContainers:
I get the following error:I'm following the example in values.yaml for this parameter closely. The only difference is the commands I'm running in the initContainer.
What did you expect to happen?
An initContainer should have been started up successfully.
How can we reproduce it (as minimally and precisely as possible)?. Please include values file.
Anything else we need to know?
No response
Which are the affected charts?
Redpanda
Chart Version(s)
5.8.12
Cloud provider
JIRA Link: K8S-292
The text was updated successfully, but these errors were encountered: