v1alpha2

package
v1.59.8 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AutomaticDisruptions

type AutomaticDisruptions struct {
	// Indicates if Pods should be drained from node before allow disruption.
	DrainBeforeApproval *bool `json:"drainBeforeApproval,omitempty"`
	// Node update windows
	Windows update.Windows `json:"windows,omitempty"`
}

func (*AutomaticDisruptions) DeepCopy

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

func (*AutomaticDisruptions) DeepCopyInto

func (in *AutomaticDisruptions) DeepCopyInto(out *AutomaticDisruptions)

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

func (AutomaticDisruptions) IsEmpty

func (a AutomaticDisruptions) IsEmpty() bool

type CRI

type CRI struct {
	// Container runtime type. Docker, Containerd or NotManaged
	Type string `json:"type,omitempty"`

	// Containerd runtime parameters.
	Containerd *Containerd `json:"containerd,omitempty"`

	// Docker settings for nodes.
	Docker *Docker `json:"docker,omitempty"`

	// NotManaged settings for nodes.
	NotManaged *NotManaged `json:"notManaged,omitempty"`
}

func (*CRI) DeepCopy

func (in *CRI) DeepCopy() *CRI

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

func (*CRI) DeepCopyInto

func (in *CRI) DeepCopyInto(out *CRI)

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

func (CRI) IsEmpty

func (c CRI) IsEmpty() bool

type Chaos

type Chaos struct {
	// Chaos monkey mode: DrainAndDelete or Disabled (default).
	Mode string `json:"mode,omitempty"`

	// Chaos monkey wake up period. Default is 6h.
	Period string `json:"period,omitempty"`
}

Chaos is a chaos-monkey settings.

func (*Chaos) DeepCopy

func (in *Chaos) DeepCopy() *Chaos

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

func (*Chaos) DeepCopyInto

func (in *Chaos) DeepCopyInto(out *Chaos)

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

func (Chaos) IsEmpty

func (c Chaos) IsEmpty() bool

type ClassReference

type ClassReference struct {
	// Kind of a ClassReference resource: OpenStackInstanceClass, GCPInstanceClass, ...
	Kind string `json:"kind,omitempty"`

	// Name of a ClassReference resource.
	Name string `json:"name,omitempty"`
}

func (*ClassReference) DeepCopy

func (in *ClassReference) DeepCopy() *ClassReference

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

func (*ClassReference) DeepCopyInto

func (in *ClassReference) DeepCopyInto(out *ClassReference)

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

func (ClassReference) IsEmpty

func (c ClassReference) IsEmpty() bool

type CloudInstances

type CloudInstances struct {
	// List of availability zones to create instances in.
	Zones []string `json:"zones"`

	// Minimal amount of instances for the group in each zone. Required.
	MinPerZone *int32 `json:"minPerZone,omitempty"`

	// Maximum amount of instances for the group in each zone. Required.
	MaxPerZone *int32 `json:"maxPerZone,omitempty"`

	// Maximum amount of unavailable instances (during rollout) in the group in each zone.
	MaxUnavailablePerZone *int32 `json:"maxUnavailablePerZone,omitempty"`

	// Maximum amount of instances to rollout simultaneously in the group in each zone.
	MaxSurgePerZone *int32 `json:"maxSurgePerZone,omitempty"`

	// Overprovisioned Nodes for this NodeGroup.
	Standby *intstr.IntOrString `json:"standby,omitempty"`

	// Settings for overprovisioned Node holder.
	StandbyHolder StandbyHolder `json:"standbyHolder,omitempty"`

	// Reference to a ClassInstance resource. Required.
	ClassReference ClassReference `json:"classReference"`
}

CloudInstances is an extra parameters for NodeGroup with type Cloud.

func (*CloudInstances) DeepCopy

func (in *CloudInstances) DeepCopy() *CloudInstances

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

func (*CloudInstances) DeepCopyInto

func (in *CloudInstances) DeepCopyInto(out *CloudInstances)

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

func (CloudInstances) IsEmpty

func (c CloudInstances) IsEmpty() bool

type ConditionSummary

type ConditionSummary struct {
	// Status message about group handling.
	StatusMessage string `json:"statusMessage,omitempty"`

	// Summary for the NodeGroup status: True or False
	Ready string `json:"ready,omitempty"`
}

func (*ConditionSummary) DeepCopy

func (in *ConditionSummary) DeepCopy() *ConditionSummary

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

func (*ConditionSummary) DeepCopyInto

func (in *ConditionSummary) DeepCopyInto(out *ConditionSummary)

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

type Containerd

type Containerd struct {
	// Set the max concurrent downloads for each pull (default 3).
	MaxConcurrentDownloads *int32 `json:"maxConcurrentDownloads,omitempty"`
}

func (*Containerd) DeepCopy

func (in *Containerd) DeepCopy() *Containerd

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

func (*Containerd) DeepCopyInto

func (in *Containerd) DeepCopyInto(out *Containerd)

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

type Disruptions

type Disruptions struct {
	// Allow disruptive update mode: Manual or Automatic.
	ApprovalMode string `json:"approvalMode"`

	// Extra settings for Automatic mode.
	Automatic AutomaticDisruptions `json:"automatic,omitempty"`
}

func (*Disruptions) DeepCopy

func (in *Disruptions) DeepCopy() *Disruptions

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

func (*Disruptions) DeepCopyInto

func (in *Disruptions) DeepCopyInto(out *Disruptions)

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

func (Disruptions) IsEmpty

func (d Disruptions) IsEmpty() bool

type Docker

type Docker struct {
	// Set the max concurrent downloads for each pull (default 3).
	MaxConcurrentDownloads *int32 `json:"maxConcurrentDownloads,omitempty"`

	// Enable docker maintenance from bashible.
	Manage *bool `json:"manage,omitempty"`
}

func (*Docker) DeepCopy

func (in *Docker) DeepCopy() *Docker

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

func (*Docker) DeepCopyInto

func (in *Docker) DeepCopyInto(out *Docker)

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

type Kubelet

type Kubelet struct {
	// Set the max count of pods per node. Default: 110
	MaxPods *int32 `json:"maxPods,omitempty"`

	// Directory path for managing kubelet files (volume mounts,etc).
	// Default: '/var/lib/kubelet'
	RootDir string `json:"rootDir,omitempty"`

	// Maximum log file size before it is rotated.
	// Default: '50Mi'
	ContainerLogMaxSize string `json:"containerLogMaxSize,omitempty"`

	// How many rotated log files to store before deleting them.
	// Default: '4'
	ContainerLogMaxFiles int `json:"containerLogMaxFiles,omitempty"`
}

func (*Kubelet) DeepCopy

func (in *Kubelet) DeepCopy() *Kubelet

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

func (*Kubelet) DeepCopyInto

func (in *Kubelet) DeepCopyInto(out *Kubelet)

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

func (Kubelet) IsEmpty

func (k Kubelet) IsEmpty() bool

type MachineFailure

type MachineFailure struct {
	// Machine's name.
	Name string `json:"name,omitempty"`

	// Machine's ProviderID.
	ProviderID string `json:"providerID,omitempty"`

	// Machine owner's name.
	OwnerRef string `json:"ownerRef,omitempty"`

	// Last operation with machine.
	LastOperation MachineOperation `json:"lastOperation,omitempty"`
}

func (*MachineFailure) DeepCopy

func (in *MachineFailure) DeepCopy() *MachineFailure

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

func (*MachineFailure) DeepCopyInto

func (in *MachineFailure) DeepCopyInto(out *MachineFailure)

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

type MachineOperation

type MachineOperation struct {
	// Last operation's description.
	Description string `json:"description,omitempty"`

	// Timestamp of last status update for operation.
	LastUpdateTime string `json:"lastUpdateTime,omitempty"`

	// Machine's operation state.
	State string `json:"state,omitempty"`

	// Type of operation.
	Type string `json:"type,omitempty"`
}

func (*MachineOperation) DeepCopy

func (in *MachineOperation) DeepCopy() *MachineOperation

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

func (*MachineOperation) DeepCopyInto

func (in *MachineOperation) DeepCopyInto(out *MachineOperation)

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

type NodeGroup

type NodeGroup struct {
	metav1.TypeMeta `json:",inline"`
	// Standard object's metadata.
	// More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
	// +optional
	metav1.ObjectMeta `json:"metadata,omitempty"`

	// Spec defines the behavior of a node group.
	Spec NodeGroupSpec `json:"spec"`

	Status NodeGroupStatus `json:"status,omitempty"`
}

NodeGroup is a group of nodes in Kubernetes.

func (*NodeGroup) DeepCopy

func (in *NodeGroup) DeepCopy() *NodeGroup

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

func (*NodeGroup) DeepCopyInto

func (in *NodeGroup) DeepCopyInto(out *NodeGroup)

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

func (*NodeGroup) DeepCopyObject

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

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

type NodeGroupSpec

type NodeGroupSpec struct {
	// Type of nodes in group: Cloud, Static, Hybrid. Field is required.
	NodeType string `json:"nodeType,omitempty"`

	// CRI parameters. Optional.
	CRI CRI `json:"cri,omitempty"`

	// cloudInstances. Optional.
	CloudInstances CloudInstances `json:"cloudInstances,omitempty"`

	// Default labels, annotations and taints for Nodes in NodeGroup. Optional.
	NodeTemplate nm.NodeTemplate `json:"nodeTemplate,omitempty"`

	// Chaos monkey settings. Optional.
	Chaos Chaos `json:"chaos,omitempty"`

	// OperatingSystem. Optional.
	OperatingSystem OperatingSystem `json:"operatingSystem,omitempty"`

	// Disruptions settings for nodes. Optional.
	Disruptions Disruptions `json:"disruptions,omitempty"`

	// Kubelet settings for nodes. Optional.
	Kubelet Kubelet `json:"kubelet,omitempty"`
}

func (*NodeGroupSpec) DeepCopy

func (in *NodeGroupSpec) DeepCopy() *NodeGroupSpec

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

func (*NodeGroupSpec) DeepCopyInto

func (in *NodeGroupSpec) DeepCopyInto(out *NodeGroupSpec)

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

type NodeGroupStatus

type NodeGroupStatus struct {
	// Number of ready Kubernetes nodes in the group.
	Ready int32 `json:"ready,omitempty"`

	// Number of Kubernetes nodes (in any state) in the group.
	Nodes int32 `json:"nodes,omitempty"`

	// Number of instances (in any state) in the group.
	Instances int32 `json:"instances,omitempty"`

	// Number of desired machines in the group.
	Desired int32 `json:"desired,omitempty"`

	// Minimal amount of instances in the group.
	Min int32 `json:"min,omitempty"`

	// Maximum amount of instances in the group.
	Max int32 `json:"max,omitempty"`

	// Number of up-to-date nodes in the group.
	UpToDate int32 `json:"upToDate,omitempty"`

	// Number of overprovisioned instances in the group.
	Standby int32 `json:"standby,omitempty"`

	// Error message about possible problems with the group handling.
	Error string `json:"error,omitempty"`

	// A list of last failures of handled Machines.
	LastMachineFailures []MachineFailure `json:"lastMachineFailures,omitempty"`

	// Status' summary.
	ConditionSummary ConditionSummary `json:"conditionSummary,omitempty"`
}

func (*NodeGroupStatus) DeepCopy

func (in *NodeGroupStatus) DeepCopy() *NodeGroupStatus

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

func (*NodeGroupStatus) DeepCopyInto

func (in *NodeGroupStatus) DeepCopyInto(out *NodeGroupStatus)

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

func (*NodeGroupStatus) GetObjectKind

func (in *NodeGroupStatus) GetObjectKind() schema.ObjectKind

type NotManaged

type NotManaged struct {
	// Set custom path to CRI socket
	CriSocketPath *string `json:"criSocketPath,omitempty"`
}

func (*NotManaged) DeepCopy

func (in *NotManaged) DeepCopy() *NotManaged

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

func (*NotManaged) DeepCopyInto

func (in *NotManaged) DeepCopyInto(out *NotManaged)

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

type OperatingSystem

type OperatingSystem struct {
	// Enable kernel maintenance from bashible (default true).
	// Deprecated
	ManageKernel *bool `json:"manageKernel,omitempty"`
}

func (*OperatingSystem) DeepCopy

func (in *OperatingSystem) DeepCopy() *OperatingSystem

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

func (*OperatingSystem) DeepCopyInto

func (in *OperatingSystem) DeepCopyInto(out *OperatingSystem)

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

func (OperatingSystem) IsEmpty

func (o OperatingSystem) IsEmpty() bool

type Resources

type Resources struct {
	// Describes the amount of CPU that will not be held by standby holder on Nodes from this NodeGroup.
	CPU intstr.IntOrString `json:"cpu,omitempty"`

	// Describes the amount of memory that will not be held by standby holder on Nodes from this NodeGroup.
	Memory intstr.IntOrString `json:"memory,omitempty"`
}

func (*Resources) DeepCopy

func (in *Resources) DeepCopy() *Resources

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

func (*Resources) DeepCopyInto

func (in *Resources) DeepCopyInto(out *Resources)

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

func (Resources) IsEmpty

func (r Resources) IsEmpty() bool

type StandbyHolder

type StandbyHolder struct {
	// Describes the amount of resources, that will not be held by standby holder.
	NotHeldResources Resources `json:"notHeldResources,omitempty"`
}

func (*StandbyHolder) DeepCopy

func (in *StandbyHolder) DeepCopy() *StandbyHolder

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

func (*StandbyHolder) DeepCopyInto

func (in *StandbyHolder) DeepCopyInto(out *StandbyHolder)

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

func (StandbyHolder) IsEmpty

func (s StandbyHolder) IsEmpty() bool

Jump to

Keyboard shortcuts

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