-
Notifications
You must be signed in to change notification settings - Fork 790
Constraints object in log contains empty field after k8s gke upgrade #1801
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
Comments
So this is a function of the K8s version, not Gatekeeper version? I wonder if the output of an API call changed. Can you give more of the relevant log line to help determine which line of code it's associated with? |
Right it appears to be the k8s version, and re the log, sorry, of course: gatekeeper-audit-fc66fd9c8-ng2xg manager {"level":"info","ts":1642607791.6829793,"logger":"controller","msg":"starting update constraints loop","process":"audit","audit_id":"2022-01-19T15:55:47Z","constraints":{"":{"Object":{"apiVersion":"constraints.gatekeeper.sh/v1beta1"........................ https://github.com/open-policy-agent/gatekeeper/blob/master/pkg/audit/manager.go#L816 |
selfLink has been disabled in v1.20.0 I can take a look at this and report back with a fix. |
Thanks! I assume this also applies to 1.21? Have not yet tested this myself |
@andrewdmcleod That's right. From the KEP:
|
This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 14 days if no further activity occurs. Thank you for your contributions. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 14 days if no further activity occurs. Thank you for your contributions. |
Uh oh!
There was an error while loading. Please reload this page.
1.19.15:
"constraints":{"/apis/constraints.gatekeeper.sh/v1beta1/REDACTED/ALSO-REDACTED":{"Object":{"apiVersion":"constraints.gatekeeper.sh/v1beta1"...
1.20.12:
"constraints":{"":{"Object":{"apiVersion":"constraints.gatekeeper.sh/v1beta1"...
Empty field in constraints object in the log (right there before Object) - missing what looks like used to be selfLink - causing problems with upstream log handling.
Expect that field should have selfLink or KindVersionResource, or similar, not empty?
3.2.2 and 3.7.0 - problem exists with both versions
working env:
Server Version: version.Info{Major:"1", Minor:"19+", GitVersion:"v1.19.16-gke.1500",
not-working env:
Server Version: version.Info{Major:"1", Minor:"20+", GitVersion:"v1.20.12-gke.1500",
The text was updated successfully, but these errors were encountered: