apiVersion: batch/v1 kind: Job metadata: name: opencloud-init-generator namespace: opencloud spec: ttlSecondsAfterFinished: 300 template: spec: restartPolicy: Never containers: - name: init image: quay.io/opencloudeu/opencloud:7.2.0 command: ["/bin/sh"] args: - -c - | echo "=== Running opencloud init ===" OPENCLOUD_URL=https://opencloud.basicstack.de \ /usr/bin/opencloud init --insecure true echo "" echo "=== Generated opencloud.yaml ===" if [ -f /etc/opencloud/opencloud.yaml ]; then cat /etc/opencloud/opencloud.yaml else echo "ERROR: opencloud.yaml not found at /etc/opencloud/" ls -la /etc/opencloud/ || echo "Directory doesn't exist" fi