reqhelpers

package
v0.0.93 Latest Latest
Warning

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

Go to latest
Published: Apr 13, 2020 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddGitRequirementsOptions

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

AddGitRequirementsOptions adds git specific overrides to the given requirements

func AddRequirementsFlagsOptions

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

AddRequirementsFlagsOptions add CLI options to the flags

func AddRequirementsOptions

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

AddRequirementsOptions add CLI flags to the requirements

func FindGitURL

func FindGitURL(jxFactory jxfactory.Factory) (string, error)

FindGitURL tries to find the git URL via either environment or directory

func FindRequirementsAndGitURL

func FindRequirementsAndGitURL(jxFactory jxfactory.Factory, gitURLOption string, gitter gits.Gitter, dir string) (*config.RequirementsConfig, string, error)

FindRequirementsAndGitURL tries to find the requirements and git URL via either environment or directory

func FlagChanged

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

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

GetRequirementsFromGit clones the given git repository to get the requirements

func OverrideRequirements

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

OverrideRequirements allows CLI overrides

func ValidateApps

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

ValidateApps validates the apps match the requirements

Types

type RequirementFlags

type RequirementFlags struct {
	Repository                                                      string
	IngressKind                                                     string
	SecretStorage                                                   string
	AutoUpgrade, EnvironmentGitPublic, GitPublic, EnvironmentRemote bool
	GitOps, Kaniko, Terraform, 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