mirror of
https://github.com/ChristianLight/tutor.git
synced 2025-01-25 22:18:24 +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
|
||||
{{ 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") }}
|
||||
|
Loading…
x
Reference in New Issue
Block a user