Documentation ¶
Overview ¶
+k8s:deepcopy-gen=package +groupName=cluster.example.dev
Index ¶
- Constants
- Variables
- func Kind(kind string) schema.GroupKind
- func Resource(resource string) schema.GroupResource
- type Cluster
- func (in *Cluster) DeepCopy() *Cluster
- func (in *Cluster) DeepCopyInto(out *Cluster)
- func (in *Cluster) DeepCopyObject() runtime.Object
- func (c *Cluster) GetConditionSet() apis.ConditionSet
- func (*Cluster) GetGroupVersionKind() schema.GroupVersionKind
- func (as *Cluster) GetStatus() *duckv1.Status
- func (c *Cluster) SetDefaults(ctx context.Context)
- func (c *Cluster) Validate(ctx context.Context) *apis.FieldError
- type ClusterList
- type ClusterSpec
- type ClusterStatus
Constants ¶
const ( // ClusterConditionReady is set when the revision is starting to materialize // runtime resources, and becomes true when those resources are ready. ClusterConditionReady = apis.ConditionReady )
Variables ¶
var ( SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes) AddToScheme = SchemeBuilder.AddToScheme )
var SchemeGroupVersion = schema.GroupVersion{Group: cluster.GroupName, Version: "v1alpha1"}
SchemeGroupVersion is group version used to register these objects
Functions ¶
func Resource ¶
func Resource(resource string) schema.GroupResource
Resource takes an unqualified resource and returns a Group qualified GroupResource
Types ¶
type Cluster ¶
type Cluster struct { metav1.TypeMeta `json:",inline"` // +optional metav1.ObjectMeta `json:"metadata,omitempty"` // Spec holds the desired state. // +optional Spec ClusterSpec `json:"spec,omitempty"` // Status communicates the observed state. // +optional Status ClusterStatus `json:"status,omitempty"` }
Cluster describes a member cluster.
+genclient +genreconciler +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object +crd
func (*Cluster) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Cluster.
func (*Cluster) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Cluster) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*Cluster) GetConditionSet ¶
func (c *Cluster) GetConditionSet() apis.ConditionSet
GetConditionSet retrieves the condition set for this resource. Implements the KRShaped interface.
func (*Cluster) GetGroupVersionKind ¶
func (*Cluster) GetGroupVersionKind() schema.GroupVersionKind
GetGroupVersionKind implements kmeta.OwnerRefable
func (*Cluster) GetStatus ¶
GetStatus retrieves the status of the resource. Implements the KRShaped interface.
func (*Cluster) SetDefaults ¶
SetDefaults implements apis.Defaultable
type ClusterList ¶
type ClusterList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata"` Items []Cluster `json:"items"` }
ClusterList is a list of Cluster resources
+k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
func (*ClusterList) DeepCopy ¶
func (in *ClusterList) DeepCopy() *ClusterList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterList.
func (*ClusterList) DeepCopyInto ¶
func (in *ClusterList) DeepCopyInto(out *ClusterList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ClusterList) DeepCopyObject ¶
func (in *ClusterList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type ClusterSpec ¶
type ClusterSpec struct { }
ClusterSpec holds the desired state of the Cluster (from the client).
func (*ClusterSpec) DeepCopy ¶
func (in *ClusterSpec) DeepCopy() *ClusterSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterSpec.
func (*ClusterSpec) DeepCopyInto ¶
func (in *ClusterSpec) DeepCopyInto(out *ClusterSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ClusterSpec) Validate ¶
func (cs *ClusterSpec) Validate(ctx context.Context) *apis.FieldError
Validate implements apis.Validatable
type ClusterStatus ¶
ClusterStatus communicates the observed state of the Cluster (from the controller).
func (*ClusterStatus) DeepCopy ¶
func (in *ClusterStatus) DeepCopy() *ClusterStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterStatus.
func (*ClusterStatus) DeepCopyInto ¶
func (in *ClusterStatus) DeepCopyInto(out *ClusterStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ClusterStatus) InitializeConditions ¶
func (cs *ClusterStatus) InitializeConditions()
InitializeConditions sets the initial values to the conditions.
func (*ClusterStatus) MarkServiceAvailable ¶
func (cs *ClusterStatus) MarkServiceAvailable()
func (*ClusterStatus) MarkServiceUnavailable ¶
func (cs *ClusterStatus) MarkServiceUnavailable(name string)