mirror of
https://github.com/helm/charts.git
synced 2026-08-23 22:37:45 +00:00
[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:
committed by
k8s-ci-robot
parent
6eca6fbfbd
commit
88bf716b57
@@ -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:
|
||||
|
||||
@@ -55,8 +55,9 @@ service:
|
||||
type: ClusterIP
|
||||
externalPort: 8080
|
||||
internalPort: 8080
|
||||
nodePort:
|
||||
annotations: {}
|
||||
# foo.io/bar: "true"
|
||||
|
||||
resources:
|
||||
limits:
|
||||
cpu: 100m
|
||||
|
||||
Reference in New Issue
Block a user