Documentation

Overview

Package reconcile implements reconcile functions for common Kubernetes types.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Certificate

func Certificate(
	ctx context.Context,
	log logr.Logger,
	c client.Client,
	desiredCertificate *certv1alpha2.Certificate,
) (currentCertificate *certv1alpha2.Certificate, err error)

Certificate reconciles a cert-manager.io/v1alpha2, Kind=Certificate.

func ClusterRole

func ClusterRole(
	ctx context.Context,
	log logr.Logger,
	c client.Client,
	desiredClusterRole *rbacv1.ClusterRole,
) (currentClusterRole *rbacv1.ClusterRole, err error)

ClusterRole reconciles a rbac.authorization.k8s.io/v1, Kind=ClusterRole.

func ClusterRoleBinding

func ClusterRoleBinding(
	ctx context.Context,
	log logr.Logger,
	c client.Client,
	desiredClusterRoleBinding *rbacv1.ClusterRoleBinding,
) (currentClusterRoleBinding *rbacv1.ClusterRoleBinding, err error)

ClusterRoleBinding reconciles a rbac.authorization.k8s.io/v1, Kind=ClusterRoleBinding.

func CustomResourceDefinition

func CustomResourceDefinition(
	ctx context.Context,
	log logr.Logger,
	c client.Client,
	desiredCRD *apiextensionsv1.CustomResourceDefinition,
) (currentCRD *apiextensionsv1.CustomResourceDefinition, err error)

CustomResourceDefinition reconciles a apiextensions.k8s.io/v1, Kind=CustomResourceDefinition.

func Deployment

func Deployment(
	ctx context.Context,
	log logr.Logger,
	c client.Client,
	desiredDeployment *appsv1.Deployment,
) (currentDeployment *appsv1.Deployment, err error)

Deployment reconciles a apps/v1, Kind=Deployment.

func Issuer

func Issuer(
	ctx context.Context,
	log logr.Logger,
	c client.Client,
	desiredIssuer *certv1alpha2.Issuer,
) (currentIssuer *certv1alpha2.Issuer, err error)

Issuer reconciles a cert-manager.io/v1alpha2, Kind=Issuer.

func MutatingWebhookConfiguration

func MutatingWebhookConfiguration(
	ctx context.Context,
	log logr.Logger,
	c client.Client,
	desiredMutatingWebhookConfiguration *adminv1beta1.MutatingWebhookConfiguration,
) (currentMutatingWebhookConfiguration *adminv1beta1.MutatingWebhookConfiguration, err error)

MutatingWebhookConfiguration reconciles a admissionregistration.k8s.io/v1beta1, Kind=MutatingWebhookConfiguration.

func Role

func Role(
	ctx context.Context,
	log logr.Logger,
	c client.Client,
	desiredRole *rbacv1.Role,
) (currentRole *rbacv1.Role, err error)

Role reconciles a rbac.authorization.k8s.io/v1, Kind=Role.

func RoleBinding

func RoleBinding(
	ctx context.Context,
	log logr.Logger,
	c client.Client,
	desiredRoleBinding *rbacv1.RoleBinding,
) (currentRoleBinding *rbacv1.RoleBinding, err error)

RoleBinding reconciles a rbac.authorization.k8s.io/v1, Kind=RoleBinding.

func Service

func Service(
	ctx context.Context,
	log logr.Logger,
	c client.Client,
	desiredService *corev1.Service,
) (currentService *corev1.Service, err error)

Service reconciles a /v1, Kind=Service.

func ServiceAccount

func ServiceAccount(
	ctx context.Context,
	log logr.Logger,
	c client.Client,
	desiredServiceAccount *corev1.ServiceAccount,
) (currentServiceAccount *corev1.ServiceAccount, err error)

ServiceAccount reconciles a /v1, Kind=ServiceAccount.

func Unstructured

func Unstructured(
	ctx context.Context,
	log logr.Logger,
	c client.Client,
	desiredObject *unstructured.Unstructured,
) (current metav1.Object, err error)

Unstructured reconciles a unstructured.Unstructured object, by calling the right typed reconcile function for the given GVK. Returns the "real" type, e.g.: *corev1.Service, *appsv1.Deployment.

func ValidatingWebhookConfiguration

func ValidatingWebhookConfiguration(
	ctx context.Context,
	log logr.Logger,
	c client.Client,
	desiredValidatingWebhookConfiguration *adminv1beta1.ValidatingWebhookConfiguration,
) (currentValidatingWebhookConfiguration *adminv1beta1.ValidatingWebhookConfiguration, err error)

ValidatingWebhookConfiguration reconciles a admissionregistration.k8s.io/v1beta1, Kind=ValidatingWebhookConfiguration.

Types

This section is empty.