Skip to content

Commit

Permalink
Merge pull request #15 from ImDevinC/customize-container-port
Browse files Browse the repository at this point in the history
Customize container port
  • Loading branch information
ImDevinC committed Jan 30, 2024
2 parents f2516f6 + 7837abc commit b5a6b6b
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
4 changes: 2 additions & 2 deletions deploy/go-links/Chart.yaml
Expand Up @@ -2,5 +2,5 @@ apiVersion: v2
name: go-links
description: A Helm chart for Kubernetes
type: application
version: 0.0.7
appVersion: "0.0.7"
version: 0.0.8
appVersion: "0.0.8"
4 changes: 2 additions & 2 deletions deploy/go-links/templates/deployment.yaml
Expand Up @@ -35,7 +35,7 @@ spec:
imagePullPolicy: {{ .Values.image.pullPolicy }}
env:
- name: PORT
value: "{{ .Values.service.port }}"
value: "{{ .Values.config.port | default 8080 }}"
{{- if .Values.config.ssoEntityId }}
- name: SSO_ENTITY_ID
valueFrom:
Expand All @@ -61,7 +61,7 @@ spec:
{{ end }}
ports:
- name: http
containerPort: {{ .Values.service.port }}
containerPort: {{ .Values.config.port | default 8080 }}
protocol: TCP
livenessProbe:
httpGet:
Expand Down
1 change: 1 addition & 0 deletions deploy/go-links/values.yaml
Expand Up @@ -3,6 +3,7 @@
# Declare variables to be passed into your templates.

config: {}
# port: 8080
# ssoEntityId:
# ssoCallbackUrl:
# ssoMetadataFileContents:
Expand Down

0 comments on commit b5a6b6b

Please sign in to comment.