v1alpha1

package
v0.13.0 Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package v1alpha1 contains the v1alpha1 group ObservedObjectCollection resources of the Kubernetes provider. +kubebuilder:ac:generate=true +kubebuilder:object:generate=true +groupName=kubernetes.crossplane.io +versionName=v1alpha1

Index

Constants

View Source
const (
	Group   = "kubernetes.crossplane.io"
	Version = "v1alpha1"
)

Package type metadata.

Variables

View Source
var (
	// SchemeGroupVersion is group version used to register these objects
	SchemeGroupVersion = schema.GroupVersion{Group: Group, Version: Version}

	// SchemeBuilder is used to add go types to the GroupVersionKind scheme
	SchemeBuilder = &scheme.Builder{GroupVersion: SchemeGroupVersion}
)
View Source
var (
	ObservedObjectCollectionKind             = reflect.TypeOf(ObservedObjectCollection{}).Name()
	ObservedObjectCollectionGroupKind        = schema.GroupKind{Group: Group, Kind: ObservedObjectCollectionKind}.String()
	ObservedObjectCollectionAPIVersion       = ObservedObjectCollectionKind + "." + SchemeGroupVersion.String()
	ObservedObjectCollectionGroupVersionKind = SchemeGroupVersion.WithKind(ObservedObjectCollectionKind)
)

ProviderConfig type metadata.

Functions

This section is empty.

Types

type ObserveObjectCriteria

type ObserveObjectCriteria struct {

	// APIVersion of objects that should be matched by the selector
	// +kubebuilder:validation:MinLength:=1
	APIVersion string `json:"apiVersion"`

	// Kind of objects that should be matched by the selector
	// +kubebuilder:validation:MinLength:=1
	Kind string `json:"kind"`

	// Namespace where to look for objects.
	// If omitted, search is performed across all namespaces.
	// For cluster-scoped objects, omit it.
	// +optional
	Namespace string `json:"namespace,omitempty"`

	// Selector defines the criteria for including objects into the collection
	Selector v1.LabelSelector `json:"selector"`
}

ObserveObjectCriteria declares criteria for an object to be a part of collection

func (*ObserveObjectCriteria) DeepCopy

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

func (*ObserveObjectCriteria) DeepCopyInto

func (in *ObserveObjectCriteria) DeepCopyInto(out *ObserveObjectCriteria)

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

type ObservedObjectCollection

type ObservedObjectCollection struct {
	v1.TypeMeta   `json:",inline"`
	v1.ObjectMeta `json:"metadata,omitempty"`
	Spec          ObservedObjectCollectionSpec   `json:"spec"`
	Status        ObservedObjectCollectionStatus `json:"status,omitempty"`
}

A ObservedObjectCollection is a provider Kubernetes API type +kubebuilder:subresource:status +kubebuilder:printcolumn:name="KIND",type="string",JSONPath=".spec.kind" +kubebuilder:printcolumn:name="APIVERSION",type="string",JSONPath=".spec.apiVersion",priority=1 +kubebuilder:printcolumn:name="PROVIDERCONFIG",type="string",JSONPath=".spec.providerConfigRef.name" +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,kubernetes} +kubebuilder:validation:XValidation:rule="size(self.metadata.name) < 64",message="metadata.name max length is 63"

func (*ObservedObjectCollection) DeepCopy

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

func (*ObservedObjectCollection) DeepCopyInto

func (in *ObservedObjectCollection) DeepCopyInto(out *ObservedObjectCollection)

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

func (*ObservedObjectCollection) DeepCopyObject

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

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

type ObservedObjectCollectionList

type ObservedObjectCollectionList struct {
	v1.TypeMeta `json:",inline"`
	v1.ListMeta `json:"metadata,omitempty"`
	Items       []ObservedObjectCollection `json:"items"`
}

ObservedObjectCollectionList contains a list of ObservedObjectCollection

func (*ObservedObjectCollectionList) DeepCopy

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

func (*ObservedObjectCollectionList) DeepCopyInto

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

func (*ObservedObjectCollectionList) DeepCopyObject

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

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

type ObservedObjectCollectionSpec

type ObservedObjectCollectionSpec struct {

	// ObserveObjects declares what criteria object need to fulfil
	// to become a member of this collection
	ObserveObjects ObserveObjectCriteria `json:"observeObjects"`

	// ProviderConfigReference specifies how the provider that will be used to
	// create, observe, update, and delete this managed resource should be
	// configured.
	// +kubebuilder:default={"name": "default"}
	ProviderConfigReference v12.Reference `json:"providerConfigRef,omitempty"`

	// Template when defined is used for creating Object instances
	// +optional
	Template *ObservedObjectTemplate `json:"objectTemplate,omitempty"`
}

ObservedObjectCollectionSpec defines the desired state of ObservedObjectCollection

func (*ObservedObjectCollectionSpec) DeepCopy

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

func (*ObservedObjectCollectionSpec) DeepCopyInto

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

type ObservedObjectCollectionStatus

type ObservedObjectCollectionStatus struct {
	v12.ResourceStatus `json:",inline"`

	// MembershipLabel is the label set on each member of this collection
	// and can be used for fetching them.
	// +optional
	MembershipLabel map[string]string `json:"membershipLabel,omitempty"`
}

ObservedObjectCollectionStatus represents the observed state of a ObservedObjectCollection

func (*ObservedObjectCollectionStatus) DeepCopy

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

func (*ObservedObjectCollectionStatus) DeepCopyInto

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

type ObservedObjectReference

type ObservedObjectReference struct {

	// Name of the observed object
	// +kubebuilder:validation:MinLength:=1
	// +kubebuilder:validation:MaxLength:=253
	Name string `json:"name"`
}

ObservedObjectReference represents a reference to Object with ObserveOnly management policy

func (*ObservedObjectReference) DeepCopy

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

func (*ObservedObjectReference) DeepCopyInto

func (in *ObservedObjectReference) DeepCopyInto(out *ObservedObjectReference)

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

type ObservedObjectTemplate

type ObservedObjectTemplate struct {

	// Objects metadata
	Metadata ObservedObjectTemplateMetadata `json:"metadata,omitempty"`
}

ObservedObjectTemplate represents template used when creating observe-only Objects matching the given selector

func (*ObservedObjectTemplate) DeepCopy

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

func (*ObservedObjectTemplate) DeepCopyInto

func (in *ObservedObjectTemplate) DeepCopyInto(out *ObservedObjectTemplate)

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

type ObservedObjectTemplateMetadata

type ObservedObjectTemplateMetadata struct {

	// Labels of an object
	Labels map[string]string `json:"labels,omitempty"`

	// Annotations of an object
	Annotations map[string]string `json:"annotations,omitempty"`
}

ObservedObjectTemplateMetadata represents objects metadata

func (*ObservedObjectTemplateMetadata) DeepCopy

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

func (*ObservedObjectTemplateMetadata) DeepCopyInto

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