v1alpha2

package
v1.72.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	ModuleUpdatePolicyResource = "moduleupdatepolicies"
	ModuleUpdatePolicyKind     = "ModuleUpdatePolicy"

	ModuleUpdatePolicyModeIgnore = "Ignore"
)
View Source
const (
	Version = "v1alpha2"
)

Variables

View Source
var (
	ModulePullOverrideGVR = schema.GroupVersionResource{
		Group:    SchemeGroupVersion.Group,
		Version:  SchemeGroupVersion.Version,
		Resource: "modulepulloverrides",
	}
	ModulePullOverrideGVK = schema.GroupVersionKind{
		Group:   SchemeGroupVersion.Group,
		Version: SchemeGroupVersion.Version,
		Kind:    "ModulePullOverride",
	}
)
View Source
var (
	ModuleUpdatePolicyGVR = schema.GroupVersionResource{
		Group:    SchemeGroupVersion.Group,
		Version:  SchemeGroupVersion.Version,
		Resource: ModuleUpdatePolicyResource,
	}
	ModuleUpdatePolicyGVK = schema.GroupVersionKind{
		Group:   SchemeGroupVersion.Group,
		Version: SchemeGroupVersion.Version,
		Kind:    ModuleUpdatePolicyKind,
	}
)
View Source
var (
	// localSchemeBuilder and AddToScheme will stay in k8s.io/kubernetes.
	SchemeBuilder runtime.SchemeBuilder

	AddToScheme = localSchemeBuilder.AddToScheme
)
View Source
var SchemeGroupVersion = schema.GroupVersion{Group: deckhouse_io.GroupName, Version: Version}

SchemeGroupVersion is group version used to register these objects

Functions

func RegisterDefaults

func RegisterDefaults(scheme *runtime.Scheme) error

RegisterDefaults adds defaulters functions to the given scheme. Public to allow building arbitrary schemes. All generated defaulters are covering - they call all nested defaulters.

func Resource

func Resource(resource string) schema.GroupResource

Resource takes an unqualified resource and returns a Group qualified GroupResource

Types

type ModulePullOverride

type ModulePullOverride 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 an ModulePullOverride.
	Spec ModulePullOverrideSpec `json:"spec"`

	// Status of an ModulePullOverride.
	Status ModulePullOverrideStatus `json:"status,omitempty"`
}

ModulePullOverride object

func (*ModulePullOverride) DeepCopy

func (in *ModulePullOverride) DeepCopy() *ModulePullOverride

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

func (*ModulePullOverride) DeepCopyInto

func (in *ModulePullOverride) DeepCopyInto(out *ModulePullOverride)

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

func (*ModulePullOverride) DeepCopyObject

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

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

func (*ModulePullOverride) GetModuleName

func (mo *ModulePullOverride) GetModuleName() string

GetModuleName returns the module's name of the module pull override

func (*ModulePullOverride) GetReleaseVersion

func (mo *ModulePullOverride) GetReleaseVersion() string

GetReleaseVersion returns the version of the related module

func (*ModulePullOverride) GetWeight

func (mo *ModulePullOverride) GetWeight() uint32

GetWeight returns the weight of the module

type ModulePullOverrideList

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

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

ModulePullOverrideList is a list of ModulePullOverride resources

func (*ModulePullOverrideList) DeepCopy

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

func (*ModulePullOverrideList) DeepCopyInto

func (in *ModulePullOverrideList) DeepCopyInto(out *ModulePullOverrideList)

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

func (*ModulePullOverrideList) DeepCopyObject

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

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

type ModulePullOverrideSpec

type ModulePullOverrideSpec struct {
	ImageTag     string          `json:"imageTag"`
	ScanInterval libapi.Duration `json:"scanInterval"`
	Rollback     bool            `json:"rollback"`
}

func (*ModulePullOverrideSpec) DeepCopy

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

func (*ModulePullOverrideSpec) DeepCopyInto

func (in *ModulePullOverrideSpec) DeepCopyInto(out *ModulePullOverrideSpec)

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

type ModulePullOverrideStatus

type ModulePullOverrideStatus struct {
	UpdatedAt   metav1.Time `json:"updatedAt"`
	Message     string      `json:"message"`
	ImageDigest string      `json:"imageDigest"`
	Weight      uint32      `json:"weight"`
}

func (*ModulePullOverrideStatus) DeepCopy

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

func (*ModulePullOverrideStatus) DeepCopyInto

func (in *ModulePullOverrideStatus) DeepCopyInto(out *ModulePullOverrideStatus)

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

type ModuleUpdatePolicy

type ModuleUpdatePolicy 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 ModuleUpdatePolicySpec `json:"spec"`
}

ModuleUpdatePolicy source

func (*ModuleUpdatePolicy) DeepCopy

func (in *ModuleUpdatePolicy) DeepCopy() *ModuleUpdatePolicy

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

func (*ModuleUpdatePolicy) DeepCopyInto

func (in *ModuleUpdatePolicy) DeepCopyInto(out *ModuleUpdatePolicy)

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

func (*ModuleUpdatePolicy) DeepCopyObject

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

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

type ModuleUpdatePolicyList

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

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

ModuleUpdatePolicyList is a list of ModuleUpdatePolicy resources

func (*ModuleUpdatePolicyList) DeepCopy

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

func (*ModuleUpdatePolicyList) DeepCopyInto

func (in *ModuleUpdatePolicyList) DeepCopyInto(out *ModuleUpdatePolicyList)

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

func (*ModuleUpdatePolicyList) DeepCopyObject

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

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

type ModuleUpdatePolicySpec

type ModuleUpdatePolicySpec struct {
	Update         ModuleUpdatePolicySpecUpdate `json:"update"`
	ReleaseChannel string                       `json:"releaseChannel"`
}

func (*ModuleUpdatePolicySpec) DeepCopy

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

func (*ModuleUpdatePolicySpec) DeepCopyInto

func (in *ModuleUpdatePolicySpec) DeepCopyInto(out *ModuleUpdatePolicySpec)

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

type ModuleUpdatePolicySpecUpdate

type ModuleUpdatePolicySpecUpdate struct {
	Mode    string         `json:"mode"`
	Windows update.Windows `json:"windows"`
}

func (*ModuleUpdatePolicySpecUpdate) DeepCopy

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

func (*ModuleUpdatePolicySpecUpdate) DeepCopyInto

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

type UpdateMode added in v1.71.0

type UpdateMode string
const (
	// UpdateModeAutoPatch is default mode for updater,
	// deckhouse automatically applies patch releases, but asks for approval of minor releases
	UpdateModeAutoPatch UpdateMode = "AutoPatch"
	// UpdateModeAuto is updater mode when deckhouse automatically applies all releases
	UpdateModeAuto UpdateMode = "Auto"
	// UpdateModeManual is updater mode when deckhouse downloads releases info, but does not apply them
	UpdateModeManual UpdateMode = "Manual"
)

func ParseUpdateMode added in v1.71.0

func ParseUpdateMode(name string) UpdateMode

ParseUpdateMode attempts to convert a string to a UpdateMode.

AutoPatch used by default

func (UpdateMode) IsValid added in v1.71.0

func (x UpdateMode) IsValid() bool

IsValid provides a quick way to determine if the typed value is part of the allowed enumerated values

func (UpdateMode) String added in v1.71.0

func (x UpdateMode) String() string

String implements the Stringer interface.

Jump to

Keyboard shortcuts

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