From fe21c9f008f83af7ce4cef26670faa930a2daeb3 Mon Sep 17 00:00:00 2001 From: Hector Fernandez Date: Fri, 27 Aug 2021 10:44:39 +0200 Subject: [PATCH] fix: warnings on admissionregistration version (#581) * fix: warnings on admissionregistration version Signed-off-by: Hector Fernandez * fix: bump Chart version Signed-off-by: Hector Fernandez * chore: limit admission review versions to v1 Signed-off-by: Hector Fernandez --- chart/cosigned/Chart.yaml | 2 +- chart/cosigned/templates/webhook/webhook_validating.yaml | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/chart/cosigned/Chart.yaml b/chart/cosigned/Chart.yaml index a12bf0ae488..09379aa24af 100644 --- a/chart/cosigned/Chart.yaml +++ b/chart/cosigned/Chart.yaml @@ -19,7 +19,7 @@ sources: - https://github.com/sigstore/cosign name: cosigned type: application -version: v0.0.1-dev +version: v0.0.2-dev appVersion: "dev" maintainers: - name: dlorenc diff --git a/chart/cosigned/templates/webhook/webhook_validating.yaml b/chart/cosigned/templates/webhook/webhook_validating.yaml index 6b80495ff73..b60afaad3bb 100644 --- a/chart/cosigned/templates/webhook/webhook_validating.yaml +++ b/chart/cosigned/templates/webhook/webhook_validating.yaml @@ -13,7 +13,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -apiVersion: admissionregistration.k8s.io/v1beta1 +apiVersion: admissionregistration.k8s.io/v1 kind: ValidatingWebhookConfiguration metadata: annotations: @@ -33,6 +33,8 @@ webhooks: # matchLabels: # cosigned: "true" name: webhook.cosigned.sigstore.dev + admissionReviewVersions: + - v1 rules: - apiGroups: - ""