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

KubeAPIWarningLogger unknown field "xxxx.creationTimestamp" #2956

Open
Jeffwan opened this issue Sep 22, 2024 · 1 comment
Open

KubeAPIWarningLogger unknown field "xxxx.creationTimestamp" #2956

Jeffwan opened this issue Sep 22, 2024 · 1 comment

Comments

@Jeffwan
Copy link

Jeffwan commented Sep 22, 2024

image

When I create an object, I notice it surface some KubeAPIWarningLogger messages, seems it doesn't affect anything but it's annoying. This should be something common to other cases, anyone have clues?

  1. I double checked the objects I created, it doesn't have creationTimestamp there
  2. I didn't use // +kubebuilder:pruning:PreserveUnknownFields yet.
./bin/controller-gen-v0.14.0 --version
Version: v0.14.0
Client Version: v1.29.2
Kustomize Version: v5.0.4-0.20230601165947-6ce0bf390ce3
Server Version: v1.29.2
@Jeffwan Jeffwan changed the title KubeAPIWarningLogger unknown field KubeAPIWarningLogger unknown field "xxxx.creationTimestamp" Sep 22, 2024
@alvaroaleman
Copy link
Member

This means that the go type you have in your code has fields that do not exist in the CRD of the server. I recommend to fix that. If this is an expected state of affairs, you can change the config of the warning logger in the rest.Config

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

No branches or pull requests

2 participants