Skip to content

Commit f12bb8b

Browse files
authored
chore: expose klusterlet values in fleetconfig chart (#42)
* chore: expose klusterlet values in fleetconfig chart Signed-off-by: Artur Shad Nik <[email protected]> * fix: check for nil value Signed-off-by: Artur Shad Nik <[email protected]> --------- Signed-off-by: Artur Shad Nik <[email protected]>
1 parent 49fa89f commit f12bb8b

File tree

4 files changed

+10
-3
lines changed

4 files changed

+10
-3
lines changed

fleetconfig-controller/build/Dockerfile.devspace

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,8 @@ RUN apk add --no-cache bash curl python3 py3-pip
1616
RUN go install github.com/go-delve/delve/cmd/dlv@latest
1717

1818
# Install clusteradm
19-
RUN curl -L https://raw.githubusercontent.com/open-cluster-management-io/clusteradm/main/install.sh | bash
19+
ARG CLUSTERADM_VERSION=1.0.1
20+
RUN curl -L https://raw.githubusercontent.com/open-cluster-management-io/clusteradm/main/install.sh | bash -s -- ${CLUSTERADM_VERSION}
2021

2122
# Install aws-iam-authenticator if building for EKS
2223
ARG AWSIAMAUTH_VERSION=0.7.2

fleetconfig-controller/charts/fleetconfig-controller/README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,7 @@ Refer to the [Multicluster Controlplane configuration](https://github.com/open-c
100100
| `fleetConfig.spokes[0].klusterlet.forceInternalEndpointLookupManaged` | If true, the klusterlet accesses the managed cluster using the internal endpoint from the public cluster-info in the managed cluster instead of using managedClusterKubeconfig. | `false` |
101101
| `fleetConfig.spokes[0].klusterlet.resources` | Resource specifications for all klusterlet-managed containers. | `{}` |
102102
| `fleetConfig.spokes[0].klusterlet.singleton` | If true, deploy klusterlet in singleton mode, with registration and work agents running in a single pod. This is an alpha stage flag. | `false` |
103+
| `fleetConfig.spokes[0].klusterlet.values` | Values to pass to the klusterlet Helm chart. | `{}` |
103104

104105
### Topology Resources
105106

@@ -115,7 +116,7 @@ Refer to the [Multicluster Controlplane configuration](https://github.com/open-c
115116
| `replicas` | fleetconfig-controller replica count | `1` |
116117
| `imageRegistry` | Image registry | `""` |
117118
| `image.repository` | Image repository | `quay.io/open-cluster-management/fleetconfig-controller` |
118-
| `image.tag` | Image tag | `v0.0.9` |
119+
| `image.tag` | Image tag | `v0.0.10` |
119120
| `image.pullPolicy` | Image pull policy | `IfNotPresent` |
120121
| `imagePullSecrets` | Image pull secrets | `[]` |
121122
| `serviceAccount.annotations` | Annotations to add to the service account | `{}` |

fleetconfig-controller/charts/fleetconfig-controller/templates/fleetconfig.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,9 @@ spec:
7171
source:
7272
bundleVersion: {{ $.Values.fleetConfig.source.bundleVersion }}
7373
registry: {{ $.Values.fleetConfig.source.registry }}
74+
{{- if .klusterlet.values }}
75+
values: {{- toYaml .klusterlet.values | nindent 10 }}
76+
{{- end }}
7477
addOns: {{- toYaml .addOns | nindent 8 }}
7578
{{- end }}
7679
addOnConfigs: {{- toYaml .Values.fleetConfig.addOnConfigs | nindent 4 }}

fleetconfig-controller/charts/fleetconfig-controller/values.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -231,6 +231,8 @@ fleetConfig:
231231
# # Options: [ Default | BestEffort | ResourceRequirement ].
232232
# qosClass: "Default"
233233
singleton: false
234+
## @param fleetConfig.spokes[0].klusterlet.values Values to pass to the klusterlet Helm chart.
235+
values: {}
234236
# Add-on configuration for the spoke cluster.
235237
# ## @param fleetConfig.spokes[0].addOns[0].configName Name of the add-on to enable. Must match one of the configured add-on names in fleetConfig.addOnConfigs.
236238
# ## @param fleetConfig.spokes[0].addOns[0].installNamespace Namespace to install the add-on.
@@ -277,7 +279,7 @@ imageRegistry: ""
277279
## @param image.pullPolicy Image pull policy
278280
image:
279281
repository: quay.io/open-cluster-management/fleetconfig-controller
280-
tag: v0.0.9
282+
tag: v0.0.10
281283
pullPolicy: IfNotPresent
282284

283285
## @param imagePullSecrets Image pull secrets

0 commit comments

Comments
 (0)