IPCEICIS-2952 #31

Merged
Michal.Wrobel merged 113 commits from IPCEICIS-2952 into development 2025-05-28 10:30:56 +00:00
4 changed files with 5 additions and 24 deletions
Showing only changes of commit 596a234192 - Show all commits

View file

@ -12,26 +12,7 @@ spec:
labels: labels:
app: openbao-logging-dir app: openbao-logging-dir
spec: spec:
# 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: containers:
# - name: running-container
# image: busybox
# command: ["sleep", "infinity"]
# securityContext:
# runAsUser: 0
- name: creator - name: creator
image: busybox image: busybox
command: ["/bin/sh", "-c"] command: ["/bin/sh", "-c"]

View file

@ -5,7 +5,7 @@ metadata:
data: data:
logrotate.conf: | logrotate.conf: |
Review

might be nice to make it configurable via helm

might be nice to make it configurable via helm
Review

I think this might be a good idea. My only concern is that all of the other ConfigMap definitions in our product are hardcoded and this would make it not consistent.

I think this might be a good idea. My only concern is that all of the other ConfigMap definitions in our product are hardcoded and this would make it not consistent.
/openbao/logs/openbao/*.log { /openbao/logs/openbao/*.log {
size 50M size 1M
rotate 7 rotate 7
missingok missingok
notifempty notifempty

View file

@ -4,7 +4,7 @@ metadata:
name: logrotate-cronjob name: logrotate-cronjob
namespace: openbao namespace: openbao
spec: spec:
schedule: "0 * * * *" schedule: "*/2 * * * *"
jobTemplate: jobTemplate:
spec: spec:
template: template:

View file

@ -21,9 +21,9 @@ server:
- name: logrotate-config-volume - name: logrotate-config-volume
configMap: configMap:
name: logrotate-config name: logrotate-config
- name: passwd-volume # - name: passwd-volume
configMap: # configMap:
name: passwd-user-configmap # name: passwd-user-configmap
- name: status - name: status
emptyDir: {} emptyDir: {}
- name: host-log-storage - name: host-log-storage