Skip to content

Commit 7477c7f

Browse files
authored
Merge pull request #563 from sassoftware/staging
6.21.0 - July 22, 2024
2 parents 1987ea2 + 1fee2a4 commit 7477c7f

File tree

4 files changed

+34
-7
lines changed

4 files changed

+34
-7
lines changed

Dockerfile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,9 @@ RUN curl -sLO https://storage.googleapis.com/kubernetes-release/release/v$kubect
1717

1818
# Installation
1919
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
2323

2424
# Add extra packages
2525
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 \
5454
&& pip cache purge \
5555
&& chmod -R g=u /etc/passwd /etc/group /viya4-deployment/ \
5656
&& 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 ||:
5858

5959
ENV PLAYBOOK=playbook.yaml
6060
ENV VIYA4_DEPLOYMENT_TOOLING=docker

requirements.txt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
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
22
openshift==0.13.2 # 0.13.1 # 0.12.0
33
kubernetes==27.2.0 # 26.1.0 # 12.0.1
44
dnspython==2.6.1 # 2.3.0 # 2.1.0
55
docker==7.1.0 # 7.0.0 # 5.0.3
66
urllib3==1.26.18
7+
wheel>=0.38.1
8+
setuptools>=65.5.1

requirements.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
collections:
33
- name: ansible.utils
4-
version: 3.1.0 # 2.3.0
4+
version: 4.1.0 # 3.1.0 # 2.3.0
55
- name: community.docker
66
version: 3.10.3 # 3.8.0 # 2.7.8
77
- name: kubernetes.core

roles/monitoring/tasks/main.yaml

Lines changed: 26 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,15 +50,40 @@
5050
tags:
5151
- cluster-logging
5252

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+
5377
- name: V4M - remove storageclass
5478
kubernetes.core.k8s:
5579
kubeconfig: "{{ KUBECONFIG }}"
5680
state: absent
5781
src: "{{ role_path }}/files/{{ PROVIDER }}-storageclass.yaml"
5882
when:
5983
- PROVIDER is not none
60-
- PROVIDER == "azure"
84+
- PROVIDER in ["azure","aws","gcp"]
6185
- V4_CFG_MANAGE_STORAGE is not none
6286
- V4_CFG_MANAGE_STORAGE|bool
87+
- sc_users.stdout | int == 0
6388
tags:
6489
- uninstall

0 commit comments

Comments
 (0)