File tree Expand file tree Collapse file tree 5 files changed +39
-4
lines changed Expand file tree Collapse file tree 5 files changed +39
-4
lines changed Original file line number Diff line number Diff line change 1
1
apiVersion : v2
2
- appVersion : " 2.0 .0"
2
+ appVersion : " 2.1 .0"
3
3
description : A Helm chart for Kubernetes to configure the policy agent
4
4
name : policy-agent
5
- version : 2.0 .0
5
+ version : 2.1 .0
6
6
maintainers :
7
7
- name : Weaveworks
8
8
email : support@weave.works
Original file line number Diff line number Diff line change
1
+ # Policy Agent Helm Release
2
+
3
+ ## Installation
4
+ ``` bash
5
+ helm repo add policy-agent https://weaveworks.github.io/policy-agent/
6
+ ```
7
+
8
+ ## Configuration
9
+
10
+ List of available variables:
11
+
12
+
13
+ | Key | Type | Default | Description |
14
+ | -----------------------| ---------------| ---------------------------| -----------------------------------------------------------------------------------------------------------|
15
+ | ` image ` | ` string ` | ` weaveworks/policy-agent ` | docker image. |
16
+ | ` useCertManager ` | ` boolean ` | ` true ` | use [ cert-manager] ( https://cert-manager.io/ ) to manage agent's TLS certificate. |
17
+ | ` certificate ` | ` string ` | | TLS certificate. Not needed if ` useCertManager ` is set to ` true ` . |
18
+ | ` key ` | ` string ` | | TLS key. Not needed if ` useCertManager ` is set to ` true ` . |
19
+ | ` caCertificate ` | ` string ` | | TLS CA Certificate . Not needed if ` useCertManager ` is set to ` true ` . |
20
+ | ` failurePolicy ` | ` string ` | ` Fail ` | Whether to fail or ignore when the admission controller request fails. Available values ` Fail ` , ` Ignore ` |
21
+ | ` excludeNamespaces ` | ` []string ` | | List of namespaces to ignore by the admission controller. |
22
+ | ` config ` | ` object ` | | Agent configuration. See agent's configuration [ guide] ( ../docs/README.md#configuration ) . |
Original file line number Diff line number Diff line change @@ -308,7 +308,13 @@ webhooks:
308
308
matchExpressions :
309
309
- key : kubernetes.io/metadata.name
310
310
operator : NotIn
311
- values : [{{ .Release.Namespace }}]
311
+ {{- if .Values.excludeNamespaces }}
312
+ values :
313
+ {{- toYaml .Values.excludeNamespaces | nindent 8 }}
314
+ {{- else }}
315
+ values :
316
+ - {{ .Release.Namespace }}
317
+ {{- end }}
312
318
{{- end}}
313
319
- name : policyconfigs.pac.weave.works
314
320
admissionReviewVersions :
Original file line number Diff line number Diff line change @@ -8,6 +8,13 @@ certificate: ""
8
8
key : " "
9
9
caCertificate : " "
10
10
11
+ # exclude namespaces by admission controller
12
+ # If not set, The policy agent will exclude only it's namespace ({{.Release.Namespace}})
13
+ excludeNamespaces :
14
+ # - policy-system
15
+ # - flux-system
16
+ # - kube-system
17
+
11
18
persistence :
12
19
enabled : false
13
20
# claimStorage: 1Gi
Original file line number Diff line number Diff line change 1
- 2.0 .0
1
+ 2.1 .0
You can’t perform that action at this time.
0 commit comments