v1beta1

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Jan 26, 2026 License: Apache-2.0 Imports: 10 Imported by: 5

Documentation

Overview

Copyright Contributors to the Open Cluster Management project

+k8s:deepcopy-gen=package,register +kubebuilder:validation:Optional +groupName=addon.open-cluster-management.io +k8s:conversion-gen=open-cluster-management.io/api/addon/v1alpha1

Copyright Contributors to the Open Cluster Management project

Index

Constants

View Source
const (
	// AddonInstallStrategyManual is the addon install strategy representing no automatic addon installation
	AddonInstallStrategyManual string = "Manual"
	// AddonInstallStrategyPlacements is the addon install strategy representing the addon installation
	// is based on placement decisions.
	AddonInstallStrategyPlacements string = "Placements"
)
View Source
const (

	// AddonLabelKey is the label key to set addon name. It is to set on the resources (csr, addon template rolebinding, ManifestWork) on the hub relating
	// to an addon
	AddonLabelKey = "open-cluster-management.io/addon-name"

	// DisableAddonAutomaticInstallationAnnotationKey is the annotation key for disabling the functionality of
	// installing addon automatically. it should be set on ManagedClusterAddon resource only.
	DisableAddonAutomaticInstallationAnnotationKey = "addon.open-cluster-management.io/disable-automatic-installation"

	// AddonNamespaceLabelKey is the label key to set namespace of ManagedClusterAddon.
	AddonNamespaceLabelKey = "open-cluster-management.io/addon-namespace"

	// HostingClusterNameAnnotationKey is the annotation key for indicating the hosting cluster name, it should be set
	// on ManagedClusterAddon resource only.
	HostingClusterNameAnnotationKey = "addon.open-cluster-management.io/hosting-cluster-name"

	// AddonPreDeleteHookAnnotationKey is the annotation key to identify that a resource manifest is used as pre-delete hook for an addon
	// and should be created and deleted before the specified ManagedClusterAddon is deleted.
	AddonPreDeleteHookAnnotationKey = "addon.open-cluster-management.io/addon-pre-delete"

	// DeletionOrphanAnnotationKey is an annotation for the manifest of addon indicating that it will not be cleaned up
	// after the addon is deleted.
	DeletionOrphanAnnotationKey = "addon.open-cluster-management.io/deletion-orphan"

	// HostedManifestLocationAnnotationKey is the annotation key to identify where a resource manifest of addon agent
	// with this annotation should be deployed in Hosted mode.
	HostedManifestLocationAnnotationKey = "addon.open-cluster-management.io/hosted-manifest-location"

	// HostedManifestLocationManagedValue is a value of the annotation HostedManifestLocationAnnotationKey,
	// indicates the manifest will be deployed on the managed cluster in Hosted mode,
	// it is the default value of a manifest in Hosted mode.
	HostedManifestLocationManagedValue = "managed"
	// HostedManifestLocationHostingValue is a value of the annotation HostedManifestLocationAnnotationKey,
	// indicates the manifest will be deployed on the hosting cluster in Hosted mode.
	HostedManifestLocationHostingValue = "hosting"
	// HostedManifestLocationNoneValue is a value of the annotation HostedManifestLocationAnnotationKey,
	// indicates the manifest will not be deployed in Hosted mode.
	HostedManifestLocationNoneValue = "none"

	// AddonPreDeleteHookFinalizer is the finalizer for an addon which has deployed hook objects.
	AddonPreDeleteHookFinalizer = "addon.open-cluster-management.io/addon-pre-delete"
	// AddonHostingPreDeleteHookFinalizer is the finalizer for an addon which has deployed hook objects
	// on hosting cluster.
	AddonHostingPreDeleteHookFinalizer = "addon.open-cluster-management.io/hosting-addon-pre-delete"
	// AddonHostingManifestFinalizer is the finalizer for an addon which has deployed manifests on the external
	// hosting cluster in Hosted mode.
	AddonHostingManifestFinalizer = "addon.open-cluster-management.io/hosting-manifests-cleanup"
)
View Source
const (
	// ManagedClusterAddOnConditionAvailable represents that the addon agent is running on the managed cluster
	ManagedClusterAddOnConditionAvailable string = "Available"

	// ManagedClusterAddOnConditionDegraded represents that the addon agent is providing degraded service on
	// the managed cluster.
	ManagedClusterAddOnConditionDegraded string = "Degraded"

	// ManagedClusterAddOnConditionConfigured represents that the addon agent is configured with its configuration
	ManagedClusterAddOnConditionConfigured string = "Configured"

	// ManagedClusterAddOnConditionProgressing represents that the addon agent is applying configurations.
	ManagedClusterAddOnConditionProgressing string = "Progressing"

	// ManagedClusterAddOnManifestApplied is a condition type representing whether the manifest of an addon is
	// applied correctly.
	ManagedClusterAddOnManifestApplied = "ManifestApplied"

	// ManagedClusterAddOnHookManifestCompleted is a condition type representing whether the addon hook is completed.
	ManagedClusterAddOnHookManifestCompleted = "HookManifestCompleted"

	// ManagedClusterAddOnHostingManifestApplied is a condition type representing whether the manifest of an addon
	// is applied on the hosting cluster correctly.
	ManagedClusterAddOnHostingManifestApplied = "HostingManifestApplied"

	// ManagedClusterAddOnHostingClusterValidity is a condition type representing whether the hosting cluster is
	// valid in Hosted mode.
	ManagedClusterAddOnHostingClusterValidity = "HostingClusterValidity"

	// ManagedClusterAddOnRegistrationApplied is a condition type representing whether the registration of
	// the addon agent is configured.
	ManagedClusterAddOnRegistrationApplied = "RegistrationApplied"
)

addon status condition types

View Source
const (
	// AddonAvailableReasonWorkNotFound is the reason of condition Available indicating the addon manifestWorks
	// are not found.
	AddonAvailableReasonWorkNotFound = "WorkNotFound"

	// AddonAvailableReasonWorkApplyFailed is the reason of condition Available indicating the addon manifestWorks
	// are failed to apply.
	AddonAvailableReasonWorkApplyFailed = "WorkApplyFailed"

	// AddonAvailableReasonWorkNotApply is the reason of condition Available indicating the addon manifestWorks
	// are not applied.
	AddonAvailableReasonWorkNotApply = "WorkNotApplied"

	// AddonAvailableReasonWorkApply is the reason of condition Available indicating the addon manifestWorks
	// are applied.
	AddonAvailableReasonWorkApply = "WorkApplied"

	// AddonAvailableReasonNoProbeResult is the reason of condition Available indicating no probe result found in
	// the manifestWorks for the health check.
	AddonAvailableReasonNoProbeResult = "NoProbeResult"

	// AddonAvailableReasonProbeUnavailable is the reason of condition Available indicating the probe result found
	// does not meet the health check.
	AddonAvailableReasonProbeUnavailable = "ProbeUnavailable"

	// AddonAvailableReasonProbeAvailable is the reason of condition Available indicating the probe result found
	// meets the health check.
	AddonAvailableReasonProbeAvailable = "ProbeAvailable"

	// AddonAvailableReasonLeaseUpdateStopped is the reason if condition Available indicating the lease stops updating
	// during health check.
	AddonAvailableReasonLeaseUpdateStopped = "ManagedClusterAddOnLeaseUpdateStopped"

	// AddonAvailableReasonLeaseLeaseNotFound is the reason if condition Available indicating the lease is not found
	// during health check.
	AddonAvailableReasonLeaseLeaseNotFound = "ManagedClusterAddOnLeaseNotFound"

	// AddonAvailableReasonLeaseLeaseUpdated is the reason if condition Available indicating the lease is updated
	// during health check.
	AddonAvailableReasonLeaseLeaseUpdated = "ManagedClusterAddOnLeaseUpdated"
)

the reasons of condition ManagedClusterAddOnConditionAvailable

View Source
const (
	// AddonManifestAppliedReasonWorkApplyFailed is the reason of condition AddonManifestApplied indicating
	// the failure of apply manifestWork of the manifests.
	AddonManifestAppliedReasonWorkApplyFailed = "ManifestWorkApplyFailed"

	// AddonManifestAppliedReasonManifestsApplied is the reason of condition AddonManifestApplied indicating
	// the manifests is applied on the managedCluster.
	AddonManifestAppliedReasonManifestsApplied = "AddonManifestApplied"

	// AddonManifestAppliedReasonManifestsApplyFailed is the reason of condition AddonManifestApplied indicating
	// the failure to apply manifests on the managedCluster.
	AddonManifestAppliedReasonManifestsApplyFailed = "AddonManifestAppliedFailed"
)

the reasons of condition ManagedClusterAddOnManifestApplied

View Source
const (
	// HostingClusterValidityReasonValid is the reason of condition HostingClusterValidity indicating the hosting
	// cluster is valid.
	HostingClusterValidityReasonValid = "HostingClusterValid"

	// HostingClusterValidityReasonInvalid is the reason of condition HostingClusterValidity indicating the hosting
	// cluster is invalid.
	HostingClusterValidityReasonInvalid = "HostingClusterInvalid"
)

the reasons of condition ManagedClusterAddOnHostingClusterValidity

View Source
const (
	// ProgressingReasonProgressing is the reason of condition Progressing indicating the addon configuration is
	// applying.
	ProgressingReasonProgressing = "Progressing"

	// ProgressingReasonCompleted is the reason of condition Progressing indicating the addon configuration is
	// applied successfully.
	ProgressingReasonCompleted = "Completed"

	// ProgressingReasonFailed is the reason of condition Progressing indicating the addon configuration
	// failed to apply.
	ProgressingReasonFailed = "Failed"

	// ProgressingReasonWaitingForCanary is the reason of condition Progressing indicating the addon configuration
	// upgrade is pending and waiting for canary is done.
	ProgressingReasonWaitingForCanary = "WaitingForCanary"

	// ProgressingReasonConfigurationUnsupported is the reason of condition Progressing indicating the addon configuration
	// is not supported.
	ProgressingReasonConfigurationUnsupported = "ConfigurationUnsupported"
)

the reason of condition ManagedClusterAddOnConditionProgressing

View Source
const (
	// RegistrationAppliedNilRegistration is the reason of condition RegistrationApplied indicating that there is no
	// registration option.
	RegistrationAppliedNilRegistration = "NilRegistration"

	// RegistrationAppliedSetPermissionFailed is the reason of condition RegistrationApplied indicating that it is
	// failed to set up rbac for the addon agent.
	RegistrationAppliedSetPermissionFailed = "SetPermissionFailed"

	// RegistrationAppliedSetPermissionApplied is the reason of condition RegistrationApplied indicating that it is
	// successful to set up rbac for the addon agent.
	RegistrationAppliedSetPermissionApplied = "SetPermissionApplied"
)

the reasons of condition ManagedClusterAddOnRegistrationApplied

View Source
const GroupName = "addon.open-cluster-management.io"

GroupName specifies the group name used to register the objects.

View Source
const (
	// ReservedNoDefaultConfigName is a reserved sentinel value used internally during API version conversion.
	// It indicates that a v1alpha1 ConfigMeta had no defaultConfig when converting to v1beta1.
	// This value is intentionally invalid as a Kubernetes resource name (starts with "__") to prevent
	// collision with legitimate user-provided config names and ensure data integrity on round-trip conversions.
	// WARNING: This value is reserved and MUST NOT be used as a real config name.
	ReservedNoDefaultConfigName = "__reserved_no_default__"
)

Variables

View Source
var (
	// localSchemeBuilder and AddToScheme will stay in k8s.io/kubernetes.
	SchemeBuilder runtime.SchemeBuilder

	// Deprecated: use Install instead
	AddToScheme = localSchemeBuilder.AddToScheme
	Install     = localSchemeBuilder.AddToScheme
)
View Source
var GroupVersion = v1.GroupVersion{Group: GroupName, Version: "v1beta1"}

GroupVersion specifies the group and the version used to register the objects.

View Source
var SchemeGroupVersion = schema.GroupVersion{Group: GroupName, Version: "v1beta1"}

SchemeGroupVersion is group version used to register these objects Deprecated: use GroupVersion instead.

Functions

func Convert_v1alpha1_AddOnConfig_To_v1beta1_AddOnConfig

func Convert_v1alpha1_AddOnConfig_To_v1beta1_AddOnConfig(in *v1alpha1.AddOnConfig, out *AddOnConfig, s conversion.Scope) error

Convert_v1alpha1_AddOnConfig_To_v1beta1_AddOnConfig is an autogenerated conversion function.

func Convert_v1alpha1_AddOnDeploymentConfigList_To_v1beta1_AddOnDeploymentConfigList

func Convert_v1alpha1_AddOnDeploymentConfigList_To_v1beta1_AddOnDeploymentConfigList(in *v1alpha1.AddOnDeploymentConfigList, out *AddOnDeploymentConfigList, s conversion.Scope) error

Convert_v1alpha1_AddOnDeploymentConfigList_To_v1beta1_AddOnDeploymentConfigList is an autogenerated conversion function.

func Convert_v1alpha1_AddOnDeploymentConfigSpec_To_v1beta1_AddOnDeploymentConfigSpec

func Convert_v1alpha1_AddOnDeploymentConfigSpec_To_v1beta1_AddOnDeploymentConfigSpec(in *v1alpha1.AddOnDeploymentConfigSpec, out *AddOnDeploymentConfigSpec, s conversion.Scope) error

Convert_v1alpha1_AddOnDeploymentConfigSpec_To_v1beta1_AddOnDeploymentConfigSpec is an autogenerated conversion function.

func Convert_v1alpha1_AddOnDeploymentConfig_To_v1beta1_AddOnDeploymentConfig

func Convert_v1alpha1_AddOnDeploymentConfig_To_v1beta1_AddOnDeploymentConfig(in *v1alpha1.AddOnDeploymentConfig, out *AddOnDeploymentConfig, s conversion.Scope) error

Convert_v1alpha1_AddOnDeploymentConfig_To_v1beta1_AddOnDeploymentConfig is an autogenerated conversion function.

func Convert_v1alpha1_AddOnMeta_To_v1beta1_AddOnMeta

func Convert_v1alpha1_AddOnMeta_To_v1beta1_AddOnMeta(in *v1alpha1.AddOnMeta, out *AddOnMeta, s conversion.Scope) error

Convert_v1alpha1_AddOnMeta_To_v1beta1_AddOnMeta is an autogenerated conversion function.

func Convert_v1alpha1_ClusterManagementAddOnList_To_v1beta1_ClusterManagementAddOnList

func Convert_v1alpha1_ClusterManagementAddOnList_To_v1beta1_ClusterManagementAddOnList(in *v1alpha1.ClusterManagementAddOnList, out *ClusterManagementAddOnList, s conversion.Scope) error

Convert_v1alpha1_ClusterManagementAddOnList_To_v1beta1_ClusterManagementAddOnList is an autogenerated conversion function.

func Convert_v1alpha1_ClusterManagementAddOnSpec_To_v1beta1_ClusterManagementAddOnSpec

func Convert_v1alpha1_ClusterManagementAddOnSpec_To_v1beta1_ClusterManagementAddOnSpec(in *v1alpha1.ClusterManagementAddOnSpec, out *ClusterManagementAddOnSpec, s conversion.Scope) error

nolint:staticcheck

func Convert_v1alpha1_ClusterManagementAddOnStatus_To_v1beta1_ClusterManagementAddOnStatus

func Convert_v1alpha1_ClusterManagementAddOnStatus_To_v1beta1_ClusterManagementAddOnStatus(in *v1alpha1.ClusterManagementAddOnStatus, out *ClusterManagementAddOnStatus, s conversion.Scope) error

Convert_v1alpha1_ClusterManagementAddOnStatus_To_v1beta1_ClusterManagementAddOnStatus is an autogenerated conversion function.

func Convert_v1alpha1_ClusterManagementAddOn_To_v1beta1_ClusterManagementAddOn

func Convert_v1alpha1_ClusterManagementAddOn_To_v1beta1_ClusterManagementAddOn(in *v1alpha1.ClusterManagementAddOn, out *ClusterManagementAddOn, s conversion.Scope) error

Convert_v1alpha1_ClusterManagementAddOn_To_v1beta1_ClusterManagementAddOn is an autogenerated conversion function.

func Convert_v1alpha1_ConfigGroupResource_To_v1beta1_ConfigGroupResource

func Convert_v1alpha1_ConfigGroupResource_To_v1beta1_ConfigGroupResource(in *v1alpha1.ConfigGroupResource, out *ConfigGroupResource, s conversion.Scope) error

Convert_v1alpha1_ConfigGroupResource_To_v1beta1_ConfigGroupResource is an autogenerated conversion function.

func Convert_v1alpha1_ConfigReference_To_v1beta1_ConfigReference

func Convert_v1alpha1_ConfigReference_To_v1beta1_ConfigReference(in *v1alpha1.ConfigReference, out *ConfigReference, s conversion.Scope) error

func Convert_v1alpha1_ConfigReferent_To_v1beta1_ConfigReferent

func Convert_v1alpha1_ConfigReferent_To_v1beta1_ConfigReferent(in *v1alpha1.ConfigReferent, out *ConfigReferent, s conversion.Scope) error

Convert_v1alpha1_ConfigReferent_To_v1beta1_ConfigReferent is an autogenerated conversion function.

func Convert_v1alpha1_ConfigSpecHash_To_v1beta1_ConfigSpecHash

func Convert_v1alpha1_ConfigSpecHash_To_v1beta1_ConfigSpecHash(in *v1alpha1.ConfigSpecHash, out *ConfigSpecHash, s conversion.Scope) error

Convert_v1alpha1_ConfigSpecHash_To_v1beta1_ConfigSpecHash is an autogenerated conversion function.

func Convert_v1alpha1_ContainerResourceRequirements_To_v1beta1_ContainerResourceRequirements

func Convert_v1alpha1_ContainerResourceRequirements_To_v1beta1_ContainerResourceRequirements(in *v1alpha1.ContainerResourceRequirements, out *ContainerResourceRequirements, s conversion.Scope) error

Convert_v1alpha1_ContainerResourceRequirements_To_v1beta1_ContainerResourceRequirements is an autogenerated conversion function.

func Convert_v1alpha1_CustomizedVariable_To_v1beta1_CustomizedVariable

func Convert_v1alpha1_CustomizedVariable_To_v1beta1_CustomizedVariable(in *v1alpha1.CustomizedVariable, out *CustomizedVariable, s conversion.Scope) error

Convert_v1alpha1_CustomizedVariable_To_v1beta1_CustomizedVariable is an autogenerated conversion function.

func Convert_v1alpha1_DefaultConfigReference_To_v1beta1_DefaultConfigReference

func Convert_v1alpha1_DefaultConfigReference_To_v1beta1_DefaultConfigReference(in *v1alpha1.DefaultConfigReference, out *DefaultConfigReference, s conversion.Scope) error

Convert_v1alpha1_DefaultConfigReference_To_v1beta1_DefaultConfigReference is an autogenerated conversion function.

func Convert_v1alpha1_HealthCheck_To_v1beta1_HealthCheck

func Convert_v1alpha1_HealthCheck_To_v1beta1_HealthCheck(in *v1alpha1.HealthCheck, out *HealthCheck, s conversion.Scope) error

Convert_v1alpha1_HealthCheck_To_v1beta1_HealthCheck is an autogenerated conversion function.

func Convert_v1alpha1_ImageMirror_To_v1beta1_ImageMirror

func Convert_v1alpha1_ImageMirror_To_v1beta1_ImageMirror(in *v1alpha1.ImageMirror, out *ImageMirror, s conversion.Scope) error

Convert_v1alpha1_ImageMirror_To_v1beta1_ImageMirror is an autogenerated conversion function.

func Convert_v1alpha1_InstallConfigReference_To_v1beta1_InstallConfigReference

func Convert_v1alpha1_InstallConfigReference_To_v1beta1_InstallConfigReference(in *v1alpha1.InstallConfigReference, out *InstallConfigReference, s conversion.Scope) error

Convert_v1alpha1_InstallConfigReference_To_v1beta1_InstallConfigReference is an autogenerated conversion function.

func Convert_v1alpha1_InstallProgression_To_v1beta1_InstallProgression

func Convert_v1alpha1_InstallProgression_To_v1beta1_InstallProgression(in *v1alpha1.InstallProgression, out *InstallProgression, s conversion.Scope) error

Convert_v1alpha1_InstallProgression_To_v1beta1_InstallProgression is an autogenerated conversion function.

func Convert_v1alpha1_InstallStrategy_To_v1beta1_InstallStrategy

func Convert_v1alpha1_InstallStrategy_To_v1beta1_InstallStrategy(in *v1alpha1.InstallStrategy, out *InstallStrategy, s conversion.Scope) error

Convert_v1alpha1_InstallStrategy_To_v1beta1_InstallStrategy is an autogenerated conversion function.

func Convert_v1alpha1_ManagedClusterAddOnList_To_v1beta1_ManagedClusterAddOnList

func Convert_v1alpha1_ManagedClusterAddOnList_To_v1beta1_ManagedClusterAddOnList(in *v1alpha1.ManagedClusterAddOnList, out *ManagedClusterAddOnList, s conversion.Scope) error

Convert_v1alpha1_ManagedClusterAddOnList_To_v1beta1_ManagedClusterAddOnList is an autogenerated conversion function.

func Convert_v1alpha1_ManagedClusterAddOnSpec_To_v1beta1_ManagedClusterAddOnSpec

func Convert_v1alpha1_ManagedClusterAddOnSpec_To_v1beta1_ManagedClusterAddOnSpec(in *v1alpha1.ManagedClusterAddOnSpec, out *ManagedClusterAddOnSpec, s conversion.Scope) error

func Convert_v1alpha1_ManagedClusterAddOnStatus_To_v1beta1_ManagedClusterAddOnStatus

func Convert_v1alpha1_ManagedClusterAddOnStatus_To_v1beta1_ManagedClusterAddOnStatus(in *v1alpha1.ManagedClusterAddOnStatus, out *ManagedClusterAddOnStatus, s conversion.Scope) error

func Convert_v1alpha1_ManagedClusterAddOn_To_v1beta1_ManagedClusterAddOn

func Convert_v1alpha1_ManagedClusterAddOn_To_v1beta1_ManagedClusterAddOn(in *v1alpha1.ManagedClusterAddOn, out *ManagedClusterAddOn, s conversion.Scope) error

Convert_v1alpha1_ManagedClusterAddOn_To_v1beta1_ManagedClusterAddOn is an autogenerated conversion function.

func Convert_v1alpha1_NodePlacement_To_v1beta1_NodePlacement

func Convert_v1alpha1_NodePlacement_To_v1beta1_NodePlacement(in *v1alpha1.NodePlacement, out *NodePlacement, s conversion.Scope) error

Convert_v1alpha1_NodePlacement_To_v1beta1_NodePlacement is an autogenerated conversion function.

func Convert_v1alpha1_ObjectReference_To_v1beta1_ObjectReference

func Convert_v1alpha1_ObjectReference_To_v1beta1_ObjectReference(in *v1alpha1.ObjectReference, out *ObjectReference, s conversion.Scope) error

Convert_v1alpha1_ObjectReference_To_v1beta1_ObjectReference is an autogenerated conversion function.

func Convert_v1alpha1_PlacementRef_To_v1beta1_PlacementRef

func Convert_v1alpha1_PlacementRef_To_v1beta1_PlacementRef(in *v1alpha1.PlacementRef, out *PlacementRef, s conversion.Scope) error

Convert_v1alpha1_PlacementRef_To_v1beta1_PlacementRef is an autogenerated conversion function.

func Convert_v1alpha1_PlacementStrategy_To_v1beta1_PlacementStrategy

func Convert_v1alpha1_PlacementStrategy_To_v1beta1_PlacementStrategy(in *v1alpha1.PlacementStrategy, out *PlacementStrategy, s conversion.Scope) error

Convert_v1alpha1_PlacementStrategy_To_v1beta1_PlacementStrategy is an autogenerated conversion function.

func Convert_v1alpha1_ProxyConfig_To_v1beta1_ProxyConfig

func Convert_v1alpha1_ProxyConfig_To_v1beta1_ProxyConfig(in *v1alpha1.ProxyConfig, out *ProxyConfig, s conversion.Scope) error

Convert_v1alpha1_ProxyConfig_To_v1beta1_ProxyConfig is an autogenerated conversion function.

func Convert_v1alpha1_RegistrationConfig_To_v1beta1_RegistrationConfig

func Convert_v1alpha1_RegistrationConfig_To_v1beta1_RegistrationConfig(in *v1alpha1.RegistrationConfig, out *RegistrationConfig, s conversion.Scope) error

nolint:staticcheck

func Convert_v1alpha1_Subject_To_v1beta1_Subject

func Convert_v1alpha1_Subject_To_v1beta1_Subject(in *v1alpha1.Subject, out *Subject, s conversion.Scope) error

func Convert_v1beta1_AddOnConfig_To_v1alpha1_AddOnConfig

func Convert_v1beta1_AddOnConfig_To_v1alpha1_AddOnConfig(in *AddOnConfig, out *v1alpha1.AddOnConfig, s conversion.Scope) error

Convert_v1beta1_AddOnConfig_To_v1alpha1_AddOnConfig is an autogenerated conversion function.

func Convert_v1beta1_AddOnDeploymentConfigList_To_v1alpha1_AddOnDeploymentConfigList

func Convert_v1beta1_AddOnDeploymentConfigList_To_v1alpha1_AddOnDeploymentConfigList(in *AddOnDeploymentConfigList, out *v1alpha1.AddOnDeploymentConfigList, s conversion.Scope) error

Convert_v1beta1_AddOnDeploymentConfigList_To_v1alpha1_AddOnDeploymentConfigList is an autogenerated conversion function.

func Convert_v1beta1_AddOnDeploymentConfigSpec_To_v1alpha1_AddOnDeploymentConfigSpec

func Convert_v1beta1_AddOnDeploymentConfigSpec_To_v1alpha1_AddOnDeploymentConfigSpec(in *AddOnDeploymentConfigSpec, out *v1alpha1.AddOnDeploymentConfigSpec, s conversion.Scope) error

Convert_v1beta1_AddOnDeploymentConfigSpec_To_v1alpha1_AddOnDeploymentConfigSpec is an autogenerated conversion function.

func Convert_v1beta1_AddOnDeploymentConfig_To_v1alpha1_AddOnDeploymentConfig

func Convert_v1beta1_AddOnDeploymentConfig_To_v1alpha1_AddOnDeploymentConfig(in *AddOnDeploymentConfig, out *v1alpha1.AddOnDeploymentConfig, s conversion.Scope) error

Convert_v1beta1_AddOnDeploymentConfig_To_v1alpha1_AddOnDeploymentConfig is an autogenerated conversion function.

func Convert_v1beta1_AddOnMeta_To_v1alpha1_AddOnMeta

func Convert_v1beta1_AddOnMeta_To_v1alpha1_AddOnMeta(in *AddOnMeta, out *v1alpha1.AddOnMeta, s conversion.Scope) error

Convert_v1beta1_AddOnMeta_To_v1alpha1_AddOnMeta is an autogenerated conversion function.

func Convert_v1beta1_ClusterManagementAddOnList_To_v1alpha1_ClusterManagementAddOnList

func Convert_v1beta1_ClusterManagementAddOnList_To_v1alpha1_ClusterManagementAddOnList(in *ClusterManagementAddOnList, out *v1alpha1.ClusterManagementAddOnList, s conversion.Scope) error

Convert_v1beta1_ClusterManagementAddOnList_To_v1alpha1_ClusterManagementAddOnList is an autogenerated conversion function.

func Convert_v1beta1_ClusterManagementAddOnSpec_To_v1alpha1_ClusterManagementAddOnSpec

func Convert_v1beta1_ClusterManagementAddOnSpec_To_v1alpha1_ClusterManagementAddOnSpec(in *ClusterManagementAddOnSpec, out *v1alpha1.ClusterManagementAddOnSpec, s conversion.Scope) error

nolint:staticcheck

func Convert_v1beta1_ClusterManagementAddOnStatus_To_v1alpha1_ClusterManagementAddOnStatus

func Convert_v1beta1_ClusterManagementAddOnStatus_To_v1alpha1_ClusterManagementAddOnStatus(in *ClusterManagementAddOnStatus, out *v1alpha1.ClusterManagementAddOnStatus, s conversion.Scope) error

Convert_v1beta1_ClusterManagementAddOnStatus_To_v1alpha1_ClusterManagementAddOnStatus is an autogenerated conversion function.

func Convert_v1beta1_ClusterManagementAddOn_To_v1alpha1_ClusterManagementAddOn

func Convert_v1beta1_ClusterManagementAddOn_To_v1alpha1_ClusterManagementAddOn(in *ClusterManagementAddOn, out *v1alpha1.ClusterManagementAddOn, s conversion.Scope) error

Convert_v1beta1_ClusterManagementAddOn_To_v1alpha1_ClusterManagementAddOn is an autogenerated conversion function.

func Convert_v1beta1_ConfigGroupResource_To_v1alpha1_ConfigGroupResource

func Convert_v1beta1_ConfigGroupResource_To_v1alpha1_ConfigGroupResource(in *ConfigGroupResource, out *v1alpha1.ConfigGroupResource, s conversion.Scope) error

Convert_v1beta1_ConfigGroupResource_To_v1alpha1_ConfigGroupResource is an autogenerated conversion function.

func Convert_v1beta1_ConfigReference_To_v1alpha1_ConfigReference

func Convert_v1beta1_ConfigReference_To_v1alpha1_ConfigReference(in *ConfigReference, out *v1alpha1.ConfigReference, s conversion.Scope) error

Convert_v1beta1_ConfigReference_To_v1alpha1_ConfigReference is an autogenerated conversion function.

func Convert_v1beta1_ConfigReferent_To_v1alpha1_ConfigReferent

func Convert_v1beta1_ConfigReferent_To_v1alpha1_ConfigReferent(in *ConfigReferent, out *v1alpha1.ConfigReferent, s conversion.Scope) error

Convert_v1beta1_ConfigReferent_To_v1alpha1_ConfigReferent is an autogenerated conversion function.

func Convert_v1beta1_ConfigSpecHash_To_v1alpha1_ConfigSpecHash

func Convert_v1beta1_ConfigSpecHash_To_v1alpha1_ConfigSpecHash(in *ConfigSpecHash, out *v1alpha1.ConfigSpecHash, s conversion.Scope) error

Convert_v1beta1_ConfigSpecHash_To_v1alpha1_ConfigSpecHash is an autogenerated conversion function.

func Convert_v1beta1_ContainerResourceRequirements_To_v1alpha1_ContainerResourceRequirements

func Convert_v1beta1_ContainerResourceRequirements_To_v1alpha1_ContainerResourceRequirements(in *ContainerResourceRequirements, out *v1alpha1.ContainerResourceRequirements, s conversion.Scope) error

Convert_v1beta1_ContainerResourceRequirements_To_v1alpha1_ContainerResourceRequirements is an autogenerated conversion function.

func Convert_v1beta1_CustomizedVariable_To_v1alpha1_CustomizedVariable

func Convert_v1beta1_CustomizedVariable_To_v1alpha1_CustomizedVariable(in *CustomizedVariable, out *v1alpha1.CustomizedVariable, s conversion.Scope) error

Convert_v1beta1_CustomizedVariable_To_v1alpha1_CustomizedVariable is an autogenerated conversion function.

func Convert_v1beta1_DefaultConfigReference_To_v1alpha1_DefaultConfigReference

func Convert_v1beta1_DefaultConfigReference_To_v1alpha1_DefaultConfigReference(in *DefaultConfigReference, out *v1alpha1.DefaultConfigReference, s conversion.Scope) error

Convert_v1beta1_DefaultConfigReference_To_v1alpha1_DefaultConfigReference is an autogenerated conversion function.

func Convert_v1beta1_HealthCheck_To_v1alpha1_HealthCheck

func Convert_v1beta1_HealthCheck_To_v1alpha1_HealthCheck(in *HealthCheck, out *v1alpha1.HealthCheck, s conversion.Scope) error

Convert_v1beta1_HealthCheck_To_v1alpha1_HealthCheck is an autogenerated conversion function.

func Convert_v1beta1_ImageMirror_To_v1alpha1_ImageMirror

func Convert_v1beta1_ImageMirror_To_v1alpha1_ImageMirror(in *ImageMirror, out *v1alpha1.ImageMirror, s conversion.Scope) error

Convert_v1beta1_ImageMirror_To_v1alpha1_ImageMirror is an autogenerated conversion function.

func Convert_v1beta1_InstallConfigReference_To_v1alpha1_InstallConfigReference

func Convert_v1beta1_InstallConfigReference_To_v1alpha1_InstallConfigReference(in *InstallConfigReference, out *v1alpha1.InstallConfigReference, s conversion.Scope) error

Convert_v1beta1_InstallConfigReference_To_v1alpha1_InstallConfigReference is an autogenerated conversion function.

func Convert_v1beta1_InstallProgression_To_v1alpha1_InstallProgression

func Convert_v1beta1_InstallProgression_To_v1alpha1_InstallProgression(in *InstallProgression, out *v1alpha1.InstallProgression, s conversion.Scope) error

Convert_v1beta1_InstallProgression_To_v1alpha1_InstallProgression is an autogenerated conversion function.

func Convert_v1beta1_InstallStrategy_To_v1alpha1_InstallStrategy

func Convert_v1beta1_InstallStrategy_To_v1alpha1_InstallStrategy(in *InstallStrategy, out *v1alpha1.InstallStrategy, s conversion.Scope) error

Convert_v1beta1_InstallStrategy_To_v1alpha1_InstallStrategy is an autogenerated conversion function.

func Convert_v1beta1_ManagedClusterAddOnList_To_v1alpha1_ManagedClusterAddOnList

func Convert_v1beta1_ManagedClusterAddOnList_To_v1alpha1_ManagedClusterAddOnList(in *ManagedClusterAddOnList, out *v1alpha1.ManagedClusterAddOnList, s conversion.Scope) error

Convert_v1beta1_ManagedClusterAddOnList_To_v1alpha1_ManagedClusterAddOnList is an autogenerated conversion function.

func Convert_v1beta1_ManagedClusterAddOnSpec_To_v1alpha1_ManagedClusterAddOnSpec

func Convert_v1beta1_ManagedClusterAddOnSpec_To_v1alpha1_ManagedClusterAddOnSpec(in *ManagedClusterAddOnSpec, out *v1alpha1.ManagedClusterAddOnSpec, s conversion.Scope) error

Convert_v1beta1_ManagedClusterAddOnSpec_To_v1alpha1_ManagedClusterAddOnSpec is an autogenerated conversion function.

func Convert_v1beta1_ManagedClusterAddOnStatus_To_v1alpha1_ManagedClusterAddOnStatus

func Convert_v1beta1_ManagedClusterAddOnStatus_To_v1alpha1_ManagedClusterAddOnStatus(in *ManagedClusterAddOnStatus, out *v1alpha1.ManagedClusterAddOnStatus, s conversion.Scope) error

func Convert_v1beta1_ManagedClusterAddOn_To_v1alpha1_ManagedClusterAddOn

func Convert_v1beta1_ManagedClusterAddOn_To_v1alpha1_ManagedClusterAddOn(in *ManagedClusterAddOn, out *v1alpha1.ManagedClusterAddOn, s conversion.Scope) error

Convert_v1beta1_ManagedClusterAddOn_To_v1alpha1_ManagedClusterAddOn is an autogenerated conversion function.

func Convert_v1beta1_NodePlacement_To_v1alpha1_NodePlacement

func Convert_v1beta1_NodePlacement_To_v1alpha1_NodePlacement(in *NodePlacement, out *v1alpha1.NodePlacement, s conversion.Scope) error

Convert_v1beta1_NodePlacement_To_v1alpha1_NodePlacement is an autogenerated conversion function.

func Convert_v1beta1_ObjectReference_To_v1alpha1_ObjectReference

func Convert_v1beta1_ObjectReference_To_v1alpha1_ObjectReference(in *ObjectReference, out *v1alpha1.ObjectReference, s conversion.Scope) error

Convert_v1beta1_ObjectReference_To_v1alpha1_ObjectReference is an autogenerated conversion function.

func Convert_v1beta1_PlacementRef_To_v1alpha1_PlacementRef

func Convert_v1beta1_PlacementRef_To_v1alpha1_PlacementRef(in *PlacementRef, out *v1alpha1.PlacementRef, s conversion.Scope) error

Convert_v1beta1_PlacementRef_To_v1alpha1_PlacementRef is an autogenerated conversion function.

func Convert_v1beta1_PlacementStrategy_To_v1alpha1_PlacementStrategy

func Convert_v1beta1_PlacementStrategy_To_v1alpha1_PlacementStrategy(in *PlacementStrategy, out *v1alpha1.PlacementStrategy, s conversion.Scope) error

Convert_v1beta1_PlacementStrategy_To_v1alpha1_PlacementStrategy is an autogenerated conversion function.

func Convert_v1beta1_ProxyConfig_To_v1alpha1_ProxyConfig

func Convert_v1beta1_ProxyConfig_To_v1alpha1_ProxyConfig(in *ProxyConfig, out *v1alpha1.ProxyConfig, s conversion.Scope) error

Convert_v1beta1_ProxyConfig_To_v1alpha1_ProxyConfig is an autogenerated conversion function.

func Convert_v1beta1_RegistrationConfig_To_v1alpha1_RegistrationConfig

func Convert_v1beta1_RegistrationConfig_To_v1alpha1_RegistrationConfig(in *RegistrationConfig, out *v1alpha1.RegistrationConfig, s conversion.Scope) error

nolint:staticcheck

func Convert_v1beta1_Subject_To_v1alpha1_Subject

func Convert_v1beta1_Subject_To_v1alpha1_Subject(in *Subject, out *v1alpha1.Subject, s conversion.Scope) error

func RegisterConversions

func RegisterConversions(s *runtime.Scheme) error

RegisterConversions adds conversion functions to the given scheme. Public to allow building arbitrary schemes.

func Resource

func Resource(resource string) schema.GroupResource

Resource takes an unqualified resource and returns a Group qualified GroupResource

Types

type AddOnConfig

type AddOnConfig struct {
	// group and resource of add-on configuration.
	ConfigGroupResource `json:",inline"`

	// name and namespace of add-on configuration.
	ConfigReferent `json:",inline"`
}

func (*AddOnConfig) DeepCopy

func (in *AddOnConfig) DeepCopy() *AddOnConfig

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

func (*AddOnConfig) DeepCopyInto

func (in *AddOnConfig) DeepCopyInto(out *AddOnConfig)

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

type AddOnDeploymentConfig

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

	// spec represents a desired configuration for an add-on.
	// +required
	Spec AddOnDeploymentConfigSpec `json:"spec"`
}

AddOnDeploymentConfig represents a configuration to customize the deployments of an add-on. For example, you can specify the nodePlacement to control the scheduling of the add-on agents.

func (*AddOnDeploymentConfig) DeepCopy

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

func (*AddOnDeploymentConfig) DeepCopyInto

func (in *AddOnDeploymentConfig) DeepCopyInto(out *AddOnDeploymentConfig)

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

func (*AddOnDeploymentConfig) DeepCopyObject

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

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

type AddOnDeploymentConfigList

type AddOnDeploymentConfigList struct {
	metav1.TypeMeta `json:",inline"`
	// Standard list metadata.
	// More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds
	// +optional
	metav1.ListMeta `json:"metadata,omitempty"`

	// items is a list of add-on deployment config.
	Items []AddOnDeploymentConfig `json:"items"`
}

+k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object AddOnDeploymentConfigList is a collection of add-on deployment config.

func (*AddOnDeploymentConfigList) DeepCopy

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

func (*AddOnDeploymentConfigList) DeepCopyInto

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

func (*AddOnDeploymentConfigList) DeepCopyObject

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

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

type AddOnDeploymentConfigSpec

type AddOnDeploymentConfigSpec struct {
	// customizedVariables is a list of name-value variables for the current add-on deployment.
	// The add-on implementation can use these variables to render its add-on deployment.
	// The default is an empty list.
	// +optional
	// +listType=map
	// +listMapKey=name
	CustomizedVariables []CustomizedVariable `json:"customizedVariables,omitempty"`

	// nodePlacement enables explicit control over the scheduling of the add-on agents on the
	// managed cluster.
	// All add-on agent pods are expected to comply with this node placement.
	// If the placement is nil, the placement is not specified, it will be omitted.
	// If the placement is an empty object, the placement will match all nodes and tolerate nothing.
	// +optional
	NodePlacement *NodePlacement `json:"nodePlacement,omitempty"`

	// registries describes how to override images used by the addon agent on the managed cluster.
	// the following example will override image "quay.io/open-cluster-management/addon-agent" to
	// "quay.io/ocm/addon-agent" when deploying the addon agent
	//
	// registries:
	//   - source: quay.io/open-cluster-management/addon-agent
	//     mirror: quay.io/ocm/addon-agent
	//
	// +optional
	Registries []ImageMirror `json:"registries,omitempty"`

	// proxyConfig holds proxy settings for add-on agent on the managed cluster.
	// Empty means no proxy settings is available.
	// +optional
	ProxyConfig ProxyConfig `json:"proxyConfig,omitempty"`

	// agentInstallNamespace is the namespace where the add-on agent should be installed on the managed cluster.
	// For template-type addons: set to empty string "" to use the namespace defined in the addonTemplate.
	// For non-template addons: defaults to "open-cluster-management-agent-addon" if not specified.
	// +optional
	// +kubebuilder:default=open-cluster-management-agent-addon
	// +kubebuilder:validation:MaxLength=63
	// +kubebuilder:validation:Pattern=^([a-z0-9]([-a-z0-9]*[a-z0-9])?)?$
	AgentInstallNamespace string `json:"agentInstallNamespace,omitempty"`

	// resourceRequirements specify the resources required by add-on agents.
	// If a container matches multiple ContainerResourceRequirements, the last matched configuration in the
	// array will take precedence.
	// +optional
	// +listType=map
	// +listMapKey=containerID
	ResourceRequirements []ContainerResourceRequirements `json:"resourceRequirements,omitempty"`
}

func (*AddOnDeploymentConfigSpec) DeepCopy

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

func (*AddOnDeploymentConfigSpec) DeepCopyInto

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

type AddOnMeta

type AddOnMeta struct {
	// displayName represents the name of add-on that will be displayed.
	// +optional
	DisplayName string `json:"displayName,omitempty"`

	// description represents the detailed description of the add-on.
	// +optional
	Description string `json:"description,omitempty"`
}

AddOnMeta represents a collection of metadata information for the add-on.

func (*AddOnMeta) DeepCopy

func (in *AddOnMeta) DeepCopy() *AddOnMeta

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

func (*AddOnMeta) DeepCopyInto

func (in *AddOnMeta) DeepCopyInto(out *AddOnMeta)

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

type BaseSubject

type BaseSubject struct {
	// user is the user name of the addon agent.
	User string `json:"user"`

	// groups is the user group of the addon agent.
	// +optional
	Groups []string `json:"groups,omitempty"`
}

BaseSubject contains the common fields for addon agent subjects.

func (*BaseSubject) DeepCopy

func (in *BaseSubject) DeepCopy() *BaseSubject

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

func (*BaseSubject) DeepCopyInto

func (in *BaseSubject) DeepCopyInto(out *BaseSubject)

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

type ClusterManagementAddOn

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

	// spec represents a desired configuration for the agent on the cluster management add-on.
	// +required
	Spec ClusterManagementAddOnSpec `json:"spec"`

	// status represents the current status of cluster management add-on.
	// +optional
	Status ClusterManagementAddOnStatus `json:"status,omitempty"`
}

ClusterManagementAddOn represents the registration of an add-on to the cluster manager. This resource allows you to discover which add-ons are available for the cluster manager and provides metadata information about the add-ons. The ClusterManagementAddOn name is used for the namespace-scoped ManagedClusterAddOn resource. ClusterManagementAddOn is a cluster-scoped resource.

func (*ClusterManagementAddOn) DeepCopy

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

func (*ClusterManagementAddOn) DeepCopyInto

func (in *ClusterManagementAddOn) DeepCopyInto(out *ClusterManagementAddOn)

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

func (*ClusterManagementAddOn) DeepCopyObject

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

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

type ClusterManagementAddOnList

type ClusterManagementAddOnList struct {
	metav1.TypeMeta `json:",inline"`
	// Standard list metadata.
	// More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds
	// +optional
	metav1.ListMeta `json:"metadata,omitempty"`

	// Items is a list of cluster management add-ons.
	Items []ClusterManagementAddOn `json:"items"`
}

+k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object ClusterManagementAddOnList is a collection of cluster management add-ons.

func (*ClusterManagementAddOnList) DeepCopy

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

func (*ClusterManagementAddOnList) DeepCopyInto

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

func (*ClusterManagementAddOnList) DeepCopyObject

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

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

type ClusterManagementAddOnSpec

type ClusterManagementAddOnSpec struct {
	// addOnMeta is a reference to the metadata information for the add-on.
	// +optional
	AddOnMeta AddOnMeta `json:"addOnMeta,omitempty"`

	// defaultConfigs is a list of default configuration types supported by add-on.
	// +optional
	// +listType=map
	// +listMapKey=group
	// +listMapKey=resource
	DefaultConfigs []AddOnConfig `json:"defaultConfigs,omitempty"`

	// installStrategy represents that related ManagedClusterAddOns should be installed
	// on certain clusters.
	// +optional
	// +kubebuilder:default={type: Manual}
	InstallStrategy InstallStrategy `json:"installStrategy,omitempty"`
}

ClusterManagementAddOnSpec provides information for the add-on.

func (*ClusterManagementAddOnSpec) DeepCopy

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

func (*ClusterManagementAddOnSpec) DeepCopyInto

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

type ClusterManagementAddOnStatus

type ClusterManagementAddOnStatus struct {
	// defaultConfigReferences is a list of current add-on default configuration references.
	// +optional
	DefaultConfigReferences []DefaultConfigReference `json:"defaultConfigReferences,omitempty"`
	// installProgressions is a list of current add-on configuration references per placement.
	// +optional
	InstallProgressions []InstallProgression `json:"installProgressions,omitempty"`
}

ClusterManagementAddOnStatus represents the current status of cluster management add-on.

func (*ClusterManagementAddOnStatus) DeepCopy

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

func (*ClusterManagementAddOnStatus) DeepCopyInto

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

type ConfigGroupResource

type ConfigGroupResource struct {
	// group of the add-on configuration.
	// +optional
	// +kubebuilder:default=""
	Group string `json:"group"`

	// resource of the add-on configuration.
	// +required
	// +kubebuilder:validation:Required
	// +kubebuilder:validation:MinLength=1
	Resource string `json:"resource"`
}

ConfigGroupResource represents the GroupResource of the add-on configuration

func (*ConfigGroupResource) DeepCopy

func (in *ConfigGroupResource) DeepCopy() *ConfigGroupResource

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

func (*ConfigGroupResource) DeepCopyInto

func (in *ConfigGroupResource) DeepCopyInto(out *ConfigGroupResource)

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

type ConfigReference

type ConfigReference struct {
	// This field is synced from ClusterManagementAddOn configGroupResource field.
	ConfigGroupResource `json:",inline"`

	// lastObservedGeneration is the observed generation of the add-on configuration.
	LastObservedGeneration int64 `json:"lastObservedGeneration"`

	// desiredConfig record the desired config spec hash.
	// +optional
	DesiredConfig *ConfigSpecHash `json:"desiredConfig"`

	// lastAppliedConfig record the config spec hash when the corresponding ManifestWork is applied successfully.
	// +optional
	LastAppliedConfig *ConfigSpecHash `json:"lastAppliedConfig"`
}

ConfigReference is a reference to the current add-on configuration. This resource is used to locate the configuration resource for the current add-on.

func (*ConfigReference) DeepCopy

func (in *ConfigReference) DeepCopy() *ConfigReference

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

func (*ConfigReference) DeepCopyInto

func (in *ConfigReference) DeepCopyInto(out *ConfigReference)

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

type ConfigReferent

type ConfigReferent struct {
	// namespace of the add-on configuration.
	// If this field is not set, the configuration is in the cluster scope.
	// +optional
	Namespace string `json:"namespace,omitempty"`

	// name of the add-on configuration.
	// +required
	// +kubebuilder:validation:Required
	// +kubebuilder:validation:MinLength=1
	Name string `json:"name"`
}

ConfigReferent represents the namespace and name for an add-on configuration.

func (*ConfigReferent) DeepCopy

func (in *ConfigReferent) DeepCopy() *ConfigReferent

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

func (*ConfigReferent) DeepCopyInto

func (in *ConfigReferent) DeepCopyInto(out *ConfigReferent)

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

type ConfigSpecHash

type ConfigSpecHash struct {
	// namespace and name for an add-on configuration.
	ConfigReferent `json:",inline"`

	// spec hash for an add-on configuration.
	SpecHash string `json:"specHash"`
}

ConfigSpecHash represents the namespace,name and spec hash for an add-on configuration.

func (*ConfigSpecHash) DeepCopy

func (in *ConfigSpecHash) DeepCopy() *ConfigSpecHash

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

func (*ConfigSpecHash) DeepCopyInto

func (in *ConfigSpecHash) DeepCopyInto(out *ConfigSpecHash)

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

type ContainerResourceRequirements

type ContainerResourceRequirements struct {
	// containerID is a unique identifier for an agent container. It consists of three parts: resource types,
	// resource name, and container name, separated by ':'. The format follows
	// '{resource_types}:{resource_name}:{container_name}' where
	//   1). Supported resource types include deployments, daemonsets, statefulsets, replicasets, jobs,
	//     cronjobs and pods;
	//   2). Wildcards (*) can be used in any part to match multiple containers. For example, '*:*:*'
	//     matches all containers of the agent.
	// +required
	// +kubebuilder:validation:Required
	// +kubebuilder:validation:Pattern=`^(deployments|daemonsets|statefulsets|replicasets|jobs|cronjobs|pods|\*):.+:.+$`
	ContainerID string `json:"containerID"`

	// Compute resources required by matched containers.
	// +required
	// +kubebuilder:validation:Required
	Resources corev1.ResourceRequirements `json:"resources"`
}

ContainerResourceRequirements defines resources required by one or a group of containers.

func (*ContainerResourceRequirements) DeepCopy

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

func (*ContainerResourceRequirements) DeepCopyInto

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

type CustomSignerConfig

type CustomSignerConfig struct {
	// signerName is the name of signer that addon agent will use to create csr.
	// +required
	// +kubebuilder:validation:MaxLength=571
	// +kubebuilder:validation:MinLength=5
	// +kubebuilder:validation:Pattern=^([a-z0-9][a-z0-9-]*[a-z0-9]\.)+[a-z]+\/[a-z0-9-\.]+$
	SignerName string `json:"signerName"`

	// subject is the user subject of the addon agent to be registered to the hub.
	// +optional
	Subject Subject `json:"subject,omitempty"`
}

func (*CustomSignerConfig) DeepCopy

func (in *CustomSignerConfig) DeepCopy() *CustomSignerConfig

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

func (*CustomSignerConfig) DeepCopyInto

func (in *CustomSignerConfig) DeepCopyInto(out *CustomSignerConfig)

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

type CustomizedVariable

type CustomizedVariable struct {
	// name of this variable.
	// +required
	// +kubebuilder:validation:Required
	// +kubebuilder:validation:MaxLength=255
	// +kubebuilder:validation:Pattern=^[a-zA-Z_][_a-zA-Z0-9]*$
	Name string `json:"name"`

	// value of this variable.
	// +kubebuilder:validation:MaxLength=1024
	Value string `json:"value"`
}

CustomizedVariable represents a customized variable for add-on deployment.

func (*CustomizedVariable) DeepCopy

func (in *CustomizedVariable) DeepCopy() *CustomizedVariable

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

func (*CustomizedVariable) DeepCopyInto

func (in *CustomizedVariable) DeepCopyInto(out *CustomizedVariable)

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

type DefaultConfigReference

type DefaultConfigReference struct {
	// This field is synced from ClusterManagementAddOn Configurations.
	ConfigGroupResource `json:",inline"`

	// desiredConfig record the desired config spec hash.
	DesiredConfig *ConfigSpecHash `json:"desiredConfig"`
}

DefaultConfigReference is a reference to the current add-on configuration. This resource is used to record the configuration resource for the current add-on.

func (*DefaultConfigReference) DeepCopy

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

func (*DefaultConfigReference) DeepCopyInto

func (in *DefaultConfigReference) DeepCopyInto(out *DefaultConfigReference)

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

type HealthCheck

type HealthCheck struct {
	// mode indicates which mode will be used to check the healthiness status of the addon.
	// +optional
	// +kubebuilder:default=Lease
	Mode HealthCheckMode `json:"mode,omitempty"`
}

func (*HealthCheck) DeepCopy

func (in *HealthCheck) DeepCopy() *HealthCheck

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

func (*HealthCheck) DeepCopyInto

func (in *HealthCheck) DeepCopyInto(out *HealthCheck)

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

type HealthCheckMode

type HealthCheckMode string

HealthCheckMode indicates the mode for the addon to check its healthiness status +kubebuilder:validation:Enum=Lease;Customized

const (
	// HealthCheckModeLease, the addon maintains a lease in its installation namespace with
	// its status, the registration agent will check this lease to maintain the addon healthiness
	// status.
	HealthCheckModeLease HealthCheckMode = "Lease"

	// HealthCheckModeCustomized, the addon maintains its healthiness status by itself.
	HealthCheckModeCustomized HealthCheckMode = "Customized"
)

type ImageMirror

type ImageMirror struct {
	// mirror is the mirrored registry of the Source. Will be ignored if mirror is empty.
	// +kubebuilder:validation:Required
	// +required
	Mirror string `json:"mirror"`

	// source is the source registry. All image registries will be replaced by Mirror if Source is empty.
	// +optional
	Source string `json:"source"`
}

ImageMirror describes how to mirror images from a source

func (*ImageMirror) DeepCopy

func (in *ImageMirror) DeepCopy() *ImageMirror

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

func (*ImageMirror) DeepCopyInto

func (in *ImageMirror) DeepCopyInto(out *ImageMirror)

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

type InstallConfigReference

type InstallConfigReference struct {
	// This field is synced from ClusterManagementAddOn Configurations.
	ConfigGroupResource `json:",inline"`

	// desiredConfig record the desired config name and spec hash.
	DesiredConfig *ConfigSpecHash `json:"desiredConfig"`

	// lastKnownGoodConfig records the last known good config spec hash.
	// For fresh install or rollout with type UpdateAll or RollingUpdate, the
	// lastKnownGoodConfig is the same as lastAppliedConfig.
	// For rollout with type RollingUpdateWithCanary, the lastKnownGoodConfig
	// is the last successfully applied config spec hash of the canary placement.
	LastKnownGoodConfig *ConfigSpecHash `json:"lastKnownGoodConfig"`

	// lastAppliedConfig records the config spec hash when the all the corresponding
	// ManagedClusterAddOn are applied successfully.
	LastAppliedConfig *ConfigSpecHash `json:"lastAppliedConfig"`
}

InstallConfigReference is a reference to the current add-on configuration. This resource is used to record the configuration resource for the current add-on.

func (*InstallConfigReference) DeepCopy

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

func (*InstallConfigReference) DeepCopyInto

func (in *InstallConfigReference) DeepCopyInto(out *InstallConfigReference)

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

type InstallProgression

type InstallProgression struct {
	PlacementRef `json:",inline"`

	// configReferences is a list of current add-on configuration references.
	// +optional
	ConfigReferences []InstallConfigReference `json:"configReferences,omitempty"`

	// conditions describe the state of the managed and monitored components for the operator.
	// +listType=map
	// +listMapKey=type
	// +optional
	Conditions []metav1.Condition `json:"conditions,omitempty"  patchStrategy:"merge" patchMergeKey:"type"`
}

func (*InstallProgression) DeepCopy

func (in *InstallProgression) DeepCopy() *InstallProgression

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

func (*InstallProgression) DeepCopyInto

func (in *InstallProgression) DeepCopyInto(out *InstallProgression)

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

type InstallStrategy

type InstallStrategy struct {
	// type is the type of the install strategy, it can be:
	// - Manual: no automatic install
	// - Placements: install to clusters selected by placements.
	// +kubebuilder:validation:Enum=Manual;Placements
	// +kubebuilder:default:=Manual
	// +optional
	Type string `json:"type"`
	// placements is a list of placement references honored when install strategy type is
	// Placements. All clusters selected by these placements will install the addon
	// If one cluster belongs to multiple placements, it will only apply the strategy defined
	// later in the order. That is to say, The latter strategy overrides the previous one.
	// +optional
	// +listType=map
	// +listMapKey=namespace
	// +listMapKey=name
	Placements []PlacementStrategy `json:"placements,omitempty"`
}

InstallStrategy represents that related ManagedClusterAddOns should be installed on certain clusters.

func (*InstallStrategy) DeepCopy

func (in *InstallStrategy) DeepCopy() *InstallStrategy

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

func (*InstallStrategy) DeepCopyInto

func (in *InstallStrategy) DeepCopyInto(out *InstallStrategy)

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

type KubeClientConfig

type KubeClientConfig struct {
	// subject is the user subject of the addon agent to be registered to the hub.
	// +optional
	Subject KubeClientSubject `json:"subject,omitempty"`

	// driver is the authentication driver used by managedclusteraddon for kubeClient registration. Possible values are csr and token.
	// This field is set by the agent to declare which driver it is using.
	// +optional
	// +kubebuilder:validation:Enum=csr;token
	Driver string `json:"driver,omitempty"`
}

func (*KubeClientConfig) DeepCopy

func (in *KubeClientConfig) DeepCopy() *KubeClientConfig

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

func (*KubeClientConfig) DeepCopyInto

func (in *KubeClientConfig) DeepCopyInto(out *KubeClientConfig)

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

type KubeClientSubject

type KubeClientSubject struct {
	BaseSubject `json:",inline"`
}

func (*KubeClientSubject) DeepCopy

func (in *KubeClientSubject) DeepCopy() *KubeClientSubject

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

func (*KubeClientSubject) DeepCopyInto

func (in *KubeClientSubject) DeepCopyInto(out *KubeClientSubject)

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

type ManagedClusterAddOn

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

	// spec holds configuration that could apply to any operator.
	// +kubebuilder:validation:Required
	// +required
	Spec ManagedClusterAddOnSpec `json:"spec"`

	// status holds the information about the state of an operator.  It is consistent with status information across
	// the Kubernetes ecosystem.
	// +optional
	Status ManagedClusterAddOnStatus `json:"status"`
}

ManagedClusterAddOn is the Custom Resource object which holds the current state of an add-on. This object is used by add-on operators to convey their state. This resource should be created in the ManagedCluster namespace.

func (*ManagedClusterAddOn) DeepCopy

func (in *ManagedClusterAddOn) DeepCopy() *ManagedClusterAddOn

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

func (*ManagedClusterAddOn) DeepCopyInto

func (in *ManagedClusterAddOn) DeepCopyInto(out *ManagedClusterAddOn)

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

func (*ManagedClusterAddOn) DeepCopyObject

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

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

type ManagedClusterAddOnList

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

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

ManagedClusterAddOnList is a list of ManagedClusterAddOn resources. +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object

func (*ManagedClusterAddOnList) DeepCopy

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

func (*ManagedClusterAddOnList) DeepCopyInto

func (in *ManagedClusterAddOnList) DeepCopyInto(out *ManagedClusterAddOnList)

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

func (*ManagedClusterAddOnList) DeepCopyObject

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

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

type ManagedClusterAddOnSpec

type ManagedClusterAddOnSpec struct {
	// configs is a list of add-on configurations.
	// In scenario where the current add-on has its own configurations.
	// An empty list means there are no default configurations for add-on.
	// The default is an empty list
	// +optional
	Configs []AddOnConfig `json:"configs,omitempty"`
}

ManagedClusterAddOnSpec defines the install configuration of an addon agent on managed cluster.

func (*ManagedClusterAddOnSpec) DeepCopy

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

func (*ManagedClusterAddOnSpec) DeepCopyInto

func (in *ManagedClusterAddOnSpec) DeepCopyInto(out *ManagedClusterAddOnSpec)

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

type ManagedClusterAddOnStatus

type ManagedClusterAddOnStatus struct {
	// conditions describe the state of the managed and monitored components for the operator.
	// +listType=map
	// +listMapKey=type
	// +optional
	Conditions []metav1.Condition `json:"conditions,omitempty"  patchStrategy:"merge" patchMergeKey:"type"`

	// relatedObjects is a list of objects that are "interesting" or related to this operator. Common uses are:
	// 1. the detailed resource driving the operator
	// 2. operator namespaces
	// 3. operand namespaces
	// 4. related ClusterManagementAddon resource
	// +optional
	RelatedObjects []ObjectReference `json:"relatedObjects,omitempty"`

	// addOnMeta is a reference to the metadata information for the add-on.
	// This should be same as the addOnMeta for the corresponding ClusterManagementAddOn resource.
	// +optional
	AddOnMeta AddOnMeta `json:"addOnMeta,omitempty"`

	// supportedConfigs is a list of configuration types that are allowed to override the add-on configurations defined
	// in ClusterManagementAddOn spec.
	// The default is an empty list, which means the add-on configurations can not be overridden.
	// +optional
	// +listType=map
	// +listMapKey=group
	// +listMapKey=resource
	SupportedConfigs []ConfigGroupResource `json:"supportedConfigs,omitempty"`

	// configReferences is a list of current add-on configuration references.
	// This will be overridden by the clustermanagementaddon configuration references.
	// +optional
	ConfigReferences []ConfigReference `json:"configReferences,omitempty"`

	// namespace is the namespace on the managedcluster to put registration secret or lease for the addon. It is
	// required when registration is set or healthcheck mode is Lease.
	// +optional
	Namespace string `json:"namespace,omitempty"`

	// registrations is the configurations for the addon agent to register to hub. It should be set by each addon controller
	// on hub to define how the addon agent on managedcluster is registered. With the registration defined,
	// The addon agent can access to kube apiserver with kube style API or other endpoints on hub cluster with client
	// certificate authentication. A csr will be created per registration configuration. If more than one
	// registrationConfig is defined, a csr will be created for each registration configuration. It is not allowed that
	// multiple registrationConfigs have the same signer name. After the csr is approved on the hub cluster, the klusterlet
	// agent will create a secret in the installNamespace for the registrationConfig. If the signerName is
	// "kubernetes.io/kube-apiserver-client", the secret name will be "{addon name}-hub-kubeconfig" whose contents includes
	// key/cert and kubeconfig. Otherwise, the secret name will be "{addon name}-{signer name}-client-cert" whose contents includes key/cert.
	// +optional
	Registrations []RegistrationConfig `json:"registrations,omitempty"`

	// healthCheck indicates how to check the healthiness status of the current addon. It should be
	// set by each addon implementation, by default, the lease mode will be used.
	// +optional
	HealthCheck HealthCheck `json:"healthCheck,omitempty"`
}

ManagedClusterAddOnStatus provides information about the status of the operator. +k8s:deepcopy-gen=true

func (*ManagedClusterAddOnStatus) DeepCopy

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

func (*ManagedClusterAddOnStatus) DeepCopyInto

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

type NodePlacement

type NodePlacement struct {
	// nodeSelector defines which Nodes the Pods are scheduled on.
	// If the selector is an empty list, it will match all nodes.
	// The default is an empty list.
	// +optional
	NodeSelector map[string]string `json:"nodeSelector,omitempty"`

	// tolerations is attached by pods to tolerate any taint that matches
	// the triple <key,value,effect> using the matching operator <operator>.
	// If the tolerations is an empty list, it will tolerate nothing.
	// The default is an empty list.
	// +optional
	Tolerations []corev1.Toleration `json:"tolerations,omitempty"`
}

NodePlacement describes node scheduling configuration for the pods.

func (*NodePlacement) DeepCopy

func (in *NodePlacement) DeepCopy() *NodePlacement

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

func (*NodePlacement) DeepCopyInto

func (in *NodePlacement) DeepCopyInto(out *NodePlacement)

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

type ObjectReference

type ObjectReference struct {
	// group of the referent.
	// +kubebuilder:validation:Required
	// +required
	Group string `json:"group"`
	// resource of the referent.
	// +kubebuilder:validation:Required
	// +required
	Resource string `json:"resource"`
	// namespace of the referent.
	// +optional
	Namespace string `json:"namespace,omitempty"`
	// name of the referent.
	// +kubebuilder:validation:Required
	// +required
	Name string `json:"name"`
}

ObjectReference contains enough information to let you inspect or modify the referred object.

func (*ObjectReference) DeepCopy

func (in *ObjectReference) DeepCopy() *ObjectReference

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

func (*ObjectReference) DeepCopyInto

func (in *ObjectReference) DeepCopyInto(out *ObjectReference)

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

type PlacementRef

type PlacementRef struct {
	// namespace is the namespace of the placement
	// +required
	// +kubebuilder:validation:Required
	// +kubebuilder:validation:MinLength=1
	Namespace string `json:"namespace"`
	// name is the name of the placement
	// +required
	// +kubebuilder:validation:Required
	// +kubebuilder:validation:MinLength=1
	Name string `json:"name"`
}

func (*PlacementRef) DeepCopy

func (in *PlacementRef) DeepCopy() *PlacementRef

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

func (*PlacementRef) DeepCopyInto

func (in *PlacementRef) DeepCopyInto(out *PlacementRef)

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

type PlacementStrategy

type PlacementStrategy struct {
	PlacementRef `json:",inline"`
	// configs is the configuration of managedClusterAddon during installation.
	// User can override the configuration by updating the managedClusterAddon directly.
	// +optional
	Configs []AddOnConfig `json:"configs,omitempty"`
	// rolloutStrategy is the strategy to apply addon configurations change.
	// The rollout strategy only watches the addon configurations defined in ClusterManagementAddOn.
	// +kubebuilder:default={type: All}
	// +optional
	RolloutStrategy clusterv1alpha1.RolloutStrategy `json:"rolloutStrategy,omitempty"`
}

func (*PlacementStrategy) DeepCopy

func (in *PlacementStrategy) DeepCopy() *PlacementStrategy

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

func (*PlacementStrategy) DeepCopyInto

func (in *PlacementStrategy) DeepCopyInto(out *PlacementStrategy)

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

type ProxyConfig

type ProxyConfig struct {
	// httpProxy is the URL of the proxy for HTTP requests
	// +optional
	HTTPProxy string `json:"httpProxy,omitempty"`

	// httpsProxy is the URL of the proxy for HTTPS requests
	// +optional
	HTTPSProxy string `json:"httpsProxy,omitempty"`

	// caBundle is a CA certificate bundle to verify the proxy server.
	// And it's only useful when httpsProxy is set and a HTTPS proxy server is specified.
	// +optional
	CABundle []byte `json:"caBundle,omitempty"`

	// noProxy is a comma-separated list of hostnames and/or CIDRs and/or IPs for which the proxy
	// should not be used.
	// +optional
	NoProxy string `json:"noProxy,omitempty"`
}

ProxyConfig describes the proxy settings for the add-on agent

func (*ProxyConfig) DeepCopy

func (in *ProxyConfig) DeepCopy() *ProxyConfig

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

func (*ProxyConfig) DeepCopyInto

func (in *ProxyConfig) DeepCopyInto(out *ProxyConfig)

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

type RegistrationConfig

type RegistrationConfig struct {
	// type specifies the type of registration configuration.
	// +kubebuilder:validation:Enum=kubeClient;customSigner
	// +required
	Type RegistrationType `json:"type"`

	// kubeClient holds the configuration for kubeClient type registration.
	// It should be set when type is "kubeClient".
	// +optional
	KubeClient *KubeClientConfig `json:"kubeClient,omitempty"`

	// customSigner holds the configuration for customSigner type registration.
	// It should be set when type is "customSigner".
	// +optional
	CustomSigner *CustomSignerConfig `json:"customSigner,omitempty"`
}

RegistrationConfig defines the configuration for the addon agent to register to the hub cluster.

func (*RegistrationConfig) DeepCopy

func (in *RegistrationConfig) DeepCopy() *RegistrationConfig

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

func (*RegistrationConfig) DeepCopyInto

func (in *RegistrationConfig) DeepCopyInto(out *RegistrationConfig)

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

type RegistrationType

type RegistrationType string

RegistrationType represents the type of registration configuration for the addon agent.

const (
	// kubeClient represents the registration type for addon agents that need to access
	// the hub kube-apiserver using kubeClient.
	KubeClient RegistrationType = "kubeClient"

	// customSigner represents the registration type for addon agents that need to access non-kube endpoints
	// on the hub cluster with client certificate authentication.
	CustomSigner RegistrationType = "customSigner"
)

type Subject

type Subject struct {
	BaseSubject `json:",inline"`

	// organizationUnits is the ou of the addon agent
	// +optional
	OrganizationUnits []string `json:"organizationUnits,omitempty"`
}

subject is the user subject of the addon agent to be registered to the hub. If it is not set, the addon agent will have the default subject

"subject": {
  "user": "system:open-cluster-management:cluster:{clusterName}:addon:{addonName}:agent:{agentName}",
  "groups: ["system:open-cluster-management:cluster:{clusterName}:addon:{addonName}"]
}

func (*Subject) DeepCopy

func (in *Subject) DeepCopy() *Subject

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

func (*Subject) DeepCopyInto

func (in *Subject) DeepCopyInto(out *Subject)

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