Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable custom annotations in Policy Controller pods #767

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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