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

[bitnami/contour] Unable to create a defaultBackend with a mounted Volume #29976

Closed
GreatSymphonia opened this issue Oct 17, 2024 · 5 comments
Closed
Assignees
Labels
contour solved stale 15 days without activity tech-issues The user has a technical issue about an application triage Triage is needed

Comments

@GreatSymphonia
Copy link

Name and Version

bitnami/contour

What architecture are you using?

None

What steps will reproduce the bug?

When attempting to create a contour ingress with a default backend, I am unable to create one with an extraVolume.

Are you using any custom parameters or values?

  extraVolumes:
    - emptyDir: {}
      name: nginx
  extraVolumeMounts:
    - mountPath: /opt/bitnami/nginx/tmp
      name: nginx

What is the expected behavior?

I expect it to create a defaultBackend container (nginx with a default 404 landing page) with the aforementionned volume

What do you see instead?

shell@shell:~$ helm upgrade --install lan-contour bitnami/contour --namespace lan-contour -f system/Lan_ETS/contour/values.yaml
Error: UPGRADE FAILED: YAML parse error on contour/templates/default-backend/deployment.yaml: error converting YAML to JSON: yaml: line 106: did not find expected '-' indicator

Additional information

No response

@GreatSymphonia GreatSymphonia added the tech-issues The user has a technical issue about an application label Oct 17, 2024
@github-actions github-actions bot added the triage Triage is needed label Oct 17, 2024
@javsalgar javsalgar changed the title Unable to create a defaultBackend with a mounted Volume [bitnami/contour] Unable to create a defaultBackend with a mounted Volume Oct 21, 2024
@javsalgar
Copy link
Contributor

javsalgar commented Oct 21, 2024

Hi!

Thank you so much for reporting. I found the issue in default-backend/deployment.yaml.

Instead of:

        {{- if .Values.defaultBackend.extraVolumes }}
        volumes: {{- include "common.tplvalues.render" ( dict "value" .Values.defaultBackend.extraVolumes "context" $ ) | nindent 6 }}
        {{- end }}

It should be

        {{- if .Values.defaultBackend.extraVolumes }}
        volumes: {{- include "common.tplvalues.render" ( dict "value" .Values.defaultBackend.extraVolumes "context" $ ) | nindent 8 }}
        {{- end }}

As you discovered the issue, would you like to submit a PR?

@GreatSymphonia
Copy link
Author

GreatSymphonia commented Oct 31, 2024

Hi, the lines that you are referencing are as follow in the main:

      {{- if .Values.defaultBackend.extraVolumes }}
      volumes: {{- include "common.tplvalues.render" ( dict "value" .Values.defaultBackend.extraVolumes "context" $ ) | nindent 6 }}
      {{- end }}

I suppose they'd need one further level of indentation to match the expected level, so 6 -> 8? Or should it be defenitely 10 as you are stating (It's my first ever contact with editing Helm charts sources in such a way, sorry if my question is dumb)

Can you confirm I correctly understand the issue at point?

@javsalgar
Copy link
Contributor

javsalgar commented Oct 31, 2024

Hi,

You are right! It was 8, my mistake. I updated the comment before

Copy link

This Issue has been automatically marked as "stale" because it has not had recent activity (for 15 days). It will be closed if no further activity occurs. Thanks for the feedback.

@github-actions github-actions bot added the stale 15 days without activity label Nov 16, 2024
Copy link

Due to the lack of activity in the last 5 days since it was marked as "stale", we proceed to close this Issue. Do not hesitate to reopen it later if necessary.

@bitnami-bot bitnami-bot closed this as not planned Won't fix, can't repro, duplicate, stale Nov 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
contour solved stale 15 days without activity tech-issues The user has a technical issue about an application triage Triage is needed
Projects
None yet
Development

No branches or pull requests

3 participants