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

additional volume and volume mount is not working #152

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

bhargav2427
Copy link

I checked and additionalVolumes and additionalVolumeMounts option of coordinator and worker is not working. After these changes, I can see the volumes and volumeMounts in helm template.

Copy link

cla-bot bot commented Apr 18, 2024

Thank you for your pull request and welcome to our community. We could not parse the GitHub identity of the following contributors: Bhargav Akhani.
This is most likely caused by a git client misconfiguration; please make sure to:

  1. check if your git client is configured with an email to sign commits git config --list | grep email
  2. If not, set it up using git config --global user.email email@example.com
  3. Make sure that the git commit email is configured in your GitHub account settings, see https://github.com/settings/emails

@bhargav2427
Copy link
Author

Hi @losipiuk @mosabua Please take a look.

@losipiuk
Copy link
Member

When I put this in values:

  additionalVolumes:
     - name: extras
       emptyDir: {}
     - name: extras2
       emptyDir: {}

  additionalVolumeMounts:
     - name: extras
       mountPath: /usr/share/extras
       readOnly: true
     - name: extras2
       mountPath: /usr/share/extras2
       readOnly: true

and render template I get

      volumes:
        ....
        - emptyDir: {}
          name: extras
        - emptyDir: {}
          name: extras2
.....
          volumeMounts:
        ....
            - mountPath: /usr/share/extras
              name: extras
              readOnly: true
            - mountPath: /usr/share/extras2
              name: extras2
              readOnly: true

seems fine to me

@bhargav2427
Copy link
Author

@losipiuk Can we please merge it? So, I can use this in my production.

@bhargav2427
Copy link
Author

@LittleWat @huw0 @florianMalbranque @ryan0x44 Please take a look.

@huw0
Copy link
Member

huw0 commented May 1, 2024

@bhargav2427 I'm using the 0.19.0 chart successfully with both ConfigMap and PVC mounts.

What version of helm are you using?
Are you able to share an example config that exhibits the issue?

Copy link
Member

@nineinchnick nineinchnick left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@bhargav2427 can you rebase? I also recently added some new tests, maybe you could update https://github.com/trinodb/charts/blob/main/test-values.yaml and configure some additional volumes there, so we can make sure this works correctly.

{{- with .Values.worker.additionalVolumeMounts }}
{{- . | toYaml | nindent 12 }}
{{- end }}
{{- toYaml .Values.coordinator.additionalVolumeMounts | nindent 12 }}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
{{- toYaml .Values.coordinator.additionalVolumeMounts | nindent 12 }}
{{- toYaml .Values.worker.additionalVolumeMounts | nindent 12 }}

{{- with .Values.worker.additionalVolumes }}
{{- . | toYaml | nindent 8 }}
{{- end }}
{{- toYaml .Values.coordinator.additionalVolumes | nindent 8 }}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
{{- toYaml .Values.coordinator.additionalVolumes | nindent 8 }}
{{- toYaml .Values.worker.additionalVolumes | nindent 8 }}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants