reconciling

package
v3.0.0-...-d6c4d9c Latest Latest
Warning

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

Go to latest
Published: Apr 14, 2023 License: Apache-2.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func APIServiceObjectWrapper

func APIServiceObjectWrapper(reconciler APIServiceReconciler) reconciling.ObjectReconciler

APIServiceObjectWrapper adds a wrapper so the APIServiceReconciler matches ObjectReconciler. This is needed as Go does not support function interface matching.

func AddonConfigObjectWrapper

func AddonConfigObjectWrapper(reconciler AddonConfigReconciler) reconciling.ObjectReconciler

AddonConfigObjectWrapper adds a wrapper so the AddonConfigReconciler matches ObjectReconciler. This is needed as Go does not support function interface matching.

func AddonObjectWrapper

func AddonObjectWrapper(reconciler AddonReconciler) reconciling.ObjectReconciler

AddonObjectWrapper adds a wrapper so the AddonReconciler matches ObjectReconciler. This is needed as Go does not support function interface matching.

func ApplicationDefinitionObjectWrapper

func ApplicationDefinitionObjectWrapper(reconciler ApplicationDefinitionReconciler) reconciling.ObjectReconciler

ApplicationDefinitionObjectWrapper adds a wrapper so the ApplicationDefinitionReconciler matches ObjectReconciler. This is needed as Go does not support function interface matching.

func ApplicationInstallationObjectWrapper

func ApplicationInstallationObjectWrapper(reconciler ApplicationInstallationReconciler) reconciling.ObjectReconciler

ApplicationInstallationObjectWrapper adds a wrapper so the ApplicationInstallationReconciler matches ObjectReconciler. This is needed as Go does not support function interface matching.

func ClusterObjectWrapper

func ClusterObjectWrapper(reconciler ClusterReconciler) reconciling.ObjectReconciler

ClusterObjectWrapper adds a wrapper so the ClusterReconciler matches ObjectReconciler. This is needed as Go does not support function interface matching.

func ClusterTemplateObjectWrapper

func ClusterTemplateObjectWrapper(reconciler ClusterTemplateReconciler) reconciling.ObjectReconciler

ClusterTemplateObjectWrapper adds a wrapper so the ClusterTemplateReconciler matches ObjectReconciler. This is needed as Go does not support function interface matching.

func Configure

func Configure(log *zap.SugaredLogger)

func CustomResourceDefinitionObjectWrapper

func CustomResourceDefinitionObjectWrapper(reconciler CustomResourceDefinitionReconciler) reconciling.ObjectReconciler

CustomResourceDefinitionObjectWrapper adds a wrapper so the CustomResourceDefinitionReconciler matches ObjectReconciler. This is needed as Go does not support function interface matching.

func DataVolumeObjectWrapper

func DataVolumeObjectWrapper(reconciler DataVolumeReconciler) reconciling.ObjectReconciler

DataVolumeObjectWrapper adds a wrapper so the DataVolumeReconciler matches ObjectReconciler. This is needed as Go does not support function interface matching.

func DatacenterObjectWrapper

func DatacenterObjectWrapper(reconciler DatacenterReconciler) reconciling.ObjectReconciler

DatacenterObjectWrapper adds a wrapper so the DatacenterReconciler matches ObjectReconciler. This is needed as Go does not support function interface matching.

func KubermaticConfigurationObjectWrapper

func KubermaticConfigurationObjectWrapper(reconciler KubermaticConfigurationReconciler) reconciling.ObjectReconciler

KubermaticConfigurationObjectWrapper adds a wrapper so the KubermaticConfigurationReconciler matches ObjectReconciler. This is needed as Go does not support function interface matching.

func NewOwnershipModifier

func NewOwnershipModifier(owner metav1.Object, scheme *runtime.Scheme) reconciling.ObjectModifier

NewOwnershipModifier is generating a new ObjectModifier that wraps an ObjectReconciler and takes care of applying the ownership and other labels for all managed objects.

func NewVolumeRevisionLabelsModifier

func NewVolumeRevisionLabelsModifier(ctx context.Context, client ctrlruntimeclient.Client) reconciling.ObjectModifier

NewVolumeRevisionLabelsModifier scans volume mounts for pod templates for ConfigMaps and Secrets and will then put new labels for these mounts onto the pod template, causing restarts when the volumes changed.

func OperatingSystemConfigObjectWrapper

func OperatingSystemConfigObjectWrapper(reconciler OperatingSystemConfigReconciler) reconciling.ObjectReconciler

OperatingSystemConfigObjectWrapper adds a wrapper so the OperatingSystemConfigReconciler matches ObjectReconciler. This is needed as Go does not support function interface matching.

func OperatingSystemProfileObjectWrapper

func OperatingSystemProfileObjectWrapper(reconciler OperatingSystemProfileReconciler) reconciling.ObjectReconciler

OperatingSystemProfileObjectWrapper adds a wrapper so the OperatingSystemProfileReconciler matches ObjectReconciler. This is needed as Go does not support function interface matching.

func PresetObjectWrapper

func PresetObjectWrapper(reconciler PresetReconciler) reconciling.ObjectReconciler

PresetObjectWrapper adds a wrapper so the PresetReconciler matches ObjectReconciler. This is needed as Go does not support function interface matching.

func ReconcileAPIServices

func ReconcileAPIServices(ctx context.Context, namedFactories []NamedAPIServiceReconcilerFactory, namespace string, client ctrlruntimeclient.Client, objectModifiers ...reconciling.ObjectModifier) error

ReconcileAPIServices will create and update the APIServices coming from the passed APIServiceReconciler slice.

func ReconcileAddonConfigs

func ReconcileAddonConfigs(ctx context.Context, namedFactories []NamedAddonConfigReconcilerFactory, namespace string, client ctrlruntimeclient.Client, objectModifiers ...reconciling.ObjectModifier) error

ReconcileAddonConfigs will create and update the AddonConfigs coming from the passed AddonConfigReconciler slice.

func ReconcileAddons

func ReconcileAddons(ctx context.Context, namedFactories []NamedAddonReconcilerFactory, namespace string, client ctrlruntimeclient.Client, objectModifiers ...reconciling.ObjectModifier) error

ReconcileAddons will create and update the Addons coming from the passed AddonReconciler slice.

func ReconcileApplicationDefinitions

func ReconcileApplicationDefinitions(ctx context.Context, namedFactories []NamedApplicationDefinitionReconcilerFactory, namespace string, client ctrlruntimeclient.Client, objectModifiers ...reconciling.ObjectModifier) error

ReconcileApplicationDefinitions will create and update the ApplicationDefinitions coming from the passed ApplicationDefinitionReconciler slice.

func ReconcileApplicationInstallations

func ReconcileApplicationInstallations(ctx context.Context, namedFactories []NamedApplicationInstallationReconcilerFactory, namespace string, client ctrlruntimeclient.Client, objectModifiers ...reconciling.ObjectModifier) error

ReconcileApplicationInstallations will create and update the ApplicationInstallations coming from the passed ApplicationInstallationReconciler slice.

func ReconcileClusterTemplates

func ReconcileClusterTemplates(ctx context.Context, namedFactories []NamedClusterTemplateReconcilerFactory, namespace string, client ctrlruntimeclient.Client, objectModifiers ...reconciling.ObjectModifier) error

ReconcileClusterTemplates will create and update the ClusterTemplates coming from the passed ClusterTemplateReconciler slice.

func ReconcileClusters

func ReconcileClusters(ctx context.Context, namedFactories []NamedClusterReconcilerFactory, namespace string, client ctrlruntimeclient.Client, objectModifiers ...reconciling.ObjectModifier) error

ReconcileClusters will create and update the Clusters coming from the passed ClusterReconciler slice.

func ReconcileCustomResourceDefinitions

func ReconcileCustomResourceDefinitions(ctx context.Context, namedFactories []NamedCustomResourceDefinitionReconcilerFactory, namespace string, client ctrlruntimeclient.Client, objectModifiers ...reconciling.ObjectModifier) error

ReconcileCustomResourceDefinitions will create and update the CustomResourceDefinitions coming from the passed CustomResourceDefinitionReconciler slice.

func ReconcileDataVolumes

func ReconcileDataVolumes(ctx context.Context, namedFactories []NamedDataVolumeReconcilerFactory, namespace string, client ctrlruntimeclient.Client, objectModifiers ...reconciling.ObjectModifier) error

ReconcileDataVolumes will create and update the DataVolumes coming from the passed DataVolumeReconciler slice.

func ReconcileDatacenters

func ReconcileDatacenters(ctx context.Context, namedFactories []NamedDatacenterReconcilerFactory, namespace string, client ctrlruntimeclient.Client, objectModifiers ...reconciling.ObjectModifier) error

ReconcileDatacenters will create and update the Datacenters coming from the passed DatacenterReconciler slice.

func ReconcileKubermaticConfigurations

func ReconcileKubermaticConfigurations(ctx context.Context, namedFactories []NamedKubermaticConfigurationReconcilerFactory, namespace string, client ctrlruntimeclient.Client, objectModifiers ...reconciling.ObjectModifier) error

ReconcileKubermaticConfigurations will create and update the KubermaticConfigurations coming from the passed KubermaticConfigurationReconciler slice.

func ReconcileOperatingSystemConfigs

func ReconcileOperatingSystemConfigs(ctx context.Context, namedFactories []NamedOperatingSystemConfigReconcilerFactory, namespace string, client ctrlruntimeclient.Client, objectModifiers ...reconciling.ObjectModifier) error

ReconcileOperatingSystemConfigs will create and update the OperatingSystemConfigs coming from the passed OperatingSystemConfigReconciler slice.

func ReconcileOperatingSystemProfiles

func ReconcileOperatingSystemProfiles(ctx context.Context, namedFactories []NamedOperatingSystemProfileReconcilerFactory, namespace string, client ctrlruntimeclient.Client, objectModifiers ...reconciling.ObjectModifier) error

ReconcileOperatingSystemProfiles will create and update the OperatingSystemProfiles coming from the passed OperatingSystemProfileReconciler slice.

func ReconcilePresets

func ReconcilePresets(ctx context.Context, namedFactories []NamedPresetReconcilerFactory, namespace string, client ctrlruntimeclient.Client, objectModifiers ...reconciling.ObjectModifier) error

ReconcilePresets will create and update the Presets coming from the passed PresetReconciler slice.

func ReconcileRuleGroups

func ReconcileRuleGroups(ctx context.Context, namedFactories []NamedRuleGroupReconcilerFactory, namespace string, client ctrlruntimeclient.Client, objectModifiers ...reconciling.ObjectModifier) error

ReconcileRuleGroups will create and update the RuleGroups coming from the passed RuleGroupReconciler slice.

func ReconcileUserSSHKeys

func ReconcileUserSSHKeys(ctx context.Context, namedFactories []NamedUserSSHKeyReconcilerFactory, namespace string, client ctrlruntimeclient.Client, objectModifiers ...reconciling.ObjectModifier) error

ReconcileUserSSHKeys will create and update the UserSSHKeys coming from the passed UserSSHKeyReconciler slice.

func ReconcileUsers

func ReconcileUsers(ctx context.Context, namedFactories []NamedUserReconcilerFactory, namespace string, client ctrlruntimeclient.Client, objectModifiers ...reconciling.ObjectModifier) error

ReconcileUsers will create and update the Users coming from the passed UserReconciler slice.

func ReconcileVirtualMachineInstancetypes

func ReconcileVirtualMachineInstancetypes(ctx context.Context, namedFactories []NamedVirtualMachineInstancetypeReconcilerFactory, namespace string, client ctrlruntimeclient.Client, objectModifiers ...reconciling.ObjectModifier) error

ReconcileVirtualMachineInstancetypes will create and update the VirtualMachineInstancetypes coming from the passed VirtualMachineInstancetypeReconciler slice.

func ReconcileVirtualMachinePreferences

func ReconcileVirtualMachinePreferences(ctx context.Context, namedFactories []NamedVirtualMachinePreferenceReconcilerFactory, namespace string, client ctrlruntimeclient.Client, objectModifiers ...reconciling.ObjectModifier) error

ReconcileVirtualMachinePreferences will create and update the VirtualMachinePreferences coming from the passed VirtualMachinePreferenceReconciler slice.

func RuleGroupObjectWrapper

func RuleGroupObjectWrapper(reconciler RuleGroupReconciler) reconciling.ObjectReconciler

RuleGroupObjectWrapper adds a wrapper so the RuleGroupReconciler matches ObjectReconciler. This is needed as Go does not support function interface matching.

func UserObjectWrapper

func UserObjectWrapper(reconciler UserReconciler) reconciling.ObjectReconciler

UserObjectWrapper adds a wrapper so the UserReconciler matches ObjectReconciler. This is needed as Go does not support function interface matching.

func UserSSHKeyObjectWrapper

func UserSSHKeyObjectWrapper(reconciler UserSSHKeyReconciler) reconciling.ObjectReconciler

UserSSHKeyObjectWrapper adds a wrapper so the UserSSHKeyReconciler matches ObjectReconciler. This is needed as Go does not support function interface matching.

func VirtualMachineInstancetypeObjectWrapper

func VirtualMachineInstancetypeObjectWrapper(reconciler VirtualMachineInstancetypeReconciler) reconciling.ObjectReconciler

VirtualMachineInstancetypeObjectWrapper adds a wrapper so the VirtualMachineInstancetypeReconciler matches ObjectReconciler. This is needed as Go does not support function interface matching.

func VirtualMachinePreferenceObjectWrapper

func VirtualMachinePreferenceObjectWrapper(reconciler VirtualMachinePreferenceReconciler) reconciling.ObjectReconciler

VirtualMachinePreferenceObjectWrapper adds a wrapper so the VirtualMachinePreferenceReconciler matches ObjectReconciler. This is needed as Go does not support function interface matching.

Types

type APIServiceReconciler

type APIServiceReconciler = func(existing *apiregistrationv1.APIService) (*apiregistrationv1.APIService, error)

APIServiceReconciler defines an interface to create/update APIServices.

type AddonConfigReconciler

type AddonConfigReconciler = func(existing *kubermaticv1.AddonConfig) (*kubermaticv1.AddonConfig, error)

AddonConfigReconciler defines an interface to create/update AddonConfigs.

type AddonReconciler

type AddonReconciler = func(existing *kubermaticv1.Addon) (*kubermaticv1.Addon, error)

AddonReconciler defines an interface to create/update Addons.

type ApplicationDefinitionReconciler

type ApplicationDefinitionReconciler = func(existing *appskubermaticv1.ApplicationDefinition) (*appskubermaticv1.ApplicationDefinition, error)

ApplicationDefinitionReconciler defines an interface to create/update ApplicationDefinitions.

type ApplicationInstallationReconciler

type ApplicationInstallationReconciler = func(existing *appskubermaticv1.ApplicationInstallation) (*appskubermaticv1.ApplicationInstallation, error)

ApplicationInstallationReconciler defines an interface to create/update ApplicationInstallations.

type ClusterReconciler

type ClusterReconciler = func(existing *kubermaticv1.Cluster) (*kubermaticv1.Cluster, error)

ClusterReconciler defines an interface to create/update Clusters.

type ClusterTemplateReconciler

type ClusterTemplateReconciler = func(existing *kubermaticv1.ClusterTemplate) (*kubermaticv1.ClusterTemplate, error)

ClusterTemplateReconciler defines an interface to create/update ClusterTemplates.

type CustomResourceDefinitionReconciler

type CustomResourceDefinitionReconciler = func(existing *apiextensionsv1.CustomResourceDefinition) (*apiextensionsv1.CustomResourceDefinition, error)

CustomResourceDefinitionReconciler defines an interface to create/update CustomResourceDefinitions.

type DataVolumeReconciler

type DataVolumeReconciler = func(existing *cdiv1beta1.DataVolume) (*cdiv1beta1.DataVolume, error)

DataVolumeReconciler defines an interface to create/update DataVolumes.

type DatacenterReconciler

type DatacenterReconciler = func(existing *kubermaticv1.Datacenter) (*kubermaticv1.Datacenter, error)

DatacenterReconciler defines an interface to create/update Datacenters.

type KubermaticConfigurationReconciler

type KubermaticConfigurationReconciler = func(existing *kubermaticv1.KubermaticConfiguration) (*kubermaticv1.KubermaticConfiguration, error)

KubermaticConfigurationReconciler defines an interface to create/update KubermaticConfigurations.

type NamedAPIServiceReconcilerFactory

type NamedAPIServiceReconcilerFactory = func() (name string, reconciler APIServiceReconciler)

NamedAPIServiceReconcilerFactory returns the name of the resource and the corresponding Reconciler function.

type NamedAddonConfigReconcilerFactory

type NamedAddonConfigReconcilerFactory = func() (name string, reconciler AddonConfigReconciler)

NamedAddonConfigReconcilerFactory returns the name of the resource and the corresponding Reconciler function.

type NamedAddonReconcilerFactory

type NamedAddonReconcilerFactory = func() (name string, reconciler AddonReconciler)

NamedAddonReconcilerFactory returns the name of the resource and the corresponding Reconciler function.

type NamedApplicationDefinitionReconcilerFactory

type NamedApplicationDefinitionReconcilerFactory = func() (name string, reconciler ApplicationDefinitionReconciler)

NamedApplicationDefinitionReconcilerFactory returns the name of the resource and the corresponding Reconciler function.

type NamedApplicationInstallationReconcilerFactory

type NamedApplicationInstallationReconcilerFactory = func() (name string, reconciler ApplicationInstallationReconciler)

NamedApplicationInstallationReconcilerFactory returns the name of the resource and the corresponding Reconciler function.

type NamedClusterReconcilerFactory

type NamedClusterReconcilerFactory = func() (name string, reconciler ClusterReconciler)

NamedClusterReconcilerFactory returns the name of the resource and the corresponding Reconciler function.

type NamedClusterTemplateReconcilerFactory

type NamedClusterTemplateReconcilerFactory = func() (name string, reconciler ClusterTemplateReconciler)

NamedClusterTemplateReconcilerFactory returns the name of the resource and the corresponding Reconciler function.

type NamedCustomResourceDefinitionReconcilerFactory

type NamedCustomResourceDefinitionReconcilerFactory = func() (name string, reconciler CustomResourceDefinitionReconciler)

NamedCustomResourceDefinitionReconcilerFactory returns the name of the resource and the corresponding Reconciler function.

type NamedDataVolumeReconcilerFactory

type NamedDataVolumeReconcilerFactory = func() (name string, reconciler DataVolumeReconciler)

NamedDataVolumeReconcilerFactory returns the name of the resource and the corresponding Reconciler function.

type NamedDatacenterReconcilerFactory

type NamedDatacenterReconcilerFactory = func() (name string, reconciler DatacenterReconciler)

NamedDatacenterReconcilerFactory returns the name of the resource and the corresponding Reconciler function.

type NamedKubermaticConfigurationReconcilerFactory

type NamedKubermaticConfigurationReconcilerFactory = func() (name string, reconciler KubermaticConfigurationReconciler)

NamedKubermaticConfigurationReconcilerFactory returns the name of the resource and the corresponding Reconciler function.

type NamedOperatingSystemConfigReconcilerFactory

type NamedOperatingSystemConfigReconcilerFactory = func() (name string, reconciler OperatingSystemConfigReconciler)

NamedOperatingSystemConfigReconcilerFactory returns the name of the resource and the corresponding Reconciler function.

type NamedOperatingSystemProfileReconcilerFactory

type NamedOperatingSystemProfileReconcilerFactory = func() (name string, reconciler OperatingSystemProfileReconciler)

NamedOperatingSystemProfileReconcilerFactory returns the name of the resource and the corresponding Reconciler function.

type NamedPresetReconcilerFactory

type NamedPresetReconcilerFactory = func() (name string, reconciler PresetReconciler)

NamedPresetReconcilerFactory returns the name of the resource and the corresponding Reconciler function.

type NamedRuleGroupReconcilerFactory

type NamedRuleGroupReconcilerFactory = func() (name string, reconciler RuleGroupReconciler)

NamedRuleGroupReconcilerFactory returns the name of the resource and the corresponding Reconciler function.

type NamedUserReconcilerFactory

type NamedUserReconcilerFactory = func() (name string, reconciler UserReconciler)

NamedUserReconcilerFactory returns the name of the resource and the corresponding Reconciler function.

type NamedUserSSHKeyReconcilerFactory

type NamedUserSSHKeyReconcilerFactory = func() (name string, reconciler UserSSHKeyReconciler)

NamedUserSSHKeyReconcilerFactory returns the name of the resource and the corresponding Reconciler function.

type NamedVirtualMachineInstancetypeReconcilerFactory

type NamedVirtualMachineInstancetypeReconcilerFactory = func() (name string, reconciler VirtualMachineInstancetypeReconciler)

NamedVirtualMachineInstancetypeReconcilerFactory returns the name of the resource and the corresponding Reconciler function.

type NamedVirtualMachinePreferenceReconcilerFactory

type NamedVirtualMachinePreferenceReconcilerFactory = func() (name string, reconciler VirtualMachinePreferenceReconciler)

NamedVirtualMachinePreferenceReconcilerFactory returns the name of the resource and the corresponding Reconciler function.

type OperatingSystemConfigReconciler

type OperatingSystemConfigReconciler = func(existing *osmv1alpha1.OperatingSystemConfig) (*osmv1alpha1.OperatingSystemConfig, error)

OperatingSystemConfigReconciler defines an interface to create/update OperatingSystemConfigs.

type OperatingSystemProfileReconciler

type OperatingSystemProfileReconciler = func(existing *osmv1alpha1.OperatingSystemProfile) (*osmv1alpha1.OperatingSystemProfile, error)

OperatingSystemProfileReconciler defines an interface to create/update OperatingSystemProfiles.

type PresetReconciler

type PresetReconciler = func(existing *kubermaticv1.Preset) (*kubermaticv1.Preset, error)

PresetReconciler defines an interface to create/update Presets.

type RuleGroupReconciler

type RuleGroupReconciler = func(existing *kubermaticv1.RuleGroup) (*kubermaticv1.RuleGroup, error)

RuleGroupReconciler defines an interface to create/update RuleGroups.

type UserReconciler

type UserReconciler = func(existing *kubermaticv1.User) (*kubermaticv1.User, error)

UserReconciler defines an interface to create/update Users.

type UserSSHKeyReconciler

type UserSSHKeyReconciler = func(existing *kubermaticv1.UserSSHKey) (*kubermaticv1.UserSSHKey, error)

UserSSHKeyReconciler defines an interface to create/update UserSSHKeys.

type VirtualMachineInstancetypeReconciler

type VirtualMachineInstancetypeReconciler = func(existing *instancetypev1alpha1.VirtualMachineInstancetype) (*instancetypev1alpha1.VirtualMachineInstancetype, error)

VirtualMachineInstancetypeReconciler defines an interface to create/update VirtualMachineInstancetypes.

type VirtualMachinePreferenceReconciler

type VirtualMachinePreferenceReconciler = func(existing *instancetypev1alpha1.VirtualMachinePreference) (*instancetypev1alpha1.VirtualMachinePreference, error)

VirtualMachinePreferenceReconciler defines an interface to create/update VirtualMachinePreferences.

Jump to

Keyboard shortcuts

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