mirror of
https://github.com/h44z/wg-portal
synced 2025-02-26 05:49:14 +00:00
18 lines
538 B
YAML
18 lines
538 B
YAML
|
{{- if eq .Values.workloadType "Deployment" -}}
|
||
|
apiVersion: apps/v1
|
||
|
kind: Deployment
|
||
|
metadata:
|
||
|
name: {{ include "wg-portal.fullname" . }}
|
||
|
labels: {{- include "wg-portal.labels" . | nindent 4 }}
|
||
|
spec:
|
||
|
{{- with .Values.revisionHistoryLimit }}
|
||
|
revisionHistoryLimit: {{ . }}
|
||
|
{{- end }}
|
||
|
{{- with .Values.strategy }}
|
||
|
strategy: {{- toYaml . | nindent 4 }}
|
||
|
{{- end }}
|
||
|
selector:
|
||
|
matchLabels: {{- include "wg-portal.selectorLabels" . | nindent 6 }}
|
||
|
template: {{- include "wg-portal.podTemplate" . | nindent 4 }}
|
||
|
{{- end -}}
|