Skip to content

Commit

Permalink
feat(portefaix-cel): v1 for ValidatingAdmissionPolicy and ValidatingA…
Browse files Browse the repository at this point in the history
…dmissionPolicyBinding (#849)

Signed-off-by: Nicolas Lamirault <[email protected]>
  • Loading branch information
nlamirault authored Jul 2, 2024
1 parent ce53841 commit 43e4ba4
Show file tree
Hide file tree
Showing 10 changed files with 20 additions and 20 deletions.
6 changes: 3 additions & 3 deletions charts/portefaix-cel/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ keywords:
- cel
- policies
- portefaix
version: 1.0.0
version: 2.0.0
appVersion: v1.30.0

maintainers:
Expand All @@ -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
2 changes: 1 addition & 1 deletion charts/portefaix-cel/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
4 changes: 2 additions & 2 deletions charts/portefaix-cel/templates/policy-C0001.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

{{- if .Values.policies.c0001.enabled }}
---
apiVersion: admissionregistration.k8s.io/v1alpha1
apiVersion: admissionregistration.k8s.io/v1
kind: ValidatingAdmissionPolicy
metadata:
labels:
Expand Down Expand Up @@ -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:
Expand Down
4 changes: 2 additions & 2 deletions charts/portefaix-cel/templates/policy-C0002.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

{{- if .Values.policies.c0002.enabled }}
---
apiVersion: admissionregistration.k8s.io/v1alpha1
apiVersion: admissionregistration.k8s.io/v1
kind: ValidatingAdmissionPolicy
metadata:
labels:
Expand Down Expand Up @@ -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:
Expand Down
4 changes: 2 additions & 2 deletions charts/portefaix-cel/templates/policy-C0003.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

{{- if .Values.policies.c0003.enabled }}
---
apiVersion: admissionregistration.k8s.io/v1alpha1
apiVersion: admissionregistration.k8s.io/v1
kind: ValidatingAdmissionPolicy
metadata:
labels:
Expand Down Expand Up @@ -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:
Expand Down
4 changes: 2 additions & 2 deletions charts/portefaix-cel/templates/policy-C0008.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

{{- if .Values.policies.c0008.enabled }}
---
apiVersion: admissionregistration.k8s.io/v1alpha1
apiVersion: admissionregistration.k8s.io/v1
kind: ValidatingAdmissionPolicy
metadata:
labels:
Expand Down Expand Up @@ -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:
Expand Down
4 changes: 2 additions & 2 deletions charts/portefaix-cel/templates/policy-M0001.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

{{- if .Values.policies.m0001.enabled }}
---
apiVersion: admissionregistration.k8s.io/v1alpha1
apiVersion: admissionregistration.k8s.io/v1
kind: ValidatingAdmissionPolicy
metadata:
labels:
Expand Down Expand Up @@ -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:
Expand Down
4 changes: 2 additions & 2 deletions charts/portefaix-cel/templates/policy-M0002.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

{{- if .Values.policies.m0002.enabled }}
---
apiVersion: admissionregistration.k8s.io/v1alpha1
apiVersion: admissionregistration.k8s.io/v1
kind: ValidatingAdmissionPolicy
metadata:
labels:
Expand Down Expand Up @@ -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:
Expand Down
4 changes: 2 additions & 2 deletions charts/portefaix-cel/templates/policy-M0003.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

{{- if .Values.policies.m0003.enabled }}
---
apiVersion: admissionregistration.k8s.io/v1alpha1
apiVersion: admissionregistration.k8s.io/v1
kind: ValidatingAdmissionPolicy
metadata:
labels:
Expand Down Expand Up @@ -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:
Expand Down
4 changes: 2 additions & 2 deletions charts/portefaix-cel/templates/policy-N0001.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

{{- if .Values.policies.n0001.enabled }}
---
apiVersion: admissionregistration.k8s.io/v1alpha1
apiVersion: admissionregistration.k8s.io/v1
kind: ValidatingAdmissionPolicy
metadata:
labels:
Expand Down Expand Up @@ -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:
Expand Down

0 comments on commit 43e4ba4

Please sign in to comment.