Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var BootstrapCmd = cli.Command{ Name: "bootstrap", Usage: "Bootstraps the gitops controller", UsageText: `stack bootstrap --single-env --gitops-repo-url git@github.com:<user>/<repo>.git`, Action: gitops.Bootstrap, Flags: []cli.Flag{ &cli.StringFlag{ Name: "env", Usage: "environment to bootstrap", }, &cli.BoolFlag{ Name: "single-env", Usage: "if the repo holds manifests from a single environment", }, &cli.StringFlag{ Name: "gitops-repo-url", Usage: "URL of the gitops repo (mandatory)", Required: true, }, &cli.StringFlag{ Name: "gitops-repo-path", Usage: "path to the working copy of the gitops repo, default: current dir", }, &cli.BoolFlag{ Name: "no-controller", Usage: "to not bootstrap the FluxV2 gitops controller, only the GitRepository and Kustomization to add a new source", }, }, }
View Source
var ConfigureCmd = cli.Command{ Name: "configure", Usage: "Configures Kubernetes resources and writes a stack.yaml", UsageText: `stack configure`, Action: configure, Flags: []cli.Flag{ &cli.StringFlag{ Name: "config", Aliases: []string{"c"}, }, &cli.StringFlag{ Name: "stack-repo", Aliases: []string{"r"}, }, }, }
View Source
var GenerateCmd = cli.Command{ Name: "generate", Usage: "Generates Kubernetes resources from stack.yaml", UsageText: `stack generate`, Action: generate, Flags: []cli.Flag{ &cli.StringFlag{ Name: "config", Aliases: []string{"c"}, }, }, }
View Source
var LintCmd = cli.Command{ Name: "lint", Usage: "Lints the stack.yaml file", UsageText: `stack lint`, Action: lint, Flags: []cli.Flag{ &cli.StringFlag{ Name: "config", Aliases: []string{"c"}, Usage: "stack.yaml to lint", }, }, }
View Source
var UpdateCmd = cli.Command{ Name: "update", Usage: "Updates the stack version in stack.yaml", UsageText: `stack update`, Action: update, Flags: []cli.Flag{ &cli.StringFlag{ Name: "config", Aliases: []string{"c"}, }, &cli.BoolFlag{ Name: "check", }, &cli.StringFlag{ Name: "output", Aliases: []string{"o"}, Usage: "output format, eg.: json", }, }, }
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.