Commit bd61e334 authored by Dimitrios Gogos's avatar Dimitrios Gogos
Browse files

fix: use busybox image and sed for federation-manager init container

parent dbbd5330
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -27,15 +27,15 @@ spec:

      initContainers:
        - name: config-merge
          image: alpine:3.20
          image: busybox:stable
          imagePullPolicy: IfNotPresent
          command:
            - /bin/sh
            - -c
          args:
            - |
              apk add --no-cache gettext \
              && envsubst < /configmap/config.cfg > /work/config.cfg
              sed "s|\${CLIENT1_SECRET}|$CLIENT1_SECRET|g; s|\${CLIENT2_SECRET}|$CLIENT2_SECRET|g" \
                /configmap/config.cfg > /work/config.cfg
          env:
            - name: CLIENT1_SECRET
              valueFrom:
+0 −1
Original line number Diff line number Diff line
@@ -69,7 +69,6 @@ echo "Step 4/4: Waiting for cluster and setting up namespaces + RBAC..."
kubectl wait --for=condition=Ready nodes --all --timeout=120s

kubectl create namespace $OOP_NS 2>/dev/null || echo "  Namespace $OOP_NS already exists"
kubectl create namespace $FM_NS  2>/dev/null || echo "  Namespace $FM_NS already exists"

kubectl create serviceaccount oop-user -n $OOP_NS 2>/dev/null || echo "  Service account already exists"
kubectl create clusterrolebinding oop-user-binding \