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 unknown spec.pod.metadata.labels from prebackuppods #237

Closed
wants to merge 1 commit into from

Conversation

tobybellwood
Copy link
Member

Prior to Kubernetes 1.23 (https://github.com/kubernetes/enhancements/tree/master/keps/sig-api-machinery/2885-server-side-unknown-field-validation) and enforced in 1.24, kubectl apply has allowed for kubectl apply to have unknown fields in default operation.

Every build contains:

Warning: unknown field "spec.pod.metadata.labels"

When upgrading the version of kubectl in this tool past 1.24, builds fail because of the unknown fields.

As these fields aren't present in the CRD, the labels aren't applied to prebackuppods, so they can be safely removed.

@tobybellwood tobybellwood added this to the v2.16 tie-in release milestone Oct 3, 2023
@tobybellwood
Copy link
Member Author

closing in favour of #125

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant