components

package
v0.0.0-...-1d907cd Latest Latest
Warning

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

Go to latest
Published: Jan 11, 2024 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

View Source
const DeployDir = "components"

Variables

This section is empty.

Functions

func FindSecret

func FindSecret(client runtimeClient.Client, name, ns string) (*corev1.Secret, error)

func HashValue

func HashValue(bytes []byte) string

Types

type Component

type Component interface {
	Validate() validation.Result
	Resources(builder *K8sResourceBuilder) (resourcesToApply []client.Object, resourcesToDelete []client.Object, error error)
	Name() string
}

type K8sResourceBuilder

type K8sResourceBuilder struct {
	// contains filtered or unexported fields
}

func NewK8sResourceBuilder

func NewK8sResourceBuilder(crResourcePatches patch.Patch) *K8sResourceBuilder

func (*K8sResourceBuilder) Build

func (rb *K8sResourceBuilder) Build(fs fs.FS, componentName string, enabled bool, managerUID string, componentResourcePatches patch.Patch, data any) ([]client.Object, []client.Object, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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