Fixed topology selector

This commit is contained in:
2023-09-23 13:23:44 +00:00
parent cbb973550c
commit b7e034847e
3 changed files with 15 additions and 15 deletions

View File

@@ -1,5 +1,5 @@
variables: variables:
HELM_CHART_VERSION: "1.0.16" HELM_CHART_VERSION: "1.0.17"
stages: stages:
- deploy - deploy

View File

@@ -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 }}

View File

@@ -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