Skip to content

Remove deprecated preserveUnknownFields from CRDs #4135

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

ahatzz11
Copy link

@ahatzz11 ahatzz11 commented Jun 17, 2025

We use argo to manage our deployment of ARC. We recently upgraded to 3.0, where they removed a default setting to ignore the preserveUnknownFields fields being mismatched. From their docs:

The spec.preserveUnknownFields has been deprecated in favor of x-kubernetes-preserve-unknown-fields: true in the CRD v1.

To solve for this now out-of-sync CRD in argo I did enable this ignore rule globally on our argo, but because of this deprecation and the number of people who seem to use argo to manage their ARC installations, I thought I'd contribute back upstream to help ensure argo users show a properly synced ARC by removing this deprecated field.

Here is how our ARC installation looks in argo without ignoring this field while it's present in the CRD:
image

@Copilot Copilot AI review requested due to automatic review settings June 17, 2025 19:10
Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR removes the deprecated preserveUnknownFields field from several CRD configurations to align with the updated Argo guidelines in version 3.0.

  • Removal of preserveUnknownFields from actions.github.com_ephemeralrunnersets.yaml
  • Removal of preserveUnknownFields from actions.github.com_ephemeralrunners.yaml
  • Removal of preserveUnknownFields from actions.github.com_autoscalingrunnersets.yaml
  • Removal of preserveUnknownFields from actions.github.com_autoscalinglisteners.yaml

Reviewed Changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated no comments.

File Description
config/crd/bases/actions.github.com_ephemeralrunnersets.yaml Removed deprecated preserveUnknownFields field
config/crd/bases/actions.github.com_ephemeralrunners.yaml Removed deprecated preserveUnknownFields field
config/crd/bases/actions.github.com_autoscalingrunnersets.yaml Removed deprecated preserveUnknownFields field
config/crd/bases/actions.github.com_autoscalinglisteners.yaml Removed deprecated preserveUnknownFields field

@ahatzz11 ahatzz11 changed the title Remove preserveUnknownFields from CRDs Remove deprecated preserveUnknownFields from CRDs Jun 17, 2025
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