cmd

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Oct 26, 2021 License: Apache-2.0 Imports: 34 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
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
)
View Source
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

func FilePathWalkDir(root string) ([]string, error)

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

func HumanizeKustomizeError(err error) string

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

type GenerateKustomizeResultOptions struct {
	Database *opConfig.Database
	Config   *opConfig.Config
}

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL