Skip to content

Commit

Permalink
Allow dynamic port binding for dashboard (#5)
Browse files Browse the repository at this point in the history
* Allow dynamic port binding for dashboard

* Fix kind k8s version to 1.18

* Further instances where the service port should be set if it's to be properly dynamic

Co-authored-by: tim-sendible <[email protected]>
  • Loading branch information
tico24 and tim-sendible authored Jan 11, 2021
1 parent 2eb4076 commit a07c887
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/lint-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ jobs:
- name: Create kind cluster
uses: helm/[email protected]
with:
install_local_path_provisioner: true
node_image: kindest/node:v1.18.8
if: steps.list-changed.outputs.changed == 'true'

- name: Run chart-testing (install)
Expand Down
2 changes: 1 addition & 1 deletion charts/sorry-cypress/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiVersion: v2
name: sorry-cypress
description: A Helm chart for Sorry Cypress
type: application
version: 0.1.6
version: 0.1.7
appVersion: 0.6.1
home: https://sorry-cypress.dev/
sources:
Expand Down
6 changes: 4 additions & 2 deletions charts/sorry-cypress/templates/deployment-dashboard.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,15 +25,17 @@ spec:
- name: CI_URL
value: {{ .Values.dashboard.environmentVariables.ciUrl | quote }}
{{- end }}
- name: PORT
value: "{{ .Values.dashboard.service.port }}"
image: "{{ .Values.dashboard.image.repository }}:{{ .Values.dashboard.image.tag | default .Chart.AppVersion }}"
imagePullPolicy: {{ .Values.dashboard.image.pullPolicy }}
name: {{ include "sorry-cypress-helm.fullname" . }}-dashboard
ports:
- containerPort: 8080
- containerPort: {{ .Values.dashboard.service.port }}
readinessProbe:
httpGet:
path: /
port: 8080
port: {{ .Values.dashboard.service.port }}
periodSeconds: 10
timeoutSeconds: 5
successThreshold: 2
Expand Down

0 comments on commit a07c887

Please sign in to comment.