v1

package
v0.0.0-...-480dd5c Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 4, 2017 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
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

View Source
var (
	ClusterGroupVersionKind = schema.GroupVersionKind{
		Version: "v1",
		Group:   "cluster.cattle.io",
		Kind:    "Cluster",
	}
	ClusterResource = metav1.APIResource{
		Name:         "clusters",
		SingularName: "cluster",
		Namespaced:   false,
		Kind:         ClusterGroupVersionKind.Kind,
	}
)
View Source
var (
	ClusterNodeGroupVersionKind = schema.GroupVersionKind{
		Version: "v1",
		Group:   "cluster.cattle.io",
		Kind:    "ClusterNode",
	}
	ClusterNodeResource = metav1.APIResource{
		Name:         "clusternodes",
		SingularName: "clusternode",
		Namespaced:   false,
		Kind:         ClusterNodeGroupVersionKind.Kind,
	}
)
View Source
var (
	MachineGroupVersionKind = schema.GroupVersionKind{
		Version: "v1",
		Group:   "cluster.cattle.io",
		Kind:    "Machine",
	}
	MachineResource = metav1.APIResource{
		Name:         "machines",
		SingularName: "machine",
		Namespaced:   false,
		Kind:         MachineGroupVersionKind.Kind,
	}
)
View Source
var (
	MachineDriverGroupVersionKind = schema.GroupVersionKind{
		Version: "v1",
		Group:   "cluster.cattle.io",
		Kind:    "MachineDriver",
	}
	MachineDriverResource = metav1.APIResource{
		Name:         "machinedrivers",
		SingularName: "machinedriver",
		Namespaced:   false,
		Kind:         MachineDriverGroupVersionKind.Kind,
	}
)
View Source
var (
	MachineTemplateGroupVersionKind = schema.GroupVersionKind{
		Version: "v1",
		Group:   "cluster.cattle.io",
		Kind:    "MachineTemplate",
	}
	MachineTemplateResource = metav1.APIResource{
		Name:         "machinetemplates",
		SingularName: "machinetemplate",
		Namespaced:   false,
		Kind:         MachineTemplateGroupVersionKind.Kind,
	}
)

Functions

This section is empty.

Types

type AmazonEC2Config

type AmazonEC2Config struct {
}

func (*AmazonEC2Config) DeepCopy

func (in *AmazonEC2Config) DeepCopy() *AmazonEC2Config

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AmazonEC2Config.

func (*AmazonEC2Config) DeepCopyInto

func (in *AmazonEC2Config) DeepCopyInto(out *AmazonEC2Config)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

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 AzureConfig

type AzureConfig struct {
}

func (*AzureConfig) DeepCopy

func (in *AzureConfig) DeepCopy() *AzureConfig

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AzureConfig.

func (*AzureConfig) DeepCopyInto

func (in *AzureConfig) DeepCopyInto(out *AzureConfig)

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

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AzureKubernetesServiceConfig.

func (*AzureKubernetesServiceConfig) DeepCopyInto

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

type Client struct {
	sync.Mutex
	// contains filtered or unexported fields
}

func (*Client) ClusterNodes

func (c *Client) ClusterNodes(namespace string) ClusterNodeInterface

func (*Client) Clusters

func (c *Client) Clusters(namespace string) ClusterInterface

func (*Client) MachineDrivers

func (c *Client) MachineDrivers(namespace string) MachineDriverInterface

func (*Client) MachineTemplates

func (c *Client) MachineTemplates(namespace string) MachineTemplateInterface

func (*Client) Machines

func (c *Client) Machines(namespace string) MachineInterface

func (*Client) RESTClient

func (c *Client) RESTClient() rest.Interface

func (*Client) Start

func (c *Client) Start(ctx context.Context, threadiness int) error

func (*Client) Sync

func (c *Client) Sync(ctx context.Context) error

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

func (in *Cluster) DeepCopy() *Cluster

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Cluster.

func (*Cluster) DeepCopyInto

func (in *Cluster) DeepCopyInto(out *Cluster)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*Cluster) DeepCopyObject

func (in *Cluster) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type ClusterComponentStatus

type ClusterComponentStatus struct {
	Name       string                  `json:"name"`
	Conditions []v1.ComponentCondition `json:"conditions,omitempty" patchStrategy:"merge" patchMergeKey:"type" protobuf:"bytes,2,rep,name=conditions"`
}

func (*ClusterComponentStatus) DeepCopy

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
	Lister() ClusterLister
	AddHandler(handler ClusterHandlerFunc)
	Enqueue(namespace, name string)
	Sync(ctx context.Context) error
	Start(ctx context.Context, threadiness int) error
}

type ClusterHandlerFunc

type ClusterHandlerFunc func(key string, obj *Cluster) error

type ClusterInterface

type ClusterInterface interface {
	ObjectClient() *clientbase.ObjectClient
	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 ClusterLister

type ClusterLister interface {
	List(namespace string, selector labels.Selector) (ret []*Cluster, err error)
	Get(namespace, name string) (*Cluster, error)
}

type ClusterNode

type ClusterNode 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 cluster node. More info:
	// https://github.com/kubernetes/community/blob/master/contributors/devel/api-conventions.md#spec-and-status
	v1.NodeSpec `json:"spec,omitempty"`
	// 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      ClusterNodeStatus `json:"status"`
	NodeName    string
	ClusterName string
}

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
	Lister() ClusterNodeLister
	AddHandler(handler ClusterNodeHandlerFunc)
	Enqueue(namespace, name string)
	Sync(ctx context.Context) error
	Start(ctx context.Context, threadiness int) error
}

type ClusterNodeHandlerFunc

type ClusterNodeHandlerFunc func(key string, obj *ClusterNode) error

type ClusterNodeInterface

type ClusterNodeInterface interface {
	ObjectClient() *clientbase.ObjectClient
	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 ClusterNodeLister

type ClusterNodeLister interface {
	List(namespace string, selector labels.Selector) (ret []*ClusterNode, err error)
	Get(namespace, name string) (*ClusterNode, error)
}

type ClusterNodeStatus

type ClusterNodeStatus struct {
	v1.NodeStatus
	Requested v1.ResourceList `json:"requested,omitempty"`
	Limits    v1.ResourceList `json:"limits,omitempty"`
}

func (*ClusterNodeStatus) DeepCopy

func (in *ClusterNodeStatus) DeepCopy() *ClusterNodeStatus

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterNodeStatus.

func (*ClusterNodeStatus) DeepCopyInto

func (in *ClusterNodeStatus) DeepCopyInto(out *ClusterNodeStatus)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type ClusterNodesGetter

type ClusterNodesGetter interface {
	ClusterNodes(namespace string) ClusterNodeInterface
}

type ClusterSpec

type ClusterSpec struct {
	DisplayName                   string                         `json:"displayName"`
	Description                   string                         `json:"description"`
	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 `json:"componentStatuses,omitempty"`
	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:"appliedSpec,omitempty"`
	Requested           v1.ResourceList          `json:"requested,omitempty"`
	Limits              v1.ResourceList          `json:"limits,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 DigitalOceanConfig

type DigitalOceanConfig struct {
}

func (*DigitalOceanConfig) DeepCopy

func (in *DigitalOceanConfig) DeepCopy() *DigitalOceanConfig

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DigitalOceanConfig.

func (*DigitalOceanConfig) DeepCopyInto

func (in *DigitalOceanConfig) DeepCopyInto(out *DigitalOceanConfig)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

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 content of the credential file(key.json)
	Credential string `json:"credential,omitempty"`
	// Enable alpha feature
	EnableAlphaFeature bool `json:"enableAlphaFeature,omitempty"`
}

func (*GoogleKubernetesEngineConfig) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GoogleKubernetesEngineConfig.

func (*GoogleKubernetesEngineConfig) DeepCopyInto

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

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

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 Machine

type Machine 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 MachineSpec `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 MachineStatus `json:"status"`
}

func (*Machine) DeepCopy

func (in *Machine) DeepCopy() *Machine

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Machine.

func (*Machine) DeepCopyInto

func (in *Machine) DeepCopyInto(out *Machine)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*Machine) DeepCopyObject

func (in *Machine) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type MachineCondition

type MachineCondition struct {
	// Type of cluster condition.
	Type string `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 (*MachineCondition) DeepCopy

func (in *MachineCondition) DeepCopy() *MachineCondition

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MachineCondition.

func (*MachineCondition) DeepCopyInto

func (in *MachineCondition) DeepCopyInto(out *MachineCondition)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type MachineController

type MachineController interface {
	Informer() cache.SharedIndexInformer
	Lister() MachineLister
	AddHandler(handler MachineHandlerFunc)
	Enqueue(namespace, name string)
	Sync(ctx context.Context) error
	Start(ctx context.Context, threadiness int) error
}

type MachineDriver

type MachineDriver 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 MachineDriverSpec `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 MachineDriverStatus `json:"status"`
}

func (*MachineDriver) DeepCopy

func (in *MachineDriver) DeepCopy() *MachineDriver

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MachineDriver.

func (*MachineDriver) DeepCopyInto

func (in *MachineDriver) DeepCopyInto(out *MachineDriver)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*MachineDriver) DeepCopyObject

func (in *MachineDriver) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type MachineDriverCondition

type MachineDriverCondition struct {
	// Type of cluster condition.
	Type string `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 (*MachineDriverCondition) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MachineDriverCondition.

func (*MachineDriverCondition) DeepCopyInto

func (in *MachineDriverCondition) DeepCopyInto(out *MachineDriverCondition)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type MachineDriverController

type MachineDriverController interface {
	Informer() cache.SharedIndexInformer
	Lister() MachineDriverLister
	AddHandler(handler MachineDriverHandlerFunc)
	Enqueue(namespace, name string)
	Sync(ctx context.Context) error
	Start(ctx context.Context, threadiness int) error
}

type MachineDriverHandlerFunc

type MachineDriverHandlerFunc func(key string, obj *MachineDriver) error

type MachineDriverInterface

type MachineDriverInterface interface {
	ObjectClient() *clientbase.ObjectClient
	Create(*MachineDriver) (*MachineDriver, error)
	Get(name string, opts metav1.GetOptions) (*MachineDriver, error)
	Update(*MachineDriver) (*MachineDriver, error)
	Delete(name string, options *metav1.DeleteOptions) error
	List(opts metav1.ListOptions) (*MachineDriverList, error)
	Watch(opts metav1.ListOptions) (watch.Interface, error)
	DeleteCollection(deleteOpts *metav1.DeleteOptions, listOpts metav1.ListOptions) error
	Controller() MachineDriverController
}

type MachineDriverList

type MachineDriverList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []MachineDriver
}

func (*MachineDriverList) DeepCopy

func (in *MachineDriverList) DeepCopy() *MachineDriverList

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MachineDriverList.

func (*MachineDriverList) DeepCopyInto

func (in *MachineDriverList) DeepCopyInto(out *MachineDriverList)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*MachineDriverList) DeepCopyObject

func (in *MachineDriverList) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type MachineDriverLister

type MachineDriverLister interface {
	List(namespace string, selector labels.Selector) (ret []*MachineDriver, err error)
	Get(namespace, name string) (*MachineDriver, error)
}

type MachineDriverSpec

type MachineDriverSpec struct {
	DisplayName      string `json:"displayName"`
	Description      string `json:"description"`
	URL              string `json:"url"`
	ExternalID       string `json:"externalId"`
	Builtin          bool   `json:"builtin"`
	DefaultActive    bool   `json:"defaultActive"`
	ActivateOnCreate bool   `json:"activateOnCreate"`
	Checksum         string `json:"checksum"`
	UIURL            string `json:"uiUrl"`
}

func (*MachineDriverSpec) DeepCopy

func (in *MachineDriverSpec) DeepCopy() *MachineDriverSpec

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MachineDriverSpec.

func (*MachineDriverSpec) DeepCopyInto

func (in *MachineDriverSpec) DeepCopyInto(out *MachineDriverSpec)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type MachineDriverStatus

type MachineDriverStatus struct {
	Conditions []MachineDriverCondition `json:"conditions"`
}

func (*MachineDriverStatus) DeepCopy

func (in *MachineDriverStatus) DeepCopy() *MachineDriverStatus

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MachineDriverStatus.

func (*MachineDriverStatus) DeepCopyInto

func (in *MachineDriverStatus) DeepCopyInto(out *MachineDriverStatus)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type MachineDriversGetter

type MachineDriversGetter interface {
	MachineDrivers(namespace string) MachineDriverInterface
}

type MachineGeneralParams

type MachineGeneralParams struct {
	AuthCertificateAuthority string            `json:"authCertificateAuthority"`
	AuthKey                  string            `json:"authKey"`
	EngineInstallURL         string            `json:"engineInstallURL"`
	DockerVersion            string            `json:"dockerVersion"`
	EngineOpt                map[string]string `json:"engineOpt"`
	EngineInsecureRegistry   []string          `json:"engineInsecureRegistry"`
	EngineRegistryMirror     []string          `json:"engineRegistryMirror"`
	EngineLabel              map[string]string `json:"engineLabel"`
	EngineStorageDriver      string            `json:"engineStorageDriver"`
	EngineEnv                map[string]string `json:"engineEnv"`
}

func (*MachineGeneralParams) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MachineGeneralParams.

func (*MachineGeneralParams) DeepCopyInto

func (in *MachineGeneralParams) DeepCopyInto(out *MachineGeneralParams)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type MachineHandlerFunc

type MachineHandlerFunc func(key string, obj *Machine) error

type MachineInterface

type MachineInterface interface {
	ObjectClient() *clientbase.ObjectClient
	Create(*Machine) (*Machine, error)
	Get(name string, opts metav1.GetOptions) (*Machine, error)
	Update(*Machine) (*Machine, error)
	Delete(name string, options *metav1.DeleteOptions) error
	List(opts metav1.ListOptions) (*MachineList, error)
	Watch(opts metav1.ListOptions) (watch.Interface, error)
	DeleteCollection(deleteOpts *metav1.DeleteOptions, listOpts metav1.ListOptions) error
	Controller() MachineController
}

type MachineList

type MachineList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []Machine
}

func (*MachineList) DeepCopy

func (in *MachineList) DeepCopy() *MachineList

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MachineList.

func (*MachineList) DeepCopyInto

func (in *MachineList) DeepCopyInto(out *MachineList)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*MachineList) DeepCopyObject

func (in *MachineList) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type MachineLister

type MachineLister interface {
	List(namespace string, selector labels.Selector) (ret []*Machine, err error)
	Get(namespace, name string) (*Machine, error)
}

type MachineSpec

type MachineSpec struct {
	ClusterName         string `norman:"type=reference[cluster]"`
	ExternalID          string `json:"externalId"`
	MachineTemplateName string `norman:"type=reference[machineTemplate]"`
	DisplayName         string `json:"displayName"`
	Description         string `json:"description"`
	Hostname            string `json:"hostname"`
	Driver              string `json:"driver"`

	MachineGeneralParams `json:",inline"`
	AmazonEC2Config      AmazonEC2Config    `json:"amazonEc2Config"`
	AzureConfig          AzureConfig        `json:"azureConfig"`
	DigitalOceanConfig   DigitalOceanConfig `json:"digitalOceanConfig"`
}

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 MachineStatus

type MachineStatus struct {
	Conditions []MachineCondition `json:"conditions"`
}

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 MachineTemplate

type MachineTemplate 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 MachineTemplateSpec `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 MachineTemplateStatus `json:"status"`
}

func (*MachineTemplate) DeepCopy

func (in *MachineTemplate) DeepCopy() *MachineTemplate

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MachineTemplate.

func (*MachineTemplate) DeepCopyInto

func (in *MachineTemplate) DeepCopyInto(out *MachineTemplate)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*MachineTemplate) DeepCopyObject

func (in *MachineTemplate) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type MachineTemplateCondition

type MachineTemplateCondition struct {
	// Type of cluster condition.
	Type string `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 (*MachineTemplateCondition) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MachineTemplateCondition.

func (*MachineTemplateCondition) DeepCopyInto

func (in *MachineTemplateCondition) DeepCopyInto(out *MachineTemplateCondition)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type MachineTemplateController

type MachineTemplateController interface {
	Informer() cache.SharedIndexInformer
	Lister() MachineTemplateLister
	AddHandler(handler MachineTemplateHandlerFunc)
	Enqueue(namespace, name string)
	Sync(ctx context.Context) error
	Start(ctx context.Context, threadiness int) error
}

type MachineTemplateHandlerFunc

type MachineTemplateHandlerFunc func(key string, obj *MachineTemplate) error

type MachineTemplateInterface

type MachineTemplateInterface interface {
	ObjectClient() *clientbase.ObjectClient
	Create(*MachineTemplate) (*MachineTemplate, error)
	Get(name string, opts metav1.GetOptions) (*MachineTemplate, error)
	Update(*MachineTemplate) (*MachineTemplate, error)
	Delete(name string, options *metav1.DeleteOptions) error
	List(opts metav1.ListOptions) (*MachineTemplateList, error)
	Watch(opts metav1.ListOptions) (watch.Interface, error)
	DeleteCollection(deleteOpts *metav1.DeleteOptions, listOpts metav1.ListOptions) error
	Controller() MachineTemplateController
}

type MachineTemplateList

type MachineTemplateList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []MachineTemplate
}

func (*MachineTemplateList) DeepCopy

func (in *MachineTemplateList) DeepCopy() *MachineTemplateList

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MachineTemplateList.

func (*MachineTemplateList) DeepCopyInto

func (in *MachineTemplateList) DeepCopyInto(out *MachineTemplateList)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*MachineTemplateList) DeepCopyObject

func (in *MachineTemplateList) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type MachineTemplateLister

type MachineTemplateLister interface {
	List(namespace string, selector labels.Selector) (ret []*MachineTemplate, err error)
	Get(namespace, name string) (*MachineTemplate, error)
}

type MachineTemplateSpec

type MachineTemplateSpec struct {
	DisplayName  string            `json:"displayName"`
	Description  string            `json:"description"`
	FlavorPrefix string            `json:"flavorPrefix"`
	Driver       string            `json:"driver"`
	SecretValues map[string]string `json:"secretValues"`
	SecretName   string            `norman:"type=reference[/v1-cluster/schemas/globalSecret]"`
	PublicValues map[string]string `json:"publicValues"`
}

func (*MachineTemplateSpec) DeepCopy

func (in *MachineTemplateSpec) DeepCopy() *MachineTemplateSpec

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MachineTemplateSpec.

func (*MachineTemplateSpec) DeepCopyInto

func (in *MachineTemplateSpec) DeepCopyInto(out *MachineTemplateSpec)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type MachineTemplateStatus

type MachineTemplateStatus struct {
	Conditions []MachineTemplateCondition `json:"conditions"`
}

func (*MachineTemplateStatus) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MachineTemplateStatus.

func (*MachineTemplateStatus) DeepCopyInto

func (in *MachineTemplateStatus) DeepCopyInto(out *MachineTemplateStatus)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type MachineTemplatesGetter

type MachineTemplatesGetter interface {
	MachineTemplates(namespace string) MachineTemplateInterface
}

type MachinesGetter

type MachinesGetter interface {
	Machines(namespace string) MachineInterface
}

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 RKEConfigNode

type RKEConfigNode struct {
	// IP or FQDN that is fully resolvable and used for SSH communication
	Address string `yaml:"address" json:"address,omitempty"`
	// Optional - Internal address that will be used for components communication
	InternalAddress string `yaml:"internal_address" json:"internalAddress,omitempty"`
	// Node role in kubernetes cluster (controlplane, worker, or etcd)
	Role []string `yaml:"role" json:"role,omitempty"`
	// Optional - Hostname of the node
	HostnameOverride string `yaml:"hostname_override" json:"hostnameOverride,omitempty"`
	// SSH usesr that will be used by RKE
	User string `yaml:"user" json:"user,omitempty"`
	// Optional - Docker socket on the node that will be used in tunneling
	DockerSocket string `yaml:"docker_socket" json:"dockerSocket,omitempty"`
	// SSH Private Key
	SSHKey string `yaml:"ssh_key" json:"sshKey,omitempty"`
	// SSH Private Key Path
	SSHKeyPath string `yaml:"ssh_key_path" json:"sshKeyPath,omitempty"`
}

func (*RKEConfigNode) DeepCopy

func (in *RKEConfigNode) DeepCopy() *RKEConfigNode

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RKEConfigNode.

func (*RKEConfigNode) DeepCopyInto

func (in *RKEConfigNode) DeepCopyInto(out *RKEConfigNode)

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
	Nodes []RKEConfigNode `yaml:"nodes" json:"nodes,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"`
	// YAML manifest for user provided addons to be deployed on the cluster
	Addons string `yaml:"addons" json:"addons,omitempty"`
	// List of images used internally for proxy, cert downlaod and kubedns
	SystemImages map[string]string `yaml:"system_images" json:"systemImages,omitempty"`
	// SSH Private Key Path
	SSHKeyPath string `yaml:"ssh_key_path" json:"sshKeyPath,omitempty"`
}

func (*RancherKubernetesEngineConfig) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RancherKubernetesEngineConfig.

func (*RancherKubernetesEngineConfig) DeepCopyInto

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.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL