-
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
skipping nameprefix of some resource kinds #4722
Comments
@hiteshgakhreja1234: This issue is currently awaiting triage. SIG CLI takes a lead on issue triage for this repo, but any Kubernetes member can accept issues by applying the The 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. |
I don't believe you can currently For example, on kustomize v4.5.7, with the following setup: resources:
- configmap.yaml
- secret.yaml
namePrefix: my-
configurations:
- prefix-rules.yaml
namePrefix:
- path: metadata/name
apiVersion: v1
kind: Secret
apiVersion: v1
kind: ConfigMap
metadata:
name: configmap
apiVersion: v1
kind: Secret
metadata:
name: secret I get the following output running apiVersion: v1
kind: ConfigMap
metadata:
name: configmap
---
apiVersion: v1
kind: Secret
metadata:
name: my-secret |
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 |
/close |
@annasong20: 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. |
Hi All
is it possible to have kustomization file avoid adding prefixes to few resources
service
configmap
storageclass
I tried using this link but this is not working
https://stackoverflow.com/questions/69882949/kustomize-namesuffix-skip-on-some-resources
I tried creating a configuration file in kustomize and try skip: true but still its not behaving as expected
hgakhrej@C02G104NMD6M configuration % cat kustomizeconfig/skip-secrets-prefix.yaml
namePrefix:
kind: Configmap
skip: true
apiVersion: v1
kind: Service
skip: true
I tried below example also but no luck
https://github.com/keleustes/kustomize/tree/allinone/examples/issues/issue_0519#preparation-step-resource0
Can anybody provice me some working example for this or anykind of workaround
The text was updated successfully, but these errors were encountered: