Coder Social home page Coder Social logo

Comments (5)

eliobischof avatar eliobischof commented on June 1, 2024

We could default setupJob.machinekeyWriterImage.repository to bitnami/kubectl.
It seems to support more version tags. However, 1.27.0 is also not available 😂
But it's also slimmer than alpine/k8s.

from zitadel-charts.

eliobischof avatar eliobischof commented on June 1, 2024

Probably the best is rancher/kubectl.
It's the slimmest with 49.2MB, seems to support a lot of versions, and the version is prefixed with "v"

from zitadel-charts.

eliobischof avatar eliobischof commented on June 1, 2024

I realized, with a scratch image and without a shell, refactoring the command will be difficult 😄

command: [ "sh","-c","until [ ! -z $(kubectl -n {{ .Release.Namespace }} get po ${POD_NAME} -o jsonpath=\"{.status.containerStatuses[?(@.name=='{{ .Chart.Name }}-setup')].state.terminated}\") ]; do echo 'waiting for {{ .Chart.Name }}-setup container to terminate'; sleep 5; done && echo '{{ .Chart.Name }}-setup container terminated' && if [ -f {{ default "/key" .Values.zitadel.configmapConfig.FirstInstance.MachineKeyPath }} ]; then kubectl -n {{ .Release.Namespace }} create secret generic {{ .Values.zitadel.configmapConfig.FirstInstance.Org.Machine.Machine.Username }} --from-file={{ .Values.zitadel.configmapConfig.FirstInstance.Org.Machine.Machine.Username }}.json={{ default "/key" .Values.zitadel.configmapConfig.FirstInstance.MachineKeyPath }}; fi;" ]

from zitadel-charts.

eliobischof avatar eliobischof commented on June 1, 2024

I think the best solution is to use bitnami/kubectl. They publish minor tags, like 1.25, 1.26, 1.27... The kubectl should be compatible on the minor tags for these core commands we use.

The chart and k8s compatibility improves and the image just contains the kubectl on Alpine, AFAIU. What do you think @lusu007? See #100

from zitadel-charts.

lusu007 avatar lusu007 commented on June 1, 2024

LGTM! 😊

from zitadel-charts.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.