Skip to content

Commit

Permalink
fix k8s config issue
Browse files Browse the repository at this point in the history
  • Loading branch information
mabulgu committed Mar 21, 2024
1 parent ced4ebd commit 272ce59
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,10 @@ jobs:

- name: Retrieve the kubeconfig and decode it to a file
env:
KUBECONFIG: ${{ secrets.KUBECONFIG }}
KUBECONFIG_CONTENT: ${{ secrets.KUBECONFIG }}
run: |
mkdir ~/.kube
echo "$KUBECONFIG" > ~/.kube/config
echo "KUBECONFIG_CONTENT" > ~/.kube/config
- name: Test
run: |
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ jobs:
dockerfile: ./Dockerfile
push: true
build-args: |
KUBECONFIG=${{ secrets.KUBECONFIG }}
KUBECONFIG_CONTENT=${{ secrets.KUBECONFIG }}
upload_build_data_artifact:
runs-on: ubuntu-latest
Expand Down
6 changes: 3 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
FROM python:3.11.6-alpine
ARG KUBECONFIG
ARG KUBECONFIG_CONTENT
USER root
RUN adduser -D kfkuser
RUN pip install strimzi-kafka-cli==0.1.0a75
RUN pip install strimzi-kafka-cli==0.1.0a76
USER kfkuser
RUN mkdir /home/kfkuser/.kube
RUN echo "$KUBECONFIG" > /home/kfkuser/.kube/config
RUN echo "$KUBECONFIG_CONTENT" > /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-alpha75"
version = "0.1.0-alpha76"
description = "Command Line Interface for Strimzi Kafka Operator"
authors = [{ name = "Aykut Bulgu", email = "aykut@systemcraftsman.com" }]
readme = "README.md"
Expand Down

0 comments on commit 272ce59

Please sign in to comment.