Fixed topology selector
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
variables:
|
variables:
|
||||||
HELM_CHART_VERSION: "1.0.16"
|
HELM_CHART_VERSION: "1.0.17"
|
||||||
|
|
||||||
stages:
|
stages:
|
||||||
- deploy
|
- deploy
|
||||||
|
|||||||
@@ -54,19 +54,19 @@ cloudyne.systems/site: {{ .Values.site.domain | quote }}
|
|||||||
{{- define "..affinity-labels" -}}
|
{{- define "..affinity-labels" -}}
|
||||||
podAffinity:
|
podAffinity:
|
||||||
requiredDuringSchedulingIgnoredDuringExecution:
|
requiredDuringSchedulingIgnoredDuringExecution:
|
||||||
|
nodeSelectorTerms:
|
||||||
- labelSelector:
|
- labelSelector:
|
||||||
matchExpressions:
|
matchExpressions:
|
||||||
- key: cloudyne.systems/customer
|
- key: cloudyne.systems/customer
|
||||||
operator: In
|
operator: In
|
||||||
values:
|
values:
|
||||||
- {{ .Values.customer.legalName | replace " " "-" | replace "," "" | trunc 63 | trimSuffix "-" | quote }}
|
- {{ .Values.customer.legalName | replace " " "-" | replace "," "" | trunc 63 | trimSuffix "-" | quote }}
|
||||||
- key: cloudyne.systems/site
|
- key: cloudyne.systems/site
|
||||||
operator: In
|
operator: In
|
||||||
values:
|
values:
|
||||||
- cloudyne.systems/site: {{ .Values.site.domain | quote }}
|
- {{ .Values.site.domain | quote }}
|
||||||
- key: cloudyne.systems/component
|
- key: cloudyne.systems/component
|
||||||
operator: In
|
operator: In
|
||||||
values:
|
values:
|
||||||
- "site"
|
- "site"
|
||||||
topologyKey: kubernetes.io/hostname
|
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
apiVersion: batch/v1
|
apiVersion: batch/v1
|
||||||
kind: Job
|
kind: Job
|
||||||
metadata:
|
metadata:
|
||||||
name: {{ include "..fullname" . }}-wpc-reg
|
name: {{ include "..fullname" . }}-initializer
|
||||||
labels:
|
labels:
|
||||||
{{- include "..labels" . | nindent 4 }}
|
{{- include "..labels" . | nindent 4 }}
|
||||||
cloudyne.systems/component: site-init
|
cloudyne.systems/component: site-init
|
||||||
|
|||||||
Reference in New Issue
Block a user