types

package
v1.108.11 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	CreationPhaseAnnotation     = "kots.io/creation-phase"
	DeletionPhaseAnnotation     = "kots.io/deletion-phase"
	WaitForReadyAnnotation      = "kots.io/wait-for-ready"
	WaitForPropertiesAnnotation = "kots.io/wait-for-properties"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type AppInformersArgs

type AppInformersArgs struct {
	AppID     string                               `json:"app_id"`
	Sequence  int64                                `json:"sequence"`
	Informers []appstatetypes.StatusInformerString `json:"informers"`
}

type DeployAppArgs

type DeployAppArgs struct {
	AppID                        string                `json:"app_id"`
	AppSlug                      string                `json:"app_slug"`
	ClusterID                    string                `json:"cluster_id"`
	Sequence                     int64                 `json:"sequence"`
	AdditionalNamespaces         []string              `json:"additional_namespaces"`
	ImagePullSecrets             []string              `json:"image_pull_secrets"`
	PreviousManifests            string                `json:"previous_manifests"`
	Manifests                    string                `json:"manifests"`
	PreviousV1Beta1ChartsArchive []byte                `json:"previous_charts"`
	V1Beta1ChartsArchive         []byte                `json:"charts"`
	PreviousV1Beta2ChartsArchive []byte                `json:"previous_v1beta2_charts"`
	V1Beta2ChartsArchive         []byte                `json:"v1beta2_charts"`
	Wait                         bool                  `json:"wait"`
	Action                       string                `json:"action"`
	ClearNamespaces              []string              `json:"clear_namespaces"`
	ClearPVCs                    bool                  `json:"clear_pvcs"`
	AnnotateSlug                 bool                  `json:"annotate_slug"`
	IsRestore                    bool                  `json:"is_restore"`
	RestoreLabelSelector         *metav1.LabelSelector `json:"restore_label_selector"`
	PreviousKotsKinds            *kotsutil.KotsKinds
	KotsKinds                    *kotsutil.KotsKinds
}

type Phase added in v1.100.0

type Phase struct {
	Name      string
	Resources Resources
}

type Phases added in v1.100.0

type Phases []Phase

type Resource added in v1.98.3

type Resource struct {
	Manifest     string
	GVR          schema.GroupVersionResource
	GVK          *schema.GroupVersionKind
	Unstructured *unstructured.Unstructured
	DecodeErrMsg string
}

func (Resource) GetGroup added in v1.98.3

func (r Resource) GetGroup() string

func (Resource) GetKind added in v1.98.3

func (r Resource) GetKind() string

func (Resource) GetName added in v1.98.3

func (r Resource) GetName() string

func (Resource) GetNamespace added in v1.98.3

func (r Resource) GetNamespace() string

func (Resource) GetVersion added in v1.98.3

func (r Resource) GetVersion() string

func (Resource) GetWaitForProperties added in v1.100.0

func (r Resource) GetWaitForProperties() []WaitForProperty

GetWaitForProperties returns the key value pairs in the `kots.io/wait-for-properties` annotation

func (Resource) ShouldWaitForProperties added in v1.100.0

func (r Resource) ShouldWaitForProperties() bool

func (Resource) ShouldWaitForReady added in v1.100.0

func (r Resource) ShouldWaitForReady() bool

type Resources added in v1.98.3

type Resources []Resource

func (Resources) GroupByKind added in v1.98.3

func (r Resources) GroupByKind() map[string]Resources

func (Resources) GroupByPhaseAnnotation added in v1.100.0

func (r Resources) GroupByPhaseAnnotation(annotation string) map[string]Resources

func (Resources) HasCRDs added in v1.98.3

func (r Resources) HasCRDs() bool

func (Resources) HasNamespaces added in v1.98.3

func (r Resources) HasNamespaces() bool

type UndeployAppArgs added in v1.98.3

type UndeployAppArgs struct {
	AppID                string                `json:"app_id"`
	AppSlug              string                `json:"app_slug"`
	ClusterID            string                `json:"cluster_id"`
	AdditionalNamespaces []string              `json:"additional_namespaces"`
	Manifests            string                `json:"manifests"`
	V1Beta1ChartsArchive []byte                `json:"v1Beta1ChartsArchive"`
	V1Beta2ChartsArchive []byte                `json:"v1Beta2ChartsArchive"`
	Wait                 bool                  `json:"wait"`
	ClearNamespaces      []string              `json:"clear_namespaces"`
	ClearPVCs            bool                  `json:"clear_pvcs"`
	IsRestore            bool                  `json:"is_restore"`
	RestoreLabelSelector *metav1.LabelSelector `json:"restore_label_selector"`
	KotsKinds            *kotsutil.KotsKinds
}

type WaitForProperty added in v1.100.0

type WaitForProperty struct {
	Path  string
	Value string
}

Jump to

Keyboard shortcuts

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