v1alpha1

package
v0.25.0 Latest Latest
Warning

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

Go to latest
Published: May 10, 2023 License: Apache-2.0 Imports: 3 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Environment added in v0.13.0

type Environment struct {
	APIVersion string      `json:"apiVersion"`
	Kind       string      `json:"kind"`
	Metadata   Metadata    `json:"metadata"`
	Spec       Spec        `json:"spec"`
	Data       interface{} `json:"data,omitempty"`
}

Environment represents a set of resources in relation to its Kubernetes cluster

func New

func New() *Environment

New creates a new Environment object with internal values already set

type ExpectVersions added in v0.12.0

type ExpectVersions struct {
	Tanka string `json:"tanka,omitempty"`
}

ExpectVersions holds semantic version constraints TODO: extend this to handle more than Tanka

type Metadata

type Metadata struct {
	Name      string            `json:"name,omitempty"`
	Namespace string            `json:"namespace,omitempty"`
	Labels    map[string]string `json:"labels,omitempty"`
}

Metadata is meant for humans and not parsed

func (Metadata) Get added in v0.11.0

func (m Metadata) Get(label string) (value string)

Get implements Get for labels.Labels interface

func (Metadata) Has added in v0.11.0

func (m Metadata) Has(label string) (exists bool)

Has and Get make Metadata a simple wrapper for labels.Labels to use our map in their querier

func (Metadata) NameLabel added in v0.10.0

func (m Metadata) NameLabel() string

type ResourceDefaults added in v0.12.0

type ResourceDefaults struct {
	Annotations map[string]string `json:"annotations,omitempty"`
	Labels      map[string]string `json:"labels,omitempty"`
}

ResourceDefaults will be inserted in any manifests that tanka processes.

type Spec

type Spec struct {
	APIServer        string           `json:"apiServer,omitempty"`
	ContextNames     []string         `json:"contextNames,omitempty"`
	Namespace        string           `json:"namespace"`
	DiffStrategy     string           `json:"diffStrategy,omitempty"`
	ApplyStrategy    string           `json:"applyStrategy,omitempty"`
	InjectLabels     bool             `json:"injectLabels,omitempty"`
	ResourceDefaults ResourceDefaults `json:"resourceDefaults"`
	ExpectVersions   ExpectVersions   `json:"expectVersions"`
}

Spec defines Kubernetes properties

Jump to

Keyboard shortcuts

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