-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Migrate away from deprecated kustomize features #3091
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
base: main
Are you sure you want to change the base?
Migrate away from deprecated kustomize features #3091
Conversation
|
Welcome @james-callahan! |
|
Hi @james-callahan. 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. |
8b01cd3 to
89b1563
Compare
4cb32d3 to
cedf571
Compare
cedf571 to
1297391
Compare
|
Rebased on v2.5.0. |
|
The Kubernetes project currently lacks enough contributors to adequately respond to all PRs. This bot triages PRs according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /lifecycle stale |
1297391 to
75c68d2
Compare
75c68d2 to
8150880
Compare
|
Rebased on top of main post-v2.6.1 |
|
This will solve warnings in our CI system. Can someone take a look? |
|
The Kubernetes project currently lacks enough active contributors to adequately respond to all PRs. This bot triages PRs according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /lifecycle rotten |
|
/remove-lifecycle rotten |
8150880 to
cf0b99f
Compare
|
rebased on v2.7.1 |
cf0b99f to
00e7897
Compare
And rebased again on main |
|
rebased on v2.11.0..... |
|
The Kubernetes project currently lacks enough active contributors to adequately respond to all issues and PRs. This bot triages PRs according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /close |
|
@k8s-triage-robot: Closed this PR. 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-sigs/prow repository. |
|
/reopen |
|
@james-callahan: Reopened this PR. 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-sigs/prow repository. |
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: james-callahan The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
|
/remove-lifecycle rotten |
1e00392 to
fff3714
Compare
|
Rebased on v2.12.0 |
|
Hello, I apologize that we didn't attend to this PR sooner. I have some concerns that the proposed changes are not backwards compatible. Does kustomize define replacements for the functionality you're removing? |
Which functionality is being removed? |
fff3714 to
4c3f73a
Compare
|
Rebased on v2.13.2... |
4c3f73a to
448dd6c
Compare
|
Rebased on v2.13.3 |
|
This PR has now been opened for more than 2 years -- @zac-nixon @kishorj @M00nF1sh what can we do to unblock it? |
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.
Sorry for not elaborating on these issues in my previous comment.
| @@ -4,5 +4,6 @@ apiVersion: apiextensions.k8s.io/v1 | |||
| kind: CustomResourceDefinition | |||
| metadata: | |||
| annotations: | |||
| cert-manager.io/inject-ca-from: $(CERTIFICATE_NAMESPACE)/$(CERTIFICATE_NAME) | |||
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.
This is a behavior change
| annotations: | ||
| cert-manager.io/inject-ca-from: $(CERTIFICATE_NAMESPACE)/$(CERTIFICATE_NAME) | ||
| # `default` and `serving-cert` may be substituted by kustomize | ||
| cert-manager.io/inject-ca-from: default/serving-cert |
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.
Again, behavior change.
| dnsNames: | ||
| - $(SERVICE_NAME).$(SERVICE_NAMESPACE).svc | ||
| - $(SERVICE_NAME).$(SERVICE_NAMESPACE).svc.cluster.local | ||
| - webhook-service.default.svc |
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.
Behavior change, normally this webhook isn't in the default namespace
| kind: ServiceAccount | ||
| metadata: | ||
| name: controller | ||
| labels: |
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.
Why is this removed?
| clientConfig: | ||
| service: | ||
| name: webhook-service | ||
| namespace: system |
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.
Behavior change, why?
- Always include apiVersion+kind of kustomization files - `patchesStrategicMerge` was deprecated, use `patches` instead - `bases` was deprecated, use `resources` instead - Order `configurations` first
kustomize also requires that we specify a namespace here, or else it won't add one
And it causes the resource to show up in e.g. ArgoCD as Out-of-Sync
kustomize will fill these in for us
448dd6c to
6891bb9
Compare
Issue
#3090
Description
This PR cleans up various things in the kustomize manifests. See individual commits for descriptions of the modifications.
In particular:
kustomize build config/defaultwith kustomize v5.0.0.Checklist
README.md, or thedocsdirectory)BONUS POINTS checklist: complete for good vibes and maybe prizes?! 🤯