Skip to content

Commit

Permalink
Merge pull request #88 from darkmuggle/pr/fix-port
Browse files Browse the repository at this point in the history
server-deployment: add .Values.externalPort to customize EXTERNAL_PORT
  • Loading branch information
kcp-ci-bot authored Apr 17, 2024
2 parents cc0df75 + fb3b8d4 commit 982f706
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion charts/kcp/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: kcp
description: A prototype of a multi-tenant Kubernetes control plane for workloads on many clusters

# version information
version: 0.6.1
version: 0.6.2
appVersion: "0.23.0"

# optional metadata
Expand Down
2 changes: 1 addition & 1 deletion charts/kcp/templates/server-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ spec:
- name: EXTERNAL_HOSTNAME
value: {{ required "A valid external hostname is required" .Values.externalHostname }}
- name: EXTERNAL_PORT
value: "{{ if eq .Values.kcpFrontProxy.service.type "LoadBalancer" }}8443{{ else }}443{{- end }}"
value: "{{ if eq .Values.externalPort "" }}{{ if eq .Values.kcpFrontProxy.service.type "LoadBalancer" }}8443{{ else }}443{{- end }}{{ else }}{{ .Values.externalPort }}{{- end }}"
- name: GOMEMLIMIT
valueFrom:
resourceFieldRef:
Expand Down
2 changes: 1 addition & 1 deletion charts/kcp/templates/server-kubeconfigs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ stringData:
# this references the CA certificate that signed the kcp-front-proxy's certificate
# (kcp-server-issuer by default, but could also be any other, external CA)
certificate-authority: /etc/kcp/tls/ca/tls.crt
server: "https://{{ .Values.externalHostname }}:{{ if eq .Values.kcpFrontProxy.service.type "LoadBalancer" }}8443{{ else }}443{{- end }}"
server: "https://{{ .Values.externalHostname }}:{{ if eq .Values.externalPort "" }}{{ if eq .Values.kcpFrontProxy.service.type "LoadBalancer" }}8443{{ else }}443{{- end }}{{ else }}{{ .Values.externalPort }}{{- end }}"
contexts:
- name: external-logical-cluster
context:
Expand Down
1 change: 1 addition & 0 deletions charts/kcp/values.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
externalHostname: ""
externalPort: "" # defaults to 8443 for .Values.kcpFrontProxy.service.type "LoadBalancer", 443 otherwise.
etcd:
enabled: true
image: quay.io/coreos/etcd
Expand Down

0 comments on commit 982f706

Please sign in to comment.