components

package
v1.0.18 Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2024 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultComponents = types.Components{
	Addons: []types.Addon{
		{
			Name:      "example-server",
			Kind:      constants.AddonChart,
			Enabled:   true,
			Namespace: "default",
			Chart: &types.ChartInfo{
				Name:    "nginx",
				Repo:    "https://charts.bitnami.com/bitnami",
				Version: "15.1.1",
				Values:  ConvertValues([]byte(valueString)),
			},
		},
	},
}

Functions

func ApplyBlueprint

func ApplyBlueprint(kubeConfig *k8s.KubeConfig, cluster *types.Blueprint) error

ApplyBlueprint applies a Blueprint object to the cluster

func ConvertValues

func ConvertValues(in []byte) *apiextensionsv1.JSON

ConvertValues converts a byte slice to a JSON object

func Encode

func Encode(blueprint types.Blueprint) error

func RemoveComponents

func RemoveComponents(kubeConfig *k8s.KubeConfig, cluster *types.Blueprint) error

RemoveComponents removes all components from the cluster

Types

This section is empty.

Jump to

Keyboard shortcuts

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