[incubator][chartmuseum] Allow NodePort to be specified (#3683)

* [incubator][chartmuseum] Allow NodePort to be specified

* Remove Trailing WS reported by CirceCI
This commit is contained in:
Gerald Barker
2018-02-10 15:21:50 -08:00
committed by k8s-ci-robot
parent 6eca6fbfbd
commit 88bf716b57
3 changed files with 7 additions and 2 deletions
+1 -1
View File
@@ -1,7 +1,7 @@
apiVersion: v1
description: Helm Chart Repository with support for Amazon S3 and Google Cloud Storage
name: chartmuseum
version: 0.3.2
version: 0.3.3
appVersion: 0.2.8
home: https://github.com/chartmuseum/chartmuseum
icon: https://raw.githubusercontent.com/chartmuseum/chartmuseum/master/logo.png
@@ -14,7 +14,11 @@ spec:
type: {{ .Values.service.type }}
ports:
- port: {{ .Values.service.externalPort }}
{{- if (and (eq .Values.service.type "NodePort") (not (empty .Values.service.nodePort))) }}
nodePort: {{.Values.service.nodePort}}
{{- else }}
targetPort: {{ .Values.service.internalPort }}
{{- end }}
protocol: TCP
name: {{ .Release.Name }}
selector:
+2 -1
View File
@@ -55,8 +55,9 @@ service:
type: ClusterIP
externalPort: 8080
internalPort: 8080
nodePort:
annotations: {}
# foo.io/bar: "true"
resources:
limits:
cpu: 100m