add grpc config into the bootstrap secret (#1194)
Some checks failed
Post / coverage (push) Failing after 27s
Post / images (amd64, addon-manager) (push) Failing after 21s
Post / images (amd64, placement) (push) Failing after 23s
Post / images (amd64, registration) (push) Failing after 18s
Post / images (amd64, registration-operator) (push) Failing after 22s
Post / images (amd64, work) (push) Failing after 23s
Post / images (arm64, addon-manager) (push) Failing after 25s
Post / images (arm64, placement) (push) Failing after 21s
Post / images (arm64, registration) (push) Failing after 27s
Post / images (arm64, registration-operator) (push) Failing after 28s
Post / images (arm64, work) (push) Failing after 21s
Post / image manifest (addon-manager) (push) Has been skipped
Post / image manifest (placement) (push) Has been skipped
Post / image manifest (registration) (push) Has been skipped
Post / image manifest (registration-operator) (push) Has been skipped
Post / image manifest (work) (push) Has been skipped
Post / trigger clusteradm e2e (push) Has been skipped
Scorecard supply-chain security / Scorecard analysis (push) Failing after 33s
Close stale issues and PRs / stale (push) Failing after 31s

Signed-off-by: Zhiwei Yin <zyin@redhat.com>
This commit is contained in:
Zhiwei Yin
2025-09-24 11:35:31 +08:00
committed by GitHub
parent 010f5efe6d
commit 35bab4476a
4 changed files with 33 additions and 0 deletions

View File

@@ -22,4 +22,7 @@ metadata:
type: Opaque
data:
kubeconfig: "{{ .Values.bootstrapHubKubeConfig | b64enc }}"
{{- if .Values.grpcConfig }}
config.yaml: "{{ .Values.grpcConfig | b64enc }}"
{{- end }}
{{- end }}

View File

@@ -78,6 +78,10 @@ enableSyncLabels: false
# should be the kubeConfig file of the hub cluster via setting --set-file=<the kubeConfig file of hub cluster> optional
bootstrapHubKubeConfig: ""
# grpcConfig includes the information needed to build connect to gRPC server in the bootstrap secret for
# cluster importing via setting --set-file=<the grpc config file> optional.
grpcConfig: ""
# when MultipleHubs feature gate in klusterlet.registrationConfiguration is enabled, could set multiple bootstrap hub kubeConfigs here.
# otherwise can create these kubeConfig secret in the klusterlet.namespace manually on the managed cluster.
multiHubBootstrapHubKubeConfigs: