v1alpha1

package
v0.0.0-alpha.3 Latest Latest
Warning

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

Go to latest
Published: Aug 5, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Package v1alpha1 contains API Schema definitions for the deploy v1alpha1 API group. +kubebuilder:object:generate=true +groupName=deploy.platform.tbd.io

Index

Constants

This section is empty.

Variables

View Source
var (
	// GroupVersion is group version used to register these objects
	GroupVersion = schema.GroupVersion{Group: "deploy.platform.tbd.io", 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
)
View Source
var ErrUnableToConvertPlatformConfig = errors.New("unable to convert to PlatformConfig")
View Source
var ErrUnableToConvertPlatformOperators = errors.New("unable to convert to PlatformOperators")

Functions

This section is empty.

Types

type PlatformConfig

type PlatformConfig struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`
	Spec              PlatformConfigSpec   `json:"spec,omitempty"`
	Status            PlatformConfigStatus `json:"status,omitempty"`
}

PlatformConfig is the Schema for the platformconfigs API.

func (*PlatformConfig) DeepCopy

func (in *PlatformConfig) DeepCopy() *PlatformConfig

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

func (*PlatformConfig) DeepCopyInto

func (in *PlatformConfig) DeepCopyInto(out *PlatformConfig)

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

func (*PlatformConfig) DeepCopyObject

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

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

func (*PlatformConfig) GetChildResourceConditions

func (component *PlatformConfig) GetChildResourceConditions() []*status.ChildResource

GetResources returns the child resource status for a component.

func (*PlatformConfig) GetDependencies

func (*PlatformConfig) GetDependencies() []workload.Workload

GetDependencies returns the dependencies for a component.

func (*PlatformConfig) GetDependencyStatus

func (component *PlatformConfig) GetDependencyStatus() bool

GetDependencyStatus returns the dependency status for a component.

func (*PlatformConfig) GetPhaseConditions

func (component *PlatformConfig) GetPhaseConditions() []*status.PhaseCondition

GetPhaseConditions returns the phase conditions for a component.

func (*PlatformConfig) GetReadyStatus

func (component *PlatformConfig) GetReadyStatus() bool

GetReadyStatus returns the ready status for a component.

func (*PlatformConfig) GetWorkloadGVK

func (*PlatformConfig) GetWorkloadGVK() schema.GroupVersionKind

GetComponentGVK returns a GVK object for the component.

func (*PlatformConfig) SetChildResourceCondition

func (component *PlatformConfig) SetChildResourceCondition(resource *status.ChildResource)

SetResources sets the phase conditions for a component.

func (*PlatformConfig) SetDependencyStatus

func (component *PlatformConfig) SetDependencyStatus(dependencyStatus bool)

SetDependencyStatus sets the dependency status for a component.

func (*PlatformConfig) SetPhaseCondition

func (component *PlatformConfig) SetPhaseCondition(condition *status.PhaseCondition)

SetPhaseCondition sets the phase conditions for a component.

func (*PlatformConfig) SetReadyStatus

func (component *PlatformConfig) SetReadyStatus(ready bool)

SetReadyStatus sets the ready status for a component.

type PlatformConfigList

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

PlatformConfigList contains a list of PlatformConfig.

func (*PlatformConfigList) DeepCopy

func (in *PlatformConfigList) DeepCopy() *PlatformConfigList

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

func (*PlatformConfigList) DeepCopyInto

func (in *PlatformConfigList) DeepCopyInto(out *PlatformConfigList)

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

func (*PlatformConfigList) DeepCopyObject

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

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

type PlatformConfigSpec

type PlatformConfigSpec struct {

	// +kubebuilder:validation:Optional
	Platform PlatformConfigSpecPlatform `json:"platform,omitempty"`

	// +kubebuilder:validation:Optional
	Cloud PlatformConfigSpecCloud `json:"cloud,omitempty"`
}

PlatformConfigSpec defines the desired state of PlatformConfig.

func (*PlatformConfigSpec) DeepCopy

func (in *PlatformConfigSpec) DeepCopy() *PlatformConfigSpec

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

func (*PlatformConfigSpec) DeepCopyInto

func (in *PlatformConfigSpec) DeepCopyInto(out *PlatformConfigSpec)

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

type PlatformConfigSpecCloud

type PlatformConfigSpecCloud struct {
	// +kubebuilder:default="aws"
	// +kubebuilder:validation:Optional
	// (Default: "aws")
	//
	//	+kubebuilder:validation:Enum=aws
	//	Underlying cloud type this platform is deployed upon.  Currently, only AWS is supported.
	Type string `json:"type,omitempty"`

	// +kubebuilder:default=true
	// +kubebuilder:validation:Optional
	// (Default: true)
	//
	//	Whether this cloud is deployed as a local cloud to use for testing scenarios.
	Local bool `json:"local,omitempty"`
}

func (*PlatformConfigSpecCloud) DeepCopy

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

func (*PlatformConfigSpecCloud) DeepCopyInto

func (in *PlatformConfigSpecCloud) DeepCopyInto(out *PlatformConfigSpecCloud)

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

type PlatformConfigSpecPlatform

type PlatformConfigSpecPlatform struct {
	// +kubebuilder:validation:Optional
	Certificates PlatformConfigSpecPlatformCertificates `json:"certificates,omitempty"`

	// +kubebuilder:validation:Optional
	Identity PlatformConfigSpecPlatformIdentity `json:"identity,omitempty"`
}

func (*PlatformConfigSpecPlatform) DeepCopy

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

func (*PlatformConfigSpecPlatform) DeepCopyInto

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

type PlatformConfigSpecPlatformCertificates

type PlatformConfigSpecPlatformCertificates struct {
	// +kubebuilder:default="tbd-certificates-system"
	// +kubebuilder:validation:Optional
	// (Default: "tbd-certificates-system")
	// Namespace where
	//
	//	the capability components will be deployed.
	Namespace string `json:"namespace,omitempty"`

	// +kubebuilder:default="small"
	// +kubebuilder:validation:Optional
	// (Default: "small")
	// Size of the
	//
	//	deployment for the underlying capability.  Must be one of small, medium, or large.
	//	+kubebuilder:validation:Enum:small;medium;large
	DeploymentSize string `json:"deploymentSize,omitempty"`
}

func (*PlatformConfigSpecPlatformCertificates) DeepCopy

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

func (*PlatformConfigSpecPlatformCertificates) DeepCopyInto

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

type PlatformConfigSpecPlatformIdentity

type PlatformConfigSpecPlatformIdentity struct {
	// +kubebuilder:default="tbd-identity-system"
	// +kubebuilder:validation:Optional
	// (Default: "tbd-identity-system")
	// Namespace where
	//
	//	the capability components will be deployed.
	Namespace string `json:"namespace,omitempty"`

	// +kubebuilder:default="small"
	// +kubebuilder:validation:Optional
	// (Default: "small")
	// Size of the
	//
	//	+kubebuilder:validation:Enum:small;medium;large
	//	deployment for the underlying capability.  Must be one of small, medium, or large.
	DeploymentSize string `json:"deploymentSize,omitempty"`
}

func (*PlatformConfigSpecPlatformIdentity) DeepCopy

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

func (*PlatformConfigSpecPlatformIdentity) DeepCopyInto

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

type PlatformConfigStatus

type PlatformConfigStatus struct {
	Created               bool                     `json:"created,omitempty"`
	DependenciesSatisfied bool                     `json:"dependenciesSatisfied,omitempty"`
	Conditions            []*status.PhaseCondition `json:"conditions,omitempty"`
	Resources             []*status.ChildResource  `json:"resources,omitempty"`
}

PlatformConfigStatus defines the observed state of PlatformConfig.

func (*PlatformConfigStatus) DeepCopy

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

func (*PlatformConfigStatus) DeepCopyInto

func (in *PlatformConfigStatus) DeepCopyInto(out *PlatformConfigStatus)

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

type PlatformOperators

type PlatformOperators struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`
	Spec              PlatformOperatorsSpec   `json:"spec,omitempty"`
	Status            PlatformOperatorsStatus `json:"status,omitempty"`
}

PlatformOperators is the Schema for the platformoperators API.

func (*PlatformOperators) DeepCopy

func (in *PlatformOperators) DeepCopy() *PlatformOperators

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

func (*PlatformOperators) DeepCopyInto

func (in *PlatformOperators) DeepCopyInto(out *PlatformOperators)

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

func (*PlatformOperators) DeepCopyObject

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

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

func (*PlatformOperators) GetChildResourceConditions

func (component *PlatformOperators) GetChildResourceConditions() []*status.ChildResource

GetResources returns the child resource status for a component.

func (*PlatformOperators) GetDependencies

func (*PlatformOperators) GetDependencies() []workload.Workload

GetDependencies returns the dependencies for a component.

func (*PlatformOperators) GetDependencyStatus

func (component *PlatformOperators) GetDependencyStatus() bool

GetDependencyStatus returns the dependency status for a component.

func (*PlatformOperators) GetPhaseConditions

func (component *PlatformOperators) GetPhaseConditions() []*status.PhaseCondition

GetPhaseConditions returns the phase conditions for a component.

func (*PlatformOperators) GetReadyStatus

func (component *PlatformOperators) GetReadyStatus() bool

GetReadyStatus returns the ready status for a component.

func (*PlatformOperators) GetWorkloadGVK

func (*PlatformOperators) GetWorkloadGVK() schema.GroupVersionKind

GetComponentGVK returns a GVK object for the component.

func (*PlatformOperators) SetChildResourceCondition

func (component *PlatformOperators) SetChildResourceCondition(resource *status.ChildResource)

SetResources sets the phase conditions for a component.

func (*PlatformOperators) SetDependencyStatus

func (component *PlatformOperators) SetDependencyStatus(dependencyStatus bool)

SetDependencyStatus sets the dependency status for a component.

func (*PlatformOperators) SetPhaseCondition

func (component *PlatformOperators) SetPhaseCondition(condition *status.PhaseCondition)

SetPhaseCondition sets the phase conditions for a component.

func (*PlatformOperators) SetReadyStatus

func (component *PlatformOperators) SetReadyStatus(ready bool)

SetReadyStatus sets the ready status for a component.

type PlatformOperatorsList

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

PlatformOperatorsList contains a list of PlatformOperators.

func (*PlatformOperatorsList) DeepCopy

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

func (*PlatformOperatorsList) DeepCopyInto

func (in *PlatformOperatorsList) DeepCopyInto(out *PlatformOperatorsList)

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

func (*PlatformOperatorsList) DeepCopyObject

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

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

type PlatformOperatorsSpec

type PlatformOperatorsSpec struct {

	// +kubebuilder:default="tbd-operators-system"
	// +kubebuilder:validation:Optional
	// (Default: "tbd-operators-system")
	Namespace string `json:"namespace,omitempty"`
}

PlatformOperatorsSpec defines the desired state of PlatformOperators.

func (*PlatformOperatorsSpec) DeepCopy

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

func (*PlatformOperatorsSpec) DeepCopyInto

func (in *PlatformOperatorsSpec) DeepCopyInto(out *PlatformOperatorsSpec)

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

type PlatformOperatorsStatus

type PlatformOperatorsStatus struct {
	Created               bool                     `json:"created,omitempty"`
	DependenciesSatisfied bool                     `json:"dependenciesSatisfied,omitempty"`
	Conditions            []*status.PhaseCondition `json:"conditions,omitempty"`
	Resources             []*status.ChildResource  `json:"resources,omitempty"`
}

PlatformOperatorsStatus defines the observed state of PlatformOperators.

func (*PlatformOperatorsStatus) DeepCopy

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

func (*PlatformOperatorsStatus) DeepCopyInto

func (in *PlatformOperatorsStatus) DeepCopyInto(out *PlatformOperatorsStatus)

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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