reconciling

package
v2.18.1 Latest Latest
Warning

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

Go to latest
Published: Sep 27, 2021 License: Apache-2.0 Imports: 31 Imported by: 0

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 DefaultContainer

func DefaultContainer(c *corev1.Container, procMountType *corev1.ProcMountType)

DefaultContainer defaults all Container attributes to the same values as they would get from the Kubernetes API

func DefaultPodSpec

func DefaultPodSpec(old, new corev1.PodSpec) (corev1.PodSpec, error)

DefaultPodSpec defaults all Container attributes to the same values as they would get from the Kubernetes API

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 ReconcileAPIServices

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

ReconcileAPIServices will create and update the APIServices coming from the passed APIServiceCreator slice

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 ReconcileConfigMaps

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

ReconcileConfigMaps will create and update the ConfigMaps coming from the passed ConfigMapCreator slice

func ReconcileConstraintTemplates added in v2.16.3

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

ReconcileConstraintTemplates will create and update the ConstraintTemplates coming from the passed ConstraintTemplateCreator slice

func ReconcileCronJobs

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

ReconcileCronJobs will create and update the CronJobs coming from the passed CronJobCreator slice

func ReconcileCustomResourceDefinitions

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

ReconcileCustomResourceDefinitions will create and update the CustomResourceDefinitions coming from the passed CustomResourceDefinitionCreator slice

func ReconcileDaemonSets

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

ReconcileDaemonSets will create and update the DaemonSets coming from the passed DaemonSetCreator slice

func ReconcileDeployments

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

ReconcileDeployments will create and update the Deployments coming from the passed DeploymentCreator slice

func ReconcileEtcdBackupConfigs added in v2.17.0

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

ReconcileEtcdBackupConfigs will create and update the EtcdBackupConfigs coming from the passed EtcdBackupConfigCreator slice

func ReconcileIngresses

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

ReconcileIngresses will create and update the Ingresses coming from the passed IngressCreator slice

func ReconcileKubermaticConfigurations added in v2.18.0

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

ReconcileKubermaticConfigurations will create and update the KubermaticConfigurations coming from the passed KubermaticConfigurationCreator slice

func ReconcileKubermaticV1ClusterTemplates added in v2.18.0

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

ReconcileKubermaticV1ClusterTemplates will create and update the KubermaticV1ClusterTemplates coming from the passed KubermaticV1ClusterTemplateCreator slice

func ReconcileKubermaticV1ConstraintTemplates added in v2.16.3

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

ReconcileKubermaticV1ConstraintTemplates will create and update the KubermaticV1ConstraintTemplates coming from the passed KubermaticV1ConstraintTemplateCreator slice

func ReconcileKubermaticV1Constraints added in v2.18.0

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

ReconcileKubermaticV1Constraints will create and update the KubermaticV1Constraints coming from the passed KubermaticV1ConstraintCreator slice

func ReconcileKubermaticV1Projects added in v2.16.7

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

ReconcileKubermaticV1Projects will create and update the KubermaticV1Projects coming from the passed KubermaticV1ProjectCreator slice

func ReconcileKubermaticV1UserProjectBindings added in v2.17.0

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

ReconcileKubermaticV1UserProjectBindings will create and update the KubermaticV1UserProjectBindings coming from the passed KubermaticV1UserProjectBindingCreator slice

func ReconcileKubermaticV1Users added in v2.18.0

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

ReconcileKubermaticV1Users will create and update the KubermaticV1Users coming from the passed KubermaticV1UserCreator slice

func ReconcileMutatingWebhookConfigurations

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

ReconcileMutatingWebhookConfigurations will create and update the MutatingWebhookConfigurations coming from the passed MutatingWebhookConfigurationCreator slice

func ReconcileNamespaces

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

ReconcileNamespaces will create and update the Namespaces coming from the passed NamespaceCreator slice

func ReconcileNetworkPolicies added in v2.17.4

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

ReconcileNetworkPolicies will create and update the NetworkPolicies coming from the passed NetworkPolicyCreator slice

func ReconcilePodDisruptionBudgets

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

ReconcilePodDisruptionBudgets will create and update the PodDisruptionBudgets coming from the passed PodDisruptionBudgetCreator slice

func ReconcileRoleBindings

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

ReconcileRoleBindings will create and update the RoleBindings coming from the passed RoleBindingCreator slice

func ReconcileRoles

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

ReconcileRoles will create and update the Roles coming from the passed RoleCreator 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 ReconcileSeeds

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

ReconcileSeeds will create and update the Seeds coming from the passed SeedCreator slice

func ReconcileServiceAccounts

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

ReconcileServiceAccounts will create and update the ServiceAccounts coming from the passed ServiceAccountCreator slice

func ReconcileServices

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

ReconcileServices will create and update the Services coming from the passed ServiceCreator slice

func ReconcileStatefulSets

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

ReconcileStatefulSets will create and update the StatefulSets coming from the passed StatefulSetCreator 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

func ReconcileValidatingWebhookConfigurations

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

ReconcileValidatingWebhookConfigurations will create and update the ValidatingWebhookConfigurations coming from the passed ValidatingWebhookConfigurationCreator slice

func ReconcileVerticalPodAutoscalers

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

ReconcileVerticalPodAutoscalers will create and update the VerticalPodAutoscalers coming from the passed VerticalPodAutoscalerCreator slice

Types

type APIServiceCreator

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

APIServiceCreator defines an interface to create/update APIServices

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 ConfigMapCreator

type ConfigMapCreator = func(existing *corev1.ConfigMap) (*corev1.ConfigMap, error)

ConfigMapCreator defines an interface to create/update ConfigMaps

type ConstraintTemplateCreator added in v2.16.3

type ConstraintTemplateCreator = func(existing *gatekeeperv1beta1.ConstraintTemplate) (*gatekeeperv1beta1.ConstraintTemplate, error)

ConstraintTemplateCreator defines an interface to create/update ConstraintTemplates

type CronJobCreator

type CronJobCreator = func(existing *batchv1beta1.CronJob) (*batchv1beta1.CronJob, error)

CronJobCreator defines an interface to create/update CronJobs

func DefaultCronJob

func DefaultCronJob(creator CronJobCreator) CronJobCreator

DefaultCronJob defaults all CronJob attributes to the same values as they would get from the Kubernetes API

type CustomResourceDefinitionCreator

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

CustomResourceDefinitionCreator defines an interface to create/update CustomResourceDefinitions

type DaemonSetCreator

type DaemonSetCreator = func(existing *appsv1.DaemonSet) (*appsv1.DaemonSet, error)

DaemonSetCreator defines an interface to create/update DaemonSets

func DefaultDaemonSet

func DefaultDaemonSet(creator DaemonSetCreator) DaemonSetCreator

DefaultDaemonSet defaults all DaemonSet attributes to the same values as they would get from the Kubernetes API

type DeploymentCreator

type DeploymentCreator = func(existing *appsv1.Deployment) (*appsv1.Deployment, error)

DeploymentCreator defines an interface to create/update Deployments

func DefaultDeployment

func DefaultDeployment(creator DeploymentCreator) DeploymentCreator

DefaultDeployment defaults all Deployment attributes to the same values as they would get from the Kubernetes API

type EtcdBackupConfigCreator added in v2.17.0

type EtcdBackupConfigCreator = func(existing *kubermaticv1.EtcdBackupConfig) (*kubermaticv1.EtcdBackupConfig, error)

EtcdBackupConfigCreator defines an interface to create/update EtcdBackupConfigs

type IngressCreator

type IngressCreator = func(existing *networkingv1.Ingress) (*networkingv1.Ingress, error)

IngressCreator defines an interface to create/update Ingresss

type KubermaticConfigurationCreator added in v2.18.0

type KubermaticConfigurationCreator = func(existing *operatorv1alpha1.KubermaticConfiguration) (*operatorv1alpha1.KubermaticConfiguration, error)

KubermaticConfigurationCreator defines an interface to create/update KubermaticConfigurations

type KubermaticV1ClusterTemplateCreator added in v2.18.0

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

KubermaticV1ClusterTemplateCreator defines an interface to create/update ClusterTemplates

type KubermaticV1ConstraintCreator added in v2.18.0

type KubermaticV1ConstraintCreator = func(existing *kubermaticv1.Constraint) (*kubermaticv1.Constraint, error)

KubermaticV1ConstraintCreator defines an interface to create/update Constraints

type KubermaticV1ConstraintTemplateCreator added in v2.16.3

type KubermaticV1ConstraintTemplateCreator = func(existing *kubermaticv1.ConstraintTemplate) (*kubermaticv1.ConstraintTemplate, error)

KubermaticV1ConstraintTemplateCreator defines an interface to create/update ConstraintTemplates

type KubermaticV1ProjectCreator added in v2.16.7

type KubermaticV1ProjectCreator = func(existing *kubermaticv1.Project) (*kubermaticv1.Project, error)

KubermaticV1ProjectCreator defines an interface to create/update Projects

type KubermaticV1UserCreator added in v2.18.0

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

KubermaticV1UserCreator defines an interface to create/update Users

type KubermaticV1UserProjectBindingCreator added in v2.17.0

type KubermaticV1UserProjectBindingCreator = func(existing *kubermaticv1.UserProjectBinding) (*kubermaticv1.UserProjectBinding, error)

KubermaticV1UserProjectBindingCreator defines an interface to create/update UserProjectBindings

type MutatingWebhookConfigurationCreator

MutatingWebhookConfigurationCreator defines an interface to create/update MutatingWebhookConfigurations

type NamedAPIServiceCreatorGetter

type NamedAPIServiceCreatorGetter = func() (name string, create APIServiceCreator)

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

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 NamedConfigMapCreatorGetter

type NamedConfigMapCreatorGetter = func() (name string, create ConfigMapCreator)

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

type NamedConstraintTemplateCreatorGetter added in v2.16.3

type NamedConstraintTemplateCreatorGetter = func() (name string, create ConstraintTemplateCreator)

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

type NamedCronJobCreatorGetter

type NamedCronJobCreatorGetter = func() (name string, create CronJobCreator)

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

type NamedCustomResourceDefinitionCreatorGetter

type NamedCustomResourceDefinitionCreatorGetter = func() (name string, create CustomResourceDefinitionCreator)

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

type NamedDaemonSetCreatorGetter

type NamedDaemonSetCreatorGetter = func() (name string, create DaemonSetCreator)

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

type NamedDeploymentCreatorGetter

type NamedDeploymentCreatorGetter = func() (name string, create DeploymentCreator)

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

type NamedEtcdBackupConfigCreatorGetter added in v2.17.0

type NamedEtcdBackupConfigCreatorGetter = func() (name string, create EtcdBackupConfigCreator)

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

type NamedIngressCreatorGetter

type NamedIngressCreatorGetter = func() (name string, create IngressCreator)

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

type NamedKubermaticConfigurationCreatorGetter added in v2.18.0

type NamedKubermaticConfigurationCreatorGetter = func() (name string, create KubermaticConfigurationCreator)

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

type NamedKubermaticV1ClusterTemplateCreatorGetter added in v2.18.0

type NamedKubermaticV1ClusterTemplateCreatorGetter = func() (name string, create KubermaticV1ClusterTemplateCreator)

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

type NamedKubermaticV1ConstraintCreatorGetter added in v2.18.0

type NamedKubermaticV1ConstraintCreatorGetter = func() (name string, create KubermaticV1ConstraintCreator)

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

type NamedKubermaticV1ConstraintTemplateCreatorGetter added in v2.16.3

type NamedKubermaticV1ConstraintTemplateCreatorGetter = func() (name string, create KubermaticV1ConstraintTemplateCreator)

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

type NamedKubermaticV1ProjectCreatorGetter added in v2.16.7

type NamedKubermaticV1ProjectCreatorGetter = func() (name string, create KubermaticV1ProjectCreator)

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

type NamedKubermaticV1UserCreatorGetter added in v2.18.0

type NamedKubermaticV1UserCreatorGetter = func() (name string, create KubermaticV1UserCreator)

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

type NamedKubermaticV1UserProjectBindingCreatorGetter added in v2.17.0

type NamedKubermaticV1UserProjectBindingCreatorGetter = func() (name string, create KubermaticV1UserProjectBindingCreator)

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

type NamedMutatingWebhookConfigurationCreatorGetter

type NamedMutatingWebhookConfigurationCreatorGetter = func() (name string, create MutatingWebhookConfigurationCreator)

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

type NamedNamespaceCreatorGetter

type NamedNamespaceCreatorGetter = func() (name string, create NamespaceCreator)

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

type NamedNetworkPolicyCreatorGetter added in v2.17.4

type NamedNetworkPolicyCreatorGetter = func() (name string, create NetworkPolicyCreator)

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

type NamedPodDisruptionBudgetCreatorGetter

type NamedPodDisruptionBudgetCreatorGetter = func() (name string, create PodDisruptionBudgetCreator)

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

type NamedRoleBindingCreatorGetter

type NamedRoleBindingCreatorGetter = func() (name string, create RoleBindingCreator)

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

type NamedRoleCreatorGetter

type NamedRoleCreatorGetter = func() (name string, create RoleCreator)

NamedRoleCreatorGetter 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 NamedSeedCreatorGetter

type NamedSeedCreatorGetter = func() (name string, create SeedCreator)

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

type NamedServiceAccountCreatorGetter

type NamedServiceAccountCreatorGetter = func() (name string, create ServiceAccountCreator)

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

type NamedServiceCreatorGetter

type NamedServiceCreatorGetter = func() (name string, create ServiceCreator)

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

type NamedStatefulSetCreatorGetter

type NamedStatefulSetCreatorGetter = func() (name string, create StatefulSetCreator)

NamedStatefulSetCreatorGetter 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 NamedValidatingWebhookConfigurationCreatorGetter

type NamedValidatingWebhookConfigurationCreatorGetter = func() (name string, create ValidatingWebhookConfigurationCreator)

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

type NamedVerticalPodAutoscalerCreatorGetter

type NamedVerticalPodAutoscalerCreatorGetter = func() (name string, create VerticalPodAutoscalerCreator)

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

type NamespaceCreator

type NamespaceCreator = func(existing *corev1.Namespace) (*corev1.Namespace, error)

NamespaceCreator defines an interface to create/update Namespaces

type NetworkPolicyCreator added in v2.17.4

type NetworkPolicyCreator = func(existing *networkingv1.NetworkPolicy) (*networkingv1.NetworkPolicy, error)

NetworkPolicyCreator defines an interface to create/update NetworkPolicys

type ObjectCreator

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

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

func APIServiceObjectWrapper

func APIServiceObjectWrapper(create APIServiceCreator) ObjectCreator

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

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 ConfigMapObjectWrapper

func ConfigMapObjectWrapper(create ConfigMapCreator) ObjectCreator

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

func ConstraintTemplateObjectWrapper added in v2.16.3

func ConstraintTemplateObjectWrapper(create ConstraintTemplateCreator) ObjectCreator

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

func CronJobObjectWrapper

func CronJobObjectWrapper(create CronJobCreator) ObjectCreator

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

func CustomResourceDefinitionObjectWrapper

func CustomResourceDefinitionObjectWrapper(create CustomResourceDefinitionCreator) ObjectCreator

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

func DaemonSetObjectWrapper

func DaemonSetObjectWrapper(create DaemonSetCreator) ObjectCreator

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

func DeploymentObjectWrapper

func DeploymentObjectWrapper(create DeploymentCreator) ObjectCreator

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

func EtcdBackupConfigObjectWrapper added in v2.17.0

func EtcdBackupConfigObjectWrapper(create EtcdBackupConfigCreator) ObjectCreator

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

func IngressObjectWrapper

func IngressObjectWrapper(create IngressCreator) ObjectCreator

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

func KubermaticConfigurationObjectWrapper added in v2.18.0

func KubermaticConfigurationObjectWrapper(create KubermaticConfigurationCreator) ObjectCreator

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

func KubermaticV1ClusterTemplateObjectWrapper added in v2.18.0

func KubermaticV1ClusterTemplateObjectWrapper(create KubermaticV1ClusterTemplateCreator) ObjectCreator

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

func KubermaticV1ConstraintObjectWrapper added in v2.18.0

func KubermaticV1ConstraintObjectWrapper(create KubermaticV1ConstraintCreator) ObjectCreator

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

func KubermaticV1ConstraintTemplateObjectWrapper added in v2.16.3

func KubermaticV1ConstraintTemplateObjectWrapper(create KubermaticV1ConstraintTemplateCreator) ObjectCreator

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

func KubermaticV1ProjectObjectWrapper added in v2.16.7

func KubermaticV1ProjectObjectWrapper(create KubermaticV1ProjectCreator) ObjectCreator

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

func KubermaticV1UserObjectWrapper added in v2.18.0

func KubermaticV1UserObjectWrapper(create KubermaticV1UserCreator) ObjectCreator

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

func KubermaticV1UserProjectBindingObjectWrapper added in v2.17.0

func KubermaticV1UserProjectBindingObjectWrapper(create KubermaticV1UserProjectBindingCreator) ObjectCreator

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

func MutatingWebhookConfigurationObjectWrapper

func MutatingWebhookConfigurationObjectWrapper(create MutatingWebhookConfigurationCreator) ObjectCreator

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

func NamespaceObjectWrapper

func NamespaceObjectWrapper(create NamespaceCreator) ObjectCreator

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

func NetworkPolicyObjectWrapper added in v2.17.4

func NetworkPolicyObjectWrapper(create NetworkPolicyCreator) ObjectCreator

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

func PodDisruptionBudgetObjectWrapper

func PodDisruptionBudgetObjectWrapper(create PodDisruptionBudgetCreator) ObjectCreator

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

func RoleBindingObjectWrapper

func RoleBindingObjectWrapper(create RoleBindingCreator) ObjectCreator

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

func RoleObjectWrapper

func RoleObjectWrapper(create RoleCreator) ObjectCreator

RoleObjectWrapper adds a wrapper so the RoleCreator 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 SeedObjectWrapper

func SeedObjectWrapper(create SeedCreator) ObjectCreator

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

func ServiceAccountObjectWrapper

func ServiceAccountObjectWrapper(create ServiceAccountCreator) ObjectCreator

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

func ServiceObjectWrapper

func ServiceObjectWrapper(create ServiceCreator) ObjectCreator

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

func StatefulSetObjectWrapper

func StatefulSetObjectWrapper(create StatefulSetCreator) ObjectCreator

StatefulSetObjectWrapper adds a wrapper so the StatefulSetCreator 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.

func ValidatingWebhookConfigurationObjectWrapper

func ValidatingWebhookConfigurationObjectWrapper(create ValidatingWebhookConfigurationCreator) ObjectCreator

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

func VerticalPodAutoscalerObjectWrapper

func VerticalPodAutoscalerObjectWrapper(create VerticalPodAutoscalerCreator) ObjectCreator

VerticalPodAutoscalerObjectWrapper adds a wrapper so the VerticalPodAutoscalerCreator 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

func ImagePullSecretsWrapper

func ImagePullSecretsWrapper(secretNames ...string) ObjectModifier

ImagePullSecretsWrapper is generating a new ObjectModifier that wraps an ObjectCreator and takes care of adding the secret names provided to the ImagePullSecrets.

TODO At the moment only Deployments are supported, but this can be extended to whatever Object carrying a PodSpec.

func OwnerRefWrapper

func OwnerRefWrapper(ref metav1.OwnerReference) ObjectModifier

OwnerRefWrapper is responsible for wrapping a ObjectCreator function, solely to set the OwnerReference to the cluster object

type PodDisruptionBudgetCreator

type PodDisruptionBudgetCreator = func(existing *policyv1beta1.PodDisruptionBudget) (*policyv1beta1.PodDisruptionBudget, error)

PodDisruptionBudgetCreator defines an interface to create/update PodDisruptionBudgets

type RoleBindingCreator

type RoleBindingCreator = func(existing *rbacv1.RoleBinding) (*rbacv1.RoleBinding, error)

RoleBindingCreator defines an interface to create/update RoleBindings

type RoleCreator

type RoleCreator = func(existing *rbacv1.Role) (*rbacv1.Role, error)

RoleCreator defines an interface to create/update Roles

type SecretCreator

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

SecretCreator defines an interface to create/update Secrets

type SeedCreator

type SeedCreator = func(existing *kubermaticv1.Seed) (*kubermaticv1.Seed, error)

SeedCreator defines an interface to create/update Seeds

type ServiceAccountCreator

type ServiceAccountCreator = func(existing *corev1.ServiceAccount) (*corev1.ServiceAccount, error)

ServiceAccountCreator defines an interface to create/update ServiceAccounts

type ServiceCreator

type ServiceCreator = func(existing *corev1.Service) (*corev1.Service, error)

ServiceCreator defines an interface to create/update Services

type StatefulSetCreator

type StatefulSetCreator = func(existing *appsv1.StatefulSet) (*appsv1.StatefulSet, error)

StatefulSetCreator defines an interface to create/update StatefulSets

func DefaultStatefulSet

func DefaultStatefulSet(creator StatefulSetCreator) StatefulSetCreator

DefaultStatefulSet defaults all StatefulSet attributes to the same values as they would get from the Kubernetes API

type UnstructuredCreator

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

UnstructuredCreator defines an interface to create/update Unstructureds

type ValidatingWebhookConfigurationCreator

ValidatingWebhookConfigurationCreator defines an interface to create/update ValidatingWebhookConfigurations

type VerticalPodAutoscalerCreator

type VerticalPodAutoscalerCreator = func(existing *autoscalingv1beta2.VerticalPodAutoscaler) (*autoscalingv1beta2.VerticalPodAutoscaler, error)

VerticalPodAutoscalerCreator defines an interface to create/update VerticalPodAutoscalers

Jump to

Keyboard shortcuts

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