File tree Expand file tree Collapse file tree 3 files changed +20
-5
lines changed Expand file tree Collapse file tree 3 files changed +20
-5
lines changed Original file line number Diff line number Diff line change @@ -48,8 +48,8 @@ process_data() {
4848 ./update_all.sh $DATADIR
4949 mv $DATADIR /* .db $DATADIR /
5050 mv $DATADIR /* /* .db $DATADIR /
51- # if BUCKET_NAME is set upload data
52- if ! aws s3 ls " s3://$BUCKET_NAME /$ENVIRONMENT " 2>&1 | grep -q ' An error occurred' ; then
51+ # if AWS_S3_BUCKET is set upload data
52+ if ! aws s3 ls " s3://$AWS_S3_BUCKET /$ENVIRONMENT " 2>&1 | grep -q ' An error occurred' ; then
5353 aws s3 sync $DATADIR / s3://$AWS_S3_BUCKET /$ENVIRONMENT / --exclude " *" --include " *.db"
5454 fi
5555}
Original file line number Diff line number Diff line change 1919 spec :
2020 template :
2121 spec :
22+ serviceAccountName : {{ .Values.taginfo.serviceAccount.name }}
2223 containers :
2324 - name : {{ .Release.Name }}-taginfo-job
2425 image : " {{ .Values.taginfo.image.name }}:{{ .Values.taginfo.image.tag }}"
4142 cpu : {{ .Values.taginfo.cronjob.resources.limits.cpu }}
4243 {{- end }}
4344 restartPolicy : Never
44- {{- if .Values.taginfo.cronjob.nodeSelector.enabled }}
45- nodeSelector :
46- {{ .Values.taginfo.cronjob.nodeSelector.label_key }}: {{ .Values.taginfo.cronjob.nodeSelector.label_value }}
45+ # Affinity settings
46+ {{- if .Values.taginfo.cronjob.nodeAffinity.enabled }}
47+ affinity :
48+ nodeAffinity :
49+ requiredDuringSchedulingIgnoredDuringExecution :
50+ nodeSelectorTerms :
51+ - matchExpressions :
52+ - key : {{ .Values.taginfo.cronjob.nodeAffinity.key }}
53+ operator : In
54+ values :
55+ {{- range .Values.taginfo.cronjob.nodeAffinity.values }}
56+ - {{ . | quote }}
57+ {{- end }}
4758 {{- end }}
4859{{- end }}
4960{{- end }}
Original file line number Diff line number Diff line change @@ -1059,6 +1059,10 @@ taginfo:
10591059 limits :
10601060 memory : " 14Gi"
10611061 cpu : " 3800m"
1062+ nodeAffinity :
1063+ enabled : false
1064+ key : " nodegroup_type"
1065+ values : ["job"]
10621066 nodeSelector :
10631067 enabled : false
10641068 label_key : nodegroup_type
You can’t perform that action at this time.
0 commit comments