helm-chart/unittests/deployment
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
..
basic.yaml Add deployment labels to deployment (#649) 2024-05-02 04:43:42 +00:00
HA.yaml Add tests for HA assertion and clean up (#611) 2024-02-23 07:27:46 +00:00
image-configuration.yaml Quote image tag (#641) 2024-05-02 08:05:26 +00:00
ingress-configuration.yaml DRY improvements (#664) 2024-06-06 20:39:41 +00:00
inline-config.yaml Further improvement on DRY principle support (#529) 2023-11-06 19:03:46 +00:00
signing-disabled.yaml [Breaking] Add HA-support; switch to Deployment (#437) 2023-07-17 19:09:42 +00:00
signing-enabled.yaml [Breaking] Add HA-support; switch to Deployment (#437) 2023-07-17 19:09:42 +00:00
ssh-configuration.yaml Add image.fullOverride (#550) 2023-11-14 21:42:26 +00:00
storage-class-configuration.yaml Storage Class don´t use global.storageClass (#601) (#602) 2024-01-22 09:33:07 +00:00
svc-configuration.yaml Allowing Custom Labels in SVC Templates (#597) 2024-01-13 09:58:30 +00:00