NMS-15822: Add support for etc configmaps that get copied to the overlay #39
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This is a PoC and is likely not yet complete, except for a basic, initial solution:
etc
, but will need work in the container for other directories)Any scripting/Helm charts to help make configmaps for multiple directories--not needed with ZIP supportfuture possibilities
To test
Output from the init container:
Notes
If the pod doesn't start, check events -- maybe the configmap name is wrong and can't be mounted:
Remove the configmap before creating a new one:
When you update the configmap, the pod will not automatically restart. You'll have to do that:
Testing
Binary content
Updating the configmap and restarting the pod:
Inside the container after updating the configmap and restarting the pod:
configmap with .zip file
Make a big file of zeros and add to a .zip file
Update the configmap and update the helm chart to unzip the configmap:
Inside the container after updating the configmap and restarting the pod:
Output from the init container: