Skip to content

Commit

Permalink
refactor chart release (#71)
Browse files Browse the repository at this point in the history
Signed-off-by: Maksim Paskal <[email protected]>
  • Loading branch information
maksim-paskal authored Jan 16, 2022
1 parent 6b1f2b0 commit 94f0bc2
Show file tree
Hide file tree
Showing 6 changed files with 19 additions and 10 deletions.
3 changes: 2 additions & 1 deletion charts/envoy-control-plane/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
apiVersion: v2
icon: https://helm.sh/img/helm.svg
name: envoy-control-plane
version: v0.0.3
version: v0.0.4
appVersion: v0.3.5
2 changes: 1 addition & 1 deletion charts/envoy-control-plane/templates/control-plane.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ spec:
name: envoy-control-plane-certs
containers:
- name: envoy-control-plane
image: {{ .Values.registry.image | quote }}
image: {{ tpl .Values.registry.image . | quote }}
imagePullPolicy: {{ .Values.registry.imagePullPolicy | quote }}
env:
- name: MY_POD_NAMESPACE
Expand Down
2 changes: 1 addition & 1 deletion charts/envoy-control-plane/templates/envoy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ spec:
exec:
# gracefully drain all connection
command: ["/bin/sh", "-c", "cli -drainEnvoy; sleep 5s; pkill -SIGTERM envoy"]
image: {{ .Values.envoy.registry.image | quote }}
image: {{ tpl .Values.envoy.registry.image . | quote }}
imagePullPolicy: {{ .Values.envoy.registry.imagePullPolicy | quote }}
args:
- /bin/sh
Expand Down
16 changes: 12 additions & 4 deletions charts/envoy-control-plane/templates/testPods.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -63,12 +63,16 @@ spec:
name: test-pod-config
containers:
- name: test-001
image: envoyproxy/envoy:v1.21.0
imagePullPolicy: IfNotPresent
image: paskalmaksim/envoy-docker-image:latest
imagePullPolicy: Always
resources:
limits:
cpu: 10m
memory: 100Mi
command:
- /usr/local/bin/envoy
- --config-path /etc/envoy/envoy.yaml
- --log-level warn
# stop container after 30 sec
# lifecycle:
# preStop:
Expand Down Expand Up @@ -108,12 +112,16 @@ spec:
name: test-pod-config
containers:
- name: test-002
image: envoyproxy/envoy:v1.21.0
imagePullPolicy: IfNotPresent
image: paskalmaksim/envoy-docker-image:latest
imagePullPolicy: Always
resources:
limits:
cpu: 10m
memory: 100Mi
command:
- /usr/local/bin/envoy
- --config-path /etc/envoy/envoy.yaml
- --log-level warn
# stop container after 30 sec
# lifecycle:
# preStop:
Expand Down
4 changes: 2 additions & 2 deletions charts/envoy-control-plane/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -105,12 +105,12 @@ certificates:
-----END PRIVATE KEY-----
registry:
image: paskalmaksim/envoy-control-plane:v0.3.5
image: paskalmaksim/envoy-control-plane:{{ .Chart.AppVersion }}
imagePullPolicy: IfNotPresent

envoy:
registry:
image: paskalmaksim/envoy-docker-image:v0.3.5
image: paskalmaksim/envoy-docker-image:{{ .Chart.AppVersion }}
imagePullPolicy: IfNotPresent

service:
Expand Down
2 changes: 1 addition & 1 deletion examples/zone-aware/docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ version: '3'

services:
envoy:
image: envoyproxy/envoy:v1.21.0
image: paskalmaksim/envoy-docker-image:latest
ports:
- 8000:8000
- 8001:8001
Expand Down

0 comments on commit 94f0bc2

Please sign in to comment.