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

fix(HMS-1847): Adding configmap to job #691

Merged
merged 1 commit into from
Oct 11, 2023

Conversation

mayurilahane
Copy link
Member

For adding config maps into a job:

  1. have already created config map yaml in app-interface
  2. then referenced it to the namespace in app-interface itself.
    3. Now have added its mount point in this MR's job file

@mayurilahane mayurilahane force-pushed the mlahane/mount_configmap branch from 111b764 to 64dd5d1 Compare September 27, 2023 17:40
@mayurilahane mayurilahane changed the title fix(HMS-1847): Adding configmap to job [draft] fix(HMS-1847): Adding configmap to job Sep 27, 2023
@mayurilahane mayurilahane force-pushed the mlahane/mount_configmap branch from 64dd5d1 to b00146f Compare October 2, 2023 19:23
- name: config-volume
configMap:
name: cloudwash-config
envFrom:
Copy link
Member

Choose a reason for hiding this comment

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

This block shouldn't be necessary, the expected configmap is getting subPath mounted

Copy link
Member Author

Choose a reason for hiding this comment

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

I removed the config map block only
did you mean the whole volume block?

Copy link
Member

Choose a reason for hiding this comment

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

just the envFrom map - but the volumes map is out of place too, its not part of Container spec, only volumeMounts. volumes is part of the Pod spec, that map starts at L20.

@mayurilahane mayurilahane force-pushed the mlahane/mount_configmap branch from b00146f to dab55af Compare October 3, 2023 16:02
@mayurilahane mayurilahane changed the title [draft] fix(HMS-1847): Adding configmap to job fix(HMS-1847): Adding configmap to job Oct 4, 2023
@mayurilahane mayurilahane force-pushed the mlahane/mount_configmap branch from dab55af to 212e189 Compare October 4, 2023 14:33
@akhil-jha
Copy link
Member

/retest

volumeMounts:
- name: config-volume
mountPath: /opt/app-root/src/cloudwash/settings.yaml
subPath: settings.yaml
Copy link
Member

Choose a reason for hiding this comment

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

suspect of this config with mountPath having the file, but I'm going to accept at this point to run in SRE cluster.

@mshriver mshriver added the bug Something isn't working label Oct 11, 2023
@mshriver mshriver merged commit f487686 into RHEnVision:main Oct 11, 2023
6 checks passed
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

Successfully merging this pull request may close these issues.

3 participants