v1alpha1

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Jul 9, 2022 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Overview

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

Index

Constants

View Source
const (
	// OperationCreate - name of create operation
	OperationCreate = "CREATE"
	// OperationUpdate - name of update operation
	OperationUpdate = "UPDATE"
)

Variables

View Source
var (
	// GroupVersion is group version used to register these objects
	GroupVersion = schema.GroupVersion{Group: "ibmcloud.ibm.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 Composable

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

	Spec   ComposableSpec   `json:"spec"`
	Status ComposableStatus `json:"status,omitempty"`
}

+kubebuilder:object:root=true +kubebuilder:resource:path=composables,scope=Namespaced,shortName=comp +kubebuilder:printcolumn:name="State",type=string,JSONPath=".status.state" +kubebuilder:printcolumn:name="Resource Name",type=string,JSONPath=".spec.template.metadata.name" +kubebuilder:printcolumn:name="Resource Kind",type=string,JSONPath=".spec.template.kind" +kubebuilder:printcolumn:name="Resource apiVersion",type=string,JSONPath=".spec.template.apiVersion" +kubebuilder:printcolumn:name="Age",type=date,JSONPath=".metadata.creationTimestamp" +kubebuilder:subresource:status Composable represents a composable resource that can wrap any resource (native kubernetes or CRDs) to allow it to be dynamically configurable

func (*Composable) DeepCopy

func (in *Composable) DeepCopy() *Composable

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

func (*Composable) DeepCopyInto

func (in *Composable) DeepCopyInto(out *Composable)

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

func (*Composable) DeepCopyObject

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

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

func (*Composable) Default

func (r *Composable) Default()

Default implements webhook.Defaulter so a webhook will be registered for the type

func (*Composable) SetupWebhookWithManager

func (r *Composable) SetupWebhookWithManager(mgr ctrl.Manager) error

SetupWebhookWithManager sets up the webhooks with the manager

func (*Composable) ValidateCreate

func (r *Composable) ValidateCreate() error

ValidateCreate implements webhook.Validator so a webhook will be registered for the type

func (*Composable) ValidateDelete

func (r *Composable) ValidateDelete() error

ValidateDelete implements webhook.Validator so a webhook will be registered for the type

func (*Composable) ValidateUpdate

func (r *Composable) ValidateUpdate(old runtime.Object) error

ValidateUpdate implements webhook.Validator so a webhook will be registered for the type

type ComposableList

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

ComposableList contains a list of Composable

func (*ComposableList) DeepCopy

func (in *ComposableList) DeepCopy() *ComposableList

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

func (*ComposableList) DeepCopyInto

func (in *ComposableList) DeepCopyInto(out *ComposableList)

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

func (*ComposableList) DeepCopyObject

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

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

type ComposableSpec

type ComposableSpec struct {
	// Template defines the underlying object
	//+kubebuilder:validation:XPreserveUnknownFields
	Template *runtime.RawExtension `json:"template"`
}

ComposableSpec defines the desired state of Composable

func (*ComposableSpec) DeepCopy

func (in *ComposableSpec) DeepCopy() *ComposableSpec

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

func (*ComposableSpec) DeepCopyInto

func (in *ComposableSpec) DeepCopyInto(out *ComposableSpec)

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

type ComposableStatus

type ComposableStatus struct {
	// State shows the composable object state
	// +optional
	// +kubebuilder:validation:Enum=Failed;Pending;Online
	State string `json:"state,omitempty"`

	// Message - provides human readable explanation of the Composable status
	// +optional
	Message string `json:"message,omitempty"`
}

ComposableStatus defines the observed state of Composable

func (*ComposableStatus) DeepCopy

func (in *ComposableStatus) DeepCopy() *ComposableStatus

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

func (*ComposableStatus) DeepCopyInto

func (in *ComposableStatus) DeepCopyInto(out *ComposableStatus)

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