Add Templates to pretty config

This commit is contained in:
Nikolai Rodionov 2024-05-10 13:23:06 +02:00
parent 58438cfe1c
commit 65bc5a070b
Signed by: allanger
GPG Key ID: 0AA46A90E25592AD
2 changed files with 6 additions and 1 deletions

View File

@ -2,8 +2,13 @@ FROM fluxcd/flux-cli:v2.2.3 as flux-source
WORKDIR /out WORKDIR /out
RUN cp $(which flux) . RUN cp $(which flux) .
FROM mikefarah/yq as yq-source
WORKDIR /out
RUN cp $(which yq) .
FROM ghcr.io/flant/shell-operator:latest FROM ghcr.io/flant/shell-operator:latest
RUN apk update && apk add envsubst --no-cache RUN apk update && apk add envsubst --no-cache
COPY --from=flux-source /out/flux /usr/bin/flux COPY --from=flux-source /out/flux /usr/bin/flux
COPY --from=yq-source /out/yq /usr/bin/yq
ADD /hooks /hooks ADD /hooks /hooks
ADD /tpls /tpls ADD /tpls /tpls

View File

@ -28,7 +28,7 @@ else
export SP_APPLICATION=$(jq -r .[0].object.data.values $BINDING_CONTEXT_PATH | base64 -d | yq '.helm.release') export SP_APPLICATION=$(jq -r .[0].object.data.values $BINDING_CONTEXT_PATH | base64 -d | yq '.helm.release')
flux create source helm $SP_APPLICATION \ flux create source helm $SP_APPLICATION \
--namespace=$SP_ACCOUNT \ --namespace=$SP_CUSTOMER_ID \
--url=oci://registry.badhouseplants.net/softplayer/helm --url=oci://registry.badhouseplants.net/softplayer/helm
flux create helmrelease $SP_APPLICATION \ flux create helmrelease $SP_APPLICATION \