Skip to content
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

Cannot add init container #184

Open
yash95shah opened this issue Mar 20, 2024 · 0 comments
Open

Cannot add init container #184

yash95shah opened this issue Mar 20, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@yash95shah
Copy link

Does this issue reproduce with the latest release?
Yes
What operating system and processor architecture are you using (kubectl version)?

kubectl version Output
$ kubectl version
Client Version: v1.29.1

What did you do?
I am trying to pass in an input for init container using this value input to the helm chart (for testing)

initContainer:
  enabled: true
  image: "alpine:3.8"
  imagePullPolicy: "Always"
  resources:
    requests:
      memory: "32Mi"
      cpu: "100m"
    limits:
      memory: "64Mi"
      cpu: "200m"
  env:
    - name: "ENV_VAR2"
      value: "value2"
  command: ["/bin/sh", "-c"]
  args: ["echo Hello, Helm!"]

What did you expect to see?
I expect the redis cluster resource and eventually statefulsets' pods to have this init container
What did you see instead?
I get this error running the command helm upgrade cluster-redis ot-helm/redis-cluster -f redis_conf.yaml -n ot-operators

Error: UPGRADE FAILED: template: redis-cluster/templates/redis-cluster.yaml:78:20: executing "redis-cluster/templates/redis-cluster.yaml" at : wrong number of args for include: want 2 got 1

@yash95shah yash95shah added the bug Something isn't working label Mar 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant