You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Not able to create the Pod and receive a message "Error from server (Forbidden): error when creating "container has an invalid image repo <k8s.gcr.io/kustomize/kustomize:latest>,
disallowed repos are ["k8s.gcr.io/\ "
Anything else you would like to add:
[Miscellaneous information that will assist in solving the issue.]
Gatekeeper flags it in the log file but it allows the creation which to me is a bug.
{"level":"info","ts":1705611801.8987546,"logger":"controller",
"msg":"container <kustomize> has an invalid image repo <k8s.gcr.io/kustomize/kustomize:latest>,
disallowed repos are [\"k8s.gcr.io/\"]",
"process":"audit","audit_id":"2024-01-18T21:03:20Z",
"details":{},"event_type":"violation_audited",
"constraint_group":"constraints.gatekeeper.sh",
"constraint_api_version":"v1beta1","constraint_kind":"K8sDisallowedRepos",
"constraint_name":"repo-must-not-be-k8s-gcr-io","constraint_namespace":"",
"constraint_action":"deny","constraint_annotations":{},"resource_group":"","resource_api_version":"v1",
"resource_kind":"Pod","resource_namespace":"default",
"resource_name":"kustomize-disallowed","resource_labels":null}
Environment:
Gatekeeper version:
3.14
Kubernetes version: (use kubectl version):
Client Version: v1.28.3
Kustomize Version: v5.0.4-0.20230601165947-6ce0bf390ce3
Server Version: v1.24.17-eks-5e0fdde
WARNING: version difference between client (1.28) and server (1.24) exceeds the supported minor version skew of +/-1
Running on EKS
The text was updated successfully, but these errors were encountered:
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.
What steps did you take and what happened:
https://github.com/open-policy-agent/gatekeeper-library/blob/master/library/general/disallowedrepos/template.yaml
What did you expect to happen:
Not able to create the Pod and receive a message "Error from server (Forbidden): error when creating "container has an invalid image repo <k8s.gcr.io/kustomize/kustomize:latest>,
disallowed repos are ["k8s.gcr.io/\ "
Anything else you would like to add:
[Miscellaneous information that will assist in solving the issue.]
Gatekeeper flags it in the log file but it allows the creation which to me is a bug.
Environment:
3.14
kubectl version
):Client Version: v1.28.3
Kustomize Version: v5.0.4-0.20230601165947-6ce0bf390ce3
Server Version: v1.24.17-eks-5e0fdde
WARNING: version difference between client (1.28) and server (1.24) exceeds the supported minor version skew of +/-1
Running on EKS
The text was updated successfully, but these errors were encountered: