reconciling

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Dec 21, 2021 License: Apache-2.0 Imports: 20 Imported by: 1

Documentation

Overview

This file is generated. DO NOT EDIT.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DeepEqual

func DeepEqual(a, b metav1.Object) bool

DeepEqual compares both objects for equality

func EnsureNamedObject

func EnsureNamedObject(ctx context.Context, namespacedName types.NamespacedName, rawcreate ObjectCreator, client ctrlruntimeclient.Client, emptyObject ctrlruntimeclient.Object, requiresRecreate bool) error

EnsureNamedObject will generate the Object with the passed create function & create or update it in Kubernetes if necessary.

func ReconcileClusterRoleBindings

func ReconcileClusterRoleBindings(ctx context.Context, namedGetters []NamedClusterRoleBindingCreatorGetter, namespace string, client ctrlruntimeclient.Client, objectModifiers ...ObjectModifier) error

ReconcileClusterRoleBindings will create and update the ClusterRoleBindings coming from the passed ClusterRoleBindingCreator slice

func ReconcileClusterRoles

func ReconcileClusterRoles(ctx context.Context, namedGetters []NamedClusterRoleCreatorGetter, namespace string, client ctrlruntimeclient.Client, objectModifiers ...ObjectModifier) error

ReconcileClusterRoles will create and update the ClusterRoles coming from the passed ClusterRoleCreator slice

func ReconcileOperatingSystemConfigs

func ReconcileOperatingSystemConfigs(ctx context.Context, namedGetters []NamedOperatingSystemConfigCreatorGetter, namespace string, client ctrlruntimeclient.Client, objectModifiers ...ObjectModifier) error

ReconcileOperatingSystemConfigs will create and update the OperatingSystemConfigs coming from the passed OperatingSystemConfigCreator slice

func ReconcileOperatingSystemProfiles added in v0.3.0

func ReconcileOperatingSystemProfiles(ctx context.Context, namedGetters []NamedOperatingSystemProfileCreatorGetter, namespace string, client ctrlruntimeclient.Client, objectModifiers ...ObjectModifier) error

ReconcileOperatingSystemProfiles will create and update the OperatingSystemProfiles coming from the passed OperatingSystemProfileCreator slice

func ReconcileSecrets

func ReconcileSecrets(ctx context.Context, namedGetters []NamedSecretCreatorGetter, namespace string, client ctrlruntimeclient.Client, objectModifiers ...ObjectModifier) error

ReconcileSecrets will create and update the Secrets coming from the passed SecretCreator slice

func ReconcileUnstructureds

func ReconcileUnstructureds(ctx context.Context, namedGetters []NamedUnstructuredCreatorGetter, namespace string, client ctrlruntimeclient.Client, objectModifiers ...ObjectModifier) error

ReconcileUnstructureds will create and update the Unstructureds coming from the passed UnstructuredCreator slice

Types

type ClusterRoleBindingCreator

type ClusterRoleBindingCreator = func(existing *rbacv1.ClusterRoleBinding) (*rbacv1.ClusterRoleBinding, error)

ClusterRoleBindingCreator defines an interface to create/update ClusterRoleBindings

type ClusterRoleCreator

type ClusterRoleCreator = func(existing *rbacv1.ClusterRole) (*rbacv1.ClusterRole, error)

ClusterRoleCreator defines an interface to create/update ClusterRoles

type NamedClusterRoleBindingCreatorGetter

type NamedClusterRoleBindingCreatorGetter = func() (name string, create ClusterRoleBindingCreator)

NamedClusterRoleBindingCreatorGetter returns the name of the resource and the corresponding creator function

type NamedClusterRoleCreatorGetter

type NamedClusterRoleCreatorGetter = func() (name string, create ClusterRoleCreator)

NamedClusterRoleCreatorGetter returns the name of the resource and the corresponding creator function

type NamedOperatingSystemConfigCreatorGetter

type NamedOperatingSystemConfigCreatorGetter = func() (name string, create OperatingSystemConfigCreator)

NamedOperatingSystemConfigCreatorGetter returns the name of the resource and the corresponding creator function

type NamedOperatingSystemProfileCreatorGetter added in v0.3.0

type NamedOperatingSystemProfileCreatorGetter = func() (name string, create OperatingSystemProfileCreator)

NamedOperatingSystemProfileCreatorGetter returns the name of the resource and the corresponding creator function

type NamedSecretCreatorGetter

type NamedSecretCreatorGetter = func() (name string, create SecretCreator)

NamedSecretCreatorGetter returns the name of the resource and the corresponding creator function

type NamedUnstructuredCreatorGetter

type NamedUnstructuredCreatorGetter = func() (name, kind, apiVersion string, create UnstructuredCreator)

NamedUnstructuredCreatorGetter returns the name of the resource and the corresponding creator function

type ObjectCreator

type ObjectCreator = func(existing ctrlruntimeclient.Object) (ctrlruntimeclient.Object, error)

ObjectCreator defines an interface to create/update a runtime.Object

func ClusterRoleBindingObjectWrapper

func ClusterRoleBindingObjectWrapper(create ClusterRoleBindingCreator) ObjectCreator

ClusterRoleBindingObjectWrapper adds a wrapper so the ClusterRoleBindingCreator matches ObjectCreator. This is needed as Go does not support function interface matching.

func ClusterRoleObjectWrapper

func ClusterRoleObjectWrapper(create ClusterRoleCreator) ObjectCreator

ClusterRoleObjectWrapper adds a wrapper so the ClusterRoleCreator matches ObjectCreator. This is needed as Go does not support function interface matching.

func OperatingSystemConfigObjectWrapper

func OperatingSystemConfigObjectWrapper(create OperatingSystemConfigCreator) ObjectCreator

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

func OperatingSystemProfileObjectWrapper added in v0.3.0

func OperatingSystemProfileObjectWrapper(create OperatingSystemProfileCreator) ObjectCreator

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

func SecretObjectWrapper

func SecretObjectWrapper(create SecretCreator) ObjectCreator

SecretObjectWrapper adds a wrapper so the SecretCreator matches ObjectCreator. This is needed as Go does not support function interface matching.

func UnstructuredObjectWrapper

func UnstructuredObjectWrapper(create UnstructuredCreator, emptyObject *unstructured.Unstructured) ObjectCreator

UnstructuredObjectWrapper adds a wrapper so the UnstructuredCreator matches ObjectCreator. This is needed as Go does not support function interface matching.

type ObjectModifier

type ObjectModifier func(create ObjectCreator) ObjectCreator

ObjectModifier is a wrapper function which modifies the object which gets returned by the passed in ObjectCreator

type OperatingSystemConfigCreator

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

OperatingSystemConfigCreator defines an interface to create/update OperatingSystemConfigs

type OperatingSystemProfileCreator added in v0.3.0

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

OperatingSystemProfileCreator defines an interface to create/update OperatingSystemProfiles

type SecretCreator

type SecretCreator = func(existing *corev1.Secret) (*corev1.Secret, error)

SecretCreator defines an interface to create/update Secrets

type UnstructuredCreator

type UnstructuredCreator = func(existing *unstructured.Unstructured) (*unstructured.Unstructured, error)

UnstructuredCreator defines an interface to create/update Unstructureds

Jump to

Keyboard shortcuts

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