Documentation ¶
Index ¶
- Constants
- Variables
- func RegisterServiceClusterAssignmentNamespaceFieldIndex(ctx context.Context, indexer client.FieldIndexer) error
- type ConditionStatus
- type CustomResourceDiscovery
- type CustomResourceDiscoveryCondition
- type CustomResourceDiscoveryConditionType
- type CustomResourceDiscoveryList
- type CustomResourceDiscoveryPhaseType
- type CustomResourceDiscoverySet
- type CustomResourceDiscoverySetCRDReference
- type CustomResourceDiscoverySetCondition
- type CustomResourceDiscoverySetConditionType
- type CustomResourceDiscoverySetList
- type CustomResourceDiscoverySetPhaseType
- type CustomResourceDiscoverySetSpec
- type CustomResourceDiscoverySetStatus
- func (in *CustomResourceDiscoverySetStatus) DeepCopy() *CustomResourceDiscoverySetStatus
- func (in *CustomResourceDiscoverySetStatus) DeepCopyInto(out *CustomResourceDiscoverySetStatus)
- func (s *CustomResourceDiscoverySetStatus) GetCondition(t CustomResourceDiscoverySetConditionType) (condition CustomResourceDiscoverySetCondition, exists bool)
- func (s *CustomResourceDiscoverySetStatus) SetCondition(condition CustomResourceDiscoverySetCondition)
- type CustomResourceDiscoverySpec
- type CustomResourceDiscoveryStatus
- func (in *CustomResourceDiscoveryStatus) DeepCopy() *CustomResourceDiscoveryStatus
- func (in *CustomResourceDiscoveryStatus) DeepCopyInto(out *CustomResourceDiscoveryStatus)
- func (s *CustomResourceDiscoveryStatus) GetCondition(t CustomResourceDiscoveryConditionType) (condition CustomResourceDiscoveryCondition, exists bool)
- func (s *CustomResourceDiscoveryStatus) SetCondition(condition CustomResourceDiscoveryCondition)
- type ObjectReference
- type ServiceCluster
- type ServiceClusterAssignment
- type ServiceClusterAssignmentCondition
- type ServiceClusterAssignmentConditionType
- type ServiceClusterAssignmentList
- type ServiceClusterAssignmentPhaseType
- type ServiceClusterAssignmentSpec
- type ServiceClusterAssignmentStatus
- func (in *ServiceClusterAssignmentStatus) DeepCopy() *ServiceClusterAssignmentStatus
- func (in *ServiceClusterAssignmentStatus) DeepCopyInto(out *ServiceClusterAssignmentStatus)
- func (s *ServiceClusterAssignmentStatus) GetCondition(conditionType ServiceClusterAssignmentConditionType) (condition ServiceClusterAssignmentCondition, exists bool)
- func (s *ServiceClusterAssignmentStatus) SetCondition(condition ServiceClusterAssignmentCondition)
- type ServiceClusterCondition
- type ServiceClusterConditionType
- type ServiceClusterList
- type ServiceClusterMetadata
- type ServiceClusterPhaseType
- type ServiceClusterSpec
- type ServiceClusterStatus
- func (in *ServiceClusterStatus) DeepCopy() *ServiceClusterStatus
- func (in *ServiceClusterStatus) DeepCopyInto(out *ServiceClusterStatus)
- func (s *ServiceClusterStatus) GetCondition(t ServiceClusterConditionType) (condition ServiceClusterCondition, exists bool)
- func (s *ServiceClusterStatus) SetCondition(condition ServiceClusterCondition)
- type WebhookStrategyType
Constants ¶
const (
ServiceClusterAssignmentNamespaceFieldIndex = "sca.kubecarrier.io/namespace"
)
const (
ServiceClusterTerminatingReason = "Deleting"
)
Variables ¶
var ( // GroupVersion is group version used to register these objects. GroupVersion = schema.GroupVersion{Group: "kubecarrier.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 ¶
func RegisterServiceClusterAssignmentNamespaceFieldIndex ¶
func RegisterServiceClusterAssignmentNamespaceFieldIndex(ctx context.Context, indexer client.FieldIndexer) error
RegisterServiceClusterAssignmentNamespaceFieldIndex adds a field index for ServiceClusterAssignment.Status.ServiceClusterNamespace.Name.
Types ¶
type ConditionStatus ¶
type ConditionStatus string
ConditionStatus represents a condition's status.
const ( // ConditionTrue represents the fact that a given condition is true. ConditionTrue ConditionStatus = "True" // ConditionFalse represents the fact that a given condition is false. ConditionFalse ConditionStatus = "False" // ConditionUnknown represents the fact that a given condition is unknown. ConditionUnknown ConditionStatus = "Unknown" // TerminatingReason represents why the condition is False when the object is being deleted. TerminatingReason = "Deleting" )
These are valid condition statuses. "ConditionTrue" means a resource is in the condition; "ConditionFalse" means a resource is not in the condition; "ConditionUnknown" means Kubernetes can't decide if a resource is in the condition or not.
type CustomResourceDiscovery ¶
type CustomResourceDiscovery struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec CustomResourceDiscoverySpec `json:"spec,omitempty"` Status CustomResourceDiscoveryStatus `json:"status,omitempty"` }
CustomResourceDiscovery tells KubeCarrier to discover a CustomResource from a ServiceCluster, register it in the Management Cluster and start a new process to reconcile instances of this CRD.
New instances of the CRD will be reconciled by creating a matching instance in the ServiceCluster. Each Namespace in the Managment Cluster needs a ServiceClusterAssignment object, mapping it to a Namespace in the ServiceCluster.
A CustomResourceDiscovery instance will be ready, if the CustomResource was found in the ServiceCluster and a clone of it is established in the Management Cluster. Deleting the instance will also remove the CRD and all instances of it.
**Example** ```yaml apiVersion: kubecarrier.io/v1alpha1 kind: CustomResourceDiscovery metadata:
name: couchdb.eu-west-1
spec:
crd: name: couchdbs.couchdb.io serviceCluster: name: eu-west-1
``` +kubebuilder:subresource:status +kubebuilder:object:root=true +kubebuilder:printcolumn:name="CustomResourceDefinition",type="string",JSONPath=".spec.crd.name" +kubebuilder:printcolumn:name="ServiceCluster",type="string",JSONPath=".spec.serviceCluster.name" +kubebuilder:printcolumn:name="Status",type="string",JSONPath=".status.phase" +kubebuilder:printcolumn:name="Age",type="date",JSONPath=".metadata.creationTimestamp" +kubebuilder:resource:categories=all +kubebuilder:resource:shortName=crdis
func (*CustomResourceDiscovery) DeepCopy ¶
func (in *CustomResourceDiscovery) DeepCopy() *CustomResourceDiscovery
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CustomResourceDiscovery.
func (*CustomResourceDiscovery) DeepCopyInto ¶
func (in *CustomResourceDiscovery) DeepCopyInto(out *CustomResourceDiscovery)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*CustomResourceDiscovery) DeepCopyObject ¶
func (in *CustomResourceDiscovery) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*CustomResourceDiscovery) IsReady ¶
func (s *CustomResourceDiscovery) IsReady() bool
IsReady returns if the CustomResourceDiscovery is ready.
type CustomResourceDiscoveryCondition ¶
type CustomResourceDiscoveryCondition struct { // LastTransitionTime is the last time the condition transit from one status to another. LastTransitionTime metav1.Time `json:"lastTransitionTime"` // Message is the human readable message indicating details about last transition. Message string `json:"message"` // Reason is the (brief) reason for the condition's last transition. Reason string `json:"reason"` // Status of the condition, one of ('True', 'False', 'Unknown'). Status ConditionStatus `json:"status"` // Type of the condition, currently ('Ready'). Type CustomResourceDiscoveryConditionType `json:"type"` }
CustomResourceDiscoveryCondition contains details of the current state of this CustomResourceDiscovery.
func (*CustomResourceDiscoveryCondition) DeepCopy ¶
func (in *CustomResourceDiscoveryCondition) DeepCopy() *CustomResourceDiscoveryCondition
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CustomResourceDiscoveryCondition.
func (*CustomResourceDiscoveryCondition) DeepCopyInto ¶
func (in *CustomResourceDiscoveryCondition) DeepCopyInto(out *CustomResourceDiscoveryCondition)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (CustomResourceDiscoveryCondition) True ¶
func (c CustomResourceDiscoveryCondition) True() bool
True returns whether .Status == "True"
type CustomResourceDiscoveryConditionType ¶
type CustomResourceDiscoveryConditionType string
CustomResourceDiscoveryConditionType represents a CustomResourceDiscoveryCondition value.
const ( // CustomResourceDiscoveryReady represents a CustomResourceDiscovery condition is in ready state. CustomResourceDiscoveryReady CustomResourceDiscoveryConditionType = "Ready" // CustomResourceDiscoveryDiscovered represents a CustomResourceDiscovery has been discovered by the manager controller. CustomResourceDiscoveryDiscovered CustomResourceDiscoveryConditionType = "Discovered" // CustomResourceDiscoveryEstablished is True if the crd could be registered in the management cluster and is now served by the kube-apiserver. CustomResourceDiscoveryEstablished CustomResourceDiscoveryConditionType = "Established" // CustomResourceDiscoveryControllerReady is Ture if the controller to propagate the crd into the service cluster is ready. CustomResourceDiscoveryControllerReady CustomResourceDiscoveryConditionType = "ControllerReady" )
type CustomResourceDiscoveryList ¶
type CustomResourceDiscoveryList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []CustomResourceDiscovery `json:"items"` }
CustomResourceDiscoveryList is a list of CustomResourceDiscovery. +kubebuilder:object:root=true
func (*CustomResourceDiscoveryList) DeepCopy ¶
func (in *CustomResourceDiscoveryList) DeepCopy() *CustomResourceDiscoveryList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CustomResourceDiscoveryList.
func (*CustomResourceDiscoveryList) DeepCopyInto ¶
func (in *CustomResourceDiscoveryList) DeepCopyInto(out *CustomResourceDiscoveryList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*CustomResourceDiscoveryList) DeepCopyObject ¶
func (in *CustomResourceDiscoveryList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type CustomResourceDiscoveryPhaseType ¶
type CustomResourceDiscoveryPhaseType string
CustomResourceDiscoveryPhaseType represents all conditions as a single string for printing in kubectl.
const ( CustomResourceDiscoveryPhaseReady CustomResourceDiscoveryPhaseType = "Ready" CustomResourceDiscoveryPhaseNotReady CustomResourceDiscoveryPhaseType = "NotReady" CustomResourceDiscoveryPhaseUnknown CustomResourceDiscoveryPhaseType = "Unknown" )
Values of CustomResourceDiscoveryPhaseType.
type CustomResourceDiscoverySet ¶
type CustomResourceDiscoverySet struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec CustomResourceDiscoverySetSpec `json:"spec,omitempty"` Status CustomResourceDiscoverySetStatus `json:"status,omitempty"` }
CustomResourceDiscoverySet manages multiple CustomResourceDiscovery objects for a set of ServiceClusters.
**Example** ```yaml apiVersion: kubecarrier.io/v1alpha1 kind: CustomResourceDiscoverySet metadata:
name: couchdb
spec:
crd: name: couchdbs.couchdb.io serviceClusterSelector: {}
``` +kubebuilder:object:root=true +kubebuilder:subresource:status +kubebuilder:printcolumn:name="CustomResourceDefinition",type="string",JSONPath=".spec.crd.name" +kubebuilder:printcolumn:name="Status",type="string",JSONPath=".status.phase" +kubebuilder:resource:categories=all;kubecarrier-provider,shortName=crdisset
func (*CustomResourceDiscoverySet) DeepCopy ¶
func (in *CustomResourceDiscoverySet) DeepCopy() *CustomResourceDiscoverySet
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CustomResourceDiscoverySet.
func (*CustomResourceDiscoverySet) DeepCopyInto ¶
func (in *CustomResourceDiscoverySet) DeepCopyInto(out *CustomResourceDiscoverySet)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*CustomResourceDiscoverySet) DeepCopyObject ¶
func (in *CustomResourceDiscoverySet) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*CustomResourceDiscoverySet) IsReady ¶
func (s *CustomResourceDiscoverySet) IsReady() bool
IsReady returns if the CustomResourceDiscoverySet is ready.
type CustomResourceDiscoverySetCRDReference ¶
type CustomResourceDiscoverySetCRDReference struct { CRD ObjectReference `json:"crd"` ServiceCluster ObjectReference `json:"serviceCluster"` }
CustomResourceDiscoverySetCRDReference references a discovered CustomResourceDefinition.
func (*CustomResourceDiscoverySetCRDReference) DeepCopy ¶
func (in *CustomResourceDiscoverySetCRDReference) DeepCopy() *CustomResourceDiscoverySetCRDReference
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CustomResourceDiscoverySetCRDReference.
func (*CustomResourceDiscoverySetCRDReference) DeepCopyInto ¶
func (in *CustomResourceDiscoverySetCRDReference) DeepCopyInto(out *CustomResourceDiscoverySetCRDReference)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type CustomResourceDiscoverySetCondition ¶
type CustomResourceDiscoverySetCondition struct { // LastTransitionTime is the last time the condition transit from one status to another. LastTransitionTime metav1.Time `json:"lastTransitionTime"` // Message is the human readable message indicating details about last transition. Message string `json:"message"` // Reason is the (brief) reason for the condition's last transition. Reason string `json:"reason"` // Status of the condition, one of ('True', 'False', 'Unknown'). Status ConditionStatus `json:"status"` // Type of the condition, currently ('Ready'). Type CustomResourceDiscoverySetConditionType `json:"type"` }
CustomResourceDiscoverySetCondition contains details for the current condition of this CustomResourceDiscoverySet.
func (*CustomResourceDiscoverySetCondition) DeepCopy ¶
func (in *CustomResourceDiscoverySetCondition) DeepCopy() *CustomResourceDiscoverySetCondition
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CustomResourceDiscoverySetCondition.
func (*CustomResourceDiscoverySetCondition) DeepCopyInto ¶
func (in *CustomResourceDiscoverySetCondition) DeepCopyInto(out *CustomResourceDiscoverySetCondition)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type CustomResourceDiscoverySetConditionType ¶
type CustomResourceDiscoverySetConditionType string
CustomResourceDiscoverySetConditionType represents a CustomResourceDiscoverySetCondition value.
const ( // CustomResourceDiscoverySetReady is True when all CRDiscoveries are ready. CustomResourceDiscoverySetReady CustomResourceDiscoverySetConditionType = "Ready" )
type CustomResourceDiscoverySetList ¶
type CustomResourceDiscoverySetList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []CustomResourceDiscoverySet `json:"items"` }
CustomResourceDiscoverySetList is a list of CustomResourceDiscoverySet. +kubebuilder:object:root=true
func (*CustomResourceDiscoverySetList) DeepCopy ¶
func (in *CustomResourceDiscoverySetList) DeepCopy() *CustomResourceDiscoverySetList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CustomResourceDiscoverySetList.
func (*CustomResourceDiscoverySetList) DeepCopyInto ¶
func (in *CustomResourceDiscoverySetList) DeepCopyInto(out *CustomResourceDiscoverySetList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*CustomResourceDiscoverySetList) DeepCopyObject ¶
func (in *CustomResourceDiscoverySetList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type CustomResourceDiscoverySetPhaseType ¶
type CustomResourceDiscoverySetPhaseType string
CustomResourceDiscoverySetPhaseType represents all conditions as a single string for printing in kubectl.
const ( CustomResourceDiscoverySetPhaseReady CustomResourceDiscoverySetPhaseType = "Ready" CustomResourceDiscoverySetPhaseNotReady CustomResourceDiscoverySetPhaseType = "NotReady" CustomResourceDiscoverySetPhaseUnknown CustomResourceDiscoverySetPhaseType = "Unknown" )
Values of CustomResourceDiscoverySetPhaseType.
type CustomResourceDiscoverySetSpec ¶
type CustomResourceDiscoverySetSpec struct { // CRD references a CustomResourceDefinition within the ServiceCluster. CRD ObjectReference `json:"crd"` // ServiceClusterSelector references a set of ServiceClusters to search the CustomResourceDefinition on. ServiceClusterSelector metav1.LabelSelector `json:"serviceClusterSelector"` // WebhookStrategy configs the webhooks of the CRDs which are registered in the management cluster by this CustomResourceDiscoverySet. // There are two possible values for this configuration {None (by default), ServiceCluster} // None (by default): Webhook will only check if there is an available ServiceClusterAssignment in the current Namespace. // ServiceCluster: Webhook will call webhooks of the CRD in the ServiceCluster with dry-run flag. // +kubebuilder:default:=None WebhookStrategy WebhookStrategyType `json:"webhookStrategy,omitempty"` }
CustomResourceDiscoverySetSpec describes the desired state of a CustomResourceDiscoverySet.
func (*CustomResourceDiscoverySetSpec) DeepCopy ¶
func (in *CustomResourceDiscoverySetSpec) DeepCopy() *CustomResourceDiscoverySetSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CustomResourceDiscoverySetSpec.
func (*CustomResourceDiscoverySetSpec) DeepCopyInto ¶
func (in *CustomResourceDiscoverySetSpec) DeepCopyInto(out *CustomResourceDiscoverySetSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type CustomResourceDiscoverySetStatus ¶
type CustomResourceDiscoverySetStatus struct { // ManagementClusterCRDs contains the CRDs information that created by the CustomResourceDiscovery objects of this CustomResourceDiscoverySet. ManagementClusterCRDs []CustomResourceDiscoverySetCRDReference `json:"managementClusterCRDs,omitempty"` // DEPRECATED. // Phase represents the current lifecycle state of this object // consider this field DEPRECATED, it will be removed as soon as there // is a mechanism to map conditions to a string when printing the property // is only present for display purposes, for everything else use conditions Phase CustomResourceDiscoverySetPhaseType `json:"phase,omitempty"` // Conditions is a list of all conditions this CustomResourceDiscovery is in. Conditions []CustomResourceDiscoverySetCondition `json:"conditions,omitempty"` // The most recent generation observed by the controller. ObservedGeneration int64 `json:"observedGeneration,omitempty"` }
CustomResourceDiscoverySetStatus represents the observed state of a CustomResourceDiscoverySet.
func (*CustomResourceDiscoverySetStatus) DeepCopy ¶
func (in *CustomResourceDiscoverySetStatus) DeepCopy() *CustomResourceDiscoverySetStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CustomResourceDiscoverySetStatus.
func (*CustomResourceDiscoverySetStatus) DeepCopyInto ¶
func (in *CustomResourceDiscoverySetStatus) DeepCopyInto(out *CustomResourceDiscoverySetStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*CustomResourceDiscoverySetStatus) GetCondition ¶
func (s *CustomResourceDiscoverySetStatus) GetCondition(t CustomResourceDiscoverySetConditionType) (condition CustomResourceDiscoverySetCondition, exists bool)
GetCondition returns the Condition of the given type, if it exists.
func (*CustomResourceDiscoverySetStatus) SetCondition ¶
func (s *CustomResourceDiscoverySetStatus) SetCondition(condition CustomResourceDiscoverySetCondition)
SetCondition replaces or adds the given condition.
type CustomResourceDiscoverySpec ¶
type CustomResourceDiscoverySpec struct { // CRD references a CustomResourceDefinition within the ServiceCluster. CRD ObjectReference `json:"crd"` // ServiceCluster references a ServiceCluster to search the CustomResourceDefinition on. ServiceCluster ObjectReference `json:"serviceCluster"` // WebhookStrategy configs the webhook of the CRD which is registered in the management cluster by this CustomResourceDiscovery. // There are two possible values for this configuration {None (by default), ServiceCluster} // None (by default): Webhook will only check if there is an available ServiceClusterAssignment in the current Namespace. // ServiceCluster: Webhook will call webhooks of the CRD in the ServiceCluster with dry-run flag. // +kubebuilder:default:=None WebhookStrategy WebhookStrategyType `json:"webhookStrategy,omitempty"` }
CustomResourceDiscoverySpec describes the desired state of a CustomResourceDiscovery.
func (*CustomResourceDiscoverySpec) DeepCopy ¶
func (in *CustomResourceDiscoverySpec) DeepCopy() *CustomResourceDiscoverySpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CustomResourceDiscoverySpec.
func (*CustomResourceDiscoverySpec) DeepCopyInto ¶
func (in *CustomResourceDiscoverySpec) DeepCopyInto(out *CustomResourceDiscoverySpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type CustomResourceDiscoveryStatus ¶
type CustomResourceDiscoveryStatus struct { // CRD defines the original CustomResourceDefinition specification from the service cluster. // +kubebuilder:pruning:PreserveUnknownFields CRD *apiextensionsv1.CustomResourceDefinition `json:"crd,omitempty"` // ManagementClusterCRD references the CustomResourceDefinition that is created by a CustomResourceDiscovery. ManagementClusterCRD *ObjectReference `json:"managementClusterCRD,omitempty"` // DEPRECATED. // Phase represents the current lifecycle state of this object // consider this field DEPRECATED, it will be removed as soon as there // is a mechanism to map conditions to a string when printing the property // is only present for display purposes, for everything else use conditions Phase CustomResourceDiscoveryPhaseType `json:"phase,omitempty"` // Conditions is a list of all conditions this CustomResourceDiscovery is in. Conditions []CustomResourceDiscoveryCondition `json:"conditions,omitempty"` // The most recent generation observed by the controller. ObservedGeneration int64 `json:"observedGeneration,omitempty"` }
CustomResourceDiscoveryStatus represents the observed state of a CustomResourceDiscovery.
func (*CustomResourceDiscoveryStatus) DeepCopy ¶
func (in *CustomResourceDiscoveryStatus) DeepCopy() *CustomResourceDiscoveryStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CustomResourceDiscoveryStatus.
func (*CustomResourceDiscoveryStatus) DeepCopyInto ¶
func (in *CustomResourceDiscoveryStatus) DeepCopyInto(out *CustomResourceDiscoveryStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*CustomResourceDiscoveryStatus) GetCondition ¶
func (s *CustomResourceDiscoveryStatus) GetCondition(t CustomResourceDiscoveryConditionType) (condition CustomResourceDiscoveryCondition, exists bool)
GetCondition returns the Condition of the given type, if it exists.
func (*CustomResourceDiscoveryStatus) SetCondition ¶
func (s *CustomResourceDiscoveryStatus) SetCondition(condition CustomResourceDiscoveryCondition)
SetCondition replaces or adds the given condition.
type ObjectReference ¶
type ObjectReference struct { // +kubebuilder:validation:MinLength=1 Name string `json:"name"` }
ObjectReference describes the link to another object in the same Namespace.
func (*ObjectReference) DeepCopy ¶
func (in *ObjectReference) DeepCopy() *ObjectReference
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ObjectReference.
func (*ObjectReference) DeepCopyInto ¶
func (in *ObjectReference) DeepCopyInto(out *ObjectReference)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ServiceCluster ¶
type ServiceCluster struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec ServiceClusterSpec `json:"spec,omitempty"` Status ServiceClusterStatus `json:"status,omitempty"` }
ServiceCluster represents a Kubernets Cluster registered into KubeCarrier.
**Example** ```yaml apiVersion: kubecarrier.io/v1alpha1 kind: ServiceCluster metadata:
name: eu-west-1
spec:
metadata: displayName: EU West 1 kubeconfigSecret: name: eu-west-1-kubeconfig
``` +kubebuilder:object:root=true +kubebuilder:subresource:status +kubebuilder:printcolumn:name="Status",type="string",JSONPath=".status.phase" +kubebuilder:printcolumn:name="Display Name",type="string",JSONPath=".spec.metadata.displayName" +kubebuilder:printcolumn:name="Kubernetes Version",type="string",JSONPath=".status.kubernetesVersion.gitVersion" +kubebuilder:printcolumn:name="Age",type="date",JSONPath=".metadata.creationTimestamp" +kubebuilder:resource:categories=all;kubecarrier-provider,shortName=sc
func (*ServiceCluster) DeepCopy ¶
func (in *ServiceCluster) DeepCopy() *ServiceCluster
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ServiceCluster.
func (*ServiceCluster) DeepCopyInto ¶
func (in *ServiceCluster) DeepCopyInto(out *ServiceCluster)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ServiceCluster) DeepCopyObject ¶
func (in *ServiceCluster) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type ServiceClusterAssignment ¶
type ServiceClusterAssignment struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec ServiceClusterAssignmentSpec `json:"spec,omitempty"` Status ServiceClusterAssignmentStatus `json:"status,omitempty"` }
ServiceClusterAssignment is assigning a Namespace in the Management cluster with a Namespace on the ServiceCluster.
The Namespace in the ServiceCluster will be created automatically and is reported in the instance status.
**Example** ```yaml apiVersion: kubecarrier.io/v1alpha1 kind: ServiceClusterAssignment metadata:
name: example1.eu-west-1
spec:
serviceCluster: name: eu-west-1 managementNamespace: name: example1
``` +kubebuilder:object:root=true +kubebuilder:subresource:status +kubebuilder:printcolumn:name="Status",type="string",JSONPath=".status.phase" +kubebuilder:printcolumn:name="Age",type="date",JSONPath=".metadata.creationTimestamp" +kubebuilder:resource:categories=all +kubebuilder:resource:shortName=sca
func (*ServiceClusterAssignment) DeepCopy ¶
func (in *ServiceClusterAssignment) DeepCopy() *ServiceClusterAssignment
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ServiceClusterAssignment.
func (*ServiceClusterAssignment) DeepCopyInto ¶
func (in *ServiceClusterAssignment) DeepCopyInto(out *ServiceClusterAssignment)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ServiceClusterAssignment) DeepCopyObject ¶
func (in *ServiceClusterAssignment) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*ServiceClusterAssignment) IsReady ¶
func (s *ServiceClusterAssignment) IsReady() bool
IsReady returns if the ServiceClusterAssignment is ready.
type ServiceClusterAssignmentCondition ¶
type ServiceClusterAssignmentCondition struct { // LastTransitionTime is the last time the condition transit from one status to another. LastTransitionTime metav1.Time `json:"lastTransitionTime"` // Message is the human readable message indicating details about last transition. Message string `json:"message"` // Reason is the (brief) reason for the condition's last transition. Reason string `json:"reason"` // Status of the condition, one of ('True', 'False', 'Unknown'). Status ConditionStatus `json:"status"` // Type of the condition, currently ('Ready'). Type ServiceClusterAssignmentConditionType `json:"type"` }
ServiceClusterAssignmentCondition contains details for the current condition of this ServiceClusterAssignment.
func (*ServiceClusterAssignmentCondition) DeepCopy ¶
func (in *ServiceClusterAssignmentCondition) DeepCopy() *ServiceClusterAssignmentCondition
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ServiceClusterAssignmentCondition.
func (*ServiceClusterAssignmentCondition) DeepCopyInto ¶
func (in *ServiceClusterAssignmentCondition) DeepCopyInto(out *ServiceClusterAssignmentCondition)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (ServiceClusterAssignmentCondition) True ¶
func (c ServiceClusterAssignmentCondition) True() bool
True returns whether .Status == "True"
type ServiceClusterAssignmentConditionType ¶
type ServiceClusterAssignmentConditionType string
ServiceClusterAssignmentConditionType represents a ServiceClusterAssignmentCondition value.
const ( // ServiceClusterAssignmentReady represents a ServiceClusterAssignment condition is in ready state. ServiceClusterAssignmentReady ServiceClusterAssignmentConditionType = "Ready" )
type ServiceClusterAssignmentList ¶
type ServiceClusterAssignmentList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []ServiceClusterAssignment `json:"items"` }
ServiceClusterAssignmentList contains a list of ServiceClusterAssignment. +kubebuilder:object:root=true
func (*ServiceClusterAssignmentList) DeepCopy ¶
func (in *ServiceClusterAssignmentList) DeepCopy() *ServiceClusterAssignmentList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ServiceClusterAssignmentList.
func (*ServiceClusterAssignmentList) DeepCopyInto ¶
func (in *ServiceClusterAssignmentList) DeepCopyInto(out *ServiceClusterAssignmentList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ServiceClusterAssignmentList) DeepCopyObject ¶
func (in *ServiceClusterAssignmentList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type ServiceClusterAssignmentPhaseType ¶
type ServiceClusterAssignmentPhaseType string
ServiceClusterAssignmentPhaseType represents all conditions as a single string for printing in kubectl.
const ( ServiceClusterAssignmentPhaseReady ServiceClusterAssignmentPhaseType = "Ready" ServiceClusterAssignmentPhaseNotReady ServiceClusterAssignmentPhaseType = "NotReady" ServiceClusterAssignmentPhaseUnknown ServiceClusterAssignmentPhaseType = "Unknown" )
Values of ServiceClusterAssignmentPhaseType
type ServiceClusterAssignmentSpec ¶
type ServiceClusterAssignmentSpec struct { // References the ServiceCluster. ServiceCluster ObjectReference `json:"serviceCluster"` // References the source namespace in the management cluster. ManagementClusterNamespace ObjectReference `json:"managementNamespace"` }
ServiceClusterAssignmentSpec describes the desired state of ServiceClusterAssignment.
func (*ServiceClusterAssignmentSpec) DeepCopy ¶
func (in *ServiceClusterAssignmentSpec) DeepCopy() *ServiceClusterAssignmentSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ServiceClusterAssignmentSpec.
func (*ServiceClusterAssignmentSpec) DeepCopyInto ¶
func (in *ServiceClusterAssignmentSpec) DeepCopyInto(out *ServiceClusterAssignmentSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ServiceClusterAssignmentStatus ¶
type ServiceClusterAssignmentStatus struct { // DEPRECATED. // Phase represents the current lifecycle state of this object // consider this field DEPRECATED, it will be removed as soon as there // is a mechanism to map conditions to a string when printing the property // is only present for display purposes, for everything else use conditions Phase ServiceClusterAssignmentPhaseType `json:"phase,omitempty"` // Conditions is a list of all conditions this ServiceClusterAssignment is in. Conditions []ServiceClusterAssignmentCondition `json:"conditions,omitempty"` // The most recent generation observed by the controller. ObservedGeneration int64 `json:"observedGeneration,omitempty"` // ServiceClusterNamespace references the Namespace on the ServiceCluster that was assigned. ServiceClusterNamespace *ObjectReference `json:"serviceClusterNamespace,omitempty"` }
ServiceClusterAssignmentStatus represents the observed state of ServiceClusterAssignment.
func (*ServiceClusterAssignmentStatus) DeepCopy ¶
func (in *ServiceClusterAssignmentStatus) DeepCopy() *ServiceClusterAssignmentStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ServiceClusterAssignmentStatus.
func (*ServiceClusterAssignmentStatus) DeepCopyInto ¶
func (in *ServiceClusterAssignmentStatus) DeepCopyInto(out *ServiceClusterAssignmentStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ServiceClusterAssignmentStatus) GetCondition ¶
func (s *ServiceClusterAssignmentStatus) GetCondition(conditionType ServiceClusterAssignmentConditionType) (condition ServiceClusterAssignmentCondition, exists bool)
GetCondition returns the Condition of the given type, if it exists
func (*ServiceClusterAssignmentStatus) SetCondition ¶
func (s *ServiceClusterAssignmentStatus) SetCondition(condition ServiceClusterAssignmentCondition)
SetCondition replaces or adds the given condition
type ServiceClusterCondition ¶
type ServiceClusterCondition struct { // LastHeartbeatTime is the timestamp corresponding to the last update of this condition. LastHeartbeatTime metav1.Time `json:"lastHeartbeatTime"` // LastTransitionTime is the last time the condition transit from one status to another. LastTransitionTime metav1.Time `json:"lastTransitionTime"` // Message is the human readable message indicating details about last transition. Message string `json:"message"` // Reason is the (brief) reason for the condition's last transition. Reason string `json:"reason"` // Status of the condition, one of ('True', 'False', 'Unknown'). Status ConditionStatus `json:"status"` // Type of the condition, currently ('Ready'). Type ServiceClusterConditionType `json:"type"` }
ServiceClusterCondition contains details for the current condition of this ServiceCluster.
func (*ServiceClusterCondition) DeepCopy ¶
func (in *ServiceClusterCondition) DeepCopy() *ServiceClusterCondition
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ServiceClusterCondition.
func (*ServiceClusterCondition) DeepCopyInto ¶
func (in *ServiceClusterCondition) DeepCopyInto(out *ServiceClusterCondition)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (ServiceClusterCondition) True ¶
func (c ServiceClusterCondition) True() bool
True returns whether .Status == "True"
type ServiceClusterConditionType ¶
type ServiceClusterConditionType string
ServiceClusterConditionType represents a ServiceClusterCondition value.
const ( // ServiceClusterReady represents a ServiceCluster condition is in ready state. ServiceClusterReady ServiceClusterConditionType = "Ready" // ServiceClusterControllerReady is True if the Ferry component is ready. ServiceClusterControllerReady ServiceClusterConditionType = "ControllerReady" // ServiceClusterControllerReachable is True if the Remote Service Cluster is Reachable. ServiceClusterReachable ServiceClusterConditionType = "ServiceClusterReachable" )
type ServiceClusterList ¶
type ServiceClusterList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []ServiceCluster `json:"items"` }
ServiceClusterList contains a list of ServiceCluster. +kubebuilder:object:root=true
func (*ServiceClusterList) DeepCopy ¶
func (in *ServiceClusterList) DeepCopy() *ServiceClusterList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ServiceClusterList.
func (*ServiceClusterList) DeepCopyInto ¶
func (in *ServiceClusterList) DeepCopyInto(out *ServiceClusterList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ServiceClusterList) DeepCopyObject ¶
func (in *ServiceClusterList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type ServiceClusterMetadata ¶
type ServiceClusterMetadata struct { // DisplayName is the human-readable name of this ServiceCluster. DisplayName string `json:"displayName,omitempty"` // Description is the human-readable description of this ServiceCluster. Description string `json:"description,omitempty"` }
ServiceClusterMetadata describes metadata of the ServiceCluster for the Service Catalog.
func (*ServiceClusterMetadata) DeepCopy ¶
func (in *ServiceClusterMetadata) DeepCopy() *ServiceClusterMetadata
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ServiceClusterMetadata.
func (*ServiceClusterMetadata) DeepCopyInto ¶
func (in *ServiceClusterMetadata) DeepCopyInto(out *ServiceClusterMetadata)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ServiceClusterPhaseType ¶
type ServiceClusterPhaseType string
ServiceClusterPhaseType represents all conditions as a single string for printing in kubectl.
const ( ServiceClusterPhaseUnknown ServiceClusterPhaseType = "Unknown" ServiceClusterPhaseReady ServiceClusterPhaseType = "Ready" ServiceClusterPhaseNotReady ServiceClusterPhaseType = "NotReady" ServiceClusterPhaseTerminating ServiceClusterPhaseType = "Terminating" )
Values of ServiceClusterPhaseType
type ServiceClusterSpec ¶
type ServiceClusterSpec struct { // Metadata for display in the Service Catalog. Metadata ServiceClusterMetadata `json:"metadata,omitempty"` // KubeconfigSecret specifies the Kubeconfig to use when connecting to the ServiceCluster. KubeconfigSecret ObjectReference `json:"kubeconfigSecret"` }
ServiceClusterSpec describes the desired state of a ServiceCluster.
func (*ServiceClusterSpec) DeepCopy ¶
func (in *ServiceClusterSpec) DeepCopy() *ServiceClusterSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ServiceClusterSpec.
func (*ServiceClusterSpec) DeepCopyInto ¶
func (in *ServiceClusterSpec) DeepCopyInto(out *ServiceClusterSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ServiceClusterStatus ¶
type ServiceClusterStatus struct { // DEPRECATED. // Phase represents the current lifecycle state of this object // consider this field DEPRECATED, it will be removed as soon as there // is a mechanism to map conditions to a string when printing the property // is only present for display purposes, for everything else use conditions Phase ServiceClusterPhaseType `json:"phase,omitempty"` // Conditions is a list of all conditions this ServiceCluster is in. Conditions []ServiceClusterCondition `json:"conditions,omitempty"` // The most recent generation observed by the controller. ObservedGeneration int64 `json:"observedGeneration,omitempty"` // KubernetesVersion of the service cluster API Server KubernetesVersion *version.Info `json:"kubernetesVersion,omitempty"` }
ServiceClusterStatus represents the observed state of a ServiceCluster.
func (*ServiceClusterStatus) DeepCopy ¶
func (in *ServiceClusterStatus) DeepCopy() *ServiceClusterStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ServiceClusterStatus.
func (*ServiceClusterStatus) DeepCopyInto ¶
func (in *ServiceClusterStatus) DeepCopyInto(out *ServiceClusterStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ServiceClusterStatus) GetCondition ¶
func (s *ServiceClusterStatus) GetCondition(t ServiceClusterConditionType) (condition ServiceClusterCondition, exists bool)
GetCondition returns the Condition of the given type, if it exists
func (*ServiceClusterStatus) SetCondition ¶
func (s *ServiceClusterStatus) SetCondition(condition ServiceClusterCondition)
SetCondition replaces or adds the given condition
type WebhookStrategyType ¶
type WebhookStrategyType string
WebhookStrategyType represents all types of the webhook strategies of the CustomResourceDiscovery. +kubebuilder:validation:Enum=None;ServiceCluster
const ( WebhookStrategyTypeNone WebhookStrategyType = "None" WebhookStrategyTypeServiceCluster WebhookStrategyType = "ServiceCluster" )
Values of the WebhookStrategyType.