Skip to content

Commit be4bc28

Browse files
authored
Merge pull request #32 from holaplex/mpw/update-webhooks-chart
add init container to hub-webhooks chart
2 parents e171899 + 969cccb commit be4bc28

File tree

3 files changed

+14
-2
lines changed

3 files changed

+14
-2
lines changed

charts/hub-webhooks/Chart.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,13 @@ type: application
1818
# This is the chart version. This version number should be incremented each time you make changes
1919
# to the chart and its templates, including the app version.
2020
# Versions are expected to follow Semantic Versioning (https://semver.org/)
21-
version: 0.1.2
21+
version: 0.1.3
2222

2323
# This is the version number of the application being deployed. This version number should be
2424
# incremented each time you make changes to the application. Versions are not expected to
2525
# follow Semantic Versioning. They should reflect the version the application is using.
2626
# It is recommended to use it with quotes.
27-
appVersion: "0.1.2"
27+
appVersion: "0.1.3"
2828
dependencies:
2929
- name: svix
3030
condition: svix.enabled

charts/hub-webhooks/templates/deployment.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,14 @@ spec:
2727
serviceAccountName: {{ include "hub-webhooks.serviceAccountName" . }}
2828
securityContext:
2929
{{- toYaml .Values.podSecurityContext | nindent 8 }}
30+
{{- if .Values.svix.enabled }}
31+
initContainers:
32+
- name: wait-for-svix
33+
image: {{ .Values.initContainer.image }}:{{ .Values.initContainer.tag }}
34+
command: ['sh', '-c', "until curl -s -f -o /dev/null {{ .Values.environment.svixBaseUrl}}; do echo waiting for svix-server; sleep 2; done;"]
35+
securityContext:
36+
{{- toYaml .Values.podSecurityContext | nindent 12 }}
37+
{{- end }}
3038
containers:
3139
- name: {{ .Chart.Name }}
3240
securityContext:

charts/hub-webhooks/values.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,10 @@ tolerations: []
7272

7373
affinity: {}
7474

75+
initContainer:
76+
image: curlimages/curl
77+
tag: latest
78+
7579
secrets:
7680
enabled: true
7781
entries:

0 commit comments

Comments
 (0)