Skip to content

Commit 0a3e3cd

Browse files
author
Ahmed El-Sayed
authored
Merge pull request #131 from weaveworks/dev
release v2.1.0
2 parents b4c76a2 + 5427def commit 0a3e3cd

File tree

5 files changed

+39
-4
lines changed

5 files changed

+39
-4
lines changed

helm/Chart.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
apiVersion: v2
2-
appVersion: "2.0.0"
2+
appVersion: "2.1.0"
33
description: A Helm chart for Kubernetes to configure the policy agent
44
name: policy-agent
5-
version: 2.0.0
5+
version: 2.1.0
66
maintainers:
77
- name: Weaveworks
88
email: support@weave.works

helm/README.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
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). |

helm/templates/agent.yaml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -308,7 +308,13 @@ webhooks:
308308
matchExpressions:
309309
- key: kubernetes.io/metadata.name
310310
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 }}
312318
{{- end}}
313319
- name: policyconfigs.pac.weave.works
314320
admissionReviewVersions:

helm/values.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,13 @@ certificate: ""
88
key: ""
99
caCertificate: ""
1010

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+
1118
persistence:
1219
enabled: false
1320
# claimStorage: 1Gi

version.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2.0.0
1+
2.1.0

0 commit comments

Comments
 (0)