From 7e2243d52da9108c560b162ea1f457c80a413bc3 Mon Sep 17 00:00:00 2001 From: miwr Date: Wed, 23 Apr 2025 13:59:30 +0200 Subject: [PATCH] test to ds --- .../create-logging-directory.yaml | 27 ++++++++++++++----- 1 file changed, 20 insertions(+), 7 deletions(-) diff --git a/template/stacks/ref-implementation/openbao-logging/create-logging-directory.yaml b/template/stacks/ref-implementation/openbao-logging/create-logging-directory.yaml index 61f45ef..06321f9 100644 --- a/template/stacks/ref-implementation/openbao-logging/create-logging-directory.yaml +++ b/template/stacks/ref-implementation/openbao-logging/create-logging-directory.yaml @@ -12,7 +12,26 @@ spec: labels: app: openbao-logging-dir spec: - initContainers: + # initContainers: + # - name: creator + # image: busybox + # command: ["/bin/sh", "-c"] + # args: + # - | + # set -e + # mkdir -p /var/log/openbao + # chown 100:100 /var/log/openbao + # securityContext: + # runAsUser: 0 + # volumeMounts: + # - name: host-log + # mountPath: /var/log + containers: + # - name: running-container + # image: busybox + # command: ["sleep", "infinity"] + # securityContext: + # runAsUser: 0 - name: creator image: busybox command: ["/bin/sh", "-c"] @@ -26,12 +45,6 @@ spec: volumeMounts: - name: host-log mountPath: /var/log - containers: - - name: running-container - image: busybox - command: ["sleep", "infinity"] - securityContext: - runAsUser: 0 volumes: - name: host-log hostPath: