v1alpha1

package
v0.0.0-...-277aa47 Latest Latest
Warning

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

Go to latest
Published: Jan 24, 2025 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package v1alpha1 contains API Schema definitions for the rollout v1alpha1 API group +kubebuilder:object:generate=true +groupName=rollout.turtles-capi.cattle.io

Index

Constants

This section is empty.

Variables

View Source
var (
	// GroupVersion is group version used to register these objects
	GroupVersion = schema.GroupVersion{Group: "rollout.turtles-capi.cattle.io", Version: "v1alpha1"}

	// SchemeBuilder is used to add go types to the GroupVersionKind scheme
	SchemeBuilder = &scheme.Builder{GroupVersion: GroupVersion}

	// AddToScheme adds the types in this group-version to the given scheme.
	AddToScheme = SchemeBuilder.AddToScheme
)

Functions

This section is empty.

Types

type ClusterTargets

type ClusterTargets struct {
	// Name of target. This value is largely for display and logging. If
	// not specified a default name of the format "target000" will be used
	Name string `json:"name,omitempty"`
	// ClusterName to match a specific cluster by name that will be
	// selected
	// +nullable
	ClusterName string `json:"clusterName,omitempty"`
	// ClusterSelector is a selector to match clusters. The structure is
	// the standard metav1.LabelSelector format. If clusterGroupSelector or
	// clusterGroup is specified, clusterSelector will be used only to
	// further refine the selection after clusterGroupSelector and
	// clusterGroup is evaluated.
	// +nullable
	ClusterSelector *metav1.LabelSelector `json:"clusterSelector,omitempty"`
	// ClusterGroup to match a specific cluster group by name.
	// +nullable
	ClusterGroup string `json:"clusterGroup,omitempty"`
	// ClusterGroupSelector is a selector to match cluster groups.
	// +nullable
	ClusterGroupSelector *metav1.LabelSelector `json:"clusterGroupSelector,omitempty"`
	// DoNotDeploy if set to true, will not deploy to this target.
	DoNotDeploy bool `json:"doNotDeploy,omitempty"`
}

func (*ClusterTargets) DeepCopy

func (in *ClusterTargets) DeepCopy() *ClusterTargets

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

func (*ClusterTargets) DeepCopyInto

func (in *ClusterTargets) DeepCopyInto(out *ClusterTargets)

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

type ClusterUpgradeGroup

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

	Spec   ClusterUpgradeGroupSpec   `json:"spec,omitempty"`
	Status ClusterUpgradeGroupStatus `json:"status,omitempty"`
}

ClusterUpgradeGroup is the Schema for the clusterupgrades API

func (*ClusterUpgradeGroup) DeepCopy

func (in *ClusterUpgradeGroup) DeepCopy() *ClusterUpgradeGroup

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

func (*ClusterUpgradeGroup) DeepCopyInto

func (in *ClusterUpgradeGroup) DeepCopyInto(out *ClusterUpgradeGroup)

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

func (*ClusterUpgradeGroup) DeepCopyObject

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

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

type ClusterUpgradeGroupList

type ClusterUpgradeGroupList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []ClusterUpgradeGroup `json:"items"`
}

ClusterUpgradeGroupList contains a list of ClusterUpgradeGroup

func (*ClusterUpgradeGroupList) DeepCopy

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

func (*ClusterUpgradeGroupList) DeepCopyInto

func (in *ClusterUpgradeGroupList) DeepCopyInto(out *ClusterUpgradeGroupList)

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

func (*ClusterUpgradeGroupList) DeepCopyObject

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

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

type ClusterUpgradeGroupSpec

type ClusterUpgradeGroupSpec struct {
	// +required
	ClassName string `json:"className"`

	// RolloutStrategy controls the rollout of bundles, by defining
	// partitions, canaries and percentages for cluster availability.
	// +optional
	RolloutStrategy *RolloutStrategy `json:"rolloutStrategy,omitempty"`

	// Targets refer to the clusters that should be upgraded.
	Targets []ClusterTargets `json:"targets,omitempty"`
}

ClusterUpgradeGroupSpec defines the desired state of ClusterUpgradeGroup

func (*ClusterUpgradeGroupSpec) DeepCopy

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

func (*ClusterUpgradeGroupSpec) DeepCopyInto

func (in *ClusterUpgradeGroupSpec) DeepCopyInto(out *ClusterUpgradeGroupSpec)

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

type ClusterUpgradeGroupStatus

type ClusterUpgradeGroupStatus struct {
}

ClusterUpgradeGroupStatus defines the observed state of ClusterUpgradeGroup

func (*ClusterUpgradeGroupStatus) DeepCopy

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

func (*ClusterUpgradeGroupStatus) DeepCopyInto

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

type RollingUpdate

type RollingUpdate struct {
	// The maximum number of clusters that can be in update state (non-active) during a
	// rolling update.
	// +optional
	MaxRollouts *intstr.IntOrString `json:"maxRollouts,omitempty"`
	// The delay between subsequent cluster rollouts.
	// +optional
	RolloutDelay *intstr.IntOrString `json:"rolloutDelay,omitempty"`
	// The maximum number of failed attempts before skipping the update for a given
	// cluster.
	// +optional
	MaxFailures *intstr.IntOrString `json:"maxFailures,omitempty"`
}

RollingUpdate is used to control the desired behavior of rolling update.

func (*RollingUpdate) DeepCopy

func (in *RollingUpdate) DeepCopy() *RollingUpdate

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

func (*RollingUpdate) DeepCopyInto

func (in *RollingUpdate) DeepCopyInto(out *RollingUpdate)

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

type RolloutStrategy

type RolloutStrategy struct {
	// Type of rollout.
	// Default is RollingUpdate.
	// +optional
	Type RolloutStrategyType `json:"type,omitempty"`

	// Rolling update config params. Present only if
	// RolloutStrategyType = RollingUpdate.
	// +optional
	RollingUpdate *RollingUpdate `json:"rollingUpdate,omitempty"`
}

RolloutStrategy describes how to replace existing machines with new ones.

func (*RolloutStrategy) DeepCopy

func (in *RolloutStrategy) DeepCopy() *RolloutStrategy

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

func (*RolloutStrategy) DeepCopyInto

func (in *RolloutStrategy) DeepCopyInto(out *RolloutStrategy)

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

type RolloutStrategyType

type RolloutStrategyType string
const (
	// RollingUpdateStrategyType updates clusters by using rolling update
	RollingUpdateStrategyType RolloutStrategyType = "RollingUpdate"
)

Jump to

Keyboard shortcuts

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