Per configMap defined labels in configMapGenerator #5724
Labels
kind/feature
Categorizes issue or PR as related to a new feature.
kind/support
Categorizes issue or PR as a support question.
triage/needs-information
Indicates an issue needs more information in order to work on it.
Eschewed features
What would you like to have added?
I'd like to set labels on a configMap level and not only on a generatorOptions level, which causes all configMaps to have these labels.
Why is this needed?
I'd like to use this to add configMaps containing Grafana Dashboards. These need a label:
grafana_dashboard: 1
.But I don't want this on all configMaps I'm generating with this kustomization. For instance I regularly create a configMap for Flux' Helm values.yaml. This configMap should not have that label.
Can you accomplish the motivating task without this feature, and if so, how?
Yes, by manually generating configMaps like this and adding the result to the
resources:
kubectl create configmap --dry-run=client -o yaml --from-file 13768_rev4.json grafana-dashboard > grafana-dashboard.yaml
What other solutions have you considered?
Above manual configmap solution.
Anything else we should know?
Here's an example of how it could look:
Feature ownership
The text was updated successfully, but these errors were encountered: