Skip to content

Commit f9d8029

Browse files
committed
use json patch
1 parent 15d80f2 commit f9d8029

File tree

1 file changed

+14
-15
lines changed

1 file changed

+14
-15
lines changed

salt/metalk8s/addons/ui/deployed/ui-operator-post-install.sls

Lines changed: 14 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -15,21 +15,20 @@ Remove legacy volumes and volumeMounts from metalk8s-ui deployment:
1515
- name: metalk8s-ui
1616
- namespace: metalk8s-ui
1717
- patch:
18-
spec:
19-
template:
20-
spec:
21-
containers:
22-
- name: metalk8s-ui
23-
volumeMounts:
24-
- name: config-volume-metalk8s-ui
25-
mountPath: /usr/share/nginx/html/.well-known/configs
26-
readOnly: true
27-
volumes:
28-
- name: config-volume-metalk8s-ui
29-
configMap:
30-
name: metalk8s-ui-runtime-app-configuration
31-
defaultMode: 420
32-
- content_type: application/merge-patch+json
18+
- op: replace
19+
path: /spec/template/spec/containers/0/volumeMounts
20+
value:
21+
- name: config-volume-metalk8s-ui
22+
mountPath: /usr/share/nginx/html/.well-known/configs
23+
readOnly: true
24+
- op: replace
25+
path: /spec/template/spec/volumes
26+
value:
27+
- name: config-volume-metalk8s-ui
28+
configMap:
29+
name: metalk8s-ui-runtime-app-configuration
30+
defaultMode: 420
31+
- content_type: application/json-patch+json
3332

3433
{%- endif %}
3534

0 commit comments

Comments
 (0)