wip: Match chart to k8s state
This commit is contained in:
@@ -16,6 +16,7 @@ metadata:
|
||||
spec:
|
||||
rules:
|
||||
- name: sync-image-pull-secret
|
||||
skipBackgroundRequests: true
|
||||
match:
|
||||
resources:
|
||||
kinds:
|
||||
|
||||
@@ -17,6 +17,7 @@ metadata:
|
||||
spec:
|
||||
rules:
|
||||
- name: sync-image-pull-secret
|
||||
skipBackgroundRequests: true
|
||||
match:
|
||||
resources:
|
||||
kinds:
|
||||
|
||||
@@ -29,5 +29,6 @@ spec:
|
||||
- "loki"
|
||||
- "tempo"
|
||||
name: sync-s3-secret
|
||||
skipBackgroundRequests: true
|
||||
validationFailureAction: audit
|
||||
{{- end }}
|
||||
|
||||
@@ -17,6 +17,7 @@ spec:
|
||||
#precondition: has whitelist annotation or
|
||||
rules:
|
||||
- name: ensure-nginx-whitelist-exists
|
||||
skipBackgroundRequests: true
|
||||
match:
|
||||
resources:
|
||||
kinds:
|
||||
@@ -30,6 +31,7 @@ spec:
|
||||
annotations:
|
||||
+(nginx.ingress.kubernetes.io/whitelist-source-range): ""
|
||||
- name: append-existing-whitelist
|
||||
skipBackgroundRequests: true
|
||||
match:
|
||||
resources:
|
||||
kinds:
|
||||
@@ -46,10 +48,11 @@ spec:
|
||||
patchStrategicMerge:
|
||||
metadata:
|
||||
annotations:
|
||||
{{- with .Values.cluster_config.ingress_whitelist_ips }}
|
||||
{{- with .Values.clusterConfig.ingress_whitelist_ips }}
|
||||
nginx.ingress.kubernetes.io/whitelist-source-range: "{{`{{ @ }}`}},{{ join "," . }}"
|
||||
{{- end }}
|
||||
- name: add-nginx-whitelist
|
||||
skipBackgroundRequests: true
|
||||
match:
|
||||
resources:
|
||||
kinds:
|
||||
@@ -66,7 +69,7 @@ spec:
|
||||
patchStrategicMerge:
|
||||
metadata:
|
||||
annotations:
|
||||
{{- with .Values.cluster_config.ingress_whitelist_ips }}
|
||||
{{- with .Values.clusterConfig.ingress_whitelist_ips }}
|
||||
nginx.ingress.kubernetes.io/whitelist-source-range: "{{ join "," . }}"
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
|
||||
Reference in New Issue
Block a user