add extra manifest capability (#18457)

Signed-off-by: Raphael MESSNER <raphael.messner@dailymotion.com>
This commit is contained in:
Raphael MESSNER
2019-11-28 09:05:03 -08:00
committed by Kubernetes Prow Robot
parent 72b150ef23
commit 731af73b47
4 changed files with 31 additions and 1 deletions
+1 -1
View File
@@ -2,7 +2,7 @@ apiVersion: v1
appVersion: "v0.8.2"
description: A Helm chart for Atlantis https://www.runatlantis.io
name: atlantis
version: 3.8.4
version: 3.9.0
keywords:
- terraform
home: https://www.runatlantis.io
+16
View File
@@ -20,6 +20,21 @@ In order for Atlantis to start and run successfully:
1. Supply a value for `orgWhitelist`, e.g. `github.org/myorg/*`.
## Additional manifests
It is possible to add additional manifests into a deployment, to extend the chart. One of the reason is to deploy a manifest specific to a cloud provider ( BackendConfig on GKE for example ).
```yaml
extraManifests:
- apiVersion: cloud.google.com/v1beta1
kind: BackendConfig
metadata:
name: "{{ .Release.Name }}-test"
spec:
securityPolicy:
name: "gcp-cloud-armor-policy-test"
```
## Customization
The following options are supported. See [values.yaml](values.yaml) for more detailed documentation and examples:
@@ -77,6 +92,7 @@ The following options are supported. See [values.yaml](values.yaml) for more de
| `ingress.host` | Domain name Kubernetes Ingress rule looks for. Set it to the domain Atlantis will be hosted on. | `chart-example.local` |
| `ingress.tls` | Kubernetes tls block. See [Kubernetes docs](https://kubernetes.io/docs/concepts/services-networking/ingress/#tls) for details. | `[]` |
| `test.enabled` | Whether to enable the test. | `true` |
| `extraManifests` | add additional manifests to deploy | `[]` |
**NOTE**: All the [Server Configurations](https://www.runatlantis.io/docs/server-configuration.html) are passed as [Environment Variables](https://www.runatlantis.io/docs/server-configuration.html#environment-variables).
@@ -0,0 +1,4 @@
{{- range .Values.extraManifests }}
---
{{ tpl (toYaml .) $ }}
{{- end }}
+10
View File
@@ -221,3 +221,13 @@ extraVolumeMounts: []
# extraVolumeMounts:
# - name: some-volume-name
# mountPath: /path/in/container
extraManifests: []
# extraManifests:
# - apiVersion: cloud.google.com/v1beta1
# kind: BackendConfig
# metadata:
# name: "{{ .Release.Name }}-test"
# spec:
# securityPolicy:
# name: "gcp-cloud-armor-policy-test"