v1alpha1

package
v0.0.0-...-c452859 Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2025 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Package v1alpha1 contains API Schema definitions for the eks v1alpha1 API group. +kubebuilder:object:generate=true +groupName=eks.aws.harsh.dev

Index

Constants

This section is empty.

Variables

View Source
var (
	// GroupVersion is group version used to register these objects.
	GroupVersion = schema.GroupVersion{Group: "eks.aws.harsh.dev", 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 NodeGroupUpgradePolicy

type NodeGroupUpgradePolicy struct {
	metav1.TypeMeta `json:",inline"`

	// metadata is a standard object metadata
	// +optional
	metav1.ObjectMeta `json:"metadata,omitempty,omitzero"`

	// spec defines the desired state of NodeGroupUpgradePolicy
	// +required
	Spec NodeGroupUpgradePolicySpec `json:"spec"`

	// status defines the observed state of NodeGroupUpgradePolicy
	// +optional
	Status NodeGroupUpgradePolicyStatus `json:"status,omitempty,omitzero"`
}

NodeGroupUpgradePolicy is the Schema for the nodegroupupgradepolicies API

func (*NodeGroupUpgradePolicy) DeepCopy

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

func (*NodeGroupUpgradePolicy) DeepCopyInto

func (in *NodeGroupUpgradePolicy) DeepCopyInto(out *NodeGroupUpgradePolicy)

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

func (*NodeGroupUpgradePolicy) DeepCopyObject

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

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

func (*NodeGroupUpgradePolicy) Default

type NodeGroupUpgradePolicyList

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

NodeGroupUpgradePolicyList contains a list of NodeGroupUpgradePolicy

func (*NodeGroupUpgradePolicyList) DeepCopy

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

func (*NodeGroupUpgradePolicyList) DeepCopyInto

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

func (*NodeGroupUpgradePolicyList) DeepCopyObject

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

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

type NodeGroupUpgradePolicySpec

type NodeGroupUpgradePolicySpec struct {
	ClusterName   string `json:"clusterName"`
	NodeGroupName string `json:"nodeGroupName"`
	Region        string `json:"region"`
	CheckInterval string `json:"checkInterval"` // e.g., "24h"
	AutoUpgrade   bool   `json:"autoUpgrade"`
	Paused        bool   `json:"paused,omitempty"`
	StartAfter    string `json:"startAfter,omitempty"` // RFC3339 timestamp
}

NodeGroupUpgradePolicySpec defines the desired state of NodeGroupUpgradePolicy

func (*NodeGroupUpgradePolicySpec) DeepCopy

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

func (*NodeGroupUpgradePolicySpec) DeepCopyInto

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

type NodeGroupUpgradePolicyStatus

type NodeGroupUpgradePolicyStatus struct {

	// conditions represent the current state of the NodeGroupUpgradePolicy resource.
	// Each condition has a unique type and reflects the status of a specific aspect of the resource.
	//
	// Standard condition types include:
	// - "Available": the resource is fully functional
	// - "Progressing": the resource is being created or updated
	// - "Degraded": the resource failed to reach or maintain its desired state
	//
	// The status of each condition is one of True, False, or Unknown.
	// +listType=map
	// +listMapKey=type
	// +optional
	Conditions         []metav1.Condition `json:"conditions,omitempty"`
	LastChecked        metav1.Time        `json:"lastChecked,omitempty"`
	LastUpgradeAttempt metav1.Time        `json:"lastUpgradeAttempt,omitempty"`
	CurrentAmi         string             `json:"currentAmi,omitempty"`
	TargetAmi          string             `json:"targetAmi,omitempty"`
	// +kubebuilder:validation:Enum=Failed;InProgress;Succeeded;Outdated;Skipped
	UpgradeStatus string `json:"upgradeStatus,omitempty"`
}

NodeGroupUpgradePolicyStatus defines the observed state of NodeGroupUpgradePolicy.

func (*NodeGroupUpgradePolicyStatus) DeepCopy

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

func (*NodeGroupUpgradePolicyStatus) DeepCopyInto

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

Jump to

Keyboard shortcuts

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