From daaa8b3429d09fd21d6eba4bd8887987b9e33775 Mon Sep 17 00:00:00 2001 From: Christoph Mewes Date: Mon, 13 Jan 2025 19:31:55 +0100 Subject: [PATCH] add support for kcp-dev/api-syncagent#6 On-behalf-of: @SAP christoph.mewes@sap.com --- charts/api-syncagent/templates/deployment.yaml | 6 ++++++ charts/api-syncagent/values.yaml | 6 ++++++ 2 files changed, 12 insertions(+) diff --git a/charts/api-syncagent/templates/deployment.yaml b/charts/api-syncagent/templates/deployment.yaml index 6e01964..8540cf8 100644 --- a/charts/api-syncagent/templates/deployment.yaml +++ b/charts/api-syncagent/templates/deployment.yaml @@ -35,6 +35,12 @@ spec: {{- with .Values.kubeconfig }} - --kubeconfig=/etc/api-syncagent/cluster/kubeconfig {{- end }} + {{- with .Values.kubeconfigHostOverride }} + - "--kubeconfig-host-override={{ . }}" + {{- end }} + {{- with .Values.kubeconfigCAFileOverride }} + - "--kubeconfig-ca-file-override={{ . }}" + {{- end }} {{- with .Values.publishedResourceSelector }} - "--published-resource-selector={{ . }}" {{- end }} diff --git a/charts/api-syncagent/values.yaml b/charts/api-syncagent/values.yaml index 94d0612..55f1643 100644 --- a/charts/api-syncagent/values.yaml +++ b/charts/api-syncagent/values.yaml @@ -14,6 +14,12 @@ kcpKubeconfig: "" # running on a cluster that is not the target cluster for the API sync). kubeconfig: "" +# Optional: Override the host configured in the local kubeconfig. +kubeconfigHostOverride: "" + +# Optional: Override the server CA file configured in the local kubeconfig +kubeconfigCAFileOverride: "" + # Optional: If two or more SyncAgents are installed into the same namespace, # each one must have a Kubernetes label selector to scope down which # PublishedResources (PRs) they process, as no two agents must process the same.