Skip to content

Commit 67af021

Browse files
committed
add support for kcp-dev/api-syncagent#6
On-behalf-of: @SAP [email protected]
1 parent 89ecc41 commit 67af021

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

charts/api-syncagent/templates/deployment.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,12 @@ spec:
3535
{{- with .Values.kubeconfig }}
3636
- --kubeconfig=/etc/api-syncagent/cluster/kubeconfig
3737
{{- end }}
38+
{{- with .Values.kubeconfigHostOverride }}
39+
- "--kubeconfig-host-override={{ . }}"
40+
{{- end }}
41+
{{- with .Values.kubeconfigCAFileOverride }}
42+
- "--kubeconfig-ca-file-override={{ . }}"
43+
{{- end }}
3844
{{- with .Values.publishedResourceSelector }}
3945
- "--published-resource-selector={{ . }}"
4046
{{- end }}

charts/api-syncagent/values.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,12 @@ kcpKubeconfig: ""
1414
# running on a cluster that is not the target cluster for the API sync).
1515
kubeconfig: ""
1616

17+
# Optional: Override the host configured in the local kubeconfig.
18+
kubeconfigHostOverride: ""
19+
20+
# Optional: Override the server CA file configured in the local kubeconfig
21+
kubeconfigCAFileOverride: ""
22+
1723
# Optional: If two or more SyncAgents are installed into the same namespace,
1824
# each one must have a Kubernetes label selector to scope down which
1925
# PublishedResources (PRs) they process, as no two agents must process the same.

0 commit comments

Comments
 (0)