Skip to content

Commit

Permalink
Update helm and kubectl (#616)
Browse files Browse the repository at this point in the history
* Update helm and kubectl

* Update Dockerfile

* Update Dockerfile

* Update Dockerfile

* format
  • Loading branch information
HuixinLai authored Jul 19, 2023
1 parent febcc4d commit b9aeb72
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 9 deletions.
4 changes: 2 additions & 2 deletions marketplace/deployer_envsubst_base/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,15 @@ RUN pip3 install \
pyyaml \
six

RUN for full_version in 1.24.10 1.24.10 1.26.2; \
RUN for full_version in 1.26.5 1.26.5 1.27.2; \
do \
version=${full_version%.*} \
&& mkdir -p /opt/kubectl/$version \
&& wget -q -O /opt/kubectl/$version/kubectl \
https://storage.googleapis.com/kubernetes-release/release/v$full_version/bin/linux/amd64/kubectl \
&& chmod 755 /opt/kubectl/$version/kubectl; \
done;
RUN ln -s /opt/kubectl/1.24 /opt/kubectl/default
RUN ln -s /opt/kubectl/1.26 /opt/kubectl/default

COPY marketplace/deployer_envsubst_base/* /bin/
COPY marketplace/deployer_util/* /bin/
Expand Down
6 changes: 3 additions & 3 deletions marketplace/deployer_helm_base/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -17,19 +17,19 @@ RUN pip3 install \
pyyaml \
six

RUN for full_version in 1.24.10 1.24.10 1.26.2; \
RUN for full_version in 1.26.5 1.26.5 1.27.2; \
do \
version=${full_version%.*} \
&& mkdir -p /opt/kubectl/$version \
&& wget -q -O /opt/kubectl/$version/kubectl \
https://storage.googleapis.com/kubernetes-release/release/v$full_version/bin/linux/amd64/kubectl \
&& chmod 755 /opt/kubectl/$version/kubectl; \
done;
RUN ln -s /opt/kubectl/1.24 /opt/kubectl/default
RUN ln -s /opt/kubectl/1.26 /opt/kubectl/default

RUN mkdir -p /bin/helm-downloaded \
&& wget -q -O /bin/helm-downloaded/helm.tar.gz \
https://get.helm.sh/helm-v3.11.2-linux-amd64.tar.gz \
https://get.helm.sh/helm-v3.12.2-linux-amd64.tar.gz \
&& tar -zxvf /bin/helm-downloaded/helm.tar.gz -C /bin/helm-downloaded \
&& mv /bin/helm-downloaded/linux-amd64/helm /bin/ \
&& rm -rf /bin/helm-downloaded
Expand Down
4 changes: 3 additions & 1 deletion marketplace/deployer_util/provision.py
Original file line number Diff line number Diff line change
Expand Up @@ -528,7 +528,9 @@ def make_v1_config(schema, namespace, app_name, labels, app_params):
'namespace': namespace,
'labels': labels,
},
'data': {k: str(v) for k, v in app_params.items()},
'data': {
k: str(v) for k, v in app_params.items()
},
}


Expand Down
6 changes: 3 additions & 3 deletions marketplace/dev/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -27,15 +27,15 @@ RUN pip3 install \
pyyaml \
six

RUN for full_version in 1.24.10 1.24.10 1.26.2; \
RUN for full_version in 1.26.5 1.26.5 1.27.2; \
do \
version=${full_version%.*} \
&& mkdir -p /opt/kubectl/$version \
&& wget -q -O /opt/kubectl/$version/kubectl \
https://storage.googleapis.com/kubernetes-release/release/v$full_version/bin/linux/amd64/kubectl \
&& chmod 755 /opt/kubectl/$version/kubectl; \
done;
RUN ln -s /opt/kubectl/1.24 /opt/kubectl/default
RUN ln -s /opt/kubectl/1.26 /opt/kubectl/default

RUN echo "deb [signed-by=/usr/share/keyrings/docker.gpg] https://download.docker.com/linux/ubuntu focal edge" | tee /etc/apt/sources.list.d/docker.list \
&& curl -fsSL https://download.docker.com/linux/ubuntu/gpg | apt-key --keyring /usr/share/keyrings/docker.gpg add - \
Expand All @@ -44,7 +44,7 @@ RUN echo "deb [signed-by=/usr/share/keyrings/docker.gpg] https://download.docker

RUN mkdir -p /bin/helm-downloaded \
&& wget -q -O /bin/helm-downloaded/helm.tar.gz \
https://get.helm.sh/helm-v3.11.2-linux-amd64.tar.gz \
https://get.helm.sh/helm-v3.12.2-linux-amd64.tar.gz \
&& tar -zxvf /bin/helm-downloaded/helm.tar.gz -C /bin/helm-downloaded \
&& mv /bin/helm-downloaded/linux-amd64/helm /bin/ \
&& rm -rf /bin/helm-downloaded
Expand Down

0 comments on commit b9aeb72

Please sign in to comment.