Documentation ¶
Overview ¶
This file is generated. DO NOT EDIT.
Index ¶
- func DeepEqual(a, b metav1.Object) bool
- func DefaultContainer(c *corev1.Container, procMountType *corev1.ProcMountType)
- func DefaultPodSpec(old, new corev1.PodSpec) (corev1.PodSpec, error)
- func EnsureNamedObject(ctx context.Context, namespacedName types.NamespacedName, ...) error
- func ReconcileAPIServices(ctx context.Context, namedGetters []NamedAPIServiceCreatorGetter, ...) error
- func ReconcileCertificates(ctx context.Context, namedGetters []NamedCertificateCreatorGetter, ...) error
- func ReconcileClusterRoleBindings(ctx context.Context, namedGetters []NamedClusterRoleBindingCreatorGetter, ...) error
- func ReconcileClusterRoles(ctx context.Context, namedGetters []NamedClusterRoleCreatorGetter, ...) error
- func ReconcileConfigMaps(ctx context.Context, namedGetters []NamedConfigMapCreatorGetter, ...) error
- func ReconcileCronJobs(ctx context.Context, namedGetters []NamedCronJobCreatorGetter, ...) error
- func ReconcileCustomResourceDefinitions(ctx context.Context, namedGetters []NamedCustomResourceDefinitionCreatorGetter, ...) error
- func ReconcileDaemonSets(ctx context.Context, namedGetters []NamedDaemonSetCreatorGetter, ...) error
- func ReconcileDeployments(ctx context.Context, namedGetters []NamedDeploymentCreatorGetter, ...) error
- func ReconcileIngresses(ctx context.Context, namedGetters []NamedIngressCreatorGetter, ...) error
- func ReconcileMutatingWebhookConfigurations(ctx context.Context, ...) error
- func ReconcileNamespaces(ctx context.Context, namedGetters []NamedNamespaceCreatorGetter, ...) error
- func ReconcilePodDisruptionBudgets(ctx context.Context, namedGetters []NamedPodDisruptionBudgetCreatorGetter, ...) error
- func ReconcileRoleBindings(ctx context.Context, namedGetters []NamedRoleBindingCreatorGetter, ...) error
- func ReconcileRoles(ctx context.Context, namedGetters []NamedRoleCreatorGetter, namespace string, ...) error
- func ReconcileSecrets(ctx context.Context, namedGetters []NamedSecretCreatorGetter, namespace string, ...) error
- func ReconcileSeeds(ctx context.Context, namedGetters []NamedSeedCreatorGetter, namespace string, ...) error
- func ReconcileServiceAccounts(ctx context.Context, namedGetters []NamedServiceAccountCreatorGetter, ...) error
- func ReconcileServices(ctx context.Context, namedGetters []NamedServiceCreatorGetter, ...) error
- func ReconcileStatefulSets(ctx context.Context, namedGetters []NamedStatefulSetCreatorGetter, ...) error
- func ReconcileUnstructureds(ctx context.Context, namedGetters []NamedUnstructuredCreatorGetter, ...) error
- func ReconcileValidatingWebhookConfigurations(ctx context.Context, ...) error
- func ReconcileVerticalPodAutoscalers(ctx context.Context, namedGetters []NamedVerticalPodAutoscalerCreatorGetter, ...) error
- type APIServiceCreator
- type CertificateCreator
- type ClusterRoleBindingCreator
- type ClusterRoleCreator
- type ConfigMapCreator
- type CronJobCreator
- type CustomResourceDefinitionCreator
- type DaemonSetCreator
- type DeploymentCreator
- type IngressCreator
- type MutatingWebhookConfigurationCreator
- type NamedAPIServiceCreatorGetter
- type NamedCertificateCreatorGetter
- type NamedClusterRoleBindingCreatorGetter
- type NamedClusterRoleCreatorGetter
- type NamedConfigMapCreatorGetter
- type NamedCronJobCreatorGetter
- type NamedCustomResourceDefinitionCreatorGetter
- type NamedDaemonSetCreatorGetter
- type NamedDeploymentCreatorGetter
- type NamedIngressCreatorGetter
- type NamedMutatingWebhookConfigurationCreatorGetter
- type NamedNamespaceCreatorGetter
- type NamedPodDisruptionBudgetCreatorGetter
- type NamedRoleBindingCreatorGetter
- type NamedRoleCreatorGetter
- type NamedSecretCreatorGetter
- type NamedSeedCreatorGetter
- type NamedServiceAccountCreatorGetter
- type NamedServiceCreatorGetter
- type NamedStatefulSetCreatorGetter
- type NamedUnstructuredCreatorGetter
- type NamedValidatingWebhookConfigurationCreatorGetter
- type NamedVerticalPodAutoscalerCreatorGetter
- type NamespaceCreator
- type ObjectCreator
- func APIServiceObjectWrapper(create APIServiceCreator) ObjectCreator
- func CertificateObjectWrapper(create CertificateCreator) ObjectCreator
- func ClusterRoleBindingObjectWrapper(create ClusterRoleBindingCreator) ObjectCreator
- func ClusterRoleObjectWrapper(create ClusterRoleCreator) ObjectCreator
- func ConfigMapObjectWrapper(create ConfigMapCreator) ObjectCreator
- func CronJobObjectWrapper(create CronJobCreator) ObjectCreator
- func CustomResourceDefinitionObjectWrapper(create CustomResourceDefinitionCreator) ObjectCreator
- func DaemonSetObjectWrapper(create DaemonSetCreator) ObjectCreator
- func DeploymentObjectWrapper(create DeploymentCreator) ObjectCreator
- func IngressObjectWrapper(create IngressCreator) ObjectCreator
- func MutatingWebhookConfigurationObjectWrapper(create MutatingWebhookConfigurationCreator) ObjectCreator
- func NamespaceObjectWrapper(create NamespaceCreator) ObjectCreator
- func PodDisruptionBudgetObjectWrapper(create PodDisruptionBudgetCreator) ObjectCreator
- func RoleBindingObjectWrapper(create RoleBindingCreator) ObjectCreator
- func RoleObjectWrapper(create RoleCreator) ObjectCreator
- func SecretObjectWrapper(create SecretCreator) ObjectCreator
- func SeedObjectWrapper(create SeedCreator) ObjectCreator
- func ServiceAccountObjectWrapper(create ServiceAccountCreator) ObjectCreator
- func ServiceObjectWrapper(create ServiceCreator) ObjectCreator
- func StatefulSetObjectWrapper(create StatefulSetCreator) ObjectCreator
- func UnstructuredObjectWrapper(create UnstructuredCreator, emptyObject *unstructured.Unstructured) ObjectCreator
- func ValidatingWebhookConfigurationObjectWrapper(create ValidatingWebhookConfigurationCreator) ObjectCreator
- func VerticalPodAutoscalerObjectWrapper(create VerticalPodAutoscalerCreator) ObjectCreator
- type ObjectModifier
- type PodDisruptionBudgetCreator
- type RoleBindingCreator
- type RoleCreator
- type SecretCreator
- type SeedCreator
- type ServiceAccountCreator
- type ServiceCreator
- type StatefulSetCreator
- type UnstructuredCreator
- type ValidatingWebhookConfigurationCreator
- type VerticalPodAutoscalerCreator
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
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 ¶
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 runtime.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 ReconcileCertificates ¶
func ReconcileCertificates(ctx context.Context, namedGetters []NamedCertificateCreatorGetter, namespace string, client ctrlruntimeclient.Client, objectModifiers ...ObjectModifier) error
ReconcileCertificates will create and update the Certificates coming from the passed CertificateCreator 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 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 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 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 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 *apiregistrationv1beta1.APIService) (*apiregistrationv1beta1.APIService, error)
APIServiceCreator defines an interface to create/update APIServices
type CertificateCreator ¶
type CertificateCreator = func(existing *certmanagerv1alpha2.Certificate) (*certmanagerv1alpha2.Certificate, error)
CertificateCreator defines an interface to create/update Certificates
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 ¶
ConfigMapCreator defines an interface to create/update ConfigMaps
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 *apiextensionsv1beta1.CustomResourceDefinition) (*apiextensionsv1beta1.CustomResourceDefinition, error)
CustomResourceDefinitionCreator defines an interface to create/update CustomResourceDefinitions
type DaemonSetCreator ¶
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 IngressCreator ¶
type IngressCreator = func(existing *extensionsv1beta1.Ingress) (*extensionsv1beta1.Ingress, error)
IngressCreator defines an interface to create/update Ingresss
type MutatingWebhookConfigurationCreator ¶
type MutatingWebhookConfigurationCreator = func(existing *admissionregistrationv1beta1.MutatingWebhookConfiguration) (*admissionregistrationv1beta1.MutatingWebhookConfiguration, error)
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 NamedCertificateCreatorGetter ¶
type NamedCertificateCreatorGetter = func() (name string, create CertificateCreator)
NamedCertificateCreatorGetter 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 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 NamedIngressCreatorGetter ¶
type NamedIngressCreatorGetter = func() (name string, create IngressCreator)
NamedIngressCreatorGetter 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 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 ¶
NamespaceCreator defines an interface to create/update Namespaces
type ObjectCreator ¶
ObjectCreator defines an interface to create/update a runtime.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 CertificateObjectWrapper ¶
func CertificateObjectWrapper(create CertificateCreator) ObjectCreator
CertificateObjectWrapper adds a wrapper so the CertificateCreator 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 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 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 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 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(irozzo) 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 ¶
RoleCreator defines an interface to create/update Roles
type SecretCreator ¶
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 ¶
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 ¶
type ValidatingWebhookConfigurationCreator = func(existing *admissionregistrationv1beta1.ValidatingWebhookConfiguration) (*admissionregistrationv1beta1.ValidatingWebhookConfiguration, error)
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