kubewarden / policy-server

Webhook server that evaluates WebAssembly policies to validate Kubernetes requests
https://kubewarden.io
Apache License 2.0
138 stars 18 forks source link

update admission policy status error: status.policyStatus: Unsupported value #244

Closed floriankoch closed 2 years ago

floriankoch commented 2 years ago

Is there an existing issue for this?

Current Behavior

I run a default kubewarden installation

This Policy is active: https://github.com/kubewarden/disallow-service-loadbalancer-policy Got this error

sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).Start.func2.2 /go/pkg/mod/sigs.k8s.io/controller-runtime@v0.10.0/pkg/internal/controller/controller.go:227 2022-04-29T18:05:40.219Z ERROR controller.clusteradmissionpolicy Reconciler error {"reconciler group": "policies.kubewarden.io", "reconciler kind": "ClusterAdmissionPolicy", "name": "disallow-service-loadbalancer", "namespace": "", "error": "update admission policy status error: ClusterAdmissionPolicy.policies.kubewarden.io \"disallow-service-loadbalancer\" is invalid: status.policyStatus: Unsupported value: \"scheduled\": supported values: \"unscheduled\", \"unschedulable\", \"pending\", \"active\""}

Expected Behavior

No Error

Steps To Reproduce

No response

Environment

- OS:
- Architecture:

Anything else?

No response

floriankoch commented 2 years ago

Wrong Component