Skip to content

Commit

Permalink
Merge pull request #41 from loganmzz/gradle-cache-ingresss-classname
Browse files Browse the repository at this point in the history
feat(gradle-cache) Adds support for Ingress class name
  • Loading branch information
slamdev authored Dec 19, 2022
2 parents 4ea740e + 6928a75 commit dafaff2
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 1 deletion.
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.3
version: 0.1.4
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
1 change: 1 addition & 0 deletions charts/gradle-cache/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ Helm chart to deploy [gradle-cache](https://docs.gradle.com/build-cache-node/).
| ingress.enabled | bool | `false` | enables Ingress for gradle-cache |
| ingress.hosts | list | `[]` | ingress accepted hostnames |
| ingress.tls | list | `[]` | ingress TLS configuration |
| ingress.ingressClassName | string | `""` | ingress name of the IngressClass cluster resource |
| 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
3 changes: 3 additions & 0 deletions charts/gradle-cache/templates/ingress.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@ metadata:
{{- toYaml . | nindent 4 }}
{{- end }}
spec:
{{- with .Values.ingress.ingressClassName }}
ingressClassName: {{ . | quote }}
{{- end }}
{{- if .Values.ingress.tls }}
tls:
{{- range .Values.ingress.tls }}
Expand Down
2 changes: 2 additions & 0 deletions charts/gradle-cache/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,8 @@ ingress:
# - secretName: chart-example-tls
# hosts:
# - chart-example.local
# ingress.ingressClassName -- ingress name of the IngressClass cluster resource
ingressClassName: ""

# resources -- custom resource configuration
resources: {}
Expand Down

0 comments on commit dafaff2

Please sign in to comment.