Documentation ¶
Index ¶
- func AddGitRequirementsOptions(cmd *cobra.Command, r *config.RequirementsConfig)
- func AddRequirementsFlagsOptions(cmd *cobra.Command, flags *RequirementFlags)
- func AddRequirementsOptions(cmd *cobra.Command, r *config.RequirementsConfig)
- func FindGitURL(jxFactory jxfactory.Factory) (string, error)
- func FindRequirementsAndGitURL(jxFactory jxfactory.Factory, gitURLOption string, gitter gits.Gitter, ...) (*config.RequirementsConfig, string, error)
- func FlagChanged(cmd *cobra.Command, name string) bool
- func GetBootJobCommand(requirements *config.RequirementsConfig, gitURL string, chartName string, ...) util.Command
- func GetDevEnvironmentConfig(requirements *config.RequirementsConfig) *config.EnvironmentConfig
- func GetRequirementsFromEnvironment(kubeClient kubernetes.Interface, jxClient versioned.Interface, ...) (*v1.Environment, *config.RequirementsConfig, error)
- func GetRequirementsFromGit(gitURL string) (*config.RequirementsConfig, error)
- func OverrideRequirements(cmd *cobra.Command, args []string, dir string, ...) error
- func ValidateApps(dir string) (*config.AppConfig, string, error)
- type RequirementFlags
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 ¶
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 ¶
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
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