Skip to content

Commit

Permalink
Fix Cedar Webhook startup issue: Add init container for certs permiss…
Browse files Browse the repository at this point in the history
…ions
  • Loading branch information
ad1mohan committed Feb 9, 2025
1 parent f5a3c6c commit c2748d2
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions manifests/cedar-authorization-webhook.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,13 @@ metadata:
name: cedar-webhook
namespace: kube-system
spec:
initContainers:
- name: fix-cert-permissions
image: busybox
command: ["sh", "-c", "chown -R 65532:65532 /cedar-authorizer/certs && chmod -R g+rwX /cedar-authorizer/certs"]
volumeMounts:
- mountPath: /cedar-authorizer/certs
name: var-run-cedar-authorizer-certs
containers:
- name: cedar-webhook
command:
Expand Down

0 comments on commit c2748d2

Please sign in to comment.