-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Remove YAML anchors from deployments #11581
Remove YAML anchors from deployments #11581
Conversation
Welcome @davidspek! It looks like this is your first PR to knative/serving 🎉 |
Hi @davidspek. Thanks for your PR. I'm waiting for a knative 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. |
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.
/ok-to-test
To state the obvious it feels like the real fix for this should be in kustomize, but I'd personally be ok with these removals since the anchors don't really add much anyway.
@julz I completely agree. However, as I mentioned in the issue I created I only brought this up since I noticed almost all use of YAML anchors was removed from the latest KNative release. If that wasn't the case and many YAML anchors were still being used I wouldn't have considered this option. |
Codecov Report
@@ Coverage Diff @@
## main #11581 +/- ##
=======================================
Coverage 87.74% 87.74%
=======================================
Files 191 191
Lines 9281 9281
=======================================
Hits 8144 8144
- Misses 882 883 +1
+ Partials 255 254 -1
Continue to review full report at Codecov.
|
/test pull-knative-serving-unit-tests |
@julz Is there an easy way to restart only the failed KinD GitHub action test? |
I re-kicked the actions. To @julz's point can you open an issue with kustomize? We might at some point introduce anchors again in the unforeseeable future - we initially had them when we had multiple CRD versions in our resources. |
/lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: DavidSpek, dprotaso 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 |
@dprotaso All the Kustomize issues related to YAML anchors have been combined into kubernetes-sigs/kustomize#3675. As you can see, it is a problem many kustomize users are facing so hopefully it will be addressed. I also don't expect you to refrain from adding YAML anchors in the future. However, if there is a single release that doesn't include them that would be helpful for Kubeflow and KFServing :). |
yeah sounds good |
thanks for the PR! |
Fixes #11468
Proposed Changes
This PR removes two YAML anchors from used in two of the deployment YAML files. This is necessary for the
serving-core.yaml
file to be compatible with Kustomize. The relevant Kustomize issue regarding YAML anchor support is kubernetes-sigs/kustomize#3675.Release Note