Documentation
¶
Index ¶
- func DefaultContainer(c *corev1.Container, procMountType *corev1.ProcMountType)
- func DefaultPodSpec(oldPodSpec, newPodSpec corev1.PodSpec) (corev1.PodSpec, error)
- func EnsureNamedObject(ctx context.Context, namespacedName types.NamespacedName, ...) error
- func ReconcileClusterRoleBindings(ctx context.Context, namedFactories []NamedClusterRoleBindingReconcilerFactory, ...) error
- func ReconcileClusterRoles(ctx context.Context, namedFactories []NamedClusterRoleReconcilerFactory, ...) error
- func ReconcileConfigMaps(ctx context.Context, namedFactories []NamedConfigMapReconcilerFactory, ...) error
- func ReconcileCronJobs(ctx context.Context, namedFactories []NamedCronJobReconcilerFactory, ...) error
- func ReconcileDaemonSets(ctx context.Context, namedFactories []NamedDaemonSetReconcilerFactory, ...) error
- func ReconcileDeployments(ctx context.Context, namedFactories []NamedDeploymentReconcilerFactory, ...) error
- func ReconcileEndpointSlices(ctx context.Context, namedFactories []NamedEndpointSliceReconcilerFactory, ...) error
- func ReconcileEndpoints(ctx context.Context, namedFactories []NamedEndpointsReconcilerFactory, ...) error
- func ReconcileIngresses(ctx context.Context, namedFactories []NamedIngressReconcilerFactory, ...) error
- func ReconcileJobs(ctx context.Context, namedFactories []NamedJobReconcilerFactory, ...) error
- func ReconcileMutatingWebhookConfigurations(ctx context.Context, ...) error
- func ReconcileNamespaces(ctx context.Context, namedFactories []NamedNamespaceReconcilerFactory, ...) error
- func ReconcilePodDisruptionBudgets(ctx context.Context, ...) error
- func ReconcileRoleBindings(ctx context.Context, namedFactories []NamedRoleBindingReconcilerFactory, ...) error
- func ReconcileRoles(ctx context.Context, namedFactories []NamedRoleReconcilerFactory, ...) error
- func ReconcileSecrets(ctx context.Context, namedFactories []NamedSecretReconcilerFactory, ...) error
- func ReconcileServiceAccounts(ctx context.Context, namedFactories []NamedServiceAccountReconcilerFactory, ...) error
- func ReconcileServices(ctx context.Context, namedFactories []NamedServiceReconcilerFactory, ...) error
- func ReconcileStatefulSets(ctx context.Context, namedFactories []NamedStatefulSetReconcilerFactory, ...) error
- func ReconcileUnstructureds(ctx context.Context, namedFactories []NamedUnstructuredReconcilerFactory, ...) error
- func ReconcileValidatingWebhookConfigurations(ctx context.Context, ...) error
- func SetPauseAnnotation(ann string)
- func WaitUntilObjectExistsInCacheConditionFunc(ctx context.Context, client ctrlruntimeclient.Client, log *zap.SugaredLogger, ...) wait.ConditionFunc
- type ClusterRoleBindingReconciler
- type ClusterRoleReconciler
- type ConfigMapReconciler
- type CronJobReconciler
- type DaemonSetReconciler
- type DeploymentReconciler
- type EndpointSliceReconciler
- type EndpointsReconciler
- type IngressReconciler
- type JobReconciler
- type MutatingWebhookConfigurationReconciler
- type NamedClusterRoleBindingReconcilerFactory
- type NamedClusterRoleReconcilerFactory
- type NamedConfigMapReconcilerFactory
- type NamedCronJobReconcilerFactory
- type NamedDaemonSetReconcilerFactory
- type NamedDeploymentReconcilerFactory
- type NamedEndpointSliceReconcilerFactory
- type NamedEndpointsReconcilerFactory
- type NamedIngressReconcilerFactory
- type NamedJobReconcilerFactory
- type NamedMutatingWebhookConfigurationReconcilerFactory
- type NamedNamespaceReconcilerFactory
- type NamedPodDisruptionBudgetReconcilerFactory
- type NamedRoleBindingReconcilerFactory
- type NamedRoleReconcilerFactory
- type NamedSecretReconcilerFactory
- type NamedServiceAccountReconcilerFactory
- type NamedServiceReconcilerFactory
- type NamedStatefulSetReconcilerFactory
- type NamedUnstructuredReconcilerFactory
- type NamedValidatingWebhookConfigurationReconcilerFactory
- type NamespaceReconciler
- type ObjectModifier
- type ObjectReconciler
- func ClusterRoleBindingObjectWrapper(reconciler ClusterRoleBindingReconciler) ObjectReconciler
- func ClusterRoleObjectWrapper(reconciler ClusterRoleReconciler) ObjectReconciler
- func ConfigMapObjectWrapper(reconciler ConfigMapReconciler) ObjectReconciler
- func CreateWithName(reconciler ObjectReconciler, name string) ObjectReconciler
- func CreateWithNamespace(reconciler ObjectReconciler, namespace string) ObjectReconciler
- func CronJobObjectWrapper(reconciler CronJobReconciler) ObjectReconciler
- func DaemonSetObjectWrapper(reconciler DaemonSetReconciler) ObjectReconciler
- func DeploymentObjectWrapper(reconciler DeploymentReconciler) ObjectReconciler
- func EndpointSliceObjectWrapper(reconciler EndpointSliceReconciler) ObjectReconciler
- func EndpointsObjectWrapper(reconciler EndpointsReconciler) ObjectReconciler
- func IngressObjectWrapper(reconciler IngressReconciler) ObjectReconciler
- func JobObjectWrapper(reconciler JobReconciler) ObjectReconciler
- func MutatingWebhookConfigurationObjectWrapper(reconciler MutatingWebhookConfigurationReconciler) ObjectReconciler
- func NamespaceObjectWrapper(reconciler NamespaceReconciler) ObjectReconciler
- func PodDisruptionBudgetObjectWrapper(reconciler PodDisruptionBudgetReconciler) ObjectReconciler
- func RoleBindingObjectWrapper(reconciler RoleBindingReconciler) ObjectReconciler
- func RoleObjectWrapper(reconciler RoleReconciler) ObjectReconciler
- func SecretObjectWrapper(reconciler SecretReconciler) ObjectReconciler
- func ServiceAccountObjectWrapper(reconciler ServiceAccountReconciler) ObjectReconciler
- func ServiceObjectWrapper(reconciler ServiceReconciler) ObjectReconciler
- func StatefulSetObjectWrapper(reconciler StatefulSetReconciler) ObjectReconciler
- func UnstructuredObjectWrapper(reconciler UnstructuredReconciler, emptyObject *unstructured.Unstructured) ObjectReconciler
- func ValidatingWebhookConfigurationObjectWrapper(reconciler ValidatingWebhookConfigurationReconciler) ObjectReconciler
- type PodDisruptionBudgetReconciler
- type RoleBindingReconciler
- type RoleReconciler
- type SecretReconciler
- type ServiceAccountReconciler
- type ServiceReconciler
- type StatefulSetReconciler
- type UnstructuredReconciler
- type ValidatingWebhookConfigurationReconciler
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. In addition, it sets default PodSpec values that KKP requires in all workloads, for example appropriate security settings. The following KKP-specific defaults are applied: - SecurityContext.SeccompProfile is set to be of type `RuntimeDefault` to enable seccomp isolation if not set.
func EnsureNamedObject ¶
func EnsureNamedObject(ctx context.Context, namespacedName types.NamespacedName, rawcreate ObjectReconciler, 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, namedFactories []NamedClusterRoleBindingReconcilerFactory, namespace string, client ctrlruntimeclient.Client, objectModifiers ...ObjectModifier) error
ReconcileClusterRoleBindings will create and update the ClusterRoleBindings coming from the passed ClusterRoleBindingReconciler slice.
func ReconcileClusterRoles ¶
func ReconcileClusterRoles(ctx context.Context, namedFactories []NamedClusterRoleReconcilerFactory, namespace string, client ctrlruntimeclient.Client, objectModifiers ...ObjectModifier) error
ReconcileClusterRoles will create and update the ClusterRoles coming from the passed ClusterRoleReconciler slice.
func ReconcileConfigMaps ¶
func ReconcileConfigMaps(ctx context.Context, namedFactories []NamedConfigMapReconcilerFactory, namespace string, client ctrlruntimeclient.Client, objectModifiers ...ObjectModifier) error
ReconcileConfigMaps will create and update the ConfigMaps coming from the passed ConfigMapReconciler slice.
func ReconcileCronJobs ¶
func ReconcileCronJobs(ctx context.Context, namedFactories []NamedCronJobReconcilerFactory, namespace string, client ctrlruntimeclient.Client, objectModifiers ...ObjectModifier) error
ReconcileCronJobs will create and update the CronJobs coming from the passed CronJobReconciler slice.
func ReconcileDaemonSets ¶
func ReconcileDaemonSets(ctx context.Context, namedFactories []NamedDaemonSetReconcilerFactory, namespace string, client ctrlruntimeclient.Client, objectModifiers ...ObjectModifier) error
ReconcileDaemonSets will create and update the DaemonSets coming from the passed DaemonSetReconciler slice.
func ReconcileDeployments ¶
func ReconcileDeployments(ctx context.Context, namedFactories []NamedDeploymentReconcilerFactory, namespace string, client ctrlruntimeclient.Client, objectModifiers ...ObjectModifier) error
ReconcileDeployments will create and update the Deployments coming from the passed DeploymentReconciler slice.
func ReconcileEndpointSlices ¶
func ReconcileEndpointSlices(ctx context.Context, namedFactories []NamedEndpointSliceReconcilerFactory, namespace string, client ctrlruntimeclient.Client, objectModifiers ...ObjectModifier) error
ReconcileEndpointSlices will create and update the EndpointSlices coming from the passed EndpointSliceReconciler slice.
func ReconcileEndpoints ¶
func ReconcileEndpoints(ctx context.Context, namedFactories []NamedEndpointsReconcilerFactory, namespace string, client ctrlruntimeclient.Client, objectModifiers ...ObjectModifier) error
ReconcileEndpoints will create and update the Endpoints coming from the passed EndpointsReconciler slice.
func ReconcileIngresses ¶
func ReconcileIngresses(ctx context.Context, namedFactories []NamedIngressReconcilerFactory, namespace string, client ctrlruntimeclient.Client, objectModifiers ...ObjectModifier) error
ReconcileIngresses will create and update the Ingresses coming from the passed IngressReconciler slice.
func ReconcileJobs ¶
func ReconcileJobs(ctx context.Context, namedFactories []NamedJobReconcilerFactory, namespace string, client ctrlruntimeclient.Client, objectModifiers ...ObjectModifier) error
ReconcileJobs will create and update the Jobs coming from the passed JobReconciler slice.
func ReconcileMutatingWebhookConfigurations ¶
func ReconcileMutatingWebhookConfigurations(ctx context.Context, namedFactories []NamedMutatingWebhookConfigurationReconcilerFactory, namespace string, client ctrlruntimeclient.Client, objectModifiers ...ObjectModifier) error
ReconcileMutatingWebhookConfigurations will create and update the MutatingWebhookConfigurations coming from the passed MutatingWebhookConfigurationReconciler slice.
func ReconcileNamespaces ¶
func ReconcileNamespaces(ctx context.Context, namedFactories []NamedNamespaceReconcilerFactory, namespace string, client ctrlruntimeclient.Client, objectModifiers ...ObjectModifier) error
ReconcileNamespaces will create and update the Namespaces coming from the passed NamespaceReconciler slice.
func ReconcilePodDisruptionBudgets ¶
func ReconcilePodDisruptionBudgets(ctx context.Context, namedFactories []NamedPodDisruptionBudgetReconcilerFactory, namespace string, client ctrlruntimeclient.Client, objectModifiers ...ObjectModifier) error
ReconcilePodDisruptionBudgets will create and update the PodDisruptionBudgets coming from the passed PodDisruptionBudgetReconciler slice.
func ReconcileRoleBindings ¶
func ReconcileRoleBindings(ctx context.Context, namedFactories []NamedRoleBindingReconcilerFactory, namespace string, client ctrlruntimeclient.Client, objectModifiers ...ObjectModifier) error
ReconcileRoleBindings will create and update the RoleBindings coming from the passed RoleBindingReconciler slice.
func ReconcileRoles ¶
func ReconcileRoles(ctx context.Context, namedFactories []NamedRoleReconcilerFactory, namespace string, client ctrlruntimeclient.Client, objectModifiers ...ObjectModifier) error
ReconcileRoles will create and update the Roles coming from the passed RoleReconciler slice.
func ReconcileSecrets ¶
func ReconcileSecrets(ctx context.Context, namedFactories []NamedSecretReconcilerFactory, namespace string, client ctrlruntimeclient.Client, objectModifiers ...ObjectModifier) error
ReconcileSecrets will create and update the Secrets coming from the passed SecretReconciler slice.
func ReconcileServiceAccounts ¶
func ReconcileServiceAccounts(ctx context.Context, namedFactories []NamedServiceAccountReconcilerFactory, namespace string, client ctrlruntimeclient.Client, objectModifiers ...ObjectModifier) error
ReconcileServiceAccounts will create and update the ServiceAccounts coming from the passed ServiceAccountReconciler slice.
func ReconcileServices ¶
func ReconcileServices(ctx context.Context, namedFactories []NamedServiceReconcilerFactory, namespace string, client ctrlruntimeclient.Client, objectModifiers ...ObjectModifier) error
ReconcileServices will create and update the Services coming from the passed ServiceReconciler slice.
func ReconcileStatefulSets ¶
func ReconcileStatefulSets(ctx context.Context, namedFactories []NamedStatefulSetReconcilerFactory, namespace string, client ctrlruntimeclient.Client, objectModifiers ...ObjectModifier) error
ReconcileStatefulSets will create and update the StatefulSets coming from the passed StatefulSetReconciler slice.
func ReconcileUnstructureds ¶
func ReconcileUnstructureds(ctx context.Context, namedFactories []NamedUnstructuredReconcilerFactory, namespace string, client ctrlruntimeclient.Client, objectModifiers ...ObjectModifier) error
ReconcileUnstructureds will create and update the Unstructureds coming from the passed UnstructuredReconciler slice.
func ReconcileValidatingWebhookConfigurations ¶
func ReconcileValidatingWebhookConfigurations(ctx context.Context, namedFactories []NamedValidatingWebhookConfigurationReconcilerFactory, namespace string, client ctrlruntimeclient.Client, objectModifiers ...ObjectModifier) error
ReconcileValidatingWebhookConfigurations will create and update the ValidatingWebhookConfigurations coming from the passed ValidatingWebhookConfigurationReconciler slice.
func SetPauseAnnotation ¶
func SetPauseAnnotation(ann string)
func WaitUntilObjectExistsInCacheConditionFunc ¶
func WaitUntilObjectExistsInCacheConditionFunc( ctx context.Context, client ctrlruntimeclient.Client, log *zap.SugaredLogger, namespacedName types.NamespacedName, obj ctrlruntimeclient.Object, ) wait.ConditionFunc
Types ¶
type ClusterRoleBindingReconciler ¶
type ClusterRoleBindingReconciler = func(existing *rbacv1.ClusterRoleBinding) (*rbacv1.ClusterRoleBinding, error)
ClusterRoleBindingReconciler defines an interface to create/update ClusterRoleBindings.
type ClusterRoleReconciler ¶
type ClusterRoleReconciler = func(existing *rbacv1.ClusterRole) (*rbacv1.ClusterRole, error)
ClusterRoleReconciler defines an interface to create/update ClusterRoles.
type ConfigMapReconciler ¶
ConfigMapReconciler defines an interface to create/update ConfigMaps.
type CronJobReconciler ¶
CronJobReconciler defines an interface to create/update CronJobs.
func DefaultCronJob ¶
func DefaultCronJob(reconciler CronJobReconciler) CronJobReconciler
DefaultCronJob defaults all CronJob attributes to the same values as they would get from the Kubernetes API. In addition, the CronJob's PodSpec template gets defaulted with KKP-specific values (see DefaultPodSpec for details).
type DaemonSetReconciler ¶
DaemonSetReconciler defines an interface to create/update DaemonSets.
func DefaultDaemonSet ¶
func DefaultDaemonSet(reconciler DaemonSetReconciler) DaemonSetReconciler
DefaultDaemonSet defaults all DaemonSet attributes to the same values as they would get from the Kubernetes API. In addition, the DaemonSet's PodSpec template gets defaulted with KKP-specific values (see DefaultPodSpec for details).
type DeploymentReconciler ¶
type DeploymentReconciler = func(existing *appsv1.Deployment) (*appsv1.Deployment, error)
DeploymentReconciler defines an interface to create/update Deployments.
func DefaultDeployment ¶
func DefaultDeployment(reconciler DeploymentReconciler) DeploymentReconciler
DefaultDeployment defaults all Deployment attributes to the same values as they would get from the Kubernetes API. In addition, the Deployment's PodSpec template gets defaulted with KKP-specific values (see DefaultPodSpec for details).
type EndpointSliceReconciler ¶
type EndpointSliceReconciler = func(existing *discoveryv1.EndpointSlice) (*discoveryv1.EndpointSlice, error)
EndpointSliceReconciler defines an interface to create/update EndpointSlices.
type EndpointsReconciler ¶
EndpointsReconciler defines an interface to create/update Endpoints.
type IngressReconciler ¶
type IngressReconciler = func(existing *networkingv1.Ingress) (*networkingv1.Ingress, error)
IngressReconciler defines an interface to create/update Ingresses.
type JobReconciler ¶
JobReconciler defines an interface to create/update Jobs.
type MutatingWebhookConfigurationReconciler ¶
type MutatingWebhookConfigurationReconciler = func(existing *admissionregistrationv1.MutatingWebhookConfiguration) (*admissionregistrationv1.MutatingWebhookConfiguration, error)
MutatingWebhookConfigurationReconciler defines an interface to create/update MutatingWebhookConfigurations.
type NamedClusterRoleBindingReconcilerFactory ¶
type NamedClusterRoleBindingReconcilerFactory = func() (name string, create ClusterRoleBindingReconciler)
NamedClusterRoleBindingReconcilerFactory returns the name of the resource and the corresponding Reconciler function.
type NamedClusterRoleReconcilerFactory ¶
type NamedClusterRoleReconcilerFactory = func() (name string, create ClusterRoleReconciler)
NamedClusterRoleReconcilerFactory returns the name of the resource and the corresponding Reconciler function.
type NamedConfigMapReconcilerFactory ¶
type NamedConfigMapReconcilerFactory = func() (name string, create ConfigMapReconciler)
NamedConfigMapReconcilerFactory returns the name of the resource and the corresponding Reconciler function.
type NamedCronJobReconcilerFactory ¶
type NamedCronJobReconcilerFactory = func() (name string, create CronJobReconciler)
NamedCronJobReconcilerFactory returns the name of the resource and the corresponding Reconciler function.
type NamedDaemonSetReconcilerFactory ¶
type NamedDaemonSetReconcilerFactory = func() (name string, create DaemonSetReconciler)
NamedDaemonSetReconcilerFactory returns the name of the resource and the corresponding Reconciler function.
type NamedDeploymentReconcilerFactory ¶
type NamedDeploymentReconcilerFactory = func() (name string, create DeploymentReconciler)
NamedDeploymentReconcilerFactory returns the name of the resource and the corresponding Reconciler function.
type NamedEndpointSliceReconcilerFactory ¶
type NamedEndpointSliceReconcilerFactory = func() (name string, create EndpointSliceReconciler)
NamedEndpointSliceReconcilerFactory returns the name of the resource and the corresponding Reconciler function.
type NamedEndpointsReconcilerFactory ¶
type NamedEndpointsReconcilerFactory = func() (name string, create EndpointsReconciler)
NamedEndpointsReconcilerFactory returns the name of the resource and the corresponding Reconciler function.
type NamedIngressReconcilerFactory ¶
type NamedIngressReconcilerFactory = func() (name string, create IngressReconciler)
NamedIngressReconcilerFactory returns the name of the resource and the corresponding Reconciler function.
type NamedJobReconcilerFactory ¶
type NamedJobReconcilerFactory = func() (name string, create JobReconciler)
NamedJobReconcilerFactory returns the name of the resource and the corresponding Reconciler function.
type NamedMutatingWebhookConfigurationReconcilerFactory ¶
type NamedMutatingWebhookConfigurationReconcilerFactory = func() (name string, create MutatingWebhookConfigurationReconciler)
NamedMutatingWebhookConfigurationReconcilerFactory returns the name of the resource and the corresponding Reconciler function.
type NamedNamespaceReconcilerFactory ¶
type NamedNamespaceReconcilerFactory = func() (name string, create NamespaceReconciler)
NamedNamespaceReconcilerFactory returns the name of the resource and the corresponding Reconciler function.
type NamedPodDisruptionBudgetReconcilerFactory ¶
type NamedPodDisruptionBudgetReconcilerFactory = func() (name string, create PodDisruptionBudgetReconciler)
NamedPodDisruptionBudgetReconcilerFactory returns the name of the resource and the corresponding Reconciler function.
type NamedRoleBindingReconcilerFactory ¶
type NamedRoleBindingReconcilerFactory = func() (name string, create RoleBindingReconciler)
NamedRoleBindingReconcilerFactory returns the name of the resource and the corresponding Reconciler function.
type NamedRoleReconcilerFactory ¶
type NamedRoleReconcilerFactory = func() (name string, create RoleReconciler)
NamedRoleReconcilerFactory returns the name of the resource and the corresponding Reconciler function.
type NamedSecretReconcilerFactory ¶
type NamedSecretReconcilerFactory = func() (name string, create SecretReconciler)
NamedSecretReconcilerFactory returns the name of the resource and the corresponding Reconciler function.
type NamedServiceAccountReconcilerFactory ¶
type NamedServiceAccountReconcilerFactory = func() (name string, create ServiceAccountReconciler)
NamedServiceAccountReconcilerFactory returns the name of the resource and the corresponding Reconciler function.
type NamedServiceReconcilerFactory ¶
type NamedServiceReconcilerFactory = func() (name string, create ServiceReconciler)
NamedServiceReconcilerFactory returns the name of the resource and the corresponding Reconciler function.
type NamedStatefulSetReconcilerFactory ¶
type NamedStatefulSetReconcilerFactory = func() (name string, create StatefulSetReconciler)
NamedStatefulSetReconcilerFactory returns the name of the resource and the corresponding Reconciler function.
type NamedUnstructuredReconcilerFactory ¶
type NamedUnstructuredReconcilerFactory = func() (name, kind, apiVersion string, create UnstructuredReconciler)
NamedUnstructuredReconcilerFactory returns the name of the resource and the corresponding creator function.
type NamedValidatingWebhookConfigurationReconcilerFactory ¶
type NamedValidatingWebhookConfigurationReconcilerFactory = func() (name string, create ValidatingWebhookConfigurationReconciler)
NamedValidatingWebhookConfigurationReconcilerFactory returns the name of the resource and the corresponding Reconciler function.
type NamespaceReconciler ¶
NamespaceReconciler defines an interface to create/update Namespaces.
type ObjectModifier ¶
type ObjectModifier func(create ObjectReconciler) ObjectReconciler
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 ObjectReconciler ¶
type ObjectReconciler = func(existing ctrlruntimeclient.Object) (ctrlruntimeclient.Object, error)
ObjectReconciler defines an interface to create/update a ctrlruntimeclient.Object.
func ClusterRoleBindingObjectWrapper ¶
func ClusterRoleBindingObjectWrapper(reconciler ClusterRoleBindingReconciler) ObjectReconciler
ClusterRoleBindingObjectWrapper adds a wrapper so the ClusterRoleBindingReconciler matches ObjectReconciler. This is needed as Go does not support function interface matching.
func ClusterRoleObjectWrapper ¶
func ClusterRoleObjectWrapper(reconciler ClusterRoleReconciler) ObjectReconciler
ClusterRoleObjectWrapper adds a wrapper so the ClusterRoleReconciler matches ObjectReconciler. This is needed as Go does not support function interface matching.
func ConfigMapObjectWrapper ¶
func ConfigMapObjectWrapper(reconciler ConfigMapReconciler) ObjectReconciler
ConfigMapObjectWrapper adds a wrapper so the ConfigMapReconciler matches ObjectReconciler. This is needed as Go does not support function interface matching.
func CreateWithName ¶
func CreateWithName(reconciler ObjectReconciler, name string) ObjectReconciler
func CreateWithNamespace ¶
func CreateWithNamespace(reconciler ObjectReconciler, namespace string) ObjectReconciler
func CronJobObjectWrapper ¶
func CronJobObjectWrapper(reconciler CronJobReconciler) ObjectReconciler
CronJobObjectWrapper adds a wrapper so the CronJobReconciler matches ObjectReconciler. This is needed as Go does not support function interface matching.
func DaemonSetObjectWrapper ¶
func DaemonSetObjectWrapper(reconciler DaemonSetReconciler) ObjectReconciler
DaemonSetObjectWrapper adds a wrapper so the DaemonSetReconciler matches ObjectReconciler. This is needed as Go does not support function interface matching.
func DeploymentObjectWrapper ¶
func DeploymentObjectWrapper(reconciler DeploymentReconciler) ObjectReconciler
DeploymentObjectWrapper adds a wrapper so the DeploymentReconciler matches ObjectReconciler. This is needed as Go does not support function interface matching.
func EndpointSliceObjectWrapper ¶
func EndpointSliceObjectWrapper(reconciler EndpointSliceReconciler) ObjectReconciler
EndpointSliceObjectWrapper adds a wrapper so the EndpointSliceReconciler matches ObjectReconciler. This is needed as Go does not support function interface matching.
func EndpointsObjectWrapper ¶
func EndpointsObjectWrapper(reconciler EndpointsReconciler) ObjectReconciler
EndpointsObjectWrapper adds a wrapper so the EndpointsReconciler matches ObjectReconciler. This is needed as Go does not support function interface matching.
func IngressObjectWrapper ¶
func IngressObjectWrapper(reconciler IngressReconciler) ObjectReconciler
IngressObjectWrapper adds a wrapper so the IngressReconciler matches ObjectReconciler. This is needed as Go does not support function interface matching.
func JobObjectWrapper ¶
func JobObjectWrapper(reconciler JobReconciler) ObjectReconciler
JobObjectWrapper adds a wrapper so the JobReconciler matches ObjectReconciler. This is needed as Go does not support function interface matching.
func MutatingWebhookConfigurationObjectWrapper ¶
func MutatingWebhookConfigurationObjectWrapper(reconciler MutatingWebhookConfigurationReconciler) ObjectReconciler
MutatingWebhookConfigurationObjectWrapper adds a wrapper so the MutatingWebhookConfigurationReconciler matches ObjectReconciler. This is needed as Go does not support function interface matching.
func NamespaceObjectWrapper ¶
func NamespaceObjectWrapper(reconciler NamespaceReconciler) ObjectReconciler
NamespaceObjectWrapper adds a wrapper so the NamespaceReconciler matches ObjectReconciler. This is needed as Go does not support function interface matching.
func PodDisruptionBudgetObjectWrapper ¶
func PodDisruptionBudgetObjectWrapper(reconciler PodDisruptionBudgetReconciler) ObjectReconciler
PodDisruptionBudgetObjectWrapper adds a wrapper so the PodDisruptionBudgetReconciler matches ObjectReconciler. This is needed as Go does not support function interface matching.
func RoleBindingObjectWrapper ¶
func RoleBindingObjectWrapper(reconciler RoleBindingReconciler) ObjectReconciler
RoleBindingObjectWrapper adds a wrapper so the RoleBindingReconciler matches ObjectReconciler. This is needed as Go does not support function interface matching.
func RoleObjectWrapper ¶
func RoleObjectWrapper(reconciler RoleReconciler) ObjectReconciler
RoleObjectWrapper adds a wrapper so the RoleReconciler matches ObjectReconciler. This is needed as Go does not support function interface matching.
func SecretObjectWrapper ¶
func SecretObjectWrapper(reconciler SecretReconciler) ObjectReconciler
SecretObjectWrapper adds a wrapper so the SecretReconciler matches ObjectReconciler. This is needed as Go does not support function interface matching.
func ServiceAccountObjectWrapper ¶
func ServiceAccountObjectWrapper(reconciler ServiceAccountReconciler) ObjectReconciler
ServiceAccountObjectWrapper adds a wrapper so the ServiceAccountReconciler matches ObjectReconciler. This is needed as Go does not support function interface matching.
func ServiceObjectWrapper ¶
func ServiceObjectWrapper(reconciler ServiceReconciler) ObjectReconciler
ServiceObjectWrapper adds a wrapper so the ServiceReconciler matches ObjectReconciler. This is needed as Go does not support function interface matching.
func StatefulSetObjectWrapper ¶
func StatefulSetObjectWrapper(reconciler StatefulSetReconciler) ObjectReconciler
StatefulSetObjectWrapper adds a wrapper so the StatefulSetReconciler matches ObjectReconciler. This is needed as Go does not support function interface matching.
func UnstructuredObjectWrapper ¶
func UnstructuredObjectWrapper(reconciler UnstructuredReconciler, emptyObject *unstructured.Unstructured) ObjectReconciler
UnstructuredObjectWrapper adds a wrapper so the UnstructuredReconciler matches ObjectReconciler. This is needed as Go does not support function interface matching.
func ValidatingWebhookConfigurationObjectWrapper ¶
func ValidatingWebhookConfigurationObjectWrapper(reconciler ValidatingWebhookConfigurationReconciler) ObjectReconciler
ValidatingWebhookConfigurationObjectWrapper adds a wrapper so the ValidatingWebhookConfigurationReconciler matches ObjectReconciler. This is needed as Go does not support function interface matching.
type PodDisruptionBudgetReconciler ¶
type PodDisruptionBudgetReconciler = func(existing *policyv1.PodDisruptionBudget) (*policyv1.PodDisruptionBudget, error)
PodDisruptionBudgetReconciler defines an interface to create/update PodDisruptionBudgets.
type RoleBindingReconciler ¶
type RoleBindingReconciler = func(existing *rbacv1.RoleBinding) (*rbacv1.RoleBinding, error)
RoleBindingReconciler defines an interface to create/update RoleBindings.
type RoleReconciler ¶
RoleReconciler defines an interface to create/update Roles.
type SecretReconciler ¶
SecretReconciler defines an interface to create/update Secrets.
type ServiceAccountReconciler ¶
type ServiceAccountReconciler = func(existing *corev1.ServiceAccount) (*corev1.ServiceAccount, error)
ServiceAccountReconciler defines an interface to create/update ServiceAccounts.
type ServiceReconciler ¶
ServiceReconciler defines an interface to create/update Services.
type StatefulSetReconciler ¶
type StatefulSetReconciler = func(existing *appsv1.StatefulSet) (*appsv1.StatefulSet, error)
StatefulSetReconciler defines an interface to create/update StatefulSets.
func DefaultStatefulSet ¶
func DefaultStatefulSet(reconciler StatefulSetReconciler) StatefulSetReconciler
DefaultStatefulSet defaults all StatefulSet attributes to the same values as they would get from the Kubernetes API. In addition, the StatefulSet's PodSpec template gets defaulted with KKP-specific values (see DefaultPodSpec for details).
type UnstructuredReconciler ¶
type UnstructuredReconciler = func(existing *unstructured.Unstructured) (*unstructured.Unstructured, error)
UnstructuredReconciler defines an interface to create/update Unstructureds.
type ValidatingWebhookConfigurationReconciler ¶
type ValidatingWebhookConfigurationReconciler = func(existing *admissionregistrationv1.ValidatingWebhookConfiguration) (*admissionregistrationv1.ValidatingWebhookConfiguration, error)
ValidatingWebhookConfigurationReconciler defines an interface to create/update ValidatingWebhookConfigurations.