From 7878a7de0fd1b09ad0eafe248d373108d4fa0912 Mon Sep 17 00:00:00 2001 From: Evan Vetere Date: Thu, 28 May 2026 11:49:10 -0400 Subject: [PATCH] feat: set KUBECONFIG in milo-integration component Point the controller at the mounted discovery kubeconfig by setting the KUBECONFIG env var on the manager container. client-go honors KUBECONFIG natively, so no flag, config type, or ConfigMap is required. Fixes #9. --- config/components/milo-integration/kustomization.yaml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/config/components/milo-integration/kustomization.yaml b/config/components/milo-integration/kustomization.yaml index 4775fc6..6fb9bfb 100644 --- a/config/components/milo-integration/kustomization.yaml +++ b/config/components/milo-integration/kustomization.yaml @@ -45,6 +45,9 @@ patches: spec: containers: - name: manager + env: + - name: KUBECONFIG + value: /etc/kubernetes/project-discovery/auth/discovery-kubeconfig.yaml volumeMounts: - mountPath: /etc/kubernetes/pki/trust name: trust-bundle