Documentation ¶
Index ¶
- Constants
- Variables
- func FlagChanged(cmd *cobra.Command, name string) bool
- func GetDevEnvironmentConfig(requirements *jxcore.RequirementsConfig) *jxcore.EnvironmentConfig
- func GitKind(devSource v1.EnvironmentRepository, r *jxcore.RequirementsConfig) string
- func KubernetesProviderOptions() string
- func OverrideRequirements(cmd *cobra.Command, args []string, dir, customRequirementsFile string, ...) error
- type RequirementFlags
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 ¶
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 ¶
func GitKind(devSource v1.EnvironmentRepository, r *jxcore.RequirementsConfig) string
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
Click to show internal directories.
Click to hide internal directories.