Skip to content

Commit

Permalink
fix the missing storageProvider mention
Browse files Browse the repository at this point in the history
Signed-off-by: Dipankar Das <[email protected]>
  • Loading branch information
dipankardas011 committed May 30, 2024
1 parent 185448c commit 7a96a1f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions cli/cmd/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ func createManaged(ctx context.Context, log types.LoggerFactory, approval bool)
cli.Client.Metadata.K8sDistro = consts.KsctlKubernetes(distro)
cli.Client.Metadata.K8sVersion = k8sVer
cli.Client.Metadata.Region = region
cli.Client.Metadata.StateLocation = consts.KsctlStore(storage)

cli.Client.Metadata.CNIPlugin = cni
cli.Client.Metadata.Applications = strings.Split(apps, ",")
Expand Down Expand Up @@ -57,6 +58,7 @@ func createHA(ctx context.Context, log types.LoggerFactory, approval bool) {
cli.Client.Metadata.NoCP = noCP
cli.Client.Metadata.NoWP = noWP
cli.Client.Metadata.NoDS = noDS
cli.Client.Metadata.StateLocation = consts.KsctlStore(storage)

cli.Client.Metadata.LoadBalancerNodeType = nodeSizeLB
cli.Client.Metadata.ControlPlaneNodeType = nodeSizeCP
Expand Down Expand Up @@ -93,6 +95,7 @@ func deleteManaged(ctx context.Context, log types.LoggerFactory, approval bool)
cli.Client.Metadata.ClusterName = clusterName
cli.Client.Metadata.K8sDistro = consts.KsctlKubernetes(distro)
cli.Client.Metadata.Region = region
cli.Client.Metadata.StateLocation = consts.KsctlStore(storage)

if err := deleteApproval(ctx, log, approval); err != nil {
log.Error(ctx, "deleteApproval", "Reason", err)
Expand Down Expand Up @@ -123,6 +126,7 @@ func deleteHA(ctx context.Context, log types.LoggerFactory, approval bool) {
cli.Client.Metadata.ClusterName = clusterName
cli.Client.Metadata.K8sDistro = consts.KsctlKubernetes(distro)
cli.Client.Metadata.Region = region
cli.Client.Metadata.StateLocation = consts.KsctlStore(storage)

if err := deleteApproval(ctx, log, approval); err != nil {
log.Error(ctx, "deleteApproval", "Reason", err)
Expand Down

0 comments on commit 7a96a1f

Please sign in to comment.