Re: [helm/charts] [stable/jenkins]: add cache section under persistence to define volumes (#22691)

From: notifications@github.com
Domain: IP info github.com
MX-server: IP info out-19.smtp.github.com
Size: 2878 Bytes
Create: 2020-06-21
Update: 2020-06-21
Score: 0
Safe: Yes

Outbound domains: github.com |

@krishnakvall @torstenwalter
I'm leaning towards a 3rd option which adds the cache to agent configuration thus allowing all values to be inherited or overridden to be agent specific.

agent:
  # create cache. override in `additionalAgents` for an agent-specific cache.
  cache:
    enabled: true
    componentName: "{{ .Release.Name }}-cache"
    size: "4Gi"
    # storageClass:
    accessMode: "ReadWriteMany"
    # enable CronJob to periodically clear the cache
    clear:
      enabled: true
      componentName: "{{ .Release.Name }}-clear-cache"
      schedule: "0 0 * * SUN"
      image: "maorfr/kube-tasks"
      tag: "0.2.0"
      command: "kube-tasks execute --command 'rm -rf'"
   # mount cache to agent pod
    volumes:
      - type: PVC
        claimName: "{{ .Release.Name }}-cache"
        mountPath: /home/jenkins/agent
additionalAgents:
  maven:
    cache:
      componentName: "{{ .Release.Name }}-maven-cache"
      clear:
        componentName: "{{ .Release.Name }}-clear-maven-cache"
        schedule: "0 2 * * WED"
        image: "maven"
        tag: "3.6.3-openjdk-11"
        command: "mvn dependency:purge-local-repository -DsnapshotOnly=true"
    volumes:
      - type: PVC
        claimName: "{{ .Release.Name }}-maven-cache"
        mountPath: /home/jenkins/agent/.m2/repository


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or unsubscribe.

Want to protect your real email from messages like this? Use TempM email and be more secure on the internet.