Add proxy override for Armada chart

Armada service may require the access to external repositories,
add proxy configuration to be able to install it behind the proxy.

Change-Id: I30f6ce6256e234b33f5fbce80387290d2cdb40c1
This commit is contained in:
Evgeny L 2018-12-10 16:20:33 +00:00 committed by Evgeniy L
parent 7a0cbb466e
commit 407396a666
2 changed files with 46 additions and 0 deletions

View File

@ -6,6 +6,8 @@ metadata:
layeringDefinition:
abstract: false
layer: global
labels:
name: ucp-armada
storagePolicy: cleartext
substitutions:
# Chart source

View File

@ -0,0 +1,44 @@
---
schema: armada/Chart/v1
metadata:
schema: metadata/Document/v1
name: ucp-armada
replacement: true
layeringDefinition:
abstract: false
layer: type
parentSelector:
name: ucp-armada
actions:
- method: merge
path: .
storagePolicy: cleartext
substitutions:
# HTTP Proxy env
- src:
schema: pegleg/CommonAddresses/v1
name: common-addresses
path: .proxy.http
dest:
path: .values.pod.env.armada_api[0].value
- src:
schema: pegleg/CommonAddresses/v1
name: common-addresses
path: .proxy.https
dest:
path: .values.pod.env.armada_api[1].value
- src:
schema: pegleg/CommonAddresses/v1
name: common-addresses
path: .proxy.no_proxy
dest:
path: .values.pod.env.armada_api[2].value
data:
values:
pod:
env:
armada_api:
- name: http_proxy
- name: https_proxy
- name: no_proxy
...