forked from helm/charts
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[stable/unifi] Revert helm#10789 (helm#11278)
* Revert "Simplify for unifi (helm#10789)" This reverts commit df3b21e. Signed-off-by: Jeff Billimek <[email protected]> * bumping chart version as part of reversion Signed-off-by: Jeff Billimek <[email protected]>
- Loading branch information
1 parent
1030924
commit 7c5332d
Showing
6 changed files
with
167 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
apiVersion: v1 | ||
kind: Service | ||
metadata: | ||
name: {{ template "unifi.fullname" . }}-discovery | ||
labels: | ||
app: {{ template "unifi.name" . }} | ||
chart: {{ template "unifi.chart" . }} | ||
release: {{ .Release.Name }} | ||
heritage: {{ .Release.Service }} | ||
{{- if .Values.discoveryService.labels }} | ||
{{ toYaml .Values.discoveryService.labels | indent 4 }} | ||
{{- end }} | ||
{{- with .Values.discoveryService.annotations }} | ||
annotations: | ||
{{ toYaml . | indent 4 }} | ||
{{- end }} | ||
spec: | ||
{{- if (or (eq .Values.discoveryService.type "ClusterIP") (empty .Values.discoveryService.type)) }} | ||
type: ClusterIP | ||
{{- if .Values.discoveryService.clusterIP }} | ||
clusterIP: {{ .Values.discoveryService.clusterIP }} | ||
{{end}} | ||
{{- else if eq .Values.discoveryService.type "LoadBalancer" }} | ||
type: {{ .Values.discoveryService.type }} | ||
{{- if .Values.discoveryService.loadBalancerIP }} | ||
loadBalancerIP: {{ .Values.discoveryService.loadBalancerIP }} | ||
{{- end }} | ||
{{- if .Values.discoveryService.loadBalancerSourceRanges }} | ||
loadBalancerSourceRanges: | ||
{{ toYaml .Values.discoveryService.loadBalancerSourceRanges | indent 4 }} | ||
{{- end -}} | ||
{{- else }} | ||
type: {{ .Values.discoveryService.type }} | ||
{{- end }} | ||
{{- if .Values.discoveryService.externalIPs }} | ||
externalIPs: | ||
{{ toYaml .Values.discoveryService.externalIPs | indent 4 }} | ||
{{- end }} | ||
{{- if .Values.discoveryService.externalTrafficPolicy }} | ||
externalTrafficPolicy: {{ .Values.discoveryService.externalTrafficPolicy }} | ||
{{- end }} | ||
ports: | ||
- port: {{ .Values.discoveryService.port }} | ||
targetPort: discovery | ||
protocol: UDP | ||
name: discovery | ||
{{ if (and (eq .Values.discoveryService.type "NodePort") (not (empty .Values.discoveryService.nodePort))) }} | ||
nodePort: {{.Values.discoveryService.nodePort}} | ||
{{ end }} | ||
selector: | ||
app: {{ template "unifi.name" . }} | ||
release: {{ .Release.Name }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
apiVersion: v1 | ||
kind: Service | ||
metadata: | ||
name: {{ template "unifi.fullname" . }}-stun | ||
labels: | ||
app: {{ template "unifi.name" . }} | ||
chart: {{ template "unifi.chart" . }} | ||
release: {{ .Release.Name }} | ||
heritage: {{ .Release.Service }} | ||
{{- if .Values.stunService.labels }} | ||
{{ toYaml .Values.stunService.labels | indent 4 }} | ||
{{- end }} | ||
{{- with .Values.stunService.annotations }} | ||
annotations: | ||
{{ toYaml . | indent 4 }} | ||
{{- end }} | ||
spec: | ||
{{- if (or (eq .Values.stunService.type "ClusterIP") (empty .Values.stunService.type)) }} | ||
type: ClusterIP | ||
{{- if .Values.stunService.clusterIP }} | ||
clusterIP: {{ .Values.stunService.clusterIP }} | ||
{{end}} | ||
{{- else if eq .Values.stunService.type "LoadBalancer" }} | ||
type: {{ .Values.stunService.type }} | ||
{{- if .Values.stunService.loadBalancerIP }} | ||
loadBalancerIP: {{ .Values.stunService.loadBalancerIP }} | ||
{{- end }} | ||
{{- if .Values.stunService.loadBalancerSourceRanges }} | ||
loadBalancerSourceRanges: | ||
{{ toYaml .Values.stunService.loadBalancerSourceRanges | indent 4 }} | ||
{{- end -}} | ||
{{- else }} | ||
type: {{ .Values.stunService.type }} | ||
{{- end }} | ||
{{- if .Values.stunService.externalIPs }} | ||
externalIPs: | ||
{{ toYaml .Values.stunService.externalIPs | indent 4 }} | ||
{{- end }} | ||
{{- if .Values.stunService.externalTrafficPolicy }} | ||
externalTrafficPolicy: {{ .Values.stunService.externalTrafficPolicy }} | ||
{{- end }} | ||
ports: | ||
- port: {{ .Values.stunService.port }} | ||
targetPort: stun | ||
protocol: UDP | ||
name: stun | ||
{{ if (and (eq .Values.stunService.type "NodePort") (not (empty .Values.stunService.nodePort))) }} | ||
nodePort: {{.Values.stunService.nodePort}} | ||
{{ end }} | ||
selector: | ||
app: {{ template "unifi.name" . }} | ||
release: {{ .Release.Name }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters