Closed Tiger20111 closed 3 years ago
Hello!
I have a working validator on the Openschift and Kubernetis clusters. Then I wanted to add warnings.
As example: 1) admissionReview.Response.Warnings = append(admissionReview.Response.Warnings, "Test element") 2) 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: 1) https://kubernetes.io/docs/reference/access-authn-authz/extensible-admission-controllers/ 2) https://github.com/kubernetes/api/blob/master/admission/v1beta1/types.go
Can you help with this?
I installed oc-cli with version 4.6. This solved my problem.
Hello!
I have a working validator on the Openschift and Kubernetis clusters. Then I wanted to add warnings.
As example:
1) admissionReview.Response.Warnings = append(admissionReview.Response.Warnings, "Test element") 2) 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: 1) https://kubernetes.io/docs/reference/access-authn-authz/extensible-admission-controllers/ 2) https://github.com/kubernetes/api/blob/master/admission/v1beta1/types.go
Can you help with this?