Skip to content

Commit

Permalink
add config
Browse files Browse the repository at this point in the history
  • Loading branch information
mabulgu committed Mar 21, 2024
1 parent c410899 commit 7d4e354
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
FROM python:3.11.6-alpine
ARG KUBECONFIG_CONTENT
ENV KUBECONFIG_CONTENT ${KUBECONFIG_CONTENT}
USER root
RUN adduser -D kfkuser
RUN pip install strimzi-kafka-cli==0.1.0a76
USER kfkuser
RUN mkdir /home/kfkuser/.kube
RUN echo "${KUBECONFIG_CONTENT}" > /home/kfkuser/.kube/config
RUN echo "$KUBECONFIG_CONTENT" > /home/kfkuser/.kube/config
RUN kfk --version
19 changes: 19 additions & 0 deletions tests/files/yaml/kubeconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
apiVersion: v1
clusters:
- cluster:
certificate-authority-data: testauthdata
server: localhost:6443
name: DEV
contexts:
- context:
cluster: DEV
user: testuser
name: testcontext
current-context: testcontext
kind: Config
preferences: {}
users:
- name: testuser
user:
client-certificate-data: testcertdata
client-key-data: testkeydata

0 comments on commit 7d4e354

Please sign in to comment.