reqhelpers

package
v0.0.63 Latest Latest
Warning

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

Go to latest
Published: Mar 18, 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 *RequirementFlags)

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, chartName string, version 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 *RequirementFlags) error

OverrideRequirements allows CLI overrides

func ValidateApps added in v0.0.59

func ValidateApps(dir string) (*config.AppConfig, string, error)

ValidateApps validates the apps match the requirements

Types

type RequirementFlags added in v0.0.63

type RequirementFlags struct {
	Repository                                                      string
	IngressKind                                                     string
	AutoUpgrade, EnvironmentGitPublic, GitPublic, EnvironmentRemote bool
	GitOps, Kaniko, Terraform, ExternalDNS, TLS                     bool
	VaultRecreateBucket, VaultDisableURLDiscover                    bool
}

RequirementFlags 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