v3

package
Version: v7.1.1+incompatible Latest Latest
Warning

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

Go to latest
Published: Aug 29, 2019 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package v3 is the v3 version of the API. +groupName=provision.containership.io +groupGoName=ContainershipProvision

Index

Constants

This section is empty.

Variables

View Source
var (
	// SchemeBuilder is used to add functions to the API dynamically
	SchemeBuilder runtime.SchemeBuilder

	// AddToScheme adds functions to the Scheme
	AddToScheme = localSchemeBuilder.AddToScheme
)
View Source
var SchemeGroupVersion = schema.GroupVersion{Group: provisioncontainershipio.GroupName, Version: "v3"}

SchemeGroupVersion is group version used to register these objects

Functions

func Resource

func Resource(resource string) schema.GroupResource

Resource takes an unqualified resource and returns a Group qualified GroupResource

Types

type ClusterUpgrade

type ClusterUpgrade struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`

	Spec ClusterUpgradeSpec `json:"spec"`
}

ClusterUpgrade describes the cluster upgrade that has been requested. This is not synced from cloud

func (*ClusterUpgrade) DeepCopy

func (in *ClusterUpgrade) DeepCopy() *ClusterUpgrade

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

func (*ClusterUpgrade) DeepCopyInto

func (in *ClusterUpgrade) DeepCopyInto(out *ClusterUpgrade)

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

func (*ClusterUpgrade) DeepCopyObject

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

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

type ClusterUpgradeList

type ClusterUpgradeList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata"`

	Items []ClusterUpgrade `json:"items"`
}

ClusterUpgradeList is a list of ClusterUpgrades.

func (*ClusterUpgradeList) DeepCopy

func (in *ClusterUpgradeList) DeepCopy() *ClusterUpgradeList

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

func (*ClusterUpgradeList) DeepCopyInto

func (in *ClusterUpgradeList) DeepCopyInto(out *ClusterUpgradeList)

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

func (*ClusterUpgradeList) DeepCopyObject

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

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

type ClusterUpgradeSpec

type ClusterUpgradeSpec struct {
	ID                 string                   `json:"id"`
	Type               UpgradeType              `json:"type"`
	AddedAt            string                   `json:"addedAt"`
	Description        string                   `json:"description"`
	TargetVersion      string                   `json:"targetVersion"`
	LabelSelector      []LabelSelectorSpec      `json:"labelSelector"`
	NodeTimeoutSeconds int                      `json:"nodeTimeoutSeconds"`
	Status             ClusterUpgradeStatusSpec `json:"status"`
}

ClusterUpgradeSpec is the spec for a Containership Cloud Cluster Upgrade.

func (*ClusterUpgradeSpec) DeepCopy

func (in *ClusterUpgradeSpec) DeepCopy() *ClusterUpgradeSpec

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

func (*ClusterUpgradeSpec) DeepCopyInto

func (in *ClusterUpgradeSpec) DeepCopyInto(out *ClusterUpgradeSpec)

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

type ClusterUpgradeStatusSpec

type ClusterUpgradeStatusSpec struct {
	ClusterStatus    UpgradeStatus            `json:"clusterStatus"`
	NodeStatuses     map[string]UpgradeStatus `json:"nodeStatuses"`
	CurrentNode      string                   `json:"currentNode"`
	CurrentStartTime string                   `json:"currentStartTime"`
}

ClusterUpgradeStatusSpec is the spec for the current status / state of a Cluster Upgrade. It is never modified by Cloud.

func (*ClusterUpgradeStatusSpec) DeepCopy

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

func (*ClusterUpgradeStatusSpec) DeepCopyInto

func (in *ClusterUpgradeStatusSpec) DeepCopyInto(out *ClusterUpgradeStatusSpec)

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

type LabelSelectorSpec

type LabelSelectorSpec struct {
	Label    string             `json:"label"`
	Operator selection.Operator `json:"operator"`
	Value    []string           `json:"value"`
}

LabelSelectorSpec lets a user add more filters to the nodes they want to update

func (*LabelSelectorSpec) DeepCopy

func (in *LabelSelectorSpec) DeepCopy() *LabelSelectorSpec

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

func (*LabelSelectorSpec) DeepCopyInto

func (in *LabelSelectorSpec) DeepCopyInto(out *LabelSelectorSpec)

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

type NodePoolLabel

type NodePoolLabel struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`

	Spec NodePoolLabelSpec `json:"spec"`
}

NodePoolLabel describes a node pool label in Containership Cloud.

func (*NodePoolLabel) DeepCopy

func (in *NodePoolLabel) DeepCopy() *NodePoolLabel

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

func (*NodePoolLabel) DeepCopyInto

func (in *NodePoolLabel) DeepCopyInto(out *NodePoolLabel)

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

func (*NodePoolLabel) DeepCopyObject

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

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

type NodePoolLabelList

type NodePoolLabelList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata"`

	Items []NodePoolLabel `json:"items"`
}

NodePoolLabelList is a list of NodePoolLabels.

func (*NodePoolLabelList) DeepCopy

func (in *NodePoolLabelList) DeepCopy() *NodePoolLabelList

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

func (*NodePoolLabelList) DeepCopyInto

func (in *NodePoolLabelList) DeepCopyInto(out *NodePoolLabelList)

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

func (*NodePoolLabelList) DeepCopyObject

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

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

type NodePoolLabelSpec

type NodePoolLabelSpec struct {
	ID         string `json:"id"`
	CreatedAt  string `json:"created_at"`
	UpdatedAt  string `json:"updated_at"`
	Key        string `json:"key"`
	Value      string `json:"value"`
	NodePoolID string `json:"node_pool_id"`
}

NodePoolLabelSpec is the spec for a Containership Cloud NodePoolLabel.

func (*NodePoolLabelSpec) DeepCopy

func (in *NodePoolLabelSpec) DeepCopy() *NodePoolLabelSpec

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

func (*NodePoolLabelSpec) DeepCopyInto

func (in *NodePoolLabelSpec) DeepCopyInto(out *NodePoolLabelSpec)

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

type UpgradeStatus

type UpgradeStatus string

UpgradeStatus keeps track of where in the upgrade process the cluster is

const (
	// UpgradeInProgress means the update process has started
	UpgradeInProgress UpgradeStatus = "InProgress"
	// UpgradeSuccess status gets set when all nodes have been updated to Target Version
	UpgradeSuccess UpgradeStatus = "Success"
	// UpgradeFailed status gets set when 1 or more nodes in upgrade if unsuccessful
	UpgradeFailed UpgradeStatus = "Failed"
)

type UpgradeType

type UpgradeType string

UpgradeType specifies the type of upgrade this CRD corresponds to

const (
	// UpgradeTypeKubernetes is for upgrading Kubernetes
	UpgradeTypeKubernetes UpgradeType = "kubernetes"
	// UpgradeTypeEtcd is for upgrading etcd (not yet supported)
	UpgradeTypeEtcd UpgradeType = "etcd"
)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL