Fix kustomize patch: remove namespace for proper matching

Kustomize matches patches before namespace transformation, so the
patch file shouldn't specify namespace (kustomization.yaml adds it).

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
Erich Blume 2026-01-19 15:00:33 -08:00
commit 258c88f2f7
2 changed files with 3 additions and 4 deletions

View file

@ -4,7 +4,6 @@ apiVersion: v1
kind: ConfigMap
metadata:
name: argocd-ssh-known-hosts-cm
namespace: argocd
data:
ssh_known_hosts: |
# Upstream ArgoCD defaults

View file

@ -6,7 +6,7 @@ namespace: argocd
resources:
- https://raw.githubusercontent.com/argoproj/argo-cd/stable/manifests/install.yaml
- service-tailscale.yaml
- argocd-ssh-known-hosts-cm.yaml
patchesStrategicMerge:
- argocd-cmd-params-cm.yaml
patches:
- path: argocd-cmd-params-cm.yaml
- path: argocd-ssh-known-hosts-cm.yaml