-
-
Notifications
You must be signed in to change notification settings - Fork 749
helm: set default webapp container and add extraVolumes #2222
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -115,6 +115,26 @@ webapp: | |
# name: my-secret | ||
# key: secret-key | ||
|
||
# Extra volumes for the webapp pod | ||
extraVolumes: | ||
[] | ||
# - name: config-volume | ||
# configMap: | ||
# name: my-config | ||
# - name: secret-volume | ||
# secret: | ||
# secretName: my-secret | ||
Comment on lines
+118
to
+126
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Placing the literal - extraVolumes:
- []
+ # Extra volumes for the webapp pod
+ extraVolumes: [] Apply the same pattern used by numerous stable charts ( 🤖 Prompt for AI Agents
|
||
|
||
# Extra volume mounts for the webapp container | ||
extraVolumeMounts: | ||
[] | ||
# - name: config-volume | ||
# mountPath: /etc/config | ||
# readOnly: true | ||
# - name: secret-volume | ||
# mountPath: /etc/secrets | ||
# readOnly: true | ||
Comment on lines
+128
to
+136
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Same issue for The misplaced - extraVolumeMounts:
- []
+ # Extra volume mounts for the webapp container
+ extraVolumeMounts: [] Fixing both blocks keeps the chart installable even when users do not override these values. 🤖 Prompt for AI Agents
|
||
|
||
# ServiceMonitor for Prometheus monitoring | ||
serviceMonitor: | ||
enabled: false | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🛠️ Refactor suggestion
Potential duplicate-key collision in
metadata.annotations
A hard-coded
kubectl.kubernetes.io/default-container
annotation is added before user-suppliedpodAnnotations
. If a user also defines this key, Helm will render two identical keys and fail with:Consider merging the maps so the user can still override when necessary:
This keeps the default while remaining user-configurable.
🤖 Prompt for AI Agents