Skip to content

Add configFileName templating, to provide additional controls for externally managed configMaps#34

Merged
manugarg merged 9 commits intocloudprober:mainfrom
conallob:main
Dec 21, 2024
Merged

Add configFileName templating, to provide additional controls for externally managed configMaps#34
manugarg merged 9 commits intocloudprober:mainfrom
conallob:main

Conversation

@conallob
Copy link
Contributor

  • Add templating to allow users to define their own command line arguments, with reasonable defaults if no customisation is
    defined

  • Add templating to allow users to control the mount path for the configMap

@conallob
Copy link
Contributor Author

I'm still new to helm, so feedback is very much welcome

@conallob
Copy link
Contributor Author

To give some additional context:

My use case is that I have multiple cloudprober_${environment}.cfg files, since I'm running Cloudprober both in and outside of K8s. While I could grandfather cloudprober.cfg to be the k8s config, I'd prefer to be able to call it cloudprober_k8s.cfg so it's self documenting

* Create configFileName, which defaults to "cloudprober"
* Remove cloudprober_cfg_path, it's not needed anymore
@conallob conallob changed the title Add templating to allow customisation of args list and configMap mount path Add configFileName templating, to provide additional controls for externally managed configMaps Dec 19, 2024
@conallob
Copy link
Contributor Author

Friendly ping?

I lost my merge approval when I added configFileName to templates/configmap.yaml

@conallob
Copy link
Contributor Author

My edits to values.yaml will need additional approval. Feel free to make a maintainer edit before merging, if you disagree with my use of reasonable default values for configFileName

Copy link
Contributor

@manugarg manugarg left a comment

Choose a reason for hiding this comment

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

Minor comment fixes. I'll commit them.

Copy link
Contributor

@manugarg manugarg left a comment

Choose a reason for hiding this comment

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

Couple of more that I'll commit shortly.

@manugarg manugarg merged commit c4c3f8e into cloudprober:main Dec 21, 2024
manugarg added a commit that referenced this pull request Dec 21, 2024
@manugarg
Copy link
Contributor

@conallob Charts version 1.13.18 will have the latest changes.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants