v1alpha1

package
v0.0.0-...-2ed9603 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Overview

Package v1alpha1 contains API Schema definitions for the composition v1alpha1 API group +kubebuilder:object:generate=true +groupName=composition.google.com

Index

Constants

This section is empty.

Variables

View Source
var (
	// GroupVersion is group version used to register these objects
	GroupVersion = schema.GroupVersion{Group: "composition.google.com", Version: "v1alpha1"}

	// SchemeBuilder is used to add go types to the GroupVersionKind scheme
	SchemeBuilder = &scheme.Builder{GroupVersion: GroupVersion}

	// AddToScheme adds the types in this group-version to the given scheme.
	AddToScheme = SchemeBuilder.AddToScheme
)

Functions

This section is empty.

Types

type Composition

type Composition struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`

	Spec   CompositionSpec   `json:"spec,omitempty"`
	Status CompositionStatus `json:"status,omitempty"`
}

Composition is the Schema for the compositions API

func (*Composition) DeepCopy

func (in *Composition) DeepCopy() *Composition

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Composition.

func (*Composition) DeepCopyInto

func (in *Composition) DeepCopyInto(out *Composition)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*Composition) DeepCopyObject

func (in *Composition) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

func (*Composition) Validate

func (s *Composition) Validate() bool

Validation

type CompositionList

type CompositionList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []Composition `json:"items"`
}

CompositionList contains a list of Composition

func (*CompositionList) DeepCopy

func (in *CompositionList) DeepCopy() *CompositionList

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CompositionList.

func (*CompositionList) DeepCopyInto

func (in *CompositionList) DeepCopyInto(out *CompositionList)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*CompositionList) DeepCopyObject

func (in *CompositionList) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type CompositionSpec

type CompositionSpec struct {
	Description string `json:"description,omitempty"`

	// Use existing KRM API
	InputAPIGroup string `json:"inputAPIGroup,omitempty"`

	//+kubebuilder:validation:MinItems=1
	Expanders []Expander `json:"expanders"`
	// Namespace mode indicates how compositions set the namespace of the objects from expanders.
	// ""|inherit implies inherit the facade api's namespace. Only namespaced objects are allowed.
	// explicit     implies the objects in the template must have the namespace set.
	// +kubebuilder:validation:Enum=inherit;explicit
	NamespaceMode NamespaceMode `json:"namespaceMode,omitempty"`

	// Readiness
	Readiness []ReadyOn `json:"readiness,omitempty"`
}

CompositionSpec defines the desired state of Composition

func (*CompositionSpec) DeepCopy

func (in *CompositionSpec) DeepCopy() *CompositionSpec

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CompositionSpec.

func (*CompositionSpec) DeepCopyInto

func (in *CompositionSpec) DeepCopyInto(out *CompositionSpec)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type CompositionStatus

type CompositionStatus struct {
	Generation int64                            `json:"generation,omitempty"`
	Conditions []metav1.Condition               `json:"conditions,omitempty"`
	Stages     map[string]StageValidationStatus `json:"stages,omitempty"`
}

CompositionStatus defines the observed state of Composition

func (*CompositionStatus) ClearCondition

func (s *CompositionStatus) ClearCondition(condition ConditionType)

Status helpers

func (*CompositionStatus) DeepCopy

func (in *CompositionStatus) DeepCopy() *CompositionStatus

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CompositionStatus.

func (*CompositionStatus) DeepCopyInto

func (in *CompositionStatus) DeepCopyInto(out *CompositionStatus)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type ConditionType

type ConditionType string

ConditionType defines the type of ManagedConfigSync condition

const (
	Ready ConditionType = "Ready"
	// Error implies the last reconcile attempt failed
	Error ConditionType = "Error"
	// Validation implies the validation failed
	ValidationFailed ConditionType = "ValidationFailed"
	// Waiting - Plan is waiting for values to progress
	Waiting ConditionType = "Waiting"
)

The valid conditions of Compositions

type ConfigReference

type ConfigReference struct {
	Name      string `json:"name"`
	Namespace string `json:"namespace,omitempty"`
}

ConfigReference - For BYO Expanders, we can extend it

func (*ConfigReference) DeepCopy

func (in *ConfigReference) DeepCopy() *ConfigReference

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ConfigReference.

func (*ConfigReference) DeepCopyInto

func (in *ConfigReference) DeepCopyInto(out *ConfigReference)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type Context

type Context struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`

	Spec   ContextSpec   `json:"spec,omitempty"`
	Status ContextStatus `json:"status,omitempty"`
}

Context is the Schema for the contexts API

func (*Context) DeepCopy

func (in *Context) DeepCopy() *Context

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Context.

func (*Context) DeepCopyInto

func (in *Context) DeepCopyInto(out *Context)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*Context) DeepCopyObject

func (in *Context) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type ContextList

type ContextList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []Context `json:"items"`
}

ContextList contains a list of Context

func (*ContextList) DeepCopy

func (in *ContextList) DeepCopy() *ContextList

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ContextList.

func (*ContextList) DeepCopyInto

func (in *ContextList) DeepCopyInto(out *ContextList)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*ContextList) DeepCopyObject

func (in *ContextList) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type ContextSpec

type ContextSpec struct {
	// Project is passed to the expander.
	Project string `json:"project,omitempty" protobuf:"bytes,1,opt,name=project"`
}

ContextSpec defines the desired state of Context

func (*ContextSpec) DeepCopy

func (in *ContextSpec) DeepCopy() *ContextSpec

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ContextSpec.

func (*ContextSpec) DeepCopyInto

func (in *ContextSpec) DeepCopyInto(out *ContextSpec)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type ContextStatus

type ContextStatus struct {
}

ContextStatus defines the observed state of Context

func (*ContextStatus) DeepCopy

func (in *ContextStatus) DeepCopy() *ContextStatus

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ContextStatus.

func (*ContextStatus) DeepCopyInto

func (in *ContextStatus) DeepCopyInto(out *ContextStatus)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type Expander

type Expander struct {
	Name string `json:"name,omitempty"`

	// Type indicates what expander to use
	//   jinja - jinja2 expander
	//   ...
	// +kubebuilder:default=jinja2
	Type string `json:"type"`
	// +kubebuilder:default=latest
	Version string `json:"version,omitempty"`

	// TODO (barney-s): Make ConfigReference the only way to specify and dont have any inline expander configs
	//  This would make the UX experience uniform.
	ExpanderConfig `json:""`
}

func (*Expander) DeepCopy

func (in *Expander) DeepCopy() *Expander

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Expander.

func (*Expander) DeepCopyInto

func (in *Expander) DeepCopyInto(out *Expander)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type ExpanderConfig

type ExpanderConfig struct {
	// Built in expanders
	Jinja2 *Jinja2 `json:"jinja2,omitempty"`
	// For BYO Expanders use generic template or ref for external config
	Template  string           `json:"template,omitempty"`
	Reference *ConfigReference `json:"configref,omitempty"`
}

func (*ExpanderConfig) DeepCopy

func (in *ExpanderConfig) DeepCopy() *ExpanderConfig

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ExpanderConfig.

func (*ExpanderConfig) DeepCopyInto

func (in *ExpanderConfig) DeepCopyInto(out *ExpanderConfig)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type ExpanderConfigGVK

type ExpanderConfigGVK struct {
	Group   string `json:"group"`
	Version string `json:"version"`
	Kind    string `json:"kind"`
}

func (*ExpanderConfigGVK) DeepCopy

func (in *ExpanderConfigGVK) DeepCopy() *ExpanderConfigGVK

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ExpanderConfigGVK.

func (*ExpanderConfigGVK) DeepCopyInto

func (in *ExpanderConfigGVK) DeepCopyInto(out *ExpanderConfigGVK)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type ExpanderType

type ExpanderType string

EDIT THIS FILE! THIS IS SCAFFOLDING FOR YOU TO OWN! NOTE: json tags are required. Any new fields you add must have json tags for the fields to be serialized.

const (
	// ExpanderTypeJob run expander in a job
	ExpanderTypeJob ExpanderType = "job"
	// ExpanderTypeGRPC expect expander service to be present
	ExpanderTypeGRPC ExpanderType = "grpc"
)

type ExpanderVersion

type ExpanderVersion struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`

	Spec   ExpanderVersionSpec   `json:"spec,omitempty"`
	Status ExpanderVersionStatus `json:"status,omitempty"`
}

ExpanderVersion is the Schema for the expanderversions API

func (*ExpanderVersion) DeepCopy

func (in *ExpanderVersion) DeepCopy() *ExpanderVersion

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ExpanderVersion.

func (*ExpanderVersion) DeepCopyInto

func (in *ExpanderVersion) DeepCopyInto(out *ExpanderVersion)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*ExpanderVersion) DeepCopyObject

func (in *ExpanderVersion) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

func (*ExpanderVersion) Validate

func (ev *ExpanderVersion) Validate() bool

Validation

type ExpanderVersionList

type ExpanderVersionList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []ExpanderVersion `json:"items"`
}

ExpanderVersionList contains a list of ExpanderVersion

func (*ExpanderVersionList) DeepCopy

func (in *ExpanderVersionList) DeepCopy() *ExpanderVersionList

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ExpanderVersionList.

func (*ExpanderVersionList) DeepCopyInto

func (in *ExpanderVersionList) DeepCopyInto(out *ExpanderVersionList)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*ExpanderVersionList) DeepCopyObject

func (in *ExpanderVersionList) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type ExpanderVersionSpec

type ExpanderVersionSpec struct {
	// ImageRegistry is the designated registry for where to pull the named expander image
	ImageRegistry string `json:"imageRegistry,omitempty"`

	// Image if different from removePrefix(expanderversion.name , "composition-")
	Image string `json:"image,omitempty"`

	// ValidVersions is a list of valid versions of the named expander
	ValidVersions []string `json:"validVersions"`

	// Type indicates what sort of expander:
	//   job - job based expander. ephemeral
	//   grpc - grpc service expander. persistent
	// +kubebuilder:validation:Enum=job;grpc
	// +kubebuilder:default=job
	Type ExpanderType `json:"type"`

	// ExpanderConfig GVK
	Config ExpanderConfigGVK `json:"config,omitempty"`
}

ExpanderVersionSpec defines the desired state of ExpanderVersion

func (*ExpanderVersionSpec) DeepCopy

func (in *ExpanderVersionSpec) DeepCopy() *ExpanderVersionSpec

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ExpanderVersionSpec.

func (*ExpanderVersionSpec) DeepCopyInto

func (in *ExpanderVersionSpec) DeepCopyInto(out *ExpanderVersionSpec)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type ExpanderVersionStatus

type ExpanderVersionStatus struct {
	VersionMap map[string]string  `json:"versionMap,omitempty"`
	Conditions []metav1.Condition `json:"conditions,omitempty"`
}

ExpanderVersionStatus defines the observed state of ExpanderVersion

func (*ExpanderVersionStatus) ClearCondition

func (s *ExpanderVersionStatus) ClearCondition(condition ConditionType)

Status helpers

func (*ExpanderVersionStatus) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ExpanderVersionStatus.

func (*ExpanderVersionStatus) DeepCopyInto

func (in *ExpanderVersionStatus) DeepCopyInto(out *ExpanderVersionStatus)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type Facade

type Facade struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`

	Spec   FacadeSpec   `json:"spec,omitempty"`
	Status FacadeStatus `json:"status,omitempty"`
}

Facade is the Schema for the facades API

func (*Facade) DeepCopy

func (in *Facade) DeepCopy() *Facade

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Facade.

func (*Facade) DeepCopyInto

func (in *Facade) DeepCopyInto(out *Facade)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*Facade) DeepCopyObject

func (in *Facade) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

func (*Facade) Validate

func (f *Facade) Validate() bool

Validation

type FacadeList

type FacadeList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []Facade `json:"items"`
}

FacadeList contains a list of Facade

func (*FacadeList) DeepCopy

func (in *FacadeList) DeepCopy() *FacadeList

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new FacadeList.

func (*FacadeList) DeepCopyInto

func (in *FacadeList) DeepCopyInto(out *FacadeList)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*FacadeList) DeepCopyObject

func (in *FacadeList) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type FacadeSpec

type FacadeSpec struct {
	// Bring your own open API spec
	// +kubebuilder:validation:Schemaless
	// +kubebuilder:validation:Type=object
	// +kubebuilder:pruning:PreserveUnknownFields
	// +k8s:conversion-gen=false
	OpenAPIV3Schema *apiextensionsv1.JSONSchemaProps `json:"openAPIV3Schema,omitempty"`

	// Simple Schema
	SimpleSchema *SimpleSchema `json:"simpleSchema,omitempty"`

	FacadeKind string `json:"facadeKind"`
}

FacadeSpec defines the desired state of Facade

func (*FacadeSpec) DeepCopy

func (in *FacadeSpec) DeepCopy() *FacadeSpec

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new FacadeSpec.

func (*FacadeSpec) DeepCopyInto

func (in *FacadeSpec) DeepCopyInto(out *FacadeSpec)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type FacadeStatus

type FacadeStatus struct {
	Conditions []metav1.Condition `json:"conditions,omitempty"`
}

FacadeStatus defines the observed state of Facade

func (*FacadeStatus) ClearCondition

func (s *FacadeStatus) ClearCondition(condition ConditionType)

Status helpers

func (*FacadeStatus) DeepCopy

func (in *FacadeStatus) DeepCopy() *FacadeStatus

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new FacadeStatus.

func (*FacadeStatus) DeepCopyInto

func (in *FacadeStatus) DeepCopyInto(out *FacadeStatus)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type FieldRef

type FieldRef struct {
	Path string `json:"path"`
	As   string `json:"as"`
}

func (*FieldRef) DeepCopy

func (in *FieldRef) DeepCopy() *FieldRef

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new FieldRef.

func (*FieldRef) DeepCopyInto

func (in *FieldRef) DeepCopyInto(out *FieldRef)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type GetterConfiguration

type GetterConfiguration struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`

	Spec   GetterConfigurationSpec   `json:"spec,omitempty"`
	Status GetterConfigurationStatus `json:"status,omitempty"`
}

GetterConfiguration is the Schema for the getters API

func (*GetterConfiguration) DeepCopy

func (in *GetterConfiguration) DeepCopy() *GetterConfiguration

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GetterConfiguration.

func (*GetterConfiguration) DeepCopyInto

func (in *GetterConfiguration) DeepCopyInto(out *GetterConfiguration)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*GetterConfiguration) DeepCopyObject

func (in *GetterConfiguration) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

func (*GetterConfiguration) Validate

func (g *GetterConfiguration) Validate() bool

Validation

type GetterConfigurationList

type GetterConfigurationList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []GetterConfiguration `json:"items"`
}

GetterConfigurationList contains a list of GetterConfiguration

func (*GetterConfigurationList) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GetterConfigurationList.

func (*GetterConfigurationList) DeepCopyInto

func (in *GetterConfigurationList) DeepCopyInto(out *GetterConfigurationList)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*GetterConfigurationList) DeepCopyObject

func (in *GetterConfigurationList) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type GetterConfigurationSpec

type GetterConfigurationSpec struct {
	ValuesFrom []ValuesFrom `json:"valuesFrom,omitempty"`
}

GetterConfigurationSpec defines the desired state of GetterConfiguration

func (*GetterConfigurationSpec) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GetterConfigurationSpec.

func (*GetterConfigurationSpec) DeepCopyInto

func (in *GetterConfigurationSpec) DeepCopyInto(out *GetterConfigurationSpec)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type GetterConfigurationStatus

type GetterConfigurationStatus struct {
	Conditions []metav1.Condition `json:"conditions,omitempty"`
}

GetterConfigurationStatus defines the observed state of GetterConfiguration

func (*GetterConfigurationStatus) ClearCondition

func (g *GetterConfigurationStatus) ClearCondition(condition ConditionType)

Status helpers

func (*GetterConfigurationStatus) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GetterConfigurationStatus.

func (*GetterConfigurationStatus) DeepCopyInto

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type HealthType

type HealthType string
const (
	HEALTHY   HealthType = "Healthy"
	UNHEALTHY HealthType = "Unhealthy"
)

type Jinja2

type Jinja2 struct {
	Template string `json:"template"`
}

func (*Jinja2) DeepCopy

func (in *Jinja2) DeepCopy() *Jinja2

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Jinja2.

func (*Jinja2) DeepCopyInto

func (in *Jinja2) DeepCopyInto(out *Jinja2)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type NamespaceMode

type NamespaceMode string
const (
	// NamespaceModeNone is when nothing is set, this is the same as Inherit
	NamespaceModeNone NamespaceMode = ""
	// NamespaceModeInherit implies all the objects namespace is replaced with the  input api object's namespace
	NamespaceModeInherit NamespaceMode = "inherit"
	// NamespaceModeExplicit implies the objects in the template must have its namespace set
	NamespaceModeExplicit NamespaceMode = "explicit"
)

type Plan

type Plan struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`

	Spec   PlanSpec   `json:"spec,omitempty"`
	Status PlanStatus `json:"status,omitempty"`
}

Plan is the Schema for the plans API

func (*Plan) DeepCopy

func (in *Plan) DeepCopy() *Plan

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Plan.

func (*Plan) DeepCopyInto

func (in *Plan) DeepCopyInto(out *Plan)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*Plan) DeepCopyObject

func (in *Plan) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type PlanList

type PlanList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []Plan `json:"items"`
}

PlanList contains a list of Plan

func (*PlanList) DeepCopy

func (in *PlanList) DeepCopy() *PlanList

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PlanList.

func (*PlanList) DeepCopyInto

func (in *PlanList) DeepCopyInto(out *PlanList)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*PlanList) DeepCopyObject

func (in *PlanList) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type PlanSpec

type PlanSpec struct {
	Stages map[string]Stage `json:"stages,omitempty"`
}

PlanSpec defines the desired state of Plan

func (*PlanSpec) DeepCopy

func (in *PlanSpec) DeepCopy() *PlanSpec

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PlanSpec.

func (*PlanSpec) DeepCopyInto

func (in *PlanSpec) DeepCopyInto(out *PlanSpec)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type PlanStatus

type PlanStatus struct {
	// Facade's generation last successfully reconciled
	InputGeneration int64 `json:"inputGeneration"`
	// Composition generation last successfully reconciled
	CompositionGeneration int64 `json:"compositionGeneration"`
	// Composition UID
	CompositionUID types.UID `json:"compositionUID,omitempty"`

	// Plan generation we last successfully reconciled
	Generation int64                   `json:"generation,omitempty"`
	Conditions []metav1.Condition      `json:"conditions,omitempty"`
	Stages     map[string]*StageStatus `json:"stages,omitempty"`
	LastPruned []ResourceStatus        `json:"lastPruned,omitempty"`
}

PlanStatus defines the observed state of Plan

func (*PlanStatus) AppendCondition

func (s *PlanStatus) AppendCondition(t ConditionType, sts metav1.ConditionStatus, m, r string)

func (*PlanStatus) AppendErrorCondition

func (s *PlanStatus) AppendErrorCondition(e, m, r string)

func (*PlanStatus) AppendWaitingCondition

func (s *PlanStatus) AppendWaitingCondition(e, m, r string)

func (*PlanStatus) ClearCondition

func (s *PlanStatus) ClearCondition(condition ConditionType)

Status helpers

func (*PlanStatus) DeepCopy

func (in *PlanStatus) DeepCopy() *PlanStatus

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PlanStatus.

func (*PlanStatus) DeepCopyInto

func (in *PlanStatus) DeepCopyInto(out *PlanStatus)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type ReadyOn

type ReadyOn struct {
	Group     string `json:"group"`
	Version   string `json:"version,omitempty"`
	Kind      string `json:"kind"`
	Name      string `json:"name,omitempty"`
	Namespace string `json:"namespace,omitempty"`
	Ready     string `json:"readyIf"`
}

ReadyOn defines ready condition for a GVK

func (*ReadyOn) DeepCopy

func (in *ReadyOn) DeepCopy() *ReadyOn

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ReadyOn.

func (*ReadyOn) DeepCopyInto

func (in *ReadyOn) DeepCopyInto(out *ReadyOn)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type ResourceRef

type ResourceRef struct {

	// OPTION 2
	Group    string `json:"group,omitempty"`
	Version  string `json:"version,omitempty"`
	Resource string `json:"resource"`
	Kind     string `json:"kind"`

	// OneOf validation needed for Name and NameSuffix in CRD Definition
	Name       string `json:"name,omitempty"`
	NameSuffix string `json:"nameSuffix,omitempty"`
}

func (*ResourceRef) DeepCopy

func (in *ResourceRef) DeepCopy() *ResourceRef

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResourceRef.

func (*ResourceRef) DeepCopyInto

func (in *ResourceRef) DeepCopyInto(out *ResourceRef)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type ResourceStatus

type ResourceStatus struct {
	Group     string     `json:"group,omitempty"`
	Version   string     `json:"version,omitempty"`
	Kind      string     `json:"kind"`
	Namespace string     `json:"namespace,omitempty"`
	Name      string     `json:"name,omitempty"`
	Status    string     `json:"status,omitempty"`
	Health    HealthType `json:"health"`
}

func (*ResourceStatus) DeepCopy

func (in *ResourceStatus) DeepCopy() *ResourceStatus

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResourceStatus.

func (*ResourceStatus) DeepCopyInto

func (in *ResourceStatus) DeepCopyInto(out *ResourceStatus)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type SimpleSchema

type SimpleSchema struct {
	Spec     runtime.RawExtension `json:"spec"`
	Status   runtime.RawExtension `json:"status"`
	Required []string             `json:"required,omitempty"`
}

func (*SimpleSchema) DeepCopy

func (in *SimpleSchema) DeepCopy() *SimpleSchema

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SimpleSchema.

func (*SimpleSchema) DeepCopyInto

func (in *SimpleSchema) DeepCopyInto(out *SimpleSchema)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type Sinc

type Sinc struct {
	Name    string `json:"name"`
	Version string `json:"version"`
}

func (*Sinc) DeepCopy

func (in *Sinc) DeepCopy() *Sinc

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Sinc.

func (*Sinc) DeepCopyInto

func (in *Sinc) DeepCopyInto(out *Sinc)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type Stage

type Stage struct {
	Manifest string `json:"manifest,omitempty"`
	Values   string `json:"values,omitempty"`
}

func (*Stage) DeepCopy

func (in *Stage) DeepCopy() *Stage

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Stage.

func (*Stage) DeepCopyInto

func (in *Stage) DeepCopyInto(out *Stage)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type StageStatus

type StageStatus struct {
	ResourceCount int              `json:"resourceCount"`
	AppliedCount  int              `json:"appliedCount,omitempty"`
	LastApplied   []ResourceStatus `json:"lastApplied,omitempty"`
}

StageStatus captures the status of a stage

func (*StageStatus) DeepCopy

func (in *StageStatus) DeepCopy() *StageStatus

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new StageStatus.

func (*StageStatus) DeepCopyInto

func (in *StageStatus) DeepCopyInto(out *StageStatus)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type StageValidationStatus

type StageValidationStatus struct {
	ValidationStatus ValidationStatus `json:"validationStatus,omitempty"`
	Reason           string           `json:"reason,omitempty"`
	Message          string           `json:"message,omitempty"`
}

StageStatus captures the status of a stage

func (*StageValidationStatus) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new StageValidationStatus.

func (*StageValidationStatus) DeepCopyInto

func (in *StageValidationStatus) DeepCopyInto(out *StageValidationStatus)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type ValidationStatus

type ValidationStatus string
const (
	// ValidationStatusUnkown is when it is not validated
	ValidationStatusUnknown ValidationStatus = "unknown"
	// ValidationStatusSuccess is when valdiation succeeds
	ValidationStatusSuccess ValidationStatus = "success"
	// ValidationStatusFailed is when valdiation fails
	ValidationStatusFailed ValidationStatus = "failed"
	// ValidationStatusError is when validation was not called
	ValidationStatusError ValidationStatus = "error"
)

type ValuesFrom

type ValuesFrom struct {
	Name        string      `json:"name"`
	ResourceRef ResourceRef `json:"resourceRef"`
	FieldRef    []FieldRef  `json:"fieldRef"`
}

func (*ValuesFrom) DeepCopy

func (in *ValuesFrom) DeepCopy() *ValuesFrom

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ValuesFrom.

func (*ValuesFrom) DeepCopyInto

func (in *ValuesFrom) DeepCopyInto(out *ValuesFrom)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

Jump to

Keyboard shortcuts

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