Skip to content

Commit 4a59ffb

Browse files
authored
Merge pull request #589 from sassoftware/staging
7.2.0 - January 17, 2025
2 parents 9aa0ac2 + ef1ccd0 commit 4a59ffb

File tree

7 files changed

+52
-14
lines changed

7 files changed

+52
-14
lines changed

Dockerfile

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,18 @@ RUN apt-get update && apt-get upgrade -y \
99
&& update-alternatives --install /usr/bin/pip pip /usr/bin/pip3 1
1010

1111
FROM baseline AS tool_builder
12-
ARG kubectl_version=1.29.8
12+
ARG kubectl_version=1.30.6
1313

1414
WORKDIR /build
1515

16-
RUN curl -sLO https://storage.googleapis.com/kubernetes-release/release/v$kubectl_version/bin/linux/amd64/kubectl && chmod 755 ./kubectl
16+
RUN curl -sLO https://dl.k8s.io/release/v$kubectl_version/bin/linux/amd64/kubectl && chmod 755 ./kubectl
17+
18+
# Build Skopeo from source since the version in the apt repository is outdated
19+
FROM golang:alpine3.20 AS golang
20+
ARG SKOPEO_VERSION=release-1.16
21+
RUN apk add --no-cache git build-base containers-common bash btrfs-progs-dev glib-dev go go-md2man gpgme-dev libselinux-dev linux-headers lvm2-dev ostree-dev \
22+
&& git clone https://github.com/containers/skopeo.git -b $SKOPEO_VERSION \
23+
&& DISABLE_DOCS=1 make -C skopeo bin/skopeo.linux.386
1724

1825
# Installation
1926
FROM baseline
@@ -22,7 +29,7 @@ ARG aws_cli_version=2.17.58
2229
ARG gcp_cli_version=496.0.0-0
2330

2431
# Add extra packages
25-
RUN apt-get update && apt-get install --no-install-recommends -y gzip wget git jq ssh sshpass skopeo rsync \
32+
RUN apt-get update && apt-get install --no-install-recommends -y gzip wget git jq ssh sshpass rsync \
2633
&& rm -f /etc/ssh/ssh_host_rsa_key && rm -f /etc/ssh/ssh_host_ecdsa_key && rm -f /etc/ssh/ssh_host_ed25519_key \
2734
&& curl -ksLO https://raw.githubusercontent.com/helm/helm/main/scripts/get-helm-3 && chmod 755 get-helm-3 \
2835
&& ./get-helm-3 --version v$helm_version --no-sudo \
@@ -41,6 +48,7 @@ RUN apt-get update && apt-get install --no-install-recommends -y gzip wget git j
4148
&& rm -rf /var/lib/apt/lists/*
4249

4350
COPY --from=tool_builder /build/kubectl /usr/local/bin/kubectl
51+
COPY --from=golang /go/skopeo/bin/skopeo.linux.386 /usr/local/bin/skopeo
4452

4553
WORKDIR /viya4-deployment/
4654
COPY . /viya4-deployment/

docs/CONFIG-VARS.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -374,7 +374,7 @@ Notes:
374374
| CERT_MANAGER_NAMESPACE | cert-manager Helm installation namespace | string | cert-manager | false | | baseline |
375375
| CERT_MANAGER_CHART_URL | cert-manager Helm chart URL | string | https://charts.jetstack.io/ | false | | baseline |
376376
| CERT_MANAGER_CHART_NAME| cert-manager Helm chart name | string | cert-manager| false | | baseline |
377-
| CERT_MANAGER_CHART_VERSION | cert-manager Helm chart version | string | 1.14.4 | false | | baseline |
377+
| CERT_MANAGER_CHART_VERSION | cert-manager Helm chart version | string | 1.16.2 | false | | baseline |
378378
| CERT_MANAGER_CONFIG | cert-manager Helm values | string | See [this file](../roles/baseline/defaults/main.yml) for more information. | false | | baseline |
379379

380380
Notes:
@@ -407,7 +407,7 @@ The EBS CSI driver is currently only used for kubernetes v1.23 or later AWS EKS
407407
| :--- | ---: | ---: | ---: | ---: | ---: | ---: |
408408
| EBS_CSI_DRIVER_CHART_URL | aws ebs csi driver helm chart url | string | https://kubernetes-sigs.github.io/aws-ebs-csi-driver | false | | baseline |
409409
| EBS_CSI_DRIVER_CHART_NAME| aws ebs csi driver helm chart name | string | aws-ebs-csi-driver | false | | baseline |
410-
| EBS_CSI_DRIVER_CHART_VERSION | aws ebs csi driver helm chart version | string | 2.11.1 | false | | baseline |
410+
| EBS_CSI_DRIVER_CHART_VERSION | aws ebs csi driver helm chart version | string | 2.38.1 | false | | baseline |
411411
| EBS_CSI_DRIVER_CONFIG | aws ebs csi driver helm values | string | see [here](../roles/baseline/defaults/main.yml) | false | | baseline |
412412
| EBS_CSI_DRIVER_ACCOUNT | cluster autoscaler aws role arn | string | | false | Required to enable the aws ebs csi driver on AWS | baseline |
413413
| EBS_CSI_DRIVER_LOCATION | aws region where kubernetes cluster resides | string | us-east-1 | false | | baseline |
@@ -419,7 +419,7 @@ The EBS CSI driver is currently only used for kubernetes v1.23 or later AWS EKS
419419
| INGRESS_NGINX_NAMESPACE | NGINX Ingress Helm installation namespace | string | ingress-nginx | false | | baseline |
420420
| INGRESS_NGINX_CHART_URL | NGINX Ingress Helm chart URL | string | See [this document](https://kubernetes.github.io/ingress-nginx) for more information. | false | | baseline |
421421
| INGRESS_NGINX_CHART_NAME | NGINX Ingress Helm chart name | string | ingress-nginx | false | | baseline |
422-
| INGRESS_NGINX_CHART_VERSION | NGINX Ingress Helm chart version | string | "" | false | If left as "" (empty string), version `4.11.1` is used for Kubernetes clusters whose version is >= 1.26.X, and for Kubernetes clusters whose version is <= 1.25.X please set this variable to avoid errors. See [Supported Versions table](https://github.com/kubernetes/ingress-nginx/?tab=readme-ov-file#supported-versions-table) for the supported versions list. | baseline |
422+
| INGRESS_NGINX_CHART_VERSION | NGINX Ingress Helm chart version | string | "" | false | If left as "" (empty string), version `4.12.0` is used for Kubernetes clusters whose version is >= 1.28.X, for Kubernetes clusters whose version is <= 1.27.X you must set this variable to avoid errors. See [Supported Versions table](https://github.com/kubernetes/ingress-nginx/?tab=readme-ov-file#supported-versions-table) for the supported versions list. | baseline |
423423
| INGRESS_NGINX_CONFIG | NGINX Ingress Helm values | string | See [this file](../roles/baseline/defaults/main.yml) for more information. Altering this value will affect the cluster. | false | | baseline |
424424

425425
### Metrics Server

docs/user/Dependencies.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ The following list details our dependencies and versions (~ indicates multiple p
1313
| ~ | docker | >=25.0.3 |
1414
| ~ | git | any |
1515
| ~ | rsync | any |
16-
| ~ | kubectl | 1.28 - 1.30 |
16+
| ~ | kubectl | 1.29 - 1.31 |
1717
| ~ | Helm | 3.16.2 |
1818
| pip3 | ansible | 10.5.0 |
1919
| pip3 | openshift | 0.13.2 |
@@ -49,7 +49,7 @@ As described in the [Docker Installation](./DockerUsage.md) section add addition
4949
```bash
5050
# Override kubectl version
5151
docker build \
52-
--build-arg kubectl_version=1.29.8 \
52+
--build-arg kubectl_version=1.30.6 \
5353
-t viya4-deployment .
5454
```
5555

roles/baseline/defaults/main.yml

Lines changed: 18 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,10 @@ CERT_MANAGER_NAME: cert-manager
1414
CERT_MANAGER_NAMESPACE: cert-manager
1515
CERT_MANAGER_CHART_NAME: cert-manager
1616
CERT_MANAGER_CHART_URL: https://charts.jetstack.io/
17-
CERT_MANAGER_CHART_VERSION: 1.14.4
17+
CERT_MANAGER_CHART_VERSION: 1.16.2
1818
CERT_MANAGER_CONFIG:
19-
installCRDs: "true"
19+
crds:
20+
enabled: true
2021
extraArgs:
2122
- --enable-certificate-owner-ref=true
2223

@@ -33,9 +34,9 @@ METRICS_SERVER_CONFIG:
3334
## Ingress-nginx - Defaults
3435
ingressVersions:
3536
k8sMinorVersion:
36-
value: 26
37+
value: 28
3738
api:
38-
chartVersion: 4.11.1
39+
chartVersion: 4.12.0
3940

4041
## Ingress-nginx - Ingress
4142
##
@@ -97,6 +98,18 @@ INGRESS_NGINX_CVE_2021_25742_PATCH:
9798
large-client-header-buffers: 4 32k
9899
annotation-value-word-blocklist: load_module,lua_package,_by_lua,location,root,proxy_pass,serviceaccount,{,},\
99100

101+
# Ingress-nginx - Required for <= 2024.11 with v1.12+
102+
INGRESS_NGINX_STRICT_VALIDATE_PATH_TYPE:
103+
controller:
104+
config:
105+
strict-validate-path-type: "false"
106+
107+
# Ingress-nginx - Required for ingress-nginx v1.12+
108+
INGRESS_NGINX_ANNOTATIONS_RISK_LEVEL:
109+
controller:
110+
config:
111+
annotations-risk-level: "Critical"
112+
100113
## Nfs-subdir-external-provisioner
101114
NFS_CLIENT_NAME: nfs-subdir-external-provisioner-sas
102115
NFS_CLIENT_NAMESPACE: nfs-client
@@ -183,7 +196,7 @@ EBS_CSI_DRIVER_NAME: aws-ebs-csi-driver
183196
EBS_CSI_DRIVER_NAMESPACE: kube-system
184197
EBS_CSI_DRIVER_CHART_NAME: aws-ebs-csi-driver
185198
EBS_CSI_DRIVER_CHART_URL: https://kubernetes-sigs.github.io/aws-ebs-csi-driver
186-
EBS_CSI_DRIVER_CHART_VERSION: 2.11.1
199+
EBS_CSI_DRIVER_CHART_VERSION: 2.38.1
187200
EBS_CSI_DRIVER_ACCOUNT: null
188201
EBS_CSI_DRIVER_LOCATION: us-east-1
189202
EBS_CSI_DRIVER_CONFIG:

roles/baseline/tasks/ingress-nginx.yaml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,22 @@
8282
- INGRESS_NGINX_CHART_VERSION is version('4.0.10', ">=") or (INGRESS_NGINX_CHART_VERSION is version('3.40.0', ">=") and INGRESS_NGINX_CHART_VERSION is version('4.0.0',
8383
"<"))
8484

85+
- name: Disable strict_validate_path_type in INGRESS_NGINX_CONFIG
86+
set_fact:
87+
INGRESS_NGINX_CONFIG: "{{ INGRESS_NGINX_CONFIG | combine(INGRESS_NGINX_STRICT_VALIDATE_PATH_TYPE, recursive=True) }}"
88+
when: (V4_CFG_CADENCE_VERSION is version('2024.11', "<=") and V4_CFG_CADENCE_NAME|lower != "fast") and INGRESS_NGINX_CHART_VERSION is version('4.12.0', ">=")
89+
tags:
90+
- install
91+
- update
92+
93+
- name: Add annotations_risk_level to INGRESS_NGINX_CONFIG
94+
set_fact:
95+
INGRESS_NGINX_CONFIG: "{{ INGRESS_NGINX_CONFIG | combine(INGRESS_NGINX_ANNOTATIONS_RISK_LEVEL, recursive=True) }}"
96+
when: INGRESS_NGINX_CHART_VERSION is version('4.12.0', ">=")
97+
tags:
98+
- install
99+
- update
100+
85101
- name: Deploy ingress-nginx
86102
kubernetes.core.helm:
87103
name: "{{ INGRESS_NGINX_NAME }}"

roles/orchestration-common/tasks/orchestration_tooling.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@
7575
# if the parsed creds contain symbols. This is expected and required to avoid Jinja2 templating issues.
7676
- name: Orchestration tooling - Download orchestration tooling image
7777
command: |
78-
skopeo copy docker://{{ V4_CFG_CR_HOST }}/{{ ORCHESTRATION_IMAGE }} oci-archive:{{ ORCHESTRATION_TOOLING_ARCHIVE }} --src-creds {{ ORCHESTRATION_CR_USER | string }}:{{ ORCHESTRATION_CR_PASSWORD | string }}
78+
skopeo copy docker://{{ V4_CFG_CR_HOST }}/{{ ORCHESTRATION_IMAGE }} oci-archive:{{ ORCHESTRATION_TOOLING_ARCHIVE }} --src-creds {{ ORCHESTRATION_CR_USER | string }}:{{ ORCHESTRATION_CR_PASSWORD | string }} --insecure-policy
7979
when:
8080
- deployment_tooling == "docker"
8181
tags:

roles/vdm/tasks/tls.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -164,6 +164,7 @@
164164
find:
165165
paths: "{{ DEPLOY_DIR }}/site-config/vdm/security/cacerts/"
166166
depth: 2
167+
hidden: true
167168
register: V4_CFG_TLS_TRUSTED_CA_CERT_FILES
168169
- name: TLS - add customer provided ca cert generator
169170
overlay_facts:

0 commit comments

Comments
 (0)