Skip to content

Commit

Permalink
Adding back in the init container for Jenkins
Browse files Browse the repository at this point in the history
  • Loading branch information
danmanners committed Sep 9, 2023
1 parent 2a577e6 commit 3a41a4f
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions manifests/workloads/jenkins-oss/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,14 @@ resources:
requests:
cpu: "1"

# initContainers:
# init-jenkins:
# image: docker.io/library/busybox:stable
# command: ["sh", "-c", "chown -R 1000:1000 /var/jenkins_home"]
# volumeMounts:
# - name: jenkins-home
# mountPath: /var/jenkins_home
# subPath: jenkins-volume
initContainers:
init-jenkins:
image: docker.io/library/busybox:stable
command: ["sh", "-c", "ls -halt /var/jenkins_home && chown -R 1000:1000 /var/jenkins_home"]
volumeMounts:
- name: jenkins-home
mountPath: /var/jenkins_home
subPath: jenkins-volume

service:
main:
Expand Down Expand Up @@ -68,5 +68,5 @@ persistence:
storageClass: ceph-rbd
accessMode: ReadWriteOnce
mountPath: /var/jenkins_home
subPath: jenkins-volume
# subPath: jenkins-volume
size: 20Gi

0 comments on commit 3a41a4f

Please sign in to comment.