kubewarden / kubewarden-controller

Manage admission policies in your Kubernetes cluster with ease
https://kubewarden.io
Apache License 2.0
191 stars 33 forks source link

Unknown field "backgroundAudit" #395

Closed kravciak closed 1 year ago

kravciak commented 1 year ago

Is there an existing issue for this?

Current Behavior

~ kwctl pull ghcr.io/kubewarden/policies/pod-privileged:latest
~ kwctl scaffold manifest --type=ClusterAdmissionPolicy registry://ghcr.io/kubewarden/policies/pod-privileged:latest > yaml
~ kubectl apply -f yaml
error: error validating "yaml": error validating data: ValidationError(ClusterAdmissionPolicy.spec): unknown field "backgroundAudit" in io.kubewarden.policies.v1.ClusterAdmissionPolicy.spec; if you choose to ignore these errors, turn validation off with --validate=false

~ kwctl -V
kwctl 1.5.2

~ kubectl version --short
Client Version: v1.25.4
Server Version: v1.24.9+k3s2
flavio commented 1 year ago

I think we should update kwctl to not scaffold this field. At least until the background checks feature isn't merged.

@kubewarden/kubewarden-developers what do you think?

flavio commented 1 year ago

Closing, this has been fixed