[stable/spinnaker] Add support for adding env vars to Halyard (#13356)

Environment variables such as DEFAULT_JVM_OPTS need to be set in order
for Halyard to use a proxy. This adds an option to let you pass through
any env vars to the Halyard pod.

Signed-off-by: Rhys Meaclem <rhysmeaclem@gmail.com>
This commit is contained in:
rhysm
2019-05-28 02:37:55 -07:00
committed by Kubernetes Prow Robot
parent 1e45a092d4
commit 29f0dd5910
4 changed files with 19 additions and 1 deletions
+1 -1
View File
@@ -1,7 +1,7 @@
apiVersion: v1
description: Open source, multi-cloud continuous delivery platform for releasing software changes with high velocity and confidence.
name: spinnaker
version: 1.10.2
version: 1.11.0
appVersion: 1.12.5
home: http://spinnaker.io/
sources:
+9
View File
@@ -163,3 +163,12 @@ halyard:
annotations:
iam.amazonaws.com/role: <role_arn>
```
### Set environment variables on the halyard pod
```yaml
halyard:
env:
- name: DEFAULT_JVM_OPTS
value: -Dhttp.proxyHost=proxy.example.com
```
@@ -139,6 +139,10 @@ spec:
mountPath: /opt/halyard/config
- name: reg-secrets
mountPath: /opt/registry/passwords
{{- if .Values.halyard.env }}
env:
{{ toYaml .Values.halyard.env | indent 8 }}
{{- end }}
volumeClaimTemplates:
- metadata:
name: halyard-home
+5
View File
@@ -71,6 +71,11 @@ halyard:
# memory: "2Gi"
# cpu: "200m"
## Uncomment if you want to set environment variables on the Halyard pod.
# env:
# - name: DEFAULT_JVM_OPTS
# value: -Dhttp.proxyHost=proxy.example.com
# Define which registries and repositories you want available in your
# Spinnaker pipeline definitions
# For more info visit: