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 c00dc54
Showing 1 changed file with 7 additions and 9 deletions.
16 changes: 7 additions & 9 deletions manifests/workloads/jenkins-oss/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,13 @@ 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

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

0 comments on commit c00dc54

Please sign in to comment.