diff --git a/charts/portefaix-cel/Chart.yaml b/charts/portefaix-cel/Chart.yaml index 1032c924..47cd3663 100644 --- a/charts/portefaix-cel/Chart.yaml +++ b/charts/portefaix-cel/Chart.yaml @@ -28,7 +28,7 @@ keywords: - cel - policies - portefaix -version: 1.0.0 +version: 2.0.0 appVersion: v1.30.0 maintainers: @@ -48,5 +48,5 @@ annotations: fingerprint: C39918B3EBDE35C23B8D0B8E5F99269A6FCA437C url: https://keybase.io/nlamirault/pgp_keys.asc artifacthub.io/changes: | - - kind: added - description: New chart for Validating admission policies use the Common Expression Language + - kind: changed + description: use v1 for ValidatingAdmissionPolicy and ValidatingAdmissionPolicyBinding diff --git a/charts/portefaix-cel/README.md b/charts/portefaix-cel/README.md index f2c3814e..2f7b5733 100644 --- a/charts/portefaix-cel/README.md +++ b/charts/portefaix-cel/README.md @@ -5,7 +5,7 @@ # portefaix-cel -![Version: 1.0.0](https://img.shields.io/badge/Version-1.0.0-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: v1.30.0](https://img.shields.io/badge/AppVersion-v1.30.0-informational?style=flat-square) +![Version: 2.0.0](https://img.shields.io/badge/Version-2.0.0-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: v1.30.0](https://img.shields.io/badge/AppVersion-v1.30.0-informational?style=flat-square) A Helm chart for validating admission policies use the Common Expression Language diff --git a/charts/portefaix-cel/templates/policy-C0001.yaml b/charts/portefaix-cel/templates/policy-C0001.yaml index a7d35646..2720fb8e 100644 --- a/charts/portefaix-cel/templates/policy-C0001.yaml +++ b/charts/portefaix-cel/templates/policy-C0001.yaml @@ -16,7 +16,7 @@ {{- if .Values.policies.c0001.enabled }} --- -apiVersion: admissionregistration.k8s.io/v1alpha1 +apiVersion: admissionregistration.k8s.io/v1 kind: ValidatingAdmissionPolicy metadata: labels: @@ -46,7 +46,7 @@ spec: - key: "container-invalid-image-tag" valueExpression: "Container image must have a SemVer version and not lastest tag" --- -apiVersion: admissionregistration.k8s.io/v1alpha1 +apiVersion: admissionregistration.k8s.io/v1 kind: ValidatingAdmissionPolicyBinding metadata: labels: diff --git a/charts/portefaix-cel/templates/policy-C0002.yaml b/charts/portefaix-cel/templates/policy-C0002.yaml index 51563074..4803b905 100644 --- a/charts/portefaix-cel/templates/policy-C0002.yaml +++ b/charts/portefaix-cel/templates/policy-C0002.yaml @@ -16,7 +16,7 @@ {{- if .Values.policies.c0002.enabled }} --- -apiVersion: admissionregistration.k8s.io/v1alpha1 +apiVersion: admissionregistration.k8s.io/v1 kind: ValidatingAdmissionPolicy metadata: labels: @@ -49,7 +49,7 @@ spec: - key: "container-liveness-probe" valueExpression: "Liveness probe is required" --- -apiVersion: admissionregistration.k8s.io/v1alpha1 +apiVersion: admissionregistration.k8s.io/v1 kind: ValidatingAdmissionPolicyBinding metadata: labels: diff --git a/charts/portefaix-cel/templates/policy-C0003.yaml b/charts/portefaix-cel/templates/policy-C0003.yaml index 2cd2011d..aa3bbc31 100644 --- a/charts/portefaix-cel/templates/policy-C0003.yaml +++ b/charts/portefaix-cel/templates/policy-C0003.yaml @@ -16,7 +16,7 @@ {{- if .Values.policies.c0003.enabled }} --- -apiVersion: admissionregistration.k8s.io/v1alpha1 +apiVersion: admissionregistration.k8s.io/v1 kind: ValidatingAdmissionPolicy metadata: labels: @@ -49,7 +49,7 @@ spec: - key: "container-readiness-probe" valueExpression: "Readiness probe is required" --- -apiVersion: admissionregistration.k8s.io/v1alpha1 +apiVersion: admissionregistration.k8s.io/v1 kind: ValidatingAdmissionPolicyBinding metadata: labels: diff --git a/charts/portefaix-cel/templates/policy-C0008.yaml b/charts/portefaix-cel/templates/policy-C0008.yaml index b01c67a0..c4d97179 100644 --- a/charts/portefaix-cel/templates/policy-C0008.yaml +++ b/charts/portefaix-cel/templates/policy-C0008.yaml @@ -16,7 +16,7 @@ {{- if .Values.policies.c0008.enabled }} --- -apiVersion: admissionregistration.k8s.io/v1alpha1 +apiVersion: admissionregistration.k8s.io/v1 kind: ValidatingAdmissionPolicy metadata: labels: @@ -72,7 +72,7 @@ spec: - key: "container-resources-requests-limits" valueExpression: "CPU and Memory resource requests and limits are required" --- -apiVersion: admissionregistration.k8s.io/v1alpha1 +apiVersion: admissionregistration.k8s.io/v1 kind: ValidatingAdmissionPolicyBinding metadata: labels: diff --git a/charts/portefaix-cel/templates/policy-M0001.yaml b/charts/portefaix-cel/templates/policy-M0001.yaml index 522ac3d1..617ac661 100644 --- a/charts/portefaix-cel/templates/policy-M0001.yaml +++ b/charts/portefaix-cel/templates/policy-M0001.yaml @@ -16,7 +16,7 @@ {{- if .Values.policies.m0001.enabled }} --- -apiVersion: admissionregistration.k8s.io/v1alpha1 +apiVersion: admissionregistration.k8s.io/v1 kind: ValidatingAdmissionPolicy metadata: labels: @@ -56,7 +56,7 @@ spec: - key: "metadata-kubernetes-recommended-labels" valueExpression: "Kubernetes recommended labels is required" --- -apiVersion: admissionregistration.k8s.io/v1alpha1 +apiVersion: admissionregistration.k8s.io/v1 kind: ValidatingAdmissionPolicyBinding metadata: labels: diff --git a/charts/portefaix-cel/templates/policy-M0002.yaml b/charts/portefaix-cel/templates/policy-M0002.yaml index e3e478a9..ea5a4047 100644 --- a/charts/portefaix-cel/templates/policy-M0002.yaml +++ b/charts/portefaix-cel/templates/policy-M0002.yaml @@ -16,7 +16,7 @@ {{- if .Values.policies.m0002.enabled }} --- -apiVersion: admissionregistration.k8s.io/v1alpha1 +apiVersion: admissionregistration.k8s.io/v1 kind: ValidatingAdmissionPolicy metadata: labels: @@ -55,7 +55,7 @@ spec: - key: "metadata-a8r-io-recommended-annotations" valueExpression: "a8r.io annotations is required" --- -apiVersion: admissionregistration.k8s.io/v1alpha1 +apiVersion: admissionregistration.k8s.io/v1 kind: ValidatingAdmissionPolicyBinding metadata: labels: diff --git a/charts/portefaix-cel/templates/policy-M0003.yaml b/charts/portefaix-cel/templates/policy-M0003.yaml index a1c30a15..c387edf8 100644 --- a/charts/portefaix-cel/templates/policy-M0003.yaml +++ b/charts/portefaix-cel/templates/policy-M0003.yaml @@ -16,7 +16,7 @@ {{- if .Values.policies.m0003.enabled }} --- -apiVersion: admissionregistration.k8s.io/v1alpha1 +apiVersion: admissionregistration.k8s.io/v1 kind: ValidatingAdmissionPolicy metadata: labels: @@ -50,7 +50,7 @@ spec: - key: "metadata-portefaix-recommended-labels" valueExpression: "Portefaix recommended labels is required" --- -apiVersion: admissionregistration.k8s.io/v1alpha1 +apiVersion: admissionregistration.k8s.io/v1 kind: ValidatingAdmissionPolicyBinding metadata: labels: diff --git a/charts/portefaix-cel/templates/policy-N0001.yaml b/charts/portefaix-cel/templates/policy-N0001.yaml index e107c291..7fd9478b 100644 --- a/charts/portefaix-cel/templates/policy-N0001.yaml +++ b/charts/portefaix-cel/templates/policy-N0001.yaml @@ -16,7 +16,7 @@ {{- if .Values.policies.n0001.enabled }} --- -apiVersion: admissionregistration.k8s.io/v1alpha1 +apiVersion: admissionregistration.k8s.io/v1 kind: ValidatingAdmissionPolicy metadata: labels: @@ -45,7 +45,7 @@ spec: - key: "default-namespace-not-allowed" valueExpression: "Resources in default namespace are not allowed" --- -apiVersion: admissionregistration.k8s.io/v1alpha1 +apiVersion: admissionregistration.k8s.io/v1 kind: ValidatingAdmissionPolicyBinding metadata: labels: