reqhelpers

package
v0.1.10 Latest Latest
Warning

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

Go to latest
Published: May 8, 2022 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const (
	GKE        = "gke"
	OKE        = "oke"
	EKS        = "eks"
	AKS        = "aks"
	AWS        = "aws"
	PKS        = "pks"
	IKS        = "iks"
	KUBERNETES = "kubernetes"
	OPENSHIFT  = "openshift"
	ICP        = "icp"
	JXINFRA    = "jx-infra"
	ALIBABA    = "alibaba"
)

Variables

View Source
var KubernetesProviders = []string{GKE, OKE, AKS, AWS, EKS, KUBERNETES, IKS, OPENSHIFT, JXINFRA, PKS, ICP, ALIBABA}

KubernetesProviders list of all available Kubernetes providers

Functions

func FlagChanged

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

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

func GetDevEnvironmentConfig

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

GetDevEnvironmentConfig returns the dev environment for the given requirements or nil

func GitKind

GitKind returns the git kind for the development environment or empty string if it can't be found

func KubernetesProviderOptions

func KubernetesProviderOptions() string

KubernetesProviderOptions returns all the Kubernetes providers as a string

func OverrideRequirements

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

OverrideRequirements allows CLI overrides

Types

type RequirementFlags

type RequirementFlags struct {
	Repository                                                      string
	IngressKind                                                     string
	SecretStorage                                                   string
	AutoUpgrade, EnvironmentGitPublic, GitPublic, EnvironmentRemote bool
	TLS                                                             bool
	Canary, HPA                                                     bool
	VaultRecreateBucket, VaultDisableURLDiscover                    bool
	LogsURL                                                         string
	BackupsURL                                                      string
	ReportsURL                                                      string
	RepositoryURL                                                   string
}

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