v1beta1

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: May 31, 2023 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Overview

Package v1beta1 contains API Schema definitions for the kmm v1beta1 API group +kubebuilder:object:generate=true +groupName=hub.kmm.sigs.x-k8s.io

Index

Constants

This section is empty.

Variables

View Source
var (
	// GroupVersion is group version used to register these objects
	GroupVersion = schema.GroupVersion{Group: "hub.kmm.sigs.x-k8s.io", Version: "v1beta1"}

	// 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 ManagedClusterModule

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

	Spec   ManagedClusterModuleSpec   `json:"spec,omitempty"`
	Status ManagedClusterModuleStatus `json:"status,omitempty"`
}

ManagedClusterModule describes how to load a kernel module on managed clusters +operator-sdk:csv:customresourcedefinitions:displayName="Managed Cluster Module"

func (*ManagedClusterModule) DeepCopy

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

func (*ManagedClusterModule) DeepCopyInto

func (in *ManagedClusterModule) DeepCopyInto(out *ManagedClusterModule)

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

func (*ManagedClusterModule) DeepCopyObject

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

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

func (*ManagedClusterModule) SetupWebhookWithManager added in v1.1.0

func (mcm *ManagedClusterModule) SetupWebhookWithManager(mgr ctrl.Manager) error

func (*ManagedClusterModule) ValidateCreate added in v1.1.0

func (mcm *ManagedClusterModule) ValidateCreate() (admission.Warnings, error)

ValidateCreate implements webhook.Validator so a webhook will be registered for the type

func (*ManagedClusterModule) ValidateDelete added in v1.1.0

func (mcm *ManagedClusterModule) ValidateDelete() (admission.Warnings, error)

ValidateDelete implements webhook.Validator so a webhook will be registered for the type

func (*ManagedClusterModule) ValidateUpdate added in v1.1.0

func (mcm *ManagedClusterModule) ValidateUpdate(obj runtime.Object) (admission.Warnings, error)

ValidateUpdate implements webhook.Validator so a webhook will be registered for the type

type ManagedClusterModuleList

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

ManagedClusterModuleList contains a list of ManagedClusterModule

func (*ManagedClusterModuleList) DeepCopy

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

func (*ManagedClusterModuleList) DeepCopyInto

func (in *ManagedClusterModuleList) DeepCopyInto(out *ManagedClusterModuleList)

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

func (*ManagedClusterModuleList) DeepCopyObject

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

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

type ManagedClusterModuleSpec

type ManagedClusterModuleSpec struct {
	// ModuleSpec describes how the KMM operator should deploy a Module on those nodes that need it.
	ModuleSpec kmmv1beta1.ModuleSpec `json:"moduleSpec,omitempty"`

	// SpokeNamespace describes the Spoke namespace, in which the ModuleSpec should be applied.
	SpokeNamespace string `json:"spokeNamespace,omitempty"`

	// Selector describes on which managed clusters the ModuleSpec should be applied.
	Selector map[string]string `json:"selector"`
}

ManagedClusterModuleSpec defines the desired state of ManagedClusterModule

func (*ManagedClusterModuleSpec) DeepCopy

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

func (*ManagedClusterModuleSpec) DeepCopyInto

func (in *ManagedClusterModuleSpec) DeepCopyInto(out *ManagedClusterModuleSpec)

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

type ManagedClusterModuleStatus

type ManagedClusterModuleStatus struct {
	// Number of ManifestWorks to be applied.
	NumberDesired int32 `json:"numberDesired,omitempty"`

	// Number of ManifestWorks that have been successfully applied.
	NumberApplied int32 `json:"numberApplied,omitempty"`

	// Number of ManifestWorks that could not be successfully applied.
	NumberDegraded int32 `json:"numberDegraded,omitempty"`
}

ManagedClusterModuleStatus defines the observed state of ManagedClusterModule.

func (*ManagedClusterModuleStatus) DeepCopy

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

func (*ManagedClusterModuleStatus) 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