7
0
mirror of https://github.com/ChristianLight/tutor.git synced 2024-05-28 20:00:49 +00:00

Omit patchesStrategicMerge when there are no custom resources

This commit is contained in:
Ed D'Azzo 2022-07-13 20:49:07 +00:00 committed by Régis Behmo
parent bb907b4de3
commit 67358c6b7a

View File

@ -59,8 +59,12 @@ configMapGenerator:
app.kubernetes.io/name: redis
{{ patch("kustomization-configmapgenerator") }}
{%- if patch("k8s-override") || patch("kustomization-patches-strategic-merge") %}
patchesStrategicMerge:
{%- if patch("k8s-override") %}
- k8s/override.yml
{%- endif %}
{{ patch("kustomization-patches-strategic-merge") }}
{%- endif %}
{{ patch("kustomization") }}