Skip to content

Commit

Permalink
feat: (PSKD-815) Updated kubectl download URL
Browse files Browse the repository at this point in the history
Signed-off-by: Ritika Patil <[email protected]>
  • Loading branch information
riragh committed Nov 8, 2024
1 parent af20120 commit 09d8175
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ COPY . .

RUN yum -y install git openssh jq which curl \
&& yum clean all && rm -rf /var/cache/yum \
&& curl -sLO https://storage.googleapis.com/kubernetes-release/release/v$KUBECTL_VERSION/bin/linux/amd64/kubectl \
&& curl -sLO https://dl.k8s.io/release/v$KUBECTL_VERSION/bin/linux/amd64/kubectl \
&& chmod 755 ./kubectl /viya4-iac-azure/docker-entrypoint.sh \
&& mv ./kubectl /usr/local/bin/kubectl \
&& chmod g=u -R /etc/passwd /etc/group /viya4-iac-azure \
Expand Down
12 changes: 11 additions & 1 deletion container-structure-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@ fileExistenceTests:
path: '/usr/bin/az'
shouldExist: true
permissions: '-rwxr-xr-x'
- name: 'kubectl'
path: '/usr/local/bin/kubectl'
shouldExist: true
permissions: '-rwxr-xr-x'

commandTests:
- name: "terraform version"
Expand All @@ -22,14 +26,20 @@ commandTests:
command: "python3"
args: ["--version"]
expectedOutput: ["Python 3.*"]

- name: "az-cli version"
command: "bash"
args:
- -c
- |
az version -o tsv
expectedOutput: ["2.64.0\t2.64.0\t1.1.0"]
- name: "kubectl version"
command: "bash"
args:
- -c
- |
kubectl version --client
expectedOutput: ["Client Version:\tv1.30.6\nKustomize Version:\tv5.0.4*"]

metadataTest:
workdir: "/viya4-iac-azure"
Expand Down

0 comments on commit 09d8175

Please sign in to comment.