Skip to content
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

Merged
merged 1 commit into from
Jun 23, 2021

Conversation

davidspek
Copy link
Contributor

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

Remove remaining YAML anchors for comparability with Kustomize.

@google-cla google-cla bot added the cla: yes Indicates the PR's author has signed the CLA. label Jun 23, 2021
@knative-prow-robot knative-prow-robot added the size/S Denotes a PR that changes 10-29 lines, ignoring generated files. label Jun 23, 2021
@knative-prow-robot
Copy link
Contributor

Welcome @davidspek! It looks like this is your first PR to knative/serving 🎉

@knative-prow-robot
Copy link
Contributor

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 /ok-to-test on its own line. Until that is done, I will not automatically test new commits in this PR, but the usual testing commands by org members will still work. Regular contributors should join the org to skip this step.

Once the patch is verified, the new status will be reflected by the ok-to-test label.

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.

@knative-prow-robot knative-prow-robot added the needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. label Jun 23, 2021
Copy link
Member

@julz julz left a 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.

@knative-prow-robot knative-prow-robot added ok-to-test Indicates a non-member PR verified by an org member that is safe to test. and removed needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. labels Jun 23, 2021
@davidspek
Copy link
Contributor Author

@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
Copy link

codecov bot commented Jun 23, 2021

Codecov Report

Merging #11581 (a605611) into main (2110f33) will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           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     
Impacted Files Coverage Δ
pkg/activator/net/revision_backends.go 91.51% <0.00%> (-0.90%) ⬇️
pkg/reconciler/configuration/configuration.go 86.15% <0.00%> (+1.53%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 2110f33...a605611. Read the comment docs.

@davidspek
Copy link
Contributor Author

/test pull-knative-serving-unit-tests

@davidspek
Copy link
Contributor Author

@julz Is there an easy way to restart only the failed KinD GitHub action test?

@dprotaso
Copy link
Member

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.

@dprotaso
Copy link
Member

/lgtm
/approve

@knative-prow-robot knative-prow-robot added the lgtm Indicates that a PR is ready to be merged. label Jun 23, 2021
@knative-prow-robot
Copy link
Contributor

[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 /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@knative-prow-robot knative-prow-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Jun 23, 2021
@dprotaso dprotaso added this to the 0.24.x milestone Jun 23, 2021
@knative-prow-robot knative-prow-robot merged commit 110416c into knative:main Jun 23, 2021
@davidspek
Copy link
Contributor Author

@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 :).

@dprotaso
Copy link
Member

yeah sounds good

@dprotaso
Copy link
Member

thanks for the PR!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. cla: yes Indicates the PR's author has signed the CLA. lgtm Indicates that a PR is ready to be merged. ok-to-test Indicates a non-member PR verified by an org member that is safe to test. size/S Denotes a PR that changes 10-29 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Expand YAML anchors in releases
4 participants