Documentation ¶
Overview ¶
Package v1beta1 contains API Schema definitions for the infrastructure v1beta1 API group +kubebuilder:object:generate=true +groupName=infrastructure.cluster.x-k8s.io
Index ¶
- Constants
- Variables
- type EndpointAccess
- type TKECluster
- func (in *TKECluster) DeepCopy() *TKECluster
- func (in *TKECluster) DeepCopyInto(out *TKECluster)
- func (in *TKECluster) DeepCopyObject() runtime.Object
- func (r *TKECluster) Default()
- func (*TKECluster) Hub()
- func (r *TKECluster) SetupWebhookWithManager(mgr ctrl.Manager) error
- func (r *TKECluster) ValidateCreate() error
- func (r *TKECluster) ValidateDelete() error
- func (r *TKECluster) ValidateUpdate(old runtime.Object) error
- type TKEClusterList
- type TKEClusterSpec
- type TKEClusterStatus
- type TKEManagedMachinePool
- func (in *TKEManagedMachinePool) DeepCopy() *TKEManagedMachinePool
- func (in *TKEManagedMachinePool) DeepCopyInto(out *TKEManagedMachinePool)
- func (in *TKEManagedMachinePool) DeepCopyObject() runtime.Object
- func (r *TKEManagedMachinePool) Default()
- func (r *TKEManagedMachinePool) GetConditions() clusterv1.Conditions
- func (*TKEManagedMachinePool) Hub()
- func (r *TKEManagedMachinePool) SetConditions(conditions clusterv1.Conditions)
- func (r *TKEManagedMachinePool) SetupWebhookWithManager(mgr ctrl.Manager) error
- func (r *TKEManagedMachinePool) ValidateCreate() error
- func (r *TKEManagedMachinePool) ValidateDelete() error
- func (r *TKEManagedMachinePool) ValidateUpdate(old runtime.Object) error
- type TKEManagedMachinePoolList
- type TKEManagedMachinePoolSpec
- type TKEManagedMachinePoolStatus
Constants ¶
const ( // TKENodepoolReadyCondition condition reports on the successful reconciliation of tke node pool. TKENodepoolReadyCondition clusterv1.ConditionType = "TKENodepoolReady" // WaitingForTKEClusterReason used when the machine pool is waiting for // tke cluster infrastructure to be ready before proceeding. WaitingForTKEClusterReason = "WaitingForTKECluster" )
const ( // ConditionSeverityError specifies that a condition with `Status=False` is an error. ConditionSeverityError clusterv1.ConditionSeverity = "Error" // ConditionSeverityWarning specifies that a condition with `Status=False` is a warning. ConditionSeverityWarning clusterv1.ConditionSeverity = "Warning" // ConditionSeverityInfo specifies that a condition with `Status=False` is informative. ConditionSeverityInfo clusterv1.ConditionSeverity = "Info" // ConditionSeverityNone should apply only to conditions with `Status=True`. ConditionSeverityNone clusterv1.ConditionSeverity = "" )
const (
// TKEClusterFinalizer allows the controller to clean up resources on delete.
TKEClusterFinalizer = "tkecluster.infrastructure.cluster.x-k8s.io"
)
const (
// TKEClusterFinalizer allows the controller to clean up resources on delete.
TKEManagedMachinePoolFinalizer = "tkemanagedmachinepool.infrastructure.cluster.x-k8s.io"
)
Variables ¶
var ( // GroupVersion is group version used to register these objects GroupVersion = schema.GroupVersion{Group: "infrastructure.cluster.x-k8s.io", Version: "v1beta1"} // 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 EndpointAccess ¶
type EndpointAccess struct { // Public controls whether control plane endpoints are publicly accessible // +optional Public *bool `json:"public,omitempty"` // SecurityGroup specifies which security to associate with public endpoint // +optional SecurityGroup *string `json:"securityGroup,omitempty"` // Private points VPC-internal control plane access to the private endpoint // +optional Private *bool `json:"private,omitempty"` // SubnetID specifies which subent to associate with private endpoint // +optional SubnetID *string `json:"subnetID,omitempty"` // IsExtranet Whether it is external network access (TRUE external network access FALSE internal network access, default value: FALSE) // +optional IsExtranet *bool `json:"IsExtranet,omitempty" name:"IsExtranet"` }
EndpointAccess specifies how control plane endpoints are accessible
func (*EndpointAccess) DeepCopy ¶
func (in *EndpointAccess) DeepCopy() *EndpointAccess
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new EndpointAccess.
func (*EndpointAccess) DeepCopyInto ¶
func (in *EndpointAccess) DeepCopyInto(out *EndpointAccess)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type TKECluster ¶
type TKECluster struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec TKEClusterSpec `json:"spec,omitempty"` Status TKEClusterStatus `json:"status,omitempty"` }
TKECluster is the Schema for the tkeclusters API
func (*TKECluster) DeepCopy ¶
func (in *TKECluster) DeepCopy() *TKECluster
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TKECluster.
func (*TKECluster) DeepCopyInto ¶
func (in *TKECluster) DeepCopyInto(out *TKECluster)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*TKECluster) DeepCopyObject ¶
func (in *TKECluster) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*TKECluster) Default ¶
func (r *TKECluster) Default()
Default implements webhook.Defaulter so a webhook will be registered for the type
func (*TKECluster) Hub ¶
func (*TKECluster) Hub()
func (*TKECluster) SetupWebhookWithManager ¶
func (r *TKECluster) SetupWebhookWithManager(mgr ctrl.Manager) error
func (*TKECluster) ValidateCreate ¶
func (r *TKECluster) ValidateCreate() error
ValidateCreate implements webhook.Validator so a webhook will be registered for the type
func (*TKECluster) ValidateDelete ¶
func (r *TKECluster) ValidateDelete() error
ValidateDelete implements webhook.Validator so a webhook will be registered for the type
func (*TKECluster) ValidateUpdate ¶
func (r *TKECluster) ValidateUpdate(old runtime.Object) error
ValidateUpdate implements webhook.Validator so a webhook will be registered for the type
type TKEClusterList ¶
type TKEClusterList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []TKECluster `json:"items"` }
TKEClusterList contains a list of TKECluster
func (*TKEClusterList) DeepCopy ¶
func (in *TKEClusterList) DeepCopy() *TKEClusterList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TKEClusterList.
func (*TKEClusterList) DeepCopyInto ¶
func (in *TKEClusterList) DeepCopyInto(out *TKEClusterList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*TKEClusterList) DeepCopyObject ¶
func (in *TKEClusterList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*TKEClusterList) Hub ¶
func (*TKEClusterList) Hub()
type TKEClusterSpec ¶
type TKEClusterSpec struct { // Name of TKECluster ClusterName string `json:"clusterName"` ClusterID string `json:"clusterID,omitempty"` Region string `json:"region"` ClusterUUID string `json:"clusterUUID,omitempty"` // +optional ClusterVersion *string `json:"clusterVersion,omitempty"` VPCID string `json:"vpcID"` // SecurityGroups specifies // +optional OSName string `json:"osName,omitempty"` // ControlPlaneEndpoint represents the endpoint used to communicate with the control plane. // +optional ControlPlaneEndpoint clusterv1.APIEndpoint `json:"controlPlaneEndpoint"` // Endpoints specifies access to this cluster's control plane endpoints // +optional EndpointAccess EndpointAccess `json:"endpointAccess,omitempty"` }
TKEClusterSpec defines the desired state of TKECluster
func (*TKEClusterSpec) DeepCopy ¶
func (in *TKEClusterSpec) DeepCopy() *TKEClusterSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TKEClusterSpec.
func (*TKEClusterSpec) DeepCopyInto ¶
func (in *TKEClusterSpec) DeepCopyInto(out *TKEClusterSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type TKEClusterStatus ¶
type TKEClusterStatus struct { // INSERT ADDITIONAL STATUS FIELD - define observed state of cluster // Important: Run "make" to regenerate code after modifying this file // ExternalManagedControlPlane indicates to cluster-api that the control plane // is managed by an external service such as AKS, EKS, GKE, etc. // +kubebuilder:default=true ExternalManagedControlPlane *bool `json:"externalManagedControlPlane,omitempty"` // Ready denotes that the API Server is ready to // receive requests and that the VPC infra is ready. // +kubebuilder:default=false Ready bool `json:"ready"` // Initialized denotes whether or not the control plane has the // uploaded kubernetes config-map. // +optional Initialized bool `json:"initialized"` }
TKEClusterStatus defines the observed state of TKECluster
func (*TKEClusterStatus) DeepCopy ¶
func (in *TKEClusterStatus) DeepCopy() *TKEClusterStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TKEClusterStatus.
func (*TKEClusterStatus) DeepCopyInto ¶
func (in *TKEClusterStatus) DeepCopyInto(out *TKEClusterStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type TKEManagedMachinePool ¶
type TKEManagedMachinePool struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec TKEManagedMachinePoolSpec `json:"spec,omitempty"` Status TKEManagedMachinePoolStatus `json:"status,omitempty"` }
TKEManagedMachinePool is the Schema for the tkemanagedmachinepools API
func (*TKEManagedMachinePool) DeepCopy ¶
func (in *TKEManagedMachinePool) DeepCopy() *TKEManagedMachinePool
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TKEManagedMachinePool.
func (*TKEManagedMachinePool) DeepCopyInto ¶
func (in *TKEManagedMachinePool) DeepCopyInto(out *TKEManagedMachinePool)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*TKEManagedMachinePool) DeepCopyObject ¶
func (in *TKEManagedMachinePool) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*TKEManagedMachinePool) Default ¶
func (r *TKEManagedMachinePool) Default()
Default implements webhook.Defaulter so a webhook will be registered for the type
func (*TKEManagedMachinePool) GetConditions ¶
func (r *TKEManagedMachinePool) GetConditions() clusterv1.Conditions
func (*TKEManagedMachinePool) Hub ¶
func (*TKEManagedMachinePool) Hub()
func (*TKEManagedMachinePool) SetConditions ¶
func (r *TKEManagedMachinePool) SetConditions(conditions clusterv1.Conditions)
func (*TKEManagedMachinePool) SetupWebhookWithManager ¶
func (r *TKEManagedMachinePool) SetupWebhookWithManager(mgr ctrl.Manager) error
func (*TKEManagedMachinePool) ValidateCreate ¶
func (r *TKEManagedMachinePool) ValidateCreate() error
ValidateCreate implements webhook.Validator so a webhook will be registered for the type
func (*TKEManagedMachinePool) ValidateDelete ¶
func (r *TKEManagedMachinePool) ValidateDelete() error
ValidateDelete implements webhook.Validator so a webhook will be registered for the type
func (*TKEManagedMachinePool) ValidateUpdate ¶
func (r *TKEManagedMachinePool) ValidateUpdate(old runtime.Object) error
ValidateUpdate implements webhook.Validator so a webhook will be registered for the type
type TKEManagedMachinePoolList ¶
type TKEManagedMachinePoolList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []TKEManagedMachinePool `json:"items"` }
TKEManagedMachinePoolList contains a list of TKEManagedMachinePool
func (*TKEManagedMachinePoolList) DeepCopy ¶
func (in *TKEManagedMachinePoolList) DeepCopy() *TKEManagedMachinePoolList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TKEManagedMachinePoolList.
func (*TKEManagedMachinePoolList) DeepCopyInto ¶
func (in *TKEManagedMachinePoolList) DeepCopyInto(out *TKEManagedMachinePoolList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*TKEManagedMachinePoolList) DeepCopyObject ¶
func (in *TKEManagedMachinePoolList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*TKEManagedMachinePoolList) Hub ¶
func (*TKEManagedMachinePoolList) Hub()
type TKEManagedMachinePoolSpec ¶
type TKEManagedMachinePoolSpec struct { MaxSize int32 `json:"maxSize"` MinSize int32 `json:"minSize"` // SubnetIDs specifies which subnets are used for the // +optional SubnetIDs []string `json:"subnetIDs,omitempty"` // SecurityGroups specifies // +optional SecurityGroups []string `json:"securityGroups,omitempty"` // ProviderIDList are the identification IDs of machine instances provided by the provider. // This field must match the provider IDs as seen on the node objects corresponding to a machine pool's machine instances. // +optional ProviderIDList []string `json:"providerIDList,omitempty"` // SecurityGroups specifies // +optional OSName string `json:"osName,omitempty"` InstanceType string `json:"instanceType"` KeyIDs []string `json:"keyIDs,omitempty"` }
TKEManagedMachinePoolSpec defines the desired state of TKEManagedMachinePool
func (*TKEManagedMachinePoolSpec) DeepCopy ¶
func (in *TKEManagedMachinePoolSpec) DeepCopy() *TKEManagedMachinePoolSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TKEManagedMachinePoolSpec.
func (*TKEManagedMachinePoolSpec) DeepCopyInto ¶
func (in *TKEManagedMachinePoolSpec) DeepCopyInto(out *TKEManagedMachinePoolSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type TKEManagedMachinePoolStatus ¶
type TKEManagedMachinePoolStatus struct { // +optional Ready bool `json:"ready"` // Replicas is the most recently observed number of replicas // +optional Replicas int32 `json:"replicas"` // INSERT ADDITIONAL STATUS FIELD - define observed state of cluster // Important: Run "make" to regenerate code after modifying this file // Conditions defines current service state of the managed machine pool // +optional Conditions clusterv1.Conditions `json:"conditions,omitempty"` }
TKEManagedMachinePoolStatus defines the observed state of TKEManagedMachinePool
func (*TKEManagedMachinePoolStatus) DeepCopy ¶
func (in *TKEManagedMachinePoolStatus) DeepCopy() *TKEManagedMachinePoolStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TKEManagedMachinePoolStatus.
func (*TKEManagedMachinePoolStatus) DeepCopyInto ¶
func (in *TKEManagedMachinePoolStatus) DeepCopyInto(out *TKEManagedMachinePoolStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.