File tree Expand file tree Collapse file tree 4 files changed +34
-7
lines changed Expand file tree Collapse file tree 4 files changed +34
-7
lines changed Original file line number Diff line number Diff line change @@ -17,9 +17,9 @@ RUN curl -sLO https://storage.googleapis.com/kubernetes-release/release/v$kubect
17
17
18
18
# Installation
19
19
FROM baseline
20
- ARG helm_version=3.14 .2
21
- ARG aws_cli_version=2.15.22
22
- ARG gcp_cli_version=472 .0.0-0
20
+ ARG helm_version=3.15 .2
21
+ ARG aws_cli_version=2.16.5
22
+ ARG gcp_cli_version=479 .0.0-0
23
23
24
24
# Add extra packages
25
25
RUN apt-get update && apt-get install --no-install-recommends -y gzip wget git jq ssh sshpass skopeo rsync \
@@ -54,7 +54,7 @@ RUN pip install -r ./requirements.txt \
54
54
&& pip cache purge \
55
55
&& chmod -R g=u /etc/passwd /etc/group /viya4-deployment/ \
56
56
&& chmod 755 /viya4-deployment/docker-entrypoint.sh \
57
- && git config --system --add safe.directory /viya4-deployment
57
+ && git config --system --add safe.directory /viya4-deployment ||:
58
58
59
59
ENV PLAYBOOK=playbook.yaml
60
60
ENV VIYA4_DEPLOYMENT_TOOLING=docker
Original file line number Diff line number Diff line change 1
- ansible == 9.2.0 # 9.1.0 # 8.6.0 # 2.10.7
1
+ ansible == 9.6.0 # 9. 2.0 # 9.1.0 # 8.6.0 # 2.10.7
2
2
openshift == 0.13.2 # 0.13.1 # 0.12.0
3
3
kubernetes == 27.2.0 # 26.1.0 # 12.0.1
4
4
dnspython == 2.6.1 # 2.3.0 # 2.1.0
5
5
docker == 7.1.0 # 7.0.0 # 5.0.3
6
6
urllib3 == 1.26.18
7
+ wheel >= 0.38.1
8
+ setuptools >= 65.5.1
Original file line number Diff line number Diff line change 1
1
---
2
2
collections :
3
3
- name : ansible.utils
4
- version : 3.1.0 # 2.3.0
4
+ version : 4.1.0 # 3.1.0 # 2.3.0
5
5
- name : community.docker
6
6
version : 3.10.3 # 3.8.0 # 2.7.8
7
7
- name : kubernetes.core
Original file line number Diff line number Diff line change 50
50
tags :
51
51
- cluster-logging
52
52
53
+ - name : V4M - check if storage class is being used
54
+ ansible.builtin.shell : |
55
+ kubectl --kubeconfig {{ KUBECONFIG }} get pv --output=custom-columns='PORT:.spec.storageClassName' | grep -o v4m | wc -l
56
+ register : sc_users
57
+ when :
58
+ - PROVIDER is not none
59
+ - PROVIDER in ["azure","aws","gcp"]
60
+ - V4_CFG_MANAGE_STORAGE is not none
61
+ - V4_CFG_MANAGE_STORAGE|bool
62
+ tags :
63
+ - uninstall
64
+
65
+ - name : V4M - storageclass uninstall status
66
+ ansible.builtin.debug :
67
+ msg : " Persistent Volumes still referring to the v4m Storage Class, skipping deletion"
68
+ when :
69
+ - PROVIDER is not none
70
+ - PROVIDER in ["azure","aws","gcp"]
71
+ - V4_CFG_MANAGE_STORAGE is not none
72
+ - V4_CFG_MANAGE_STORAGE|bool
73
+ - sc_users.stdout | int > 0
74
+ tags :
75
+ - uninstall
76
+
53
77
- name : V4M - remove storageclass
54
78
kubernetes.core.k8s :
55
79
kubeconfig : " {{ KUBECONFIG }}"
56
80
state : absent
57
81
src : " {{ role_path }}/files/{{ PROVIDER }}-storageclass.yaml"
58
82
when :
59
83
- PROVIDER is not none
60
- - PROVIDER == "azure"
84
+ - PROVIDER in [ "azure","aws","gcp"]
61
85
- V4_CFG_MANAGE_STORAGE is not none
62
86
- V4_CFG_MANAGE_STORAGE|bool
87
+ - sc_users.stdout | int == 0
63
88
tags :
64
89
- uninstall
You can’t perform that action at this time.
0 commit comments