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 <157053549+gsantos-hc@users.noreply.github.com>
  • Loading branch information
gsantos-hc committed Sep 5, 2024
1 parent 1174f11 commit 79dd94d
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 2 deletions.
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.9
version: 0.7.0
appVersion: 0.8.2

maintainers:
Expand Down
3 changes: 2 additions & 1 deletion charts/policy-controller/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

<!-- This README.md is generated. Please edit README.md.gotmpl -->

![Version: 0.6.9](https://img.shields.io/badge/Version-0.6.9-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 0.8.2](https://img.shields.io/badge/AppVersion-0.8.2-informational?style=flat-square)
![Version: 0.7.0](https://img.shields.io/badge/Version-0.7.0-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 0.8.2](https://img.shields.io/badge/AppVersion-0.8.2-informational?style=flat-square)

The Helm chart for Policy Controller

Expand Down Expand Up @@ -173,6 +173,7 @@ helm uninstall [RELEASE_NAME]
| 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 79dd94d

Please sign in to comment.