action

package
v0.0.0-...-bb2f907 Latest Latest
Warning

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

Go to latest
Published: Jul 24, 2023 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

View Source
const SEPARATOR = "+"

SEPARATOR used while creating resourceNames to store in etcd

Variables

This section is empty.

Functions

func UpdateAppContext

func UpdateAppContext(ctx context.Context, intent, appContextID string) error

UpdateAppContext creates/updates the k8s resources in the given appContext and intent

Types

type ConfigMap

type ConfigMap struct {
	APIVersion string            `yaml:"apiVersion"`
	Kind       string            `yaml:"kind"`
	MetaData   MetaData          `yaml:"metadata"`
	Data       map[string]string `yaml:"data,omitempty"`
}

ConfigMap holds the configuration data for pods to consume

type MetaData

type MetaData struct {
	Name        string            `yaml:"name"`
	Namespace   string            `yaml:"namespace,omitempty"`
	Annotations map[string]string `yaml:"annotations,omitempty"`
}

MetaData holds the object Name, Namespace and Annotations

type Secret

type Secret struct {
	APIVersion string            `yaml:"apiVersion"`
	Kind       string            `yaml:"kind"`
	MetaData   MetaData          `yaml:"metadata"`
	Type       string            `yaml:"type"`
	Data       map[string]string `yaml:"data"`
}

Secret holds secret data of a certain type

type UpdateOptions

type UpdateOptions struct {
	Customization module.Customization

	CustomizationContent module.CustomizationContent

	ObjectKind string
	Resource   module.Resource
	// contains filtered or unexported fields
}

UpdateOptions

func (*UpdateOptions) MergePatch

func (o *UpdateOptions) MergePatch(original []byte) ([]byte, error)

MergePatch merge the original document with the patch content based on the patch type

Jump to

Keyboard shortcuts

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