File tree Expand file tree Collapse file tree 3 files changed +23
-9
lines changed Expand file tree Collapse file tree 3 files changed +23
-9
lines changed Original file line number Diff line number Diff line change @@ -3,8 +3,8 @@ name: api-syncagent
33description : A Kubernetes agent to synchronize APIs and their objects between Kubernetes clusters and kcp.
44
55# version information
6- version : 0.3.1
7- appVersion : " v0.3 .0"
6+ version : 0.4.0
7+ appVersion : " v0.4 .0"
88
99# optional metadata
1010type : application
Original file line number Diff line number Diff line change 3333 args :
3434 - --namespace=$(POD_NAMESPACE)
3535 - --enable-leader-election={{ .Values.enableLeaderElection }}
36- - --apiexport-ref=$(APIEXPORT_REF)
36+ {{- with .Values.apiExportEndpointSliceName }}
37+ - --apiexportendpointslice-ref={{ . }}
38+ {{- else with .Values.apiExportName }}
39+ - --apiexport-ref={{ . }}
40+ {{- else }}
41+ {{- required "Either an APIExportEndpointSliceRef or APIExportRef must be configured." "" }}
42+ {{- end }}
3743 - --agent-name=$(AGENT_NAME)
3844 - --kcp-kubeconfig=/etc/api-syncagent/kcp/kubeconfig
3945 {{- with .Values.kubeconfig }}
6066 fieldRef :
6167 apiVersion : v1
6268 fieldPath : metadata.namespace
63- - name : APIEXPORT_REF
64- value : ' {{ required "APIExport name must be configured" .Values.apiExportName }}'
6569 - name : AGENT_NAME
6670 value : ' {{ template "agentname" . }}'
6771 image : " {{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}"
9094 volumes :
9195 - name : kcp-kubeconfig
9296 secret :
93- secretName : ' {{ required "Kubernetes Secret for the kcp kubeconfig must be configured" .Values.kcpKubeconfig }}'
97+ secretName : ' {{ required "Kubernetes Secret for the kcp kubeconfig must be configured. " .Values.kcpKubeconfig }}'
9498 {{- with .Values.kubeconfig }}
9599 - name : cluster-kubeconfig
96100 secret :
Original file line number Diff line number Diff line change @@ -7,15 +7,25 @@ global:
77 # or
88 # - "image-pull-secret"
99
10- # Required: the name of the APIExport in kcp that this Sync Agent is supposed to serve.
11- apiExportName : " "
10+ # Required: You need to configure a reference to an APIExportEndpointSlice so the
11+ # agent knows which API to serve and where to connect to. For kcp 0.27, you can
12+ # also instead configure an APIExport, but this is not recommended and could cause
13+ # issues when upgrading kcp.
14+ apiExportEndpointSliceName : " "
15+
16+ # Alternatively: the name of the APIExport in kcp that this Sync Agent is supposed
17+ # to serve. Configuring an APIExportEndpointSlice instead is recommended and
18+ # futureproof.
19+ # apiExportName: ""
1220
1321# This Agent's public name, purely for informational purposes. If not set, defaults
1422# to the Helm release name.
1523agentName : " "
1624
1725# Required: Name of the Kubernetes Secret that contains a "kubeconfig" key,
18- # with the kubeconfig provided by kcp to access it.
26+ # with the kubeconfig provided by kcp to access it. This kubeconfig must point
27+ # directly to the kcp cluster where the referenced object above
28+ # (APIExportEndpointSlice or APIExport) exist.
1929kcpKubeconfig : " "
2030
2131# Optional: Name of a Kubernetes Secret that contains a "kubeconfig" key,
You can’t perform that action at this time.
0 commit comments