-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
Support edit set configmap
#4493
Comments
The Kubernetes project currently lacks enough contributors to adequately respond to all issues and PRs. This bot triages issues and PRs according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /lifecycle stale |
The Kubernetes project currently lacks enough active contributors to adequately respond to all issues and PRs. This bot triages issues and PRs according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /lifecycle rotten |
The Kubernetes project currently lacks enough active contributors to adequately respond to all issues and PRs. This bot triages issues and PRs according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /close |
@k8s-triage-robot: Closing this issue. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
The issue is still valid, please keep open. |
/reopen |
@gaeljw: Reopened this issue. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
The Kubernetes project currently lacks enough active contributors to adequately respond to all issues and PRs. This bot triages issues and PRs according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /close |
@k8s-triage-robot: Closing this issue. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
/reopen |
@gaeljw: Reopened this issue. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
Yeah I've just run into the same issue. I found that you can add a configmap using
and was very surprised that trying to use the same command to update the configmap results in an error for duplicate keys. |
/remove-lifecycle rotten |
Hi, all. What status is the issue? |
Hi @gaeljw, I had draft a pull request to add a It can be used with # Initialize
kustomize edit add configmap routes-01 --from-file="folder1/conf.d/*"
kustomize edit add configmap routes-02 --from-file="folder2/conf.d/*"
# Refresh configmap
kustomize edit remove configmap routes-01,routes-02
kustomize edit add configmap routes-01 --from-file="folder1/conf.d/*"
kustomize edit add configmap routes-01 --from-file="folder1/conf.d/*" Hope it can resolve you problem. |
Nice job @yufeiminds , sounds like it would do the trick. Hopefully your PR can be merged soon 🤞 (I've had some PRs opened for several months without feedback, I'm a bit grumpy on this :) ) |
If we have a /triage accepted |
The Kubernetes project currently lacks enough contributors to adequately respond to all issues and PRs. This bot triages issues and PRs according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /lifecycle stale |
/remove-lifecycle stale |
/assign |
@stormqueen1990 FYI, #4796 is helpful by adding |
Is your feature request related to a problem? Please describe.
I have a deployment workflow that includes:
configMapGenerator
referencing those files inkustomization.yaml
The list of files is not static and might change (files removed or added), thus I want to automate this (everything is then committed to Git for a GitOps process).
Unfortunately if my
kustomization.yaml
already contains aconfigMapGenerator
, I cannot overwrite it withkustomize edit
: I can only add a new one.Let's take an example.
If I have this
kustomization.yaml
:I would like to have a
kustomize edit
command that allows me to change it to:Describe the solution you'd like
In the same spirit as other
kustomize edit set xxx
commands, something likekustomize edit set configmap my-config --from-file=conf/*
would be perfect.Describe alternatives you've considered
Only alternative is to manipulate the
kustomization.yaml
manually with any scripting tool.Additional context
The text was updated successfully, but these errors were encountered: