forked from helm/charts
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[stable/centrifugo] Update centrifugo to 2.1.0 (helm#10373)
* update centrifugo to 2.1.0 and update the healt check Signed-off-by: cpanato <[email protected]> * add myself as owner of this chart Signed-off-by: cpanato <[email protected]> * add simple test Signed-off-by: cpanato <[email protected]>
- Loading branch information
1 parent
b38f668
commit 325a10a
Showing
13 changed files
with
107 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,3 +19,6 @@ | |
.project | ||
.idea/ | ||
*.tmproj | ||
|
||
# OWNERS file for Kubernetes | ||
OWNERS |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
approvers: | ||
- cpanato | ||
reviewers: | ||
- cpanato |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,12 @@ | ||
apiVersion: v1 | ||
kind: ConfigMap | ||
metadata: | ||
name: {{ template "centrifugo.fullname" . }}-config | ||
name: {{ include "centrifugo.fullname" . }}-config | ||
labels: | ||
heritage: {{ .Release.Service }} | ||
release: {{ .Release.Name }} | ||
chart: {{ .Chart.Name }}-{{ .Chart.Version }} | ||
app: {{ template "centrifugo.name" . }} | ||
chart: {{ include "centrifugo.chart" . }} | ||
app: {{ include "centrifugo.name" . }} | ||
data: | ||
config.json: |- | ||
{{ toJson .Values.config| indent 4 }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
14 changes: 14 additions & 0 deletions
14
stable/centrifugo/templates/tests/centrifugo-config-test.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
apiVersion: v1 | ||
kind: ConfigMap | ||
metadata: | ||
name: {{ include "centrifugo.fullname" . }}-tests | ||
labels: | ||
app.kubernetes.io/name: {{ include "centrifugo.name" . }} | ||
app.kubernetes.io/instance: {{ .Release.Name }} | ||
app.kubernetes.io/managed-by: {{ .Release.Service }} | ||
helm.sh/chart: {{ include "centrifugo.chart" . }} | ||
data: | ||
run.sh: |- | ||
@test "Testing if centrifugo ui is accessible" { | ||
curl --retry 48 --retry-delay 10 {{ include "centrifugo.fullname" . }}.{{ .Release.Namespace }}.svc.cluster.local:{{ .Values.service.port }} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
apiVersion: v1 | ||
kind: Pod | ||
metadata: | ||
name: {{ include "centrifugo.fullname" . }}-test-{{ randAlphaNum 5 | lower }} | ||
labels: | ||
app.kubernetes.io/name: {{ include "centrifugo.name" . }} | ||
app.kubernetes.io/instance: {{ .Release.Name }} | ||
app.kubernetes.io/managed-by: {{ .Release.Service }} | ||
helm.sh/chart: {{ include "centrifugo.chart" . }} | ||
annotations: | ||
"helm.sh/hook": test-success | ||
spec: | ||
initContainers: | ||
- name: "test-framework" | ||
image: "dduportal/bats:0.4.0" | ||
command: | ||
- "bash" | ||
- "-c" | ||
- | | ||
set -ex | ||
# copy bats to tools dir | ||
cp -R /usr/local/libexec/ /tools/bats/ | ||
volumeMounts: | ||
- mountPath: /tools | ||
name: tools | ||
containers: | ||
- name: {{ .Release.Name }}-test | ||
image: "dduportal/bats:0.4.0" | ||
command: ["/tools/bats/bats", "-t", "/tests/run.sh"] | ||
volumeMounts: | ||
- mountPath: /tests | ||
name: tests | ||
readOnly: true | ||
- mountPath: /tools | ||
name: tools | ||
volumes: | ||
- name: tests | ||
configMap: | ||
name: {{ include "centrifugo.fullname" . }}-tests | ||
- name: tools | ||
emptyDir: {} | ||
restartPolicy: Never |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters