Skip to content

Commit

Permalink
Merge pull request #46 from mouchar/master
Browse files Browse the repository at this point in the history
Support custom initContainer image in gradle-proxy
  • Loading branch information
slamdev authored Nov 10, 2023
2 parents 027c199 + 859d34a commit 0b53223
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 2 deletions.
2 changes: 1 addition & 1 deletion charts/gradle-cache/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: gradle-cache
description: |-
Helm chart to deploy [gradle-cache](https://docs.gradle.com/build-cache-node/).
type: application
version: 0.1.4
version: 0.1.5
appVersion: "11.0"
home: https://github.com/slamdev/helm-charts/tree/master/charts/gradle-cache
icon: https://gradle.org/icon/favicon-32x32.png
Expand Down
2 changes: 2 additions & 0 deletions charts/gradle-cache/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@ Helm chart to deploy [gradle-cache](https://docs.gradle.com/build-cache-node/).
| ingress.hosts | list | `[]` | ingress accepted hostnames |
| ingress.tls | list | `[]` | ingress TLS configuration |
| ingress.ingressClassName | string | `""` | ingress name of the IngressClass cluster resource |
| initContainer.image.repository | string | `"busybox"` | image repository for initContainer |
| initContainer.image.tag | string | `"1.33.0"` | image tag for initContainer |
| livenessProbe.httpGet.path | string | `"/"` | path for liveness probe |
| livenessProbe.httpGet.port | string | `"http"` | port for liveness probe |
| nameOverride | string | `""` | override name of the chart |
Expand Down
2 changes: 1 addition & 1 deletion charts/gradle-cache/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ spec:
{{- toYaml .Values.podSecurityContext | nindent 8 }}
initContainers:
- name: config-mounter
image: busybox:1.33.0
image: "{{ .Values.initContainer.image.repository }}:{{ .Values.initContainer.image.tag }}"
command:
- sh
- -ce
Expand Down
7 changes: 7 additions & 0 deletions charts/gradle-cache/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,13 @@ image:
# image.pullPolicy -- image pull policy
pullPolicy: IfNotPresent

initContainer:
image:
# initContainer.image.repository -- image repository for initContainer
repository: busybox
# initContainer.image.tag -- image tag for initContainer
tag: "1.33.0"

# imagePullSecrets -- image pull secret for private images
imagePullSecrets: []
# nameOverride -- override name of the chart
Expand Down

0 comments on commit 0b53223

Please sign in to comment.