customization

package
v0.11.5 Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2023 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AdminConsole

type AdminConsole struct{}

AdminConsole is a struct that contains the actions to create and update the admin console customization found inside the binary. This is necessary for backwards compatibility with older versions of embedded-cluster.

func (AdminConsole) Application

func (a AdminConsole) Application() ([]byte, error)

Application reads and returns the kots application embedded as part of the release. If no application is found, returns nil and no error. This function does not unmarshal the application yaml.

func (AdminConsole) EmbeddedClusterConfig

func (a AdminConsole) EmbeddedClusterConfig() (*embeddedclusterv1beta1.Config, error)

EmbeddedClusterConfig reads the embedded cluster config from the embedded Kots Application Release.

func (AdminConsole) ExtractCustomization

func (a AdminConsole) ExtractCustomization() (*ParsedSection, error)

ExtractCustomization will extract the customization from the binary if it exists. The customization is expected to be found in the sec_bundle section of the binary.

func (AdminConsole) HostPreflights

func (a AdminConsole) HostPreflights() (*v1beta2.HostPreflightSpec, error)

HostPreflights returns a list of HostPreflight specs that are found in the binary. These are part of the embedded Kots Application Release.

func (AdminConsole) License

func (a AdminConsole) License() (*v1beta1.License, error)

License reads the kots license from the embedded Kots Application Release. If no license is found, returns nil and no error.

type ParsedSection

type ParsedSection struct {
	Application           []byte
	HostPreflights        [][]byte
	License               []byte
	EmbeddedClusterConfig []byte
}

ParsedSection holds the parsed section from the binary. We only care about the application object, whatever HostPreflight we can find, and the app License.

Jump to

Keyboard shortcuts

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