v1alpha1

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: May 19, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package v1alpha1 contains API Schema definitions for the scoby API group +kubebuilder:object:generate=true +groupName=scoby.triggermesh.io

Index

Constants

View Source
const (
	CRDRegistrationConditionCRDExists       = "CRDExists"
	CRDRegistrationConditionControllerReady = "ControllerReady"
)

Variables

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

Functions

This section is empty.

Types

type CRDRegistration

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

	Spec CRDRegistrationSpec `json:"spec"`

	// +optional
	Status CRDRegistrationStatus `json:"status,omitempty"`
}

CRDRegistration uses existing CRDs to provide generic controllers for them. +kubebuilder:printcolumn:name="CRD",type="string",JSONPath=".spec.crd" +kubebuilder:printcolumn:name="Ready",type="string",JSONPath=".status.conditions[?(@.type==\"Ready\")].status"

func (*CRDRegistration) DeepCopy

func (in *CRDRegistration) DeepCopy() *CRDRegistration

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

func (*CRDRegistration) DeepCopyInto

func (in *CRDRegistration) DeepCopyInto(out *CRDRegistration)

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

func (*CRDRegistration) DeepCopyObject

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

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

func (*CRDRegistration) GetHook

func (r *CRDRegistration) GetHook() *commonv1alpha1.Hook

func (*CRDRegistration) GetStatusAnnotation

func (s *CRDRegistration) GetStatusAnnotation(key string) *string

func (*CRDRegistration) GetStatusManager

func (s *CRDRegistration) GetStatusManager() *commonv1alpha1.StatusManager

func (*CRDRegistration) GetWorkload

func (r *CRDRegistration) GetWorkload() *commonv1alpha1.Workload

type CRDRegistrationList

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

CRDRegistrationList contains a list of CRDRegistration

func (*CRDRegistrationList) DeepCopy

func (in *CRDRegistrationList) DeepCopy() *CRDRegistrationList

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

func (*CRDRegistrationList) DeepCopyInto

func (in *CRDRegistrationList) DeepCopyInto(out *CRDRegistrationList)

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

func (*CRDRegistrationList) DeepCopyObject

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

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

type CRDRegistrationSpec

type CRDRegistrationSpec struct {
	// Name of the CRD to be used.
	CRD string `json:"crd"`

	// Workload is information on how to create the user workload.
	Workload commonv1alpha1.Workload `json:"workload"`

	Hook *commonv1alpha1.Hook `json:"hook,omitempty"`
}

CRDRegistrationSpec defines the desired state of a CRD Registration

func (*CRDRegistrationSpec) DeepCopy

func (in *CRDRegistrationSpec) DeepCopy() *CRDRegistrationSpec

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

func (*CRDRegistrationSpec) DeepCopyInto

func (in *CRDRegistrationSpec) DeepCopyInto(out *CRDRegistrationSpec)

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

type CRDRegistrationStatus

type CRDRegistrationStatus struct {
	commonv1alpha1.Status `json:",inline"`
}

CRDRegistrationStatus defines the observed state of CRDRegistration

func (*CRDRegistrationStatus) DeepCopy

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

func (*CRDRegistrationStatus) DeepCopyInto

func (in *CRDRegistrationStatus) DeepCopyInto(out *CRDRegistrationStatus)

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