diff --git a/pkg/cluster/internal/create/actions/createworker/provider.go b/pkg/cluster/internal/create/actions/createworker/provider.go index 511a4901c5..ae96189ce5 100644 --- a/pkg/cluster/internal/create/actions/createworker/provider.go +++ b/pkg/cluster/internal/create/actions/createworker/provider.go @@ -228,7 +228,6 @@ func (p *Provider) getAllowCAPXEgressIMDSGNetPol() (string, error) { func deployClusterOperator(n nodes.Node, keosCluster commons.KeosCluster, clusterCredentials commons.ClusterCredentials, keosRegistry keosRegistry, kubeconfigPath string) error { var c string var err error - var jsonDockerRegistriesCredentials []byte var helmRepository helmRepository if kubeconfigPath == "" { @@ -252,13 +251,6 @@ func deployClusterOperator(n nodes.Node, keosCluster commons.KeosCluster, cluste if err != nil { return errors.Wrap(err, "failed to write the keoscluster file") } - // Prepare docker registries credentials - if clusterCredentials.DockerRegistriesCredentials != nil { - jsonDockerRegistriesCredentials, err = json.Marshal(clusterCredentials.DockerRegistriesCredentials) - if err != nil { - return errors.Wrap(err, "failed to marshal docker registries credentials") - } - } // Add helm repository helmRepository.url = keosCluster.Spec.HelmRepository.URL if keosCluster.Spec.HelmRepository.AuthRequired { @@ -288,7 +280,7 @@ func deployClusterOperator(n nodes.Node, keosCluster commons.KeosCluster, cluste // Create the docker registries credentials secret for keoscluster-controller-manager if clusterCredentials.DockerRegistriesCredentials != nil { - jsonDockerRegistriesCredentials, err = json.Marshal(clusterCredentials.DockerRegistriesCredentials) + jsonDockerRegistriesCredentials, err := json.Marshal(clusterCredentials.DockerRegistriesCredentials) if err != nil { return errors.Wrap(err, "failed to marshal docker registries credentials") } @@ -570,10 +562,10 @@ spec: unhealthyConditions: - type: Ready status: Unknown - timeout: 60s + timeout: 180s - type: Ready status: 'False' - timeout: 60s` + timeout: 180s` c = "echo \"" + machineHealthCheck + "\" > " + manifestPath _, err = commons.ExecuteCommand(n, c)