Documentation ¶
Overview ¶
Package v1alpha2 contains API Schema definitions for the infrastructure v1alpha2 API group +kubebuilder:object:generate=true +groupName=infrastructure.cluster.x-k8s.io
Index ¶
- Constants
- Variables
- type APIEndpoint
- type Filter
- type InstanceState
- type SakuraCloudCluster
- type SakuraCloudClusterList
- type SakuraCloudClusterSpec
- type SakuraCloudClusterStatus
- type SakuraCloudMachine
- type SakuraCloudMachineList
- type SakuraCloudMachineSpec
- type SakuraCloudMachineStatus
- type SakuraCloudMachineTemplate
- type SakuraCloudMachineTemplateList
- type SakuraCloudMachineTemplateResource
- type SakuraCloudMachineTemplateSpec
- type SakuraCloudProviderConfig
- type SakuraCloudResourceReference
- type SourceArchiveInfo
Constants ¶
const ( // Version is the API version. Version = "v1alpha2" // GroupName is the name of the API group. GroupName = "infrastructure.cluster.x-k8s.io" )
const ( // AnnotationClusterInfrastructureReady indicates the cluster's // infrastructure sources are ready and machines may be created. AnnotationClusterInfrastructureReady = "sakuracloud.infrastructure.cluster.x-k8s.io/infrastructure-ready" // AnnotationControlPlaneReady indicates the cluster's control plane is // ready. AnnotationControlPlaneReady = "sakuracloud.infrastructure.cluster.x-k8s.io/control-plane-ready" // ValueReady is the ready value for *Ready annotations. ValueReady = "true" )
const ( // InstanceStatePending is the string representing an instance in pending state InstanceStatePending InstanceState = "" // InstanceStateProvisioning is the string representing an instance in ready state InstanceStateProvisioning = "provisioning" // InstanceStateReady is the string representing an instance in ready state InstanceStateReady = "ready" // InstanceStateCleaning is the string representing an instance in shutting-down state InstanceStateCleaning = "cleaning" // InstanceStateNotFound is the string representing an instance in not-found state InstanceStateNotFound = "notfound" )
const ( // ClusterFinalizer allows ReconcileSakuraCloudCluster to clean up SakuraCloud // resources associated with SakuraCloudCluster before removing it from the // API server. ClusterFinalizer = "sakuracloudcluster.infrastructure.cluster.x-k8s.io" )
const ( // MachineFinalizer allows ReconcileSakuraCloudMachine to clean up SakuraCloud // resources associated with SakuraCloudMachine before removing it from the // API Server. MachineFinalizer = "sakuracloudmachine.infrastructure.cluster.x-k8s.io" )
Variables ¶
var ( // GroupVersion is group version used to register these objects GroupVersion = schema.GroupVersion{Group: GroupName, Version: Version} // 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 APIEndpoint ¶
type APIEndpoint struct { // The hostname on which the API server is serving. Host string `json:"host"` // The port on which the API server is serving. Port int `json:"port"` }
APIEndpoint represents a reachable Kubernetes API endpoint.
func (*APIEndpoint) DeepCopy ¶
func (in *APIEndpoint) DeepCopy() *APIEndpoint
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new APIEndpoint.
func (*APIEndpoint) DeepCopyInto ¶
func (in *APIEndpoint) DeepCopyInto(out *APIEndpoint)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Filter ¶
type Filter struct { // Name of the filter. Filter names are case-sensitive. Name string `json:"name"` // Values includes one or more filter values. Filter values are case-sensitive. Values []string `json:"values"` }
Filter is a filter used to identify an SakuraCloud resource
func (*Filter) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Filter.
func (*Filter) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type SakuraCloudCluster ¶
type SakuraCloudCluster struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec SakuraCloudClusterSpec `json:"spec,omitempty"` Status SakuraCloudClusterStatus `json:"status,omitempty"` }
SakuraCloudCluster is the Schema for the sakuracloudclusters API
func (*SakuraCloudCluster) DeepCopy ¶
func (in *SakuraCloudCluster) DeepCopy() *SakuraCloudCluster
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SakuraCloudCluster.
func (*SakuraCloudCluster) DeepCopyInto ¶
func (in *SakuraCloudCluster) DeepCopyInto(out *SakuraCloudCluster)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*SakuraCloudCluster) DeepCopyObject ¶
func (in *SakuraCloudCluster) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type SakuraCloudClusterList ¶
type SakuraCloudClusterList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []SakuraCloudCluster `json:"items"` }
SakuraCloudClusterList contains a list of SakuraCloudCluster
func (*SakuraCloudClusterList) DeepCopy ¶
func (in *SakuraCloudClusterList) DeepCopy() *SakuraCloudClusterList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SakuraCloudClusterList.
func (*SakuraCloudClusterList) DeepCopyInto ¶
func (in *SakuraCloudClusterList) DeepCopyInto(out *SakuraCloudClusterList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*SakuraCloudClusterList) DeepCopyObject ¶
func (in *SakuraCloudClusterList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type SakuraCloudClusterSpec ¶
type SakuraCloudClusterSpec struct { Zone string `json:"zone"` CloudProviderConfiguration SakuraCloudProviderConfig `json:"cloudProviderConfiguration,omitempty"` }
SakuraCloudClusterSpec defines the desired state of SakuraCloudCluster
func (*SakuraCloudClusterSpec) DeepCopy ¶
func (in *SakuraCloudClusterSpec) DeepCopy() *SakuraCloudClusterSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SakuraCloudClusterSpec.
func (*SakuraCloudClusterSpec) DeepCopyInto ¶
func (in *SakuraCloudClusterSpec) DeepCopyInto(out *SakuraCloudClusterSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type SakuraCloudClusterStatus ¶
type SakuraCloudClusterStatus struct { Ready bool `json:"ready"` // APIEndpoints represents the endpoints to communicate with the control // plane. // +optional APIEndpoints []APIEndpoint `json:"apiEndpoints,omitempty"` // ErrorReason will be set in the event that there is a terminal problem // reconciling the Machine and will contain a succinct value suitable // for machine interpretation. // // This field should not be set for transitive errors that a controller // faces that are expected to be fixed automatically over // time (like service outages), but instead indicate that something is // fundamentally wrong with the Machine's spec or the configuration of // the controller, and that manual intervention is required. Examples // of terminal errors would be invalid combinations of settings in the // spec, values that are unsupported by the controller, or the // responsible controller itself being critically misconfigured. // // Any transient errors that occur during the reconciliation of Machines // can be added as events to the Machine object and/or logged in the // controller's output. // +optional ErrorReason *errors.ClusterStatusError `json:"errorReason,omitempty"` // ErrorMessage will be set in the event that there is a terminal problem // reconciling the Machine and will contain a more verbose string suitable // for logging and human consumption. // // This field should not be set for transitive errors that a controller // faces that are expected to be fixed automatically over // time (like service outages), but instead indicate that something is // fundamentally wrong with the Machine's spec or the configuration of // the controller, and that manual intervention is required. Examples // of terminal errors would be invalid combinations of settings in the // spec, values that are unsupported by the controller, or the // responsible controller itself being critically misconfigured. // // Any transient errors that occur during the reconciliation of Machines // can be added as events to the Machine object and/or logged in the // controller's output. // +optional ErrorMessage *string `json:"errorMessage,omitempty"` }
SakuraCloudClusterStatus defines the observed state of SakuraCloudClusterSpec
func (*SakuraCloudClusterStatus) DeepCopy ¶
func (in *SakuraCloudClusterStatus) DeepCopy() *SakuraCloudClusterStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SakuraCloudClusterStatus.
func (*SakuraCloudClusterStatus) DeepCopyInto ¶
func (in *SakuraCloudClusterStatus) DeepCopyInto(out *SakuraCloudClusterStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type SakuraCloudMachine ¶
type SakuraCloudMachine struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec SakuraCloudMachineSpec `json:"spec,omitempty"` Status SakuraCloudMachineStatus `json:"status,omitempty"` }
SakuraCloudMachine is the Schema for the sakuracloudmachines API
func (*SakuraCloudMachine) DeepCopy ¶
func (in *SakuraCloudMachine) DeepCopy() *SakuraCloudMachine
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SakuraCloudMachine.
func (*SakuraCloudMachine) DeepCopyInto ¶
func (in *SakuraCloudMachine) DeepCopyInto(out *SakuraCloudMachine)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*SakuraCloudMachine) DeepCopyObject ¶
func (in *SakuraCloudMachine) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type SakuraCloudMachineList ¶
type SakuraCloudMachineList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []SakuraCloudMachine `json:"items"` }
SakuraCloudMachineList contains a list of SakuraCloudMachine
func (*SakuraCloudMachineList) DeepCopy ¶
func (in *SakuraCloudMachineList) DeepCopy() *SakuraCloudMachineList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SakuraCloudMachineList.
func (*SakuraCloudMachineList) DeepCopyInto ¶
func (in *SakuraCloudMachineList) DeepCopyInto(out *SakuraCloudMachineList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*SakuraCloudMachineList) DeepCopyObject ¶
func (in *SakuraCloudMachineList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type SakuraCloudMachineSpec ¶
type SakuraCloudMachineSpec struct { // ProviderID is the unique identifier as specified by the cloud provider. ProviderID *string `json:"providerID,omitempty"` // This value is set automatically at runtime and should not be set or // modified by users. // MachineRef is used to lookup the VM. // +optional MachineRef *SakuraCloudResourceReference `json:"machineRef,omitempty"` // SourceArchive . SourceArchive SakuraCloudResourceReference `json:"sourceArchive"` // CPUs is the number of virtual processors in a virtual machine. // Defaults to the analogue property value in the template from which this // machine is cloned. // +optional CPUs int `json:"cpus,omitempty"` // MemoryMiB is the size of a virtual machine's memory, in GB. // +optional MemoryGB int `json:"memoryGB,omitempty"` // DiskGiB is the size of a virtual machine's disk, in GB. // +optional DiskGB int `json:"diskGB,omitempty"` }
SakuraCloudMachineSpec defines the desired state of SakuraCloudMachine
func (*SakuraCloudMachineSpec) DeepCopy ¶
func (in *SakuraCloudMachineSpec) DeepCopy() *SakuraCloudMachineSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SakuraCloudMachineSpec.
func (*SakuraCloudMachineSpec) DeepCopyInto ¶
func (in *SakuraCloudMachineSpec) DeepCopyInto(out *SakuraCloudMachineSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type SakuraCloudMachineStatus ¶
type SakuraCloudMachineStatus struct { // Ready is true when the provider resource is ready. // +optional Ready bool `json:"ready"` // Addresses contains the SakuraCloud instance associated addresses. Addresses []v1.NodeAddress `json:"addresses,omitempty"` // SourceArchiveInfo represents information of the node template image // // This value is set automatically at runtime and should not be set or // modified by users. // +optional SourceArchive *SourceArchiveInfo `json:"sourceArchive,omitempty"` // State is the state of the SakuraCloud instance for this machine. State InstanceState `json:"state,omitempty"` // JobRef is a managed object reference to a Job related to the // SakuraCloud resources. // This value is set automatically at runtime and should not be set or // modified by users. // +optional JobRef string `json:"jobRef,omitempty"` // ErrorReason will be set in the event that there is a terminal problem // reconciling the Machine and will contain a succinct value suitable // for machine interpretation. // // This field should not be set for transitive errors that a controller // faces that are expected to be fixed automatically over // time (like service outages), but instead indicate that something is // fundamentally wrong with the Machine's spec or the configuration of // the controller, and that manual intervention is required. Examples // of terminal errors would be invalid combinations of settings in the // spec, values that are unsupported by the controller, or the // responsible controller itself being critically misconfigured. // // Any transient errors that occur during the reconciliation of Machines // can be added as events to the Machine object and/or logged in the // controller's output. // +optional ErrorReason *errors.MachineStatusError `json:"errorReason,omitempty"` // ErrorMessage will be set in the event that there is a terminal problem // reconciling the Machine and will contain a more verbose string suitable // for logging and human consumption. // // This field should not be set for transitive errors that a controller // faces that are expected to be fixed automatically over // time (like service outages), but instead indicate that something is // fundamentally wrong with the Machine's spec or the configuration of // the controller, and that manual intervention is required. Examples // of terminal errors would be invalid combinations of settings in the // spec, values that are unsupported by the controller, or the // responsible controller itself being critically misconfigured. // // Any transient errors that occur during the reconciliation of Machines // can be added as events to the Machine object and/or logged in the // controller's output. // +optional ErrorMessage *string `json:"errorMessage,omitempty"` }
SakuraCloudMachineStatus defines the observed state of SakuraCloudMachine
func (*SakuraCloudMachineStatus) DeepCopy ¶
func (in *SakuraCloudMachineStatus) DeepCopy() *SakuraCloudMachineStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SakuraCloudMachineStatus.
func (*SakuraCloudMachineStatus) DeepCopyInto ¶
func (in *SakuraCloudMachineStatus) DeepCopyInto(out *SakuraCloudMachineStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type SakuraCloudMachineTemplate ¶
type SakuraCloudMachineTemplate struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec SakuraCloudMachineTemplateSpec `json:"spec,omitempty"` }
SakuraCloudMachineTemplate is the Schema for the sakuracloudmachinetemplates API
func (*SakuraCloudMachineTemplate) DeepCopy ¶
func (in *SakuraCloudMachineTemplate) DeepCopy() *SakuraCloudMachineTemplate
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SakuraCloudMachineTemplate.
func (*SakuraCloudMachineTemplate) DeepCopyInto ¶
func (in *SakuraCloudMachineTemplate) DeepCopyInto(out *SakuraCloudMachineTemplate)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*SakuraCloudMachineTemplate) DeepCopyObject ¶
func (in *SakuraCloudMachineTemplate) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type SakuraCloudMachineTemplateList ¶
type SakuraCloudMachineTemplateList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []SakuraCloudMachineTemplate `json:"items"` }
SakuraCloudMachineTemplateList contains a list of SakuraCloudMachineTemplate
func (*SakuraCloudMachineTemplateList) DeepCopy ¶
func (in *SakuraCloudMachineTemplateList) DeepCopy() *SakuraCloudMachineTemplateList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SakuraCloudMachineTemplateList.
func (*SakuraCloudMachineTemplateList) DeepCopyInto ¶
func (in *SakuraCloudMachineTemplateList) DeepCopyInto(out *SakuraCloudMachineTemplateList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*SakuraCloudMachineTemplateList) DeepCopyObject ¶
func (in *SakuraCloudMachineTemplateList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type SakuraCloudMachineTemplateResource ¶
type SakuraCloudMachineTemplateResource struct { metav1.TypeMeta `json:",inline"` // Standard object's metadata. clusterv1.ObjectMeta `json:"metadata,omitempty"` // Spec is the specification of the desired behavior of the machine. Spec SakuraCloudMachineSpec `json:"spec"` }
SakuraCloudMachineTemplateResource describes the data needed to create a SakuraCloudMachine from a template
func (*SakuraCloudMachineTemplateResource) DeepCopy ¶
func (in *SakuraCloudMachineTemplateResource) DeepCopy() *SakuraCloudMachineTemplateResource
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SakuraCloudMachineTemplateResource.
func (*SakuraCloudMachineTemplateResource) DeepCopyInto ¶
func (in *SakuraCloudMachineTemplateResource) DeepCopyInto(out *SakuraCloudMachineTemplateResource)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type SakuraCloudMachineTemplateSpec ¶
type SakuraCloudMachineTemplateSpec struct {
Template SakuraCloudMachineTemplateResource `json:"template"`
}
SakuraCloudMachineTemplateSpec defines the desired state of SakuraCloudMachineTemplate
func (*SakuraCloudMachineTemplateSpec) DeepCopy ¶
func (in *SakuraCloudMachineTemplateSpec) DeepCopy() *SakuraCloudMachineTemplateSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SakuraCloudMachineTemplateSpec.
func (*SakuraCloudMachineTemplateSpec) DeepCopyInto ¶
func (in *SakuraCloudMachineTemplateSpec) DeepCopyInto(out *SakuraCloudMachineTemplateSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type SakuraCloudProviderConfig ¶
type SakuraCloudProviderConfig struct { // AccessToken . // +optional AccessToken string `json:"accessToken,omitempty"` // AccessSecret . // +optional AccessSecret string `json:"accessSecret,omtempty"` // Zone . // +optional Zone string `json:"zone,omitempty"` // Image . // +optional Image string `json:"image,omitempty"` // ClusterID . // +optional ClusterID string `json:"clusterID,omitempty"` }
SakuraCloudProviderConfig is the Schema for the SakurCloudControllerManger configuration
TODO 要修正
func (*SakuraCloudProviderConfig) DeepCopy ¶
func (in *SakuraCloudProviderConfig) DeepCopy() *SakuraCloudProviderConfig
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SakuraCloudProviderConfig.
func (*SakuraCloudProviderConfig) DeepCopyInto ¶
func (in *SakuraCloudProviderConfig) DeepCopyInto(out *SakuraCloudProviderConfig)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type SakuraCloudResourceReference ¶
type SakuraCloudResourceReference struct { // ID of resource // +optional ID *string `json:"id,omitempty"` // Filters is a set of key/value pairs used to identify a resource // They are applied according to the rules defined by the SakuraCloud API: // https://developer.sakura.ad.jp/cloud/api/1.1/ // // If SakuraCloud API with Filters returns multiple results, // it use first data of results // +optional Filters []Filter `json:"filters,omitempty"` }
SakuraCloudResourceReference is a reference to a specific SakuraCloud resource by ID+Zone or filters. Only one of ID+Zone or Filters may be specified. Specifying more than one will result in a validation error.
func (*SakuraCloudResourceReference) DeepCopy ¶
func (in *SakuraCloudResourceReference) DeepCopy() *SakuraCloudResourceReference
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SakuraCloudResourceReference.
func (*SakuraCloudResourceReference) DeepCopyInto ¶
func (in *SakuraCloudResourceReference) DeepCopyInto(out *SakuraCloudResourceReference)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type SourceArchiveInfo ¶
type SourceArchiveInfo struct { // ID . ID string `json:"id,omitempty"` // Name . Name string `json:"name,omitempty"` }
SourceArchiveInfo represents information of node template image
func (*SourceArchiveInfo) DeepCopy ¶
func (in *SourceArchiveInfo) DeepCopy() *SourceArchiveInfo
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SourceArchiveInfo.
func (*SourceArchiveInfo) DeepCopyInto ¶
func (in *SourceArchiveInfo) DeepCopyInto(out *SourceArchiveInfo)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.