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 kubeapiwarning message via crds #2601

Merged
merged 2 commits into from
Jul 5, 2024

Conversation

manno
Copy link
Member

@manno manno commented Jul 4, 2024

Gitops controller was complaining about KubeAPIWarningLogger unknown field "status.resources[0].perClusterState[0].patch.data"

Diff against 0.9.3 showed some missing markers in the generated CRD.

@manno manno requested a review from a team as a code owner July 4, 2024 14:59
@manno manno force-pushed the remove-kubeapiwarning-message-via-crds branch from c964c02 to c38d733 Compare July 4, 2024 15:18
APIVersion string `json:"apiVersion,omitempty"`
// Kind is the k8s kind of the resource.
// +nullable
Kind string `json:"kind,omitempty"`
// Type is the type of the resource, e.g. "apiextensions.k8s.io.customresourcedefinition" or "configmap".
Type string `json:"type,omitempty"`
Copy link
Contributor

Choose a reason for hiding this comment

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

I am surprised to see that many other fields would be nullable but not this one 🤔

Copy link
Member Author

@manno manno Jul 4, 2024

Choose a reason for hiding this comment

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

Screenshot 2024-07-04 at 18 40 44

Clearly indicated by line 5294 of the patch ... 😛

Copy link
Member Author

@manno manno Jul 4, 2024

Choose a reason for hiding this comment

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

Ah, sorry. I meant 5312

(this is so confusing to diff, I can't even link it)

Copy link
Contributor

Choose a reason for hiding this comment

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

Fair enough.

@manno manno merged commit 25146a3 into main Jul 5, 2024
11 of 12 checks passed
@manno manno deleted the remove-kubeapiwarning-message-via-crds branch July 5, 2024 08:10
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.

2 participants