Documentation ¶
Index ¶
- Constants
- Variables
- type AuthConfig
- type AzureKubernetesServiceConfig
- type BaseService
- type Client
- type Cluster
- type ClusterComponentStatus
- type ClusterCondition
- type ClusterConditionType
- type ClusterController
- type ClusterHandlerFunc
- type ClusterInterface
- type ClusterList
- type ClusterNode
- type ClusterNodeController
- type ClusterNodeHandlerFunc
- type ClusterNodeInterface
- type ClusterNodeList
- type ClusterNodesGetter
- type ClusterSpec
- type ClusterStatus
- type ClustersGetter
- type ETCDService
- type GoogleKubernetesEngineConfig
- type Interface
- type KubeAPIService
- type KubeControllerService
- type KubeletService
- type KubeproxyService
- type NetworkConfig
- type RKEConfigHost
- type RKEConfigServices
- type RancherKubernetesEngineConfig
- type SchedulerService
Constants ¶
const ( // ClusterConditionReady Cluster ready to serve API (healthy when true, unehalthy when false) ClusterConditionReady = "Ready" // ClusterConditionProvisioned Cluster is provisioned ClusterConditionProvisioned = "Provisioned" // ClusterConditionUpdating Cluster is being updating (upgrading, scaling up) ClusterConditionUpdating = "Updating" // ClusterConditionNoDiskPressure true when all cluster nodes have sufficient disk ClusterConditionNoDiskPressure = "NoDiskPressure" // ClusterConditionNoMemoryPressure true when all cluster nodes have sufficient memory ClusterConditionNoMemoryPressure = "NoMemoryPressure" )
Variables ¶
var ( ClusterGroupVersionKind = schema.GroupVersionKind{ Version: "v1", Group: "cluster.cattle.io", Kind: "Cluster", } ClusterResource = metav1.APIResource{ Name: "clusters", SingularName: "cluster", Namespaced: false, Kind: ClusterGroupVersionKind.Kind, } )
var ( ClusterNodeGroupVersionKind = schema.GroupVersionKind{ Version: "v1", Group: "cluster.cattle.io", Kind: "ClusterNode", } ClusterNodeResource = metav1.APIResource{ Name: "clusternodes", SingularName: "clusternode", Namespaced: false, Kind: ClusterNodeGroupVersionKind.Kind, } )
Functions ¶
This section is empty.
Types ¶
type AuthConfig ¶
type AuthConfig struct { // Authentication strategy that will be used in kubernetes cluster Strategy string `yaml:"strategy" json:"strategy,omitempty"` // Authentication options Options map[string]string `yaml:"options" json:"options,omitempty"` }
func (*AuthConfig) DeepCopy ¶
func (in *AuthConfig) DeepCopy() *AuthConfig
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AuthConfig.
func (*AuthConfig) DeepCopyInto ¶
func (in *AuthConfig) DeepCopyInto(out *AuthConfig)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type AzureKubernetesServiceConfig ¶
type AzureKubernetesServiceConfig struct { }
func (*AzureKubernetesServiceConfig) DeepCopy ¶
func (in *AzureKubernetesServiceConfig) DeepCopy() *AzureKubernetesServiceConfig
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AzureKubernetesServiceConfig.
func (*AzureKubernetesServiceConfig) DeepCopyInto ¶
func (in *AzureKubernetesServiceConfig) DeepCopyInto(out *AzureKubernetesServiceConfig)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type BaseService ¶
type BaseService struct { // Docker image of the service Image string `yaml:"image" json:"image,omitempty"` // Extra arguments that are added to the services ExtraArgs map[string]string `yaml:"extra_args" json:"extraArgs,omitempty"` }
func (*BaseService) DeepCopy ¶
func (in *BaseService) DeepCopy() *BaseService
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BaseService.
func (*BaseService) DeepCopyInto ¶
func (in *BaseService) DeepCopyInto(out *BaseService)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Client ¶
func (*Client) ClusterNodes ¶
func (c *Client) ClusterNodes(namespace string) ClusterNodeInterface
func (*Client) Clusters ¶
func (c *Client) Clusters(namespace string) ClusterInterface
func (*Client) RESTClient ¶
type Cluster ¶
type Cluster struct { metav1.TypeMeta `json:",inline"` // Standard object’s metadata. More info: // https://github.com/kubernetes/community/blob/master/contributors/devel/api-conventions.md#metadata metav1.ObjectMeta `json:"metadata,omitempty"` // Specification of the desired behavior of the the cluster. More info: // https://github.com/kubernetes/community/blob/master/contributors/devel/api-conventions.md#spec-and-status Spec ClusterSpec `json:"spec"` // Most recent observed status of the cluster. More info: // https://github.com/kubernetes/community/blob/master/contributors/devel/api-conventions.md#spec-and-status Status *ClusterStatus `json:"status"` }
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.
type ClusterComponentStatus ¶
type ClusterComponentStatus struct { Name string Conditions []v1.ComponentCondition `json:"conditions,omitempty" patchStrategy:"merge" patchMergeKey:"type" protobuf:"bytes,2,rep,name=conditions"` }
func (*ClusterComponentStatus) DeepCopy ¶
func (in *ClusterComponentStatus) DeepCopy() *ClusterComponentStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterComponentStatus.
func (*ClusterComponentStatus) DeepCopyInto ¶
func (in *ClusterComponentStatus) DeepCopyInto(out *ClusterComponentStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ClusterCondition ¶
type ClusterCondition struct { // Type of cluster condition. Type ClusterConditionType `json:"type"` // Status of the condition, one of True, False, Unknown. Status v1.ConditionStatus `json:"status"` // The last time this condition was updated. LastUpdateTime string `json:"lastUpdateTime,omitempty"` // Last time the condition transitioned from one status to another. LastTransitionTime string `json:"lastTransitionTime,omitempty"` // The reason for the condition's last transition. Reason string `json:"reason,omitempty"` }
func (*ClusterCondition) DeepCopy ¶
func (in *ClusterCondition) DeepCopy() *ClusterCondition
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterCondition.
func (*ClusterCondition) DeepCopyInto ¶
func (in *ClusterCondition) DeepCopyInto(out *ClusterCondition)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ClusterConditionType ¶
type ClusterConditionType string
type ClusterController ¶
type ClusterController interface { Informer() cache.SharedIndexInformer AddHandler(handler ClusterHandlerFunc) Enqueue(namespace, name string) Start(threadiness int, ctx context.Context) error }
type ClusterHandlerFunc ¶
type ClusterInterface ¶
type ClusterInterface interface { Create(*Cluster) (*Cluster, error) Get(name string, opts metav1.GetOptions) (*Cluster, error) Update(*Cluster) (*Cluster, error) Delete(name string, options *metav1.DeleteOptions) error List(opts metav1.ListOptions) (*ClusterList, error) Watch(opts metav1.ListOptions) (watch.Interface, error) DeleteCollection(deleteOpts *metav1.DeleteOptions, listOpts metav1.ListOptions) error Controller() ClusterController }
type ClusterList ¶
type ClusterList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []Cluster }
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 ClusterNode ¶
func (*ClusterNode) DeepCopy ¶
func (in *ClusterNode) DeepCopy() *ClusterNode
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterNode.
func (*ClusterNode) DeepCopyInto ¶
func (in *ClusterNode) DeepCopyInto(out *ClusterNode)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ClusterNode) DeepCopyObject ¶
func (in *ClusterNode) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type ClusterNodeController ¶
type ClusterNodeController interface { Informer() cache.SharedIndexInformer AddHandler(handler ClusterNodeHandlerFunc) Enqueue(namespace, name string) Start(threadiness int, ctx context.Context) error }
type ClusterNodeHandlerFunc ¶
type ClusterNodeHandlerFunc func(key string, obj *ClusterNode) error
type ClusterNodeInterface ¶
type ClusterNodeInterface interface { Create(*ClusterNode) (*ClusterNode, error) Get(name string, opts metav1.GetOptions) (*ClusterNode, error) Update(*ClusterNode) (*ClusterNode, error) Delete(name string, options *metav1.DeleteOptions) error List(opts metav1.ListOptions) (*ClusterNodeList, error) Watch(opts metav1.ListOptions) (watch.Interface, error) DeleteCollection(deleteOpts *metav1.DeleteOptions, listOpts metav1.ListOptions) error Controller() ClusterNodeController }
type ClusterNodeList ¶
type ClusterNodeList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []ClusterNode }
func (*ClusterNodeList) DeepCopy ¶
func (in *ClusterNodeList) DeepCopy() *ClusterNodeList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterNodeList.
func (*ClusterNodeList) DeepCopyInto ¶
func (in *ClusterNodeList) DeepCopyInto(out *ClusterNodeList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ClusterNodeList) DeepCopyObject ¶
func (in *ClusterNodeList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type ClusterNodesGetter ¶
type ClusterNodesGetter interface {
ClusterNodes(namespace string) ClusterNodeInterface
}
type ClusterSpec ¶
type ClusterSpec struct { GoogleKubernetesEngineConfig *GoogleKubernetesEngineConfig `json:"googleKubernetesEngineConfig,omitempty"` AzureKubernetesServiceConfig *AzureKubernetesServiceConfig `json:"azureKubernetesServiceConfig,omitempty"` RancherKubernetesEngineConfig *RancherKubernetesEngineConfig `json:"rancherKubernetesEngineConfig,omitempty"` }
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 { //Conditions represent the latest available observations of an object's current state: //More info: https://github.com/kubernetes/community/blob/master/contributors/devel/api-conventions.md#typical-status-properties Conditions []ClusterCondition `json:"conditions,omitempty"` //Component statuses will represent cluster's components (etcd/controller/scheduler) health // https://kubernetes.io/docs/api-reference/v1.8/#componentstatus-v1-core ComponentStatuses []ClusterComponentStatus APIEndpoint string `json:"apiEndpoint,omitempty"` ServiceAccountToken string `json:"serviceAccountToken,omitempty"` CACert string `json:"caCert,omitempty"` Capacity v1.ResourceList `json:"capacity,omitempty"` Allocatable v1.ResourceList `json:"allocatable,omitempty"` AppliedSpec ClusterSpec `json:"clusterSpec,omitempty"` }
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 ClustersGetter ¶
type ClustersGetter interface {
Clusters(namespace string) ClusterInterface
}
type ETCDService ¶
type ETCDService struct { // Base service properties BaseService `yaml:",inline" json:",inline"` }
func (*ETCDService) DeepCopy ¶
func (in *ETCDService) DeepCopy() *ETCDService
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ETCDService.
func (*ETCDService) DeepCopyInto ¶
func (in *ETCDService) DeepCopyInto(out *ETCDService)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type GoogleKubernetesEngineConfig ¶
type GoogleKubernetesEngineConfig struct { // ProjectID is the ID of your project to use when creating a cluster ProjectID string `json:"projectId,omitempty"` // The zone to launch the cluster Zone string `json:"zone,omitempty"` // The IP address range of the container pods ClusterIpv4Cidr string `json:"clusterIpv4Cidr,omitempty"` // An optional description of this cluster Description string `json:"description,omitempty"` // The number of nodes in this cluster NodeCount int64 `json:"nodeCount,omitempty"` // Size of the disk attached to each node DiskSizeGb int64 `json:"diskSizeGb,omitempty"` // The name of a Google Compute Engine MachineType string `json:"machineType,omitempty"` // Node kubernetes version NodeVersion string `json:"nodeVersion,omitempty"` // the master kubernetes version MasterVersion string `json:"masterVersion,omitempty"` // The map of Kubernetes labels (key/value pairs) to be applied // to each node. Labels map[string]string `json:"labels,omitempty"` // The path to the credential file(key.json) CredentialPath string `json:"credentialPath,omitempty"` // Enable alpha feature EnableAlphaFeature bool `json:"enableAlphaFeature,omitempty"` }
func (*GoogleKubernetesEngineConfig) DeepCopy ¶
func (in *GoogleKubernetesEngineConfig) DeepCopy() *GoogleKubernetesEngineConfig
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GoogleKubernetesEngineConfig.
func (*GoogleKubernetesEngineConfig) DeepCopyInto ¶
func (in *GoogleKubernetesEngineConfig) DeepCopyInto(out *GoogleKubernetesEngineConfig)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Interface ¶
type Interface interface { RESTClient() rest.Interface ClustersGetter ClusterNodesGetter }
type KubeAPIService ¶
type KubeAPIService struct { // Base service properties BaseService `yaml:",inline" json:",inline"` // Virtual IP range that will be used by Kubernetes services ServiceClusterIPRange string `yaml:"service_cluster_ip_range" json:"serviceClusterIpRange,omitempty"` }
func (*KubeAPIService) DeepCopy ¶
func (in *KubeAPIService) DeepCopy() *KubeAPIService
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new KubeAPIService.
func (*KubeAPIService) DeepCopyInto ¶
func (in *KubeAPIService) DeepCopyInto(out *KubeAPIService)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type KubeControllerService ¶
type KubeControllerService struct { // Base service properties BaseService `yaml:",inline" json:",inline"` // CIDR Range for Pods in cluster ClusterCIDR string `yaml:"cluster_cidr" json:"clusterCidr,omitempty"` // Virtual IP range that will be used by Kubernetes services ServiceClusterIPRange string `yaml:"service_cluster_ip_range" json:"serviceClusterIpRange,omitempty"` }
func (*KubeControllerService) DeepCopy ¶
func (in *KubeControllerService) DeepCopy() *KubeControllerService
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new KubeControllerService.
func (*KubeControllerService) DeepCopyInto ¶
func (in *KubeControllerService) DeepCopyInto(out *KubeControllerService)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type KubeletService ¶
type KubeletService struct { // Base service properties BaseService `yaml:",inline" json:",inline"` // Domain of the cluster (default: "cluster.local") ClusterDomain string `yaml:"cluster_domain" json:"clusterDomain,omitempty"` // The image whose network/ipc namespaces containers in each pod will use InfraContainerImage string `yaml:"infra_container_image" json:"infraContainerImage,omitempty"` // Cluster DNS service ip ClusterDNSServer string `yaml:"cluster_dns_server" json:"clusterDnsServer,omitempty"` }
func (*KubeletService) DeepCopy ¶
func (in *KubeletService) DeepCopy() *KubeletService
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new KubeletService.
func (*KubeletService) DeepCopyInto ¶
func (in *KubeletService) DeepCopyInto(out *KubeletService)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type KubeproxyService ¶
type KubeproxyService struct { // Base service properties BaseService `yaml:",inline" json:",inline"` }
func (*KubeproxyService) DeepCopy ¶
func (in *KubeproxyService) DeepCopy() *KubeproxyService
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new KubeproxyService.
func (*KubeproxyService) DeepCopyInto ¶
func (in *KubeproxyService) DeepCopyInto(out *KubeproxyService)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type NetworkConfig ¶
type NetworkConfig struct { // Network Plugin That will be used in kubernetes cluster Plugin string `yaml:"plugin" json:"plugin,omitempty"` // Plugin options to configure network properties Options map[string]string `yaml:"options" json:"options,omitempty"` }
func (*NetworkConfig) DeepCopy ¶
func (in *NetworkConfig) DeepCopy() *NetworkConfig
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NetworkConfig.
func (*NetworkConfig) DeepCopyInto ¶
func (in *NetworkConfig) DeepCopyInto(out *NetworkConfig)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type RKEConfigHost ¶
type RKEConfigHost struct { // SSH IP address of the host IP string `yaml:"ip" json:"ip,omitempty"` // Advertised address that will be used for components communication AdvertiseAddress string `yaml:"advertise_address" json:"advertiseAddress,omitempty"` // Host role in kubernetes cluster (controlplane, worker, or etcd) Role []string `yaml:"role" json:"role,omitempty"` // Hostname of the host AdvertisedHostname string `yaml:"advertised_hostname" json:"advertisedHostname,omitempty"` // SSH usesr that will be used by RKE User string `yaml:"user" json:"user,omitempty"` // Docker socket on the host that will be used in tunneling DockerSocket string `yaml:"docker_socket" json:"dockerSocket,omitempty"` }
func (*RKEConfigHost) DeepCopy ¶
func (in *RKEConfigHost) DeepCopy() *RKEConfigHost
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RKEConfigHost.
func (*RKEConfigHost) DeepCopyInto ¶
func (in *RKEConfigHost) DeepCopyInto(out *RKEConfigHost)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type RKEConfigServices ¶
type RKEConfigServices struct { // Etcd Service Etcd ETCDService `yaml:"etcd" json:"etcd,omitempty"` // KubeAPI Service KubeAPI KubeAPIService `yaml:"kube-api" json:"kubeApi,omitempty"` // KubeController Service KubeController KubeControllerService `yaml:"kube-controller" json:"kubeController,omitempty"` // Scheduler Service Scheduler SchedulerService `yaml:"scheduler" json:"scheduler,omitempty"` // Kubelet Service Kubelet KubeletService `yaml:"kubelet" json:"kubelet,omitempty"` // KubeProxy Service Kubeproxy KubeproxyService `yaml:"kubeproxy" json:"kubeproxy,omitempty"` }
func (*RKEConfigServices) DeepCopy ¶
func (in *RKEConfigServices) DeepCopy() *RKEConfigServices
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RKEConfigServices.
func (*RKEConfigServices) DeepCopyInto ¶
func (in *RKEConfigServices) DeepCopyInto(out *RKEConfigServices)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type RancherKubernetesEngineConfig ¶
type RancherKubernetesEngineConfig struct { // Kubernetes nodes Hosts []RKEConfigHost `yaml:"hosts" json:"hosts,omitempty"` // Kubernetes components Services RKEConfigServices `yaml:"services" json:"services,omitempty"` // Network configuration used in the kubernetes cluster (flannel, calico) Network NetworkConfig `yaml:"network" json:"network,omitempty"` // Authentication configuration used in the cluster (default: x509) Authentication AuthConfig `yaml:"auth" json:"auth,omitempty"` }
func (*RancherKubernetesEngineConfig) DeepCopy ¶
func (in *RancherKubernetesEngineConfig) DeepCopy() *RancherKubernetesEngineConfig
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RancherKubernetesEngineConfig.
func (*RancherKubernetesEngineConfig) DeepCopyInto ¶
func (in *RancherKubernetesEngineConfig) DeepCopyInto(out *RancherKubernetesEngineConfig)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type SchedulerService ¶
type SchedulerService struct { // Base service properties BaseService `yaml:",inline" json:",inline"` }
func (*SchedulerService) DeepCopy ¶
func (in *SchedulerService) DeepCopy() *SchedulerService
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SchedulerService.
func (*SchedulerService) DeepCopyInto ¶
func (in *SchedulerService) DeepCopyInto(out *SchedulerService)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.