Skip to content

Commit

Permalink
Enable custom annotations in Policy Controller pods
Browse files Browse the repository at this point in the history
Signed-off-by: Guilherme Santos <[email protected]>
  • Loading branch information
gsantos-hc committed Jul 2, 2024
1 parent 2b2182e commit 3ae3ef9
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 1 deletion.
2 changes: 1 addition & 1 deletion charts/policy-controller/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ sources:
type: application

name: policy-controller
version: 0.6.8
version: 0.7.0
appVersion: 0.8.2

maintainers:
Expand Down
1 change: 1 addition & 0 deletions charts/policy-controller/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ The Helm chart for Policy Controller
| webhook.namespaceSelector.matchExpressions[0].key | string | `"policy.sigstore.dev/include"` | |
| webhook.namespaceSelector.matchExpressions[0].operator | string | `"In"` | |
| webhook.namespaceSelector.matchExpressions[0].values[0] | string | `"true"` | |
| webhook.podAnnotations | object | `{}` | |
| webhook.podDisruptionBudget.enabled | bool | `true` | |
| webhook.podDisruptionBudget.minAvailable | int | `1` | |
| webhook.podSecurityContext.allowPrivilegeEscalation | bool | `false` | |
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@ spec:
control-plane: {{ template "policy-controller.fullname" . }}-webhook
template:
metadata:
{{- with .Values.webhook.podAnnotations }}
annotations:
{{- toYaml . | nindent 8 }}
{{- end }}
labels:
control-plane: {{ template "policy-controller.fullname" . }}-webhook
{{- include "policy-controller.labels" . | nindent 8 }}
Expand Down
3 changes: 3 additions & 0 deletions charts/policy-controller/values.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,9 @@
}
}
},
"podAnnotations": {
"type": "object"
},
"podDisruptionBudget": {
"type": "object",
"properties": {
Expand Down
1 change: 1 addition & 0 deletions charts/policy-controller/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ webhook:
enabled: false
runAsUser: 65532
failurePolicy: Fail
podAnnotations: {}
podSecurityContext:
enabled: true
allowPrivilegeEscalation: false
Expand Down

0 comments on commit 3ae3ef9

Please sign in to comment.