Skip to content

Commit

Permalink
add support for kcp-dev/api-syncagent#6
Browse files Browse the repository at this point in the history
On-behalf-of: @SAP [email protected]
  • Loading branch information
xrstf committed Jan 13, 2025
1 parent 875d02b commit daaa8b3
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
6 changes: 6 additions & 0 deletions charts/api-syncagent/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down
6 changes: 6 additions & 0 deletions charts/api-syncagent/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit daaa8b3

Please sign in to comment.