Documentation ¶
Overview ¶
Package v1alpha1 contains API Schema definitions for the cluster v1alpha1 API group +k8s:openapi-gen=true +k8s:deepcopy-gen=package,register +k8s:conversion-gen=github.com/samsung-cnct/cma-ssh/pkg/apis/cluster +k8s:defaulter-gen=TypeMeta +groupName=cluster.cnct.sds.samsung.com
Package v1alpha1 contains API Schema definitions for the cluster v1alpha1 API group +k8s:openapi-gen=true +k8s:deepcopy-gen=package,register +k8s:conversion-gen=github.com/samsung-cnct/cma-ssh/pkg/apis/cluster +k8s:defaulter-gen=TypeMeta +groupName=cluster.cnct.sds.samsung.com
Index ¶
- Constants
- Variables
- func Resource(resource string) schema.GroupResource
- type APIEndpoint
- type ClusterNetworkingConfig
- type ClusterSpec
- type ClusterStatus
- type CnctCluster
- type CnctClusterList
- type CnctMachine
- type CnctMachineList
- type MachineSpec
- type MachineSshConfigInfo
- type MachineStatus
- type NetworkRanges
Constants ¶
const ClusterFinalizer = "cnctcluster.cluster.cnct.sds.samsung.com"
const MachineFinalizer = "cnctmachine.cluster.cnct.sds.samsung.com"
Variables ¶
var ( // SchemeGroupVersion is group version used to register these objects SchemeGroupVersion = schema.GroupVersion{Group: "cluster.cnct.sds.samsung.com", Version: "v1alpha1"} // SchemeBuilder is used to add go types to the GroupVersionKind scheme SchemeBuilder = &scheme.Builder{GroupVersion: SchemeGroupVersion} // AddToScheme is required by pkg/client/... AddToScheme = SchemeBuilder.AddToScheme )
Functions ¶
func Resource ¶
func Resource(resource string) schema.GroupResource
Resource is required by pkg/client/listers/...
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 ClusterNetworkingConfig ¶
type ClusterNetworkingConfig struct { // The network ranges from which service VIPs are allocated. Services NetworkRanges `json:"services"` // The network ranges from which POD networks are allocated. Pods NetworkRanges `json:"pods"` // Domain name for services. ServiceDomain string `json:"serviceDomain"` }
ClusterNetworkingConfig specifies the different networking parameters for a cluster.
func (*ClusterNetworkingConfig) DeepCopy ¶
func (in *ClusterNetworkingConfig) DeepCopy() *ClusterNetworkingConfig
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterNetworkingConfig.
func (*ClusterNetworkingConfig) DeepCopyInto ¶
func (in *ClusterNetworkingConfig) DeepCopyInto(out *ClusterNetworkingConfig)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ClusterSpec ¶
type ClusterSpec struct { // Cluster network configuration ClusterNetwork ClusterNetworkingConfig `json:"clusterNetwork"` // name of the private key secret for machines Secret string `json:"secret,omitempty"` KubernetesVersion string `json:"kubernetesVersion"` }
ClusterSpec defines the desired state of Cluster
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.
type ClusterStatus ¶
type ClusterStatus struct { // When was this status last observed // +optional LastUpdated *metav1.Time `json:"lastUpdated,omitempty"` // API endpoint APIEndpoint string `json:"apiendpoint,omitempty"` // Cluster status Phase common.ClusterStatusPhase `json:"phase,omitempty"` }
ClusterStatus defines the observed state of Cluster
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.
type CnctCluster ¶
type CnctCluster struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec ClusterSpec `json:"spec,omitempty"` Status ClusterStatus `json:"status,omitempty"` }
Cluster is the Schema for the clusters API +k8s:openapi-gen=true
func (*CnctCluster) DeepCopy ¶
func (in *CnctCluster) DeepCopy() *CnctCluster
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CnctCluster.
func (*CnctCluster) DeepCopyInto ¶
func (in *CnctCluster) DeepCopyInto(out *CnctCluster)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*CnctCluster) DeepCopyObject ¶
func (in *CnctCluster) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type CnctClusterList ¶
type CnctClusterList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []CnctCluster `json:"items"` }
ClusterList contains a list of Cluster
func (*CnctClusterList) DeepCopy ¶
func (in *CnctClusterList) DeepCopy() *CnctClusterList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CnctClusterList.
func (*CnctClusterList) DeepCopyInto ¶
func (in *CnctClusterList) DeepCopyInto(out *CnctClusterList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*CnctClusterList) DeepCopyObject ¶
func (in *CnctClusterList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type CnctMachine ¶
type CnctMachine struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec MachineSpec `json:"spec,omitempty"` Status MachineStatus `json:"status,omitempty"` }
Machine is the Schema for the machines API +k8s:openapi-gen=true
func (*CnctMachine) DeepCopy ¶
func (in *CnctMachine) DeepCopy() *CnctMachine
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CnctMachine.
func (*CnctMachine) DeepCopyInto ¶
func (in *CnctMachine) DeepCopyInto(out *CnctMachine)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*CnctMachine) DeepCopyObject ¶
func (in *CnctMachine) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type CnctMachineList ¶
type CnctMachineList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []CnctMachine `json:"items"` }
MachineList contains a list of Machine
func (*CnctMachineList) DeepCopy ¶
func (in *CnctMachineList) DeepCopy() *CnctMachineList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CnctMachineList.
func (*CnctMachineList) DeepCopyInto ¶
func (in *CnctMachineList) DeepCopyInto(out *CnctMachineList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*CnctMachineList) DeepCopyObject ¶
func (in *CnctMachineList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type MachineSpec ¶
type MachineSpec struct { // name of the Cluster object this node belongs to ClusterRef string `json:"clusterref,omitempty"` // The full, authoritative list of taints to apply to the corresponding // Node. // +optional Taints []corev1.Taint `json:"taints,omitempty"` Roles []common.MachineRoles `json:"roles,omitempty"` // +optional Labels map[string]string `json:"labels,omitempty"` SshConfig MachineSshConfigInfo `json:"sshconfig,omitempty"` // This field will be set by the actuators and consumed by higher level // entities like autoscaler that will be interfacing with cluster-api as // generic provider. // +optional ProviderID *string `json:"providerID,omitempty"` }
MachineSpec defines the desired state of Machine
func (*MachineSpec) DeepCopy ¶
func (in *MachineSpec) DeepCopy() *MachineSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MachineSpec.
func (*MachineSpec) DeepCopyInto ¶
func (in *MachineSpec) DeepCopyInto(out *MachineSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type MachineSshConfigInfo ¶
type MachineSshConfigInfo struct { Username string `json:"username,omitempty"` Host string `json:"host,omitempty"` PublicHost string `json:"publichost,omitempty"` Port uint32 `json:"port,omitempty"` }
MachineSshConfigInfo defines the ssh configuration for the physical node represented by this Machine
func (*MachineSshConfigInfo) DeepCopy ¶
func (in *MachineSshConfigInfo) DeepCopy() *MachineSshConfigInfo
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MachineSshConfigInfo.
func (*MachineSshConfigInfo) DeepCopyInto ¶
func (in *MachineSshConfigInfo) DeepCopyInto(out *MachineSshConfigInfo)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type MachineStatus ¶
type MachineStatus struct { // When was this status last observed // +optional LastUpdated *metav1.Time `json:"lastUpdated,omitempty"` // Machine status Phase common.MachineStatusPhase `json:"phase,omitempty"` // kubernetes version of the node, should be equal to corresponding cluster version KubernetesVersion string `json:"kubernetesVersion"` }
MachineStatus defines the observed state of Machine
func (*MachineStatus) DeepCopy ¶
func (in *MachineStatus) DeepCopy() *MachineStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MachineStatus.
func (*MachineStatus) DeepCopyInto ¶
func (in *MachineStatus) DeepCopyInto(out *MachineStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type NetworkRanges ¶
type NetworkRanges struct {
CIDRBlock string `json:"cidrBlock"`
}
NetworkRanges represents ranges of network addresses.
func (*NetworkRanges) DeepCopy ¶
func (in *NetworkRanges) DeepCopy() *NetworkRanges
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NetworkRanges.
func (*NetworkRanges) DeepCopyInto ¶
func (in *NetworkRanges) DeepCopyInto(out *NetworkRanges)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.