Skip to content

Commit

Permalink
Merge pull request #69 from plkokanov/update-versions
Browse files Browse the repository at this point in the history
Update version of IaaS clients
  • Loading branch information
plkokanov authored May 5, 2022
2 parents d1da52c + 122bbbc commit 35d15c5
Show file tree
Hide file tree
Showing 7 changed files with 26 additions and 25 deletions.
15 changes: 8 additions & 7 deletions .ci/build
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#!/bin/bash -eu

UBUNTU_VERSION=20.04
SOURCE_PATH=${SOURCE_PATH:-}
GENERATED_DOCKERFILES_PATH=${GENERATED_DOCKERFILES_PATH:-}

Expand All @@ -12,7 +13,7 @@ if [[ -z "${GENERATED_DOCKERFILES_PATH}" ]]; then
mkdir -p "${GENERATED_DOCKERFILES_PATH}"
fi

latest_kv=`cat "${SOURCE_PATH}"/.ci/k8s_versions |head -1`
latest_kv=$(cat "${SOURCE_PATH}"/.ci/k8s_versions |head -1)
cat > "${SOURCE_PATH}"/dockerfile-configs/kubectl-components.yaml << EOF
- curl:
- name: kubectl
Expand All @@ -24,7 +25,7 @@ EOF
"${SOURCE_PATH}"/generator/generate-dockerfile.py \
--dockerfile-config "${SOURCE_PATH}"/dockerfile-configs/common-components.yaml \
--dockerfile-configs "${SOURCE_PATH}"/dockerfile-configs/kubectl-components.yaml \
--from-image ubuntu:18.04 \
--from-image "ubuntu:${UBUNTU_VERSION}" \
--title "gardener shell" \
--dockerfile "${GENERATED_DOCKERFILES_PATH}"/ops-toolbelt.dockerfile

Expand All @@ -33,28 +34,28 @@ EOF
--dockerfile-configs "${SOURCE_PATH}"/dockerfile-configs/iaas-components.yaml \
--dockerfile-configs "${SOURCE_PATH}"/dockerfile-configs/gardenctl-components.yaml \
--dockerfile-configs "${SOURCE_PATH}"/dockerfile-configs/kubectl-components.yaml \
--from-image ubuntu:18.04 \
--from-image "ubuntu:${UBUNTU_VERSION}" \
--title "gardener shell" \
--dockerfile "${GENERATED_DOCKERFILES_PATH}"/ops-toolbelt-gardenctl.dockerfile

for kv in `cat "${SOURCE_PATH}"/.ci/k8s_versions`
for kv in $(cat "${SOURCE_PATH}"/.ci/k8s_versions)
do
kv_short=`echo $kv |cut -d '.' -f 1,2`
kv_short=$(echo $kv |cut -d '.' -f 1,2)
cat > "${SOURCE_PATH}"/dockerfile-configs/kubectl-components.yaml << EOF
- curl:
- name: kubectl
version: v$kv
from: https://storage.googleapis.com/kubernetes-release/release/v$kv/bin/linux/amd64/kubectl
info: command line tool for controlling Kubernetes clusters.
EOF
for iaas_provider in `cat "${SOURCE_PATH}"/.ci/iaas_providers`
for iaas_provider in $(cat "${SOURCE_PATH}"/.ci/iaas_providers)
do
"${SOURCE_PATH}"/generator/generate-dockerfile.py \
--dockerfile-configs "${SOURCE_PATH}"/dockerfile-configs/common-components.yaml \
--dockerfile-configs "${SOURCE_PATH}"/dockerfile-configs/$iaas_provider-components.yaml \
--dockerfile-configs "${SOURCE_PATH}"/dockerfile-configs/gardenctl-components.yaml \
--dockerfile-configs "${SOURCE_PATH}"/dockerfile-configs/kubectl-components.yaml \
--from-image ubuntu:18.04 \
--from-image "ubuntu:${UBUNTU_VERSION}" \
--title "gardener shell" \
--dockerfile "${GENERATED_DOCKERFILES_PATH}"/ops-toolbelt-$iaas_provider-k$kv_short.dockerfile

Expand Down
2 changes: 1 addition & 1 deletion dockerfile-configs/aliyun-components.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@

- curl:
- name: aliyun
version: 3.0.73
version: 3.0.117
from: https://github.com/aliyun/aliyun-cli/releases/download/v{version}/aliyun-cli-linux-{version}-amd64.tgz
to: /aliyun-cli-linux-amd64.tgz
command: |
Expand Down
2 changes: 1 addition & 1 deletion dockerfile-configs/aws-components.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,5 @@
info: ~

- pip:
- name: awscli==1.18.133
- name: awscli==1.23.6
provides: aws
2 changes: 1 addition & 1 deletion dockerfile-configs/az-components.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
info: ~

- apt-get:
- name: azure-cli=2.11.1-1~bionic
- name: azure-cli=2.36.0-1~bionic
provides: az

- bash:
Expand Down
2 changes: 1 addition & 1 deletion dockerfile-configs/gcp-components.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,5 +24,5 @@
info: ~

- apt-get:
- name: google-cloud-sdk=329.0.0-0
- name: google-cloud-sdk=384.0.1-0
provides: gcloud
18 changes: 9 additions & 9 deletions dockerfile-configs/iaas-components.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,9 @@
info: ~

- apt-get:
- name: azure-cli=2.11.1-1~bionic
- name: azure-cli=2.36.0-1~bionic
provides: az
- name: google-cloud-sdk=329.0.0-0
- name: google-cloud-sdk=384.0.0-0
provides: gcloud

- bash:
Expand All @@ -38,18 +38,18 @@
info: ~

- pip:
- python-novaclient==17.2.0
- python-glanceclient==3.2.1
- python-cinderclient==7.1.0
- python-swiftclient==3.10.0
- name: python-openstackclient==5.3.1
- python-novaclient==17.7.0
- python-glanceclient==3.6.0
- python-cinderclient==8.3.0
- python-swiftclient==3.13.1
- name: python-openstackclient==5.8.0
provides: ["openstack", "openstack-inventory"]
- name: awscli==1.18.133
- name: awscli==1.23.6
provides: aws

- curl:
- name: aliyun
version: 3.0.73
version: 3.0.117
from: https://github.com/aliyun/aliyun-cli/releases/download/v{version}/aliyun-cli-linux-{version}-amd64.tgz
to: /aliyun-cli-linux-amd64.tgz
command: |
Expand Down
10 changes: 5 additions & 5 deletions dockerfile-configs/openstack-components.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@
info: ~

- pip:
- python-novaclient==17.2.0
- python-glanceclient==3.2.1
- python-cinderclient==7.1.0
- python-swiftclient==3.10.0
- name: python-openstackclient==5.3.1
- python-novaclient==17.7.0
- python-glanceclient==3.6.0
- python-cinderclient==8.3.0
- python-swiftclient==3.13.1
- name: python-openstackclient==5.8.0
provides: ["openstack", "openstack-inventory"]

0 comments on commit 35d15c5

Please sign in to comment.