Skip to content

Commit

Permalink
Merge pull request #113 from iits-consulting/bugfix/cert-manager
Browse files Browse the repository at this point in the history
Bugfix: cert manager PolicyException
  • Loading branch information
krankkkk authored Jun 5, 2024
2 parents f227a38 + a1f49dd commit 7045de7
Show file tree
Hide file tree
Showing 4 changed files with 45 additions and 8 deletions.
2 changes: 1 addition & 1 deletion charts/cert-manager/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@ dependencies:
condition: clusterIssuers.otcDNS.enabled
name: cert-manager
description: Wrapper chart for cert-manager. Deploys a ClusterIssuer resource to bootstrap Let's encrypt cert generation
version: 1.14.4
version: 1.14.5
12 changes: 6 additions & 6 deletions charts/cert-manager/images.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
quay.io/jetstack/cert-manager-acmesolver:v1.14.4
quay.io/jetstack/cert-manager-cainjector:v1.14.4
quay.io/jetstack/cert-manager-controller:v1.14.4
quay.io/jetstack/cert-manager-ctl:v1.14.4
quay.io/jetstack/cert-manager-webhook:v1.14.4
quay.io/jetstack/cert-manager-startupapicheck:v1.14.4
quay.io/jetstack/cert-manager-acmesolver:v1.14.5
quay.io/jetstack/cert-manager-cainjector:v1.14.5
quay.io/jetstack/cert-manager-controller:v1.14.5
quay.io/jetstack/cert-manager-ctl:v1.14.5
quay.io/jetstack/cert-manager-webhook:v1.14.5
quay.io/jetstack/cert-manager-startupapicheck:v1.14.5
32 changes: 32 additions & 0 deletions charts/cert-manager/templates/policy-exclusion.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
{{ with .Values.policyException }}
{{ if tpl .enabled $ | toString | eq "true" }}
apiVersion: kyverno.io/v2
kind: PolicyException
metadata:
name: cert-manager-webhook
spec:
exceptions:
- policyName: restrict-seccomp-strict
ruleNames:
- check-seccomp-strict
- autogen-check-seccomp-strict
- policyName: restrict-seccomp
ruleNames:
- check-seccomp
- autogen-check-seccomp
- policyName: enforce-security-context
ruleNames:
- add-pod-security-context
match:
any:
- resources:
kinds:
- Deployment
- ReplicaSet
- Pod
names:
- '*cert-manager-webhook-opentelekomcloud*'
namespaces:
- cert-manager
{{- end }}
{{- end }}
7 changes: 6 additions & 1 deletion charts/cert-manager/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,9 @@ clusterIssuers:
server: https://acme-v02.api.letsencrypt.org/directory
region: eu-de
accessKey: ""
secretKey: ""
secretKey: ""


policyException:
# Only enabled if clusterIssuers.otcDNS.enabled is also true
enabled: "{{ .Values.clusterIssuers.otcDNS.enabled }}"

0 comments on commit 7045de7

Please sign in to comment.