fix: set Istio attributes properly again

This commit is contained in:
Stefan Reimer 2024-08-24 10:19:39 +00:00
parent 1058ec1a1d
commit 6dc5e43c24
4 changed files with 10 additions and 4 deletions

View File

@ -31,8 +31,10 @@ cert-manager:
nodeSelector: nodeSelector:
node-role.kubernetes.io/control-plane: "" node-role.kubernetes.io/control-plane: ""
{{ with index .Values "cert-manager" "IamArn" }}
extraEnv: extraEnv:
- name: AWS_REGION
value: {{ .Values.global.aws.region }}
{{ with index .Values "cert-manager" "IamArn" }}
- name: AWS_ROLE_ARN - name: AWS_ROLE_ARN
value: "{{ . }}" value: "{{ . }}"
- name: AWS_WEB_IDENTITY_TOKEN_FILE - name: AWS_WEB_IDENTITY_TOKEN_FILE

View File

@ -3,6 +3,10 @@
gateway: gateway:
name: istio-private-ingressgateway name: istio-private-ingressgateway
{{- if ne .Values.global.platform "gke" }}
priorityClassName: "system-cluster-critical"
{{- end }}
{{- with index .Values "istio-private-ingress" "gateway" "replicaCount" }} {{- with index .Values "istio-private-ingress" "gateway" "replicaCount" }}
replicaCount: {{ . }} replicaCount: {{ . }}
{{- if gt (int .) 1 }} {{- if gt (int .) 1 }}
@ -11,7 +15,7 @@ gateway:
{{- end }} {{- end }}
{{- end }} {{- end }}
{{- if not (index .Values "istio-private-ingress" "gateway" "affinity") }} {{- if eq .Values.global.platform "aws" }}
# Only nodes who are fronted with matching LB # Only nodes who are fronted with matching LB
affinity: affinity:
nodeAffinity: nodeAffinity: