Skip to content

Commit 636743f

Browse files
Abhishek KumarAbhishek Kumar
authored andcommitted
Merge branch 'main' of https://github.com/sassoftware/viya4-deployment into pr-pscloud-64
2 parents b5cd717 + e776a71 commit 636743f

File tree

2 files changed

+19
-2
lines changed

2 files changed

+19
-2
lines changed

roles/baseline/tasks/contour.yaml

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,12 +92,26 @@
9292
- install
9393
- update
9494

95-
# Restart Contour deployment to apply the compression configuration changes
95+
# Dynamically fetch the actual Contour deployment name.
96+
- name: Get Contour deployment name
97+
kubernetes.core.k8s_info:
98+
kind: Deployment
99+
namespace: "{{ CONTOUR_NAMESPACE }}"
100+
kubeconfig: "{{ KUBECONFIG }}"
101+
label_selectors:
102+
- "app.kubernetes.io/name=contour"
103+
- "app.kubernetes.io/component=contour"
104+
register: contour_deploy_info
105+
tags:
106+
- install
107+
- update
108+
109+
# Restart the discovered Contour deployment to apply the compression configuration changes
96110
- name: Restart Contour deployment
97111
kubernetes.core.k8s:
98112
state: patched
99113
kind: Deployment
100-
name: "{{ CONTOUR_NAME }}"
114+
name: "{{ contour_deploy_info.resources[0].metadata.name }}"
101115
namespace: "{{ CONTOUR_NAMESPACE }}"
102116
kubeconfig: "{{ KUBECONFIG }}"
103117
definition:
@@ -106,6 +120,7 @@
106120
metadata:
107121
annotations:
108122
kubectl.kubernetes.io/restartedAt: "{{ ansible_date_time.iso8601 }}"
123+
when: contour_deploy_info.resources | length > 0
109124
tags:
110125
- install
111126
- update

roles/baseline/tasks/main.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,8 @@
7777
- K8S_VERSION|float >= 1.23
7878
- EBS_CSI_DRIVER_ACCOUNT is defined
7979
- EBS_CSI_DRIVER_ACCOUNT is not none
80+
- V4_CFG_MANAGE_STORAGE is defined
81+
- V4_CFG_MANAGE_STORAGE|bool
8082
tags:
8183
- baseline
8284

0 commit comments

Comments
 (0)