reqhelpers

package
v0.0.46 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 6, 2020 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddGitRequirementsOptions added in v0.0.39

func AddGitRequirementsOptions(cmd *cobra.Command, r *config.RequirementsConfig)

AddGitRequirementsOptions adds git specific overrides to the given requirements

func AddRequirementsFlagsOptions added in v0.0.39

func AddRequirementsFlagsOptions(cmd *cobra.Command, flags *RequirementBools)

AddRequirementsFlagsOptions add CLI options to the flags

func AddRequirementsOptions added in v0.0.39

func AddRequirementsOptions(cmd *cobra.Command, r *config.RequirementsConfig)

AddRequirementsOptions add CLI flags to the requirements

func FlagChanged added in v0.0.39

func FlagChanged(cmd *cobra.Command, name string) bool

FlagChanged returns true if the given flag was supplied on the command line

func GetBootJobCommand

func GetBootJobCommand(requirements *config.RequirementsConfig, gitURL string) util.Command

GetBootJobCommand returns the boot job command

func GetDevEnvironmentConfig

func GetDevEnvironmentConfig(requirements *config.RequirementsConfig) *config.EnvironmentConfig

GetDevEnvironmentConfig returns the dev environment for the given requirements or nil

func GetRequirementsFromEnvironment

func GetRequirementsFromEnvironment(kubeClient kubernetes.Interface, jxClient versioned.Interface, namespace string) (*v1.Environment, *config.RequirementsConfig, error)

GetRequirementsFromEnvironment tries to find the development environment then the requirements from it

func GetRequirementsFromGit added in v0.0.34

func GetRequirementsFromGit(gitURL string) (*config.RequirementsConfig, error)

GetRequirementsFromGit clones the given git repository to get the requirements

func OverrideRequirements added in v0.0.39

func OverrideRequirements(cmd *cobra.Command, args []string, dir string, outputRequirements *config.RequirementsConfig, flags *RequirementBools) error

OverrideRequirements

Types

type RequirementBools added in v0.0.39

type RequirementBools struct {
	AutoUpgrade, EnvironmentGitPublic, GitPublic, EnvironmentRemote, GitOps, Kaniko, Terraform bool
	VaultRecreateBucket, VaultDisableURLDiscover                                               bool
}

RequirementBools for the boolean flags we only update if specified on the CLI

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL