AdmissionResponse.Warnings do not show warning
Tiger20111 opened this issue · 1 comments
Tiger20111 commented
Hello!
I have a working validator on the Openschift and Kubernetis clusters. Then I wanted to add warnings.
As example:
- admissionReview.Response.Warnings = append(admissionReview.Response.Warnings, "Test element")
- return &v1beta1.AdmissionResponse{
Allowed: true,
Warnings: []string{"Test"},
}
From the container side, the response goes away with warning, but no warning appears either in the terminal or in the interface.
Kubernetes Version: v1.19.0+9c69bdc
I did everything according to:
- https://kubernetes.io/docs/reference/access-authn-authz/extensible-admission-controllers/
- https://github.com/kubernetes/api/blob/master/admission/v1beta1/types.go
Can you help with this?
Tiger20111 commented
I installed oc-cli with version 4.6. This solved my problem.