Skip to content

Commit

Permalink
pass kubeconfig
Browse files Browse the repository at this point in the history
  • Loading branch information
mabulgu committed Nov 21, 2023
1 parent 5192c98 commit f8bbda4
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 10 deletions.
9 changes: 2 additions & 7 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,13 +50,6 @@ jobs:
with:
time: '180s'

- name: Retrieve the kubeconfig and decode it to a file
env:
KUBECONFIG: ${{ secrets.KUBECONFIG }}
run: |
mkdir ~/.kube
echo "$KUBECONFIG" > ~/.kube/config
- name: Bake and push image
uses: docker/[email protected]
with:
Expand All @@ -68,6 +61,8 @@ jobs:
path: .
dockerfile: ./Dockerfile
push: true
build-args: |
KUBECONFIG=${{ secrets.KUBECONFIG }}
upload_build_data_artifact:
runs-on: ubuntu-latest
Expand Down
5 changes: 3 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
ARG KUBECONFIG=""
FROM python:3.11.6-alpine
USER root
RUN adduser -D kfkuser
RUN pip install strimzi-kafka-cli==0.1.0a73
RUN pip install strimzi-kafka-cli==0.1.0a74
USER kfkuser
RUN mkdir ~/.kube
COPY ~/.kube/config /home/kfkuser/.kube/config
RUN echo "${KUBECONFIG}" > /home/kfkuser/.kube/config
RUN kfk --version
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "strimzi-kafka-cli"
version = "0.1.0-alpha73"
version = "0.1.0-alpha74"
description = "Command Line Interface for Strimzi Kafka Operator"
authors = [{ name = "Aykut Bulgu", email = "[email protected]" }]
readme = "README.md"
Expand Down

0 comments on commit f8bbda4

Please sign in to comment.