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.