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

Add additional ConfigMaps to Helm Charts #635

Merged
merged 5 commits into from
Aug 7, 2023
Merged

Conversation

bianchi2
Copy link
Collaborator

@bianchi2 bianchi2 commented Aug 5, 2023

While the helm charts have additionalFiles which make it possible to mount external ConfigMaps to container, there are a couple of issues with this approach:

  • ConfigMaps need to be maintained outside Helm charts
  • When a ConfigMap data changes the StatefulSet is not restarted, which requires additional automation to make it happen

This PR adds additinalConfigMaps stanza which makes it possible to define multiple ConfigMaps with multiple keys (files) along with the content. One obvious use case is to mount log4j.properties to change logging settings. There can be other config files too.

Checklist

  • I have added unit tests
  • I have applied the change to all applicable products
  • The E2E test has passed (use e2e label)

@bianchi2 bianchi2 added the e2e label Aug 5, 2023
@bianchi2 bianchi2 changed the title Add additional ConfigMap Add additional ConfigMaps to Helm Charts Aug 5, 2023
Copy link
Collaborator

@errcode1202 errcode1202 left a comment

Choose a reason for hiding this comment

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

🥇

@@ -1039,3 +1039,20 @@ additionalFiles: []
# type: secret
# key: keystore.jks
# mountPath: /var/ssl

# -- Create additional ConfigMaps with given names, keys and content. Helm release name will be used as prefix
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
# -- Create additional ConfigMaps with given names, keys and content. Helm release name will be used as prefix
# -- Create additional ConfigMaps with given names, keys and content. The Helm release name will be used as a prefix

@bianchi2 bianchi2 merged commit d0cb30f into main Aug 7, 2023
2 checks passed
@bianchi2 bianchi2 deleted the additiona-config-maps branch August 7, 2023 00:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants