File tree Expand file tree Collapse file tree 2 files changed +19
-2
lines changed
Expand file tree Collapse file tree 2 files changed +19
-2
lines changed Original file line number Diff line number Diff line change 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 :
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
Original file line number Diff line number Diff line change 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
You can’t perform that action at this time.
0 commit comments