Documentation ¶
Index ¶
- Variables
- func Execute()
- func FilePathWalkDir(root string) ([]string, error)
- func GenerateKustomizeResult(kustomizeTemplate template.Kustomize, options *GenerateKustomizeResultOptions) (string, error)
- func GetDatabaseConfigurationFromCluster(c *kubernetes.Clientset) (database *opConfig.Database, err error)
- func HumanizeKustomizeError(err error) string
- func TemplateFromSimpleOverlayedComponents(comps []*opConfig.SimpleOverlayedComponent) template.Kustomize
- type GenerateKustomizeResultOptions
- type ProviderProperties
Constants ¶
This section is empty.
Variables ¶
var ( ConfigurationFilePath string ParametersFilePath string Provider string DNS string ArtifactRepositoryProvider string Dev bool EnableEFKLogging bool EnableHTTPS bool EnableCertManager bool EnableMetalLb bool DisableServing bool Database bool GPUDevicePlugins []string Services []string )
var ( // ServiceAccountName is the "username" we show to the user. We look up this value in k8s ServiceAccountName string )
Functions ¶
func Execute ¶
func Execute()
Execute adds all child commands to the root command and sets flags appropriately. This is called by main.main(). It only needs to happen once to the rootCmd.
func FilePathWalkDir ¶
FilePathWalkDir goes through a directory and finds all of the files under it, including subdirectories
func GenerateKustomizeResult ¶
func GenerateKustomizeResult(kustomizeTemplate template.Kustomize, options *GenerateKustomizeResultOptions) (string, error)
GenerateKustomizeResult Given the path to the manifests, and a kustomize config, creates the final kustomization file. It does this by copying the manifests into a temporary directory, inserting the kustomize template and running the kustomize command
func GetDatabaseConfigurationFromCluster ¶ added in v1.0.0
func GetDatabaseConfigurationFromCluster(c *kubernetes.Clientset) (database *opConfig.Database, err error)
GetDatabaseConfigurationFromCluster attempts to load the database configuration from a deployed cluster If there is no configuration (not found) no error is returned
func HumanizeKustomizeError ¶ added in v0.16.0
HumanizeKustomizeError takes errors returned from GenerateKustomizeResult and returns them in a human friendly string
func TemplateFromSimpleOverlayedComponents ¶
func TemplateFromSimpleOverlayedComponents(comps []*opConfig.SimpleOverlayedComponent) template.Kustomize
Types ¶
type GenerateKustomizeResultOptions ¶ added in v1.0.0
GenerateKustomizeResultOptions is configuration for the GenerateKustomizeResult function
type ProviderProperties ¶
type ProviderProperties struct {
IsCloud bool
}
ProviderProperties are data associated with various providers, like microk8s vs eks