Skip to content

Commit

Permalink
fix(cloud): Populate rootfs deployer message for prompting (#1892)
Browse files Browse the repository at this point in the history
Reviewed-by: Alexander Jung <[email protected]>
Approved-by: Alexander Jung <[email protected]>
  • Loading branch information
nderjung authored Jan 21, 2025
2 parents 8845c81 + 3f817cc commit 6a836a7
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions internal/cli/kraft/cloud/deploy/deployer_rootfs.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,16 @@ import (
"kraftkit.sh/unikraft/target"
)

type deployerRootfs struct{}
type deployerRootfs struct {
opts *DeployOptions
}

func (deployer *deployerRootfs) Name() string {
return "rootfs"
}

func (deployer *deployerRootfs) String() string {
return ""
return fmt.Sprintf("run the supplied rootfs '%s' on '%s' runtime", deployer.opts.Rootfs, deployer.opts.Project.Runtime().Name())
}

func (deployer *deployerRootfs) Deployable(ctx context.Context, opts *DeployOptions, args ...string) (bool, error) {
Expand Down Expand Up @@ -103,6 +105,8 @@ func (deployer *deployerRootfs) Deployable(ctx context.Context, opts *DeployOpti
}
}

deployer.opts = opts

return true, nil
}

Expand Down

0 comments on commit 6a836a7

Please sign in to comment.