Fix bug in common when using ExternalName
This commit is contained in:
@@ -18,4 +18,4 @@ maintainers:
|
|||||||
name: common
|
name: common
|
||||||
sources: null
|
sources: null
|
||||||
type: library
|
type: library
|
||||||
version: 6.8.3
|
version: 6.8.4
|
||||||
|
|||||||
@@ -111,16 +111,6 @@ subsets:
|
|||||||
{{- range $name, $port := $values.ports }}
|
{{- range $name, $port := $values.ports }}
|
||||||
{{- if $port.enabled }}
|
{{- if $port.enabled }}
|
||||||
- port: {{ $port.port | default 80 }}
|
- port: {{ $port.port | default 80 }}
|
||||||
targetPort: {{ $port.targetPort | default $name }}
|
|
||||||
{{- if $port.protocol }}
|
|
||||||
{{- if or ( eq $port.protocol "HTTP" ) ( eq $port.protocol "HTTPS" ) ( eq $port.protocol "TCP" ) }}
|
|
||||||
protocol: TCP
|
|
||||||
{{- else }}
|
|
||||||
protocol: {{ $port.protocol }}
|
|
||||||
{{- end }}
|
|
||||||
{{- else }}
|
|
||||||
protocol: TCP
|
|
||||||
{{- end }}
|
|
||||||
name: {{ $name }}
|
name: {{ $name }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
|||||||
Reference in New Issue
Block a user