Documentation
¶
Index ¶
- Constants
- func ComputeRequiredExtensionsForGarden(garden *operatorv1alpha1.Garden, extensionList *operatorv1alpha1.ExtensionList) sets.Set[string]
- func ControllerRegistrationForExtension(extension *operatorv1alpha1.Extension) (*gardencorev1beta1.ControllerRegistration, *gardencorev1.ControllerDeployment)
- func ExtensionAdmissionRuntimeManagedResourceName(extensionName string) string
- func ExtensionAdmissionVirtualManagedResourceName(extensionName string) string
- func ExtensionForManagedResourceName(managedResourceName string) (string, bool)
- func ExtensionRuntimeManagedResourceName(extensionName string) string
- func ExtensionRuntimeNamespaceName(extensionName string) string
- func IsControllerInstallationInVirtualRequired(extension *operatorv1alpha1.Extension) bool
- func IsExtensionInRuntimeRequired(extension *operatorv1alpha1.Extension) bool
- func IsGardenSuccessfullyReconciled(garden *operatorv1alpha1.Garden) bool
- func IsRuntimeExtensionInstallationSuccessful(ctx context.Context, c client.Client, gardenNamespace, extensionName string) error
- func IsServedByGardenerAPIServer(resource string) bool
- func IsServedByKubeAPIServer(resource string) bool
- func RequiredGardenExtensionsReady(ctx context.Context, log logr.Logger, c client.Client, gardenNamespace string, ...) error
Constants ¶
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 ¶
ExtensionAdmissionRuntimeManagedResourceName returns the name of the ManagedResource containing resources for the Garden runtime cluster.
func ExtensionAdmissionVirtualManagedResourceName ¶
ExtensionAdmissionVirtualManagedResourceName returns the name of the ManagedResource containing resources for the Garden virtual cluster.
func ExtensionForManagedResourceName ¶
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 ¶
ExtensionRuntimeManagedResourceName returns the name of the ManagedResource containing resources for the Garden runtime cluster.
func ExtensionRuntimeNamespaceName ¶
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 ¶
IsServedByGardenerAPIServer returns true if the passed resources is served by the Gardener API Server.
func IsServedByKubeAPIServer ¶
IsServedByKubeAPIServer returns true if the passed resources is served by the Kube API Server.
Types ¶
This section is empty.