Skip to content

Commit 8565563

Browse files
authored
Merge pull request #167 from xrstf/agent04
update api-syncagent chart for v0.4.0
2 parents f2e1429 + 61c7701 commit 8565563

File tree

3 files changed

+23
-9
lines changed

3 files changed

+23
-9
lines changed

charts/api-syncagent/Chart.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ name: api-syncagent
33
description: 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
1010
type: application

charts/api-syncagent/templates/deployment.yaml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,13 @@ spec:
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 }}
@@ -60,8 +66,6 @@ spec:
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 }}"
@@ -90,7 +94,7 @@ spec:
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:

charts/api-syncagent/values.yaml

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff 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.
1523
agentName: ""
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.
1929
kcpKubeconfig: ""
2030

2131
# Optional: Name of a Kubernetes Secret that contains a "kubeconfig" key,

0 commit comments

Comments
 (0)