mirror of
https://github.com/ChristianLight/tutor.git
synced 2025-01-27 15:08:23 +00:00
Omit patchesStrategicMerge when there are no custom resources
This commit is contained in:
parent
bb907b4de3
commit
67358c6b7a
@ -59,8 +59,12 @@ configMapGenerator:
|
|||||||
app.kubernetes.io/name: redis
|
app.kubernetes.io/name: redis
|
||||||
{{ patch("kustomization-configmapgenerator") }}
|
{{ patch("kustomization-configmapgenerator") }}
|
||||||
|
|
||||||
|
{%- if patch("k8s-override") || patch("kustomization-patches-strategic-merge") %}
|
||||||
patchesStrategicMerge:
|
patchesStrategicMerge:
|
||||||
|
{%- if patch("k8s-override") %}
|
||||||
- k8s/override.yml
|
- k8s/override.yml
|
||||||
|
{%- endif %}
|
||||||
{{ patch("kustomization-patches-strategic-merge") }}
|
{{ patch("kustomization-patches-strategic-merge") }}
|
||||||
|
{%- endif %}
|
||||||
|
|
||||||
{{ patch("kustomization") }}
|
{{ patch("kustomization") }}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user