Documentation ¶
Index ¶
- func AddGitRequirementsOptions(cmd *cobra.Command, r *config.RequirementsConfig)
- func AddRequirementsFlagsOptions(cmd *cobra.Command, flags *RequirementBools)
- func AddRequirementsOptions(cmd *cobra.Command, r *config.RequirementsConfig)
- func FlagChanged(cmd *cobra.Command, name string) bool
- func GetBootJobCommand(requirements *config.RequirementsConfig, gitURL 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
- type RequirementBools
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
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