operator

package
v1.130.2 Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2025 License: Apache-2.0 Imports: 25 Imported by: 0

Documentation

Index

Constants

View Source
const ExtensionRuntimeNamespacePrefix = "runtime-extension-"

ExtensionRuntimeNamespacePrefix is the prefix for the namespace hosting resources for the Garden runtime cluster.

Variables

This section is empty.

Functions

func ComputeRequiredExtensionsForGarden

func ComputeRequiredExtensionsForGarden(garden *operatorv1alpha1.Garden, extensionList *operatorv1alpha1.ExtensionList) sets.Set[string]

ComputeRequiredExtensionsForGarden computes the extension kind/type combinations that are required for the garden reconciliation flow.

func ControllerRegistrationForExtension added in v1.123.0

func ControllerRegistrationForExtension(extension *operatorv1alpha1.Extension) (*gardencorev1beta1.ControllerRegistration, *gardencorev1.ControllerDeployment)

ControllerRegistrationForExtension returns the ControllerRegistration and ControllerDeployment objects for the given Extension.

func ExtensionAdmissionRuntimeManagedResourceName

func ExtensionAdmissionRuntimeManagedResourceName(extensionName string) string

ExtensionAdmissionRuntimeManagedResourceName returns the name of the ManagedResource containing resources for the Garden runtime cluster.

func ExtensionAdmissionVirtualManagedResourceName

func ExtensionAdmissionVirtualManagedResourceName(extensionName string) string

ExtensionAdmissionVirtualManagedResourceName returns the name of the ManagedResource containing resources for the Garden virtual cluster.

func ExtensionForManagedResourceName

func ExtensionForManagedResourceName(managedResourceName string) (string, bool)

ExtensionForManagedResourceName returns if the given managed resource name belongs to an extension in Garden runtime cluster. If so, it returns the extension name.

func ExtensionRuntimeManagedResourceName

func ExtensionRuntimeManagedResourceName(extensionName string) string

ExtensionRuntimeManagedResourceName returns the name of the ManagedResource containing resources for the Garden runtime cluster.

func ExtensionRuntimeNamespaceName

func ExtensionRuntimeNamespaceName(extensionName string) string

ExtensionRuntimeNamespaceName returns the name of the namespace hosting resources for the Garden runtime cluster.

func IsControllerInstallationInVirtualRequired

func IsControllerInstallationInVirtualRequired(extension *operatorv1alpha1.Extension) bool

IsControllerInstallationInVirtualRequired returns true if the extension requires a controller installation in the virtual cluster.

func IsExtensionInRuntimeRequired

func IsExtensionInRuntimeRequired(extension *operatorv1alpha1.Extension) bool

IsExtensionInRuntimeRequired returns true if the extension requires a deployment in the runtime cluster.

func IsGardenSuccessfullyReconciled

func IsGardenSuccessfullyReconciled(garden *operatorv1alpha1.Garden) bool

IsGardenSuccessfullyReconciled returns true if the passed garden resource reports a successful reconciliation.

func IsRuntimeExtensionInstallationSuccessful

func IsRuntimeExtensionInstallationSuccessful(ctx context.Context, c client.Client, gardenNamespace, extensionName string) error

IsRuntimeExtensionInstallationSuccessful returns an error if an Extension is not marked as "successfully" in the Garden runtime cluster.

func IsServedByGardenerAPIServer

func IsServedByGardenerAPIServer(resource string) bool

IsServedByGardenerAPIServer returns true if the passed resources is served by the Gardener API Server.

func IsServedByKubeAPIServer

func IsServedByKubeAPIServer(resource string) bool

IsServedByKubeAPIServer returns true if the passed resources is served by the Kube API Server.

func RequiredGardenExtensionsReady

func RequiredGardenExtensionsReady(ctx context.Context, log logr.Logger, c client.Client, gardenNamespace string, requiredExtensions sets.Set[string]) error

RequiredGardenExtensionsReady checks if all required extensions for a garden exist and are ready.

Types

This section is empty.

Jump to

Keyboard shortcuts

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