-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
✨ (kustomize/v2-alpha): remove unnecessary varReference for setup cert-manager #2794
✨ (kustomize/v2-alpha): remove unnecessary varReference for setup cert-manager #2794
Conversation
Welcome @laxmikantbpandhare! |
Hi @laxmikantbpandhare. Thanks for your PR. I'm waiting for a kubernetes-sigs member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. 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. |
/hold |
/ok-to-test |
...common/kustomize/v2-alpha/scaffolds/internal/templates/config/certmanager/kustomizeconfig.go
Show resolved
Hide resolved
updated testdata after scaffolding changes
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/approved
/lgtm
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: camilamacedo86, laxmikantbpandhare The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
/hold cancel |
A description of the change
vars
field will be deprecated in near future and we are planning to use replacements inv2-alpha
instead ofvars
.These changes will remove
varReference
field completely. The default config data for vars is located in thevarReference
field. There is no need to include it inv2-alpha
The motivation for the change
it fixes #2789
Notes:
Is this in a document that has been referenced by the configurations field because those are transformer configurations. varReference are unused because we have removed all vars from the Kustomizations. See: https://github.com/kubernetes-sigs/kubebuilder/blob/master/pkg/plugins/common/kustomize/v2-alpha/scaffolds/internal/templates/config/kdefault/kustomization.go#L94-L192
However, the nameReference is for identifying additional places that refer to object names and has nothing to do with vars.
Tests done to ensure the changes:
By checking the files built with kustomize ( $ kustomize build config/certmanager )
From this PR:
From project-v3 with the stable kustomze plugin v1 ( without the changes )
Also, note that in the e2e tests we install cert-manager and we check it out.