specs

package
v0.0.0-...-5af6bcd Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2024 License: GPL-3.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MergePatch

func MergePatch[T any, I func(T) string, N func() T](base, patches []T, identifier I, create N) ([]T, error)

func MergePatchContainers

func MergePatchContainers(base, patches []core_v1.Container) ([]core_v1.Container, error)

func MergePatchVolumes

func MergePatchVolumes(base, patches []core_v1.Volume) ([]core_v1.Volume, error)

Types

type AppHandler

type AppHandler interface {
	Handle(app v1alpha1.AppSpec) (*manifest.AppManifests, error)
	Selector(app v1alpha1.AppSpec) labels.Selector
	Decorate(manifest *manifest.AppManifests, decorators ...Decorator)
}

func New

func New(provider provider.TemplateProvider, logger log.Logger) AppHandler

type Decorator

type Decorator func(manifest *manifest.AppManifests)

func ClusterNameEnvDecorator

func ClusterNameEnvDecorator(valueFunc func() string) Decorator

Jump to

Keyboard shortcuts

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