Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(deploy): Expose the entrypoint flag #1868

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions internal/cli/kraft/cloud/deploy/deploy.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ import (
"time"

"github.com/MakeNowJust/heredoc"
"github.com/compose-spec/compose-go/v2/types"
"github.com/spf13/cobra"

"kraftkit.sh/cmdfactory"
Expand All @@ -40,6 +41,7 @@ type DeployOptions struct {
DeployAs string `local:"true" long:"as" short:"D" usage:"Set the deployment type"`
Domain []string `local:"true" long:"domain" short:"d" usage:"Set the domain names for the service"`
DotConfig string `long:"config" short:"c" usage:"Override the path to the KConfig .config file"`
Entrypoint types.ShellCommand `local:"true" long:"entrypoint" usage:"Set the entrypoint for the instance"`
Env []string `local:"true" long:"env" short:"e" usage:"Environmental variables"`
Features []string `local:"true" long:"feature" usage:"Specify the special features to enable"`
Follow bool `local:"true" long:"follow" short:"f" usage:"Follow the logs of the instance"`
Expand Down
1 change: 1 addition & 0 deletions internal/cli/kraft/cloud/deploy/deployer_image_name.go
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,7 @@ func (deployer *deployerImageName) Deploy(ctx context.Context, opts *DeployOptio
func(ctx context.Context) error {
insts, groups, err = instancecreate.Create(ctx, &instancecreate.CreateOptions{
Certificate: opts.Certificate,
Entrypoint: opts.Entrypoint,
Env: opts.Env,
Features: opts.Features,
Domain: opts.Domain,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,7 @@ func (deployer *deployerKraftfileRuntime) Deploy(ctx context.Context, opts *Depl
Certificate: opts.Certificate,
Env: opts.Env,
Domain: opts.Domain,
Entrypoint: opts.Entrypoint,
Image: packs[0].ID(),
Memory: opts.Memory,
Metro: opts.Metro,
Expand Down
Loading