Gitea-HelmChart/templates/gitea
Ceddaerrix b7b60dd51f DRY improvements (#664)
### Description of the change

Adding support for DRY principle (via use of the TPL function) to the PVC storage class and the ingress class

### Benefits

It allows to reference a variable into another one to avoid duplicating them (or using YAML anchors).
It is useful and valuable when including Gitea into an umbrella chart with multiple components and to have a single variable while the components variable only refer to that single one.

Example 1
```
global:
  persistence:
    storageClass: "storage-class"
persistence:
  storageClass: "{{ .Values.global.persistence.storageClass }}"
```
This results in having `spec.storageClassName` equal to `storage-class` in the PVC object

Example 2
```
global:
  ingress:
    className: "ingress-class"
ingress:
  className: "{{ .Values.global.ingress.className}}"
```
This results in having `spec.ingressClassName` equal to `ingress-class` in the Ingress object

### Possible drawbacks

N/A

### Checklist

- [X] Templating unittests are added

Co-authored-by: 212597596 <cedric.henry@ge.com>
Co-authored-by: pat-s <pat-s@noreply.gitea.com>
Co-authored-by: justusbunsi <justusbunsi@noreply.gitea.com>
Reviewed-on: https://gitea.com/gitea/helm-chart/pulls/664
Reviewed-by: pat-s <pat-s@noreply.gitea.com>
Co-authored-by: Ceddaerrix <ceddaerrix@noreply.gitea.com>
Co-committed-by: Ceddaerrix <ceddaerrix@noreply.gitea.com>
2024-06-06 20:39:41 +00:00
..
config.yaml Add tests for HA assertion and clean up (#611) 2024-02-23 07:27:46 +00:00
deployment.yaml Add deployment labels to deployment (#649) 2024-05-02 04:43:42 +00:00
deprecation.yaml Add deprecation fail-safe for Chart templating (#269) 2021-12-23 00:25:32 +08:00
extra-list.yaml add extraDeploy to add arbitrary objects to the release (#441) 2023-05-02 21:32:54 +08:00
gpg-secret.yaml Fix wrong reference to existingKey (#415) 2023-03-21 14:16:41 +08:00
http-svc.yaml Allowing Custom Labels in SVC Templates (#597) 2024-01-13 09:58:30 +00:00
ingress.yaml DRY improvements (#664) 2024-06-06 20:39:41 +00:00
init.yaml Properly sanitize gitea admin output (#590) 2023-12-21 07:59:18 +00:00
poddisruptionbudget.yaml [Breaking] Add HA-support; switch to Deployment (#437) 2023-07-17 19:09:42 +00:00
pvc.yaml Add labels to PVC manifest (#581) 2024-01-22 09:35:58 +00:00
serviceaccount.yaml Add support for ServiceAccount configuration (#451) 2023-05-31 08:47:58 +00:00
servicemonitor.yaml Fixing prometheus monitoring (#157) 2021-06-07 22:28:28 +08:00
ssh-svc.yaml Allowing Custom Labels in SVC Templates (#597) 2024-01-13 09:58:30 +00:00