Documentation ¶
Index ¶
- func FixUpYAML(inputContent []byte) ([]byte, error)
- func LoadBackupFromContents(content []byte) (*velerov1.Backup, error)
- func LoadConfigValuesFromFile(configValuesFilePath string) (*kotsv1beta1.ConfigValues, error)
- func LoadInstallationFromPath(installationFilePath string) (*kotsv1beta1.Installation, error)
- func LoadLicenseFromBytes(data []byte) (*kotsv1beta1.License, error)
- func LoadLicenseFromPath(licenseFilePath string) (*kotsv1beta1.License, error)
- func LoadPreflightFromContents(content []byte) (*troubleshootv1beta1.Preflight, error)
- type KotsKinds
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FixUpYAML ¶ added in v1.14.0
FixUpYAML is a general purpose function that will ensure that YAML is copmatible with KOTS This ensures that lines aren't wrapped at 80 chars which breaks template functions
func LoadBackupFromContents ¶ added in v1.15.0
func LoadConfigValuesFromFile ¶
func LoadConfigValuesFromFile(configValuesFilePath string) (*kotsv1beta1.ConfigValues, error)
func LoadInstallationFromPath ¶
func LoadInstallationFromPath(installationFilePath string) (*kotsv1beta1.Installation, error)
func LoadLicenseFromBytes ¶ added in v1.15.0
func LoadLicenseFromBytes(data []byte) (*kotsv1beta1.License, error)
func LoadLicenseFromPath ¶
func LoadLicenseFromPath(licenseFilePath string) (*kotsv1beta1.License, error)
func LoadPreflightFromContents ¶ added in v1.14.0
func LoadPreflightFromContents(content []byte) (*troubleshootv1beta1.Preflight, error)
Types ¶
type KotsKinds ¶
type KotsKinds struct { KotsApplication kotsv1beta1.Application Application *applicationv1beta1.Application Collector *troubleshootv1beta1.Collector Preflight *troubleshootv1beta1.Preflight Analyzer *troubleshootv1beta1.Analyzer Config *kotsv1beta1.Config ConfigValues *kotsv1beta1.ConfigValues Installation kotsv1beta1.Installation License *kotsv1beta1.License Backup *velerov1.Backup }
KotsKinds are all of the special "client-side" kinds that are packaged in an application. These should be pointers because they are all optional. But a few are still expected in the code later, so we make them not pointers, because other codepaths expect them to be present
func LoadKotsKindsFromPath ¶
func (*KotsKinds) DecryptConfigValues ¶ added in v1.15.0
func (*KotsKinds) EncryptConfigValues ¶ added in v1.15.0
func (KotsKinds) KustomizeVersion ¶ added in v1.15.0
KustomizeVersion will return the kustomize version to use for this application applying the default, if there is one, for the current version of kots
Click to show internal directories.
Click to hide internal directories.