Skip to content

Commit 19aa0f9

Browse files
committed
Revert "Simplify FedRamp deployment (#429)"
This reverts commit 57cc98a.
1 parent 377b8ef commit 19aa0f9

File tree

12 files changed

+24
-55
lines changed

12 files changed

+24
-55
lines changed

wiz-admission-controller/templates/_helpers.tpl

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -401,11 +401,3 @@ Clean the list of deployments for the auto-update flag, removing quotes and brac
401401
- name: WIZ_CHART_VERSION
402402
value: "{{ .Chart.Version}}"
403403
{{- end -}}
404-
405-
{{- define "wiz-admission-controller.image" -}}
406-
{{- if .Values.global.isFedRamp -}}
407-
publicregistryfedrampwizio.azurecr.us/wiz-app/wiz-admission-controller-fips:{{ .Values.image.tag | default .Chart.AppVersion }}
408-
{{- else -}}
409-
{{ coalesce .Values.global.image.registry .Values.image.registry }}/{{ coalesce .Values.global.image.repository .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}
410-
{{- end -}}
411-
{{- end -}}

wiz-admission-controller/templates/deploymentauditlogs.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ spec:
5858
{{- else }}
5959
{{- toYaml .Values.securityContext | nindent 12 }}
6060
{{- end }}
61-
image: {{ include "wiz-admission-controller.image" . }}
61+
image: "{{ coalesce .Values.global.image.registry .Values.image.registry }}/{{ coalesce .Values.global.image.repository .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}"
6262
imagePullPolicy: {{ .Values.image.pullPolicy }}
6363
ports:
6464
- containerPort: {{ .Values.service.targetPort }}

wiz-admission-controller/templates/deploymentenforcement.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ spec:
5858
{{- else }}
5959
{{- toYaml .Values.securityContext | nindent 12 }}
6060
{{- end }}
61-
image: {{ include "wiz-admission-controller.image" . }}
61+
image: "{{ coalesce .Values.global.image.registry .Values.image.registry }}/{{ coalesce .Values.global.image.repository .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}"
6262
imagePullPolicy: {{ .Values.image.pullPolicy }}
6363
ports:
6464
- containerPort: {{ .Values.service.targetPort }}

wiz-admission-controller/values.yaml

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,7 @@ commonLabels: {} # Labels applied on all the resources (not used for selection)
1010
wizApiToken:
1111
clientId: "" # Client ID of the Wiz Service Account.
1212
clientToken: "" # Client secret of the Wiz Service Account.
13-
clientEndpoint: "" # Defaults to commercial.
14-
# If `global.isFedRamp` is `true`, this field gets automatically set to `fedramp`.
13+
clientEndpoint: "" # Set to 'gov' or 'fedramp' for gov/fedramp tenants only, otherwise leave blank.
1514

1615
secret:
1716
# Should a Secret be created by the chart or not.
@@ -54,11 +53,12 @@ podDisruptionBudget:
5453

5554
image:
5655
registry: wiziopublic.azurecr.io/wiz-app
56+
# Use this if you are deploying on federal environments with FIPS endpoints.
57+
# repository: wiz-admission-controller-fips
5758
repository: wiz-admission-controller
5859
pullPolicy: Always
5960
# Overrides the image tag whose default is the chart appVersion.
6061
tag: ""
61-
6262
imagePullSecrets: [] # Secrets for container image registry keys as described in https://kubernetes.io/docs/concepts/containers/images/#referring-to-an-imagepullsecrets-on-a-pod
6363

6464
priorityClassName: ""
@@ -487,8 +487,7 @@ global:
487487
wizApiToken:
488488
clientId: ""
489489
clientToken: ""
490-
clientEndpoint: "" # Defaults to commercial.
491-
# If `global.isFedRamp` is `true`, this field gets automatically set to `fedramp`.
490+
clientEndpoint: "" # Wiz endpoint to connect to (required for gov tenants).
492491

493492
secret:
494493
# The name of the Wiz Service Account Secret.
@@ -555,6 +554,3 @@ global:
555554
#
556555
# lowPrivilegePodSecurityPolicy: {}
557556
# lowPrivilegeSecurityPolicy: {}
558-
559-
# Set to true to use FedRamp endpoints and FIPS-compliant images.
560-
isFedRamp: false

wiz-broker/templates/_helpers.tpl

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -103,11 +103,3 @@ Secrets names
103103
{{- define "wiz-broker.connectorSecretName" -}}
104104
{{ coalesce (.Values.wizConnector.secretName) (printf "%s-connector" .Release.Name) }}
105105
{{- end }}
106-
107-
{{- define "wiz-broker.image" -}}
108-
{{- if .Values.global.isFedRamp -}}
109-
publicregistryfedrampwizio.azurecr.us/wiz-app/wiz-broker-fips:{{ .Values.image.tag | default .Chart.AppVersion }}
110-
{{- else -}}
111-
{{ coalesce .Values.global.image.registry .Values.image.registry }}/{{ coalesce .Values.global.image.repository .Values.image.repository }}:{{ coalesce .Values.global.image.tag .Values.image.tag | default .Chart.AppVersion }}
112-
{{- end -}}
113-
{{- end -}}

wiz-broker/templates/wiz-broker-deployment.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ spec:
7777
{{- else }}
7878
{{- toYaml .Values.global.securityContext | nindent 12 }}
7979
{{- end }}
80-
image: {{ include "wiz-broker.image" . }}
80+
image: "{{ coalesce .Values.global.image.registry .Values.image.registry }}/{{ coalesce .Values.global.image.repository .Values.image.repository }}:{{ coalesce .Values.global.image.tag .Values.image.tag | default .Chart.AppVersion }}"
8181
imagePullPolicy: {{ coalesce .Values.global.image.pullPolicy .Values.image.pullPolicy }}
8282
volumeMounts:
8383
- name: connector-data

wiz-broker/values.yaml

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ commonLabels: {} # Labels applied on all the resources (not used for selection)
99

1010
image:
1111
registry: wiziopublic.azurecr.io/wiz-app
12+
# Use this if you are deploying on federal environments with FIPS endpoints.
13+
# repository: wiz-broker-fips
1214
repository: wiz-broker
1315
pullPolicy: Always
1416
# Overrides the image tag whose default is the chart appVersion.
@@ -69,8 +71,7 @@ wizConnector:
6971
wizApiToken:
7072
clientId: "" # Client ID of the Wiz Service Account.
7173
clientToken: "" # Client secret of the Wiz Service Account.
72-
clientEndpoint: "" # Defaults to commercial.
73-
# If `global.isFedRamp` is `true`, this field gets automatically set to `fedramp`.
74+
clientEndpoint: "" # Set to 'gov' or 'fedramp' for gov/fedramp tenants only, otherwise leave blank.
7475

7576
secret:
7677
# Should a Secret be created by the chart or not.
@@ -115,6 +116,8 @@ global:
115116

116117
image:
117118
registry: wiziopublic.azurecr.io/wiz-app
119+
# Use this if you are deploying on federal environments with FIPS endpoints.
120+
# repository: wiz-broker-fips
118121
repository: wiz-broker
119122
pullPolicy: Always # Always pull the image on every deployment
120123
# Overrides the image tag whose default is the chart appVersion.
@@ -148,15 +151,11 @@ global:
148151
runAsUser: 1000
149152

150153
wizApiToken:
151-
clientEndpoint: "" # Defaults to commercial.
152-
# If `global.isFedRamp` is `true`, this field gets automatically set to `fedramp`.
154+
clientEndpoint: "" # Wiz endpoint to connect to (required for gov tenants).
153155
secret:
154156
name: "" # Override with parent secret name
155157

156158
httpProxyConfiguration:
157159
enabled: false # Should the components use a proxy.
158160
create: false # Secret created by wiz-broker.
159161
secretName: "" # The name of the proxy Secret.
160-
161-
# Set to true to use FedRamp endpoints and FIPS-compliant images.
162-
isFedRamp: false

wiz-kubernetes-connector/templates/_helpers.tpl

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -227,9 +227,5 @@ delete-kubernetes-connector
227227
{{- end }}
228228

229229
{{- define "wiz-broker.image" -}}
230-
{{- if .Values.global.isFedRamp -}}
231-
publicregistryfedrampwizio.azurecr.us/wiz-app/wiz-broker-fips:{{ .Values.image.tag | default .Chart.AppVersion }}
232-
{{- else -}}
233-
{{ coalesce .Values.global.image.registry .Values.image.registry }}/{{ coalesce .Values.global.image.repository .Values.image.repository }}:{{ coalesce .Values.global.image.tag .Values.image.tag | default .Chart.AppVersion }}
234-
{{- end -}}
230+
{{ coalesce .Values.global.image.registry .Values.image.registry }}/{{ coalesce .Values.global.image.repository .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}
235231
{{- end -}}

wiz-kubernetes-connector/templates/job-create-connector.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ spec:
7878
{{- else }}
7979
{{- toYaml .Values.global.securityContext | nindent 12 }}
8080
{{- end }}
81-
image: {{ include "wiz-broker.image" . }}
81+
image: "{{ coalesce .Values.global.image.registry .Values.image.registry }}/{{ coalesce .Values.global.image.repository .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}"
8282
imagePullPolicy: {{ coalesce .Values.global.image.pullPolicy .Values.image.pullPolicy }}
8383
command:
8484
{{- include "wiz-kubernetes-connector.entrypoint" . | nindent 12 }}

wiz-kubernetes-connector/templates/job-delete-connector.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ spec:
6464
{{- else }}
6565
{{- toYaml .Values.global.securityContext | nindent 12 }}
6666
{{- end }}
67-
image: {{ include "wiz-broker.image" . }}
67+
image: "{{ coalesce .Values.global.image.registry .Values.image.registry }}/{{ coalesce .Values.global.image.repository .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}"
6868
imagePullPolicy: {{ coalesce .Values.global.image.pullPolicy .Values.image.pullPolicy }}
6969
command: ["/bin/sh", "-c"]
7070
args: {{- include "wiz-kubernetes-connector.argsListDeleteConnector" . | nindent 12 }}

0 commit comments

Comments
 (0)