DRY improvements #664
Reference in New Issue
Block a user
No description provided.
Delete Branch "refs/pull/664/head"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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
This results in having
spec.storageClassName
equal tostorage-class
in the PVC objectExample 2
This results in having
spec.ingressClassName
equal toingress-class
in the Ingress objectPossible drawbacks
N/A
Checklist
Thanks!
LGTM, thanks also for adding unit tests!
Given the working tests, I am confident enough we can include this directly into the next release.