mirror of
https://github.com/rancher/rke.git
synced 2025-09-16 15:10:12 +00:00
consider service options based on hostOS info
This commit is contained in:
committed by
Alena Prokharchyk
parent
d6b29c9ccc
commit
9411027476
@@ -132,7 +132,7 @@ func showRKECertificatesFromCli(ctx *cli.Context) error {
|
||||
|
||||
func rebuildClusterWithRotatedCertificates(ctx context.Context,
|
||||
dialersOptions hosts.DialersOptions,
|
||||
flags cluster.ExternalFlags, svcOptions *v3.KubernetesServicesOptions) (string, string, string, string, map[string]pki.CertificatePKI, error) {
|
||||
flags cluster.ExternalFlags, svcOptionData map[string]*v3.KubernetesServicesOptions) (string, string, string, string, map[string]pki.CertificatePKI, error) {
|
||||
var APIURL, caCrt, clientCert, clientKey string
|
||||
log.Infof(ctx, "Rebuilding Kubernetes cluster with rotated certificates")
|
||||
clusterState, err := cluster.ReadStateFile(ctx, cluster.GetStateFilePath(flags.ClusterFilePath, flags.ConfigDir))
|
||||
@@ -185,7 +185,7 @@ func rebuildClusterWithRotatedCertificates(ctx context.Context,
|
||||
}
|
||||
if isLegacyKubeAPI {
|
||||
log.Infof(ctx, "[controlplane] Redeploying controlplane to update kubeapi parameters")
|
||||
if err := kubeCluster.DeployControlPlane(ctx, svcOptions); err != nil {
|
||||
if err := kubeCluster.DeployControlPlane(ctx, svcOptionData); err != nil {
|
||||
return APIURL, caCrt, clientCert, clientKey, nil, err
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user