Documentation
¶
Index ¶
- func DeleteResources(ctx context.Context, client client.Client, objects []client.Object) error
- func RemoveFinalizer(object metav1.Object, finalizer string) bool
- type ReconcileParams
- type ReconcileResult
- func ReconcileConfigMap(ctx context.Context, expected *corev1.ConfigMap, owner metav1.Object, ...) (ReconcileResult, error)
- func ReconcileDeployment(ctx context.Context, expected *appsv1.Deployment, owner metav1.Object, ...) (ReconcileResult, error)
- func ReconcileIngress(ctx context.Context, expected *networkingv1.Ingress, owner metav1.Object, ...) (ReconcileResult, error)
- func ReconcileSecret(ctx context.Context, expected *corev1.Secret, owner metav1.Object, ...) (ReconcileResult, error)
- func ReconcileService(ctx context.Context, expected *corev1.Service, owner metav1.Object, ...) (ReconcileResult, error)
- func ReconcileStatefulSet(ctx context.Context, expected *appsv1.StatefulSet, owner metav1.Object, ...) (ReconcileResult, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DeleteResources ¶
DeleteResources takes a slice of Kubernetes objects and deletes them from a Kubernetes cluster
DeleteResources returns an error if it fails to delete the object
Types ¶
type ReconcileParams ¶
type ReconcileParams struct { Context context.Context Client client.Client Scheme *runtime.Scheme Expected client.Object Owner metav1.Object // contains filtered or unexported fields }
ReconcileParams contains all required information to reconcile an object
type ReconcileResult ¶
ReconcileResult contains information about a reconciled resource.
Updated shows that the reconciled resource has been updated on the Kubernetes cluster. Requeue shows that the operator should requeue the current reconcile. RequeueAfter provides a timeout which should be used by the operator to requeue the current reconcile.
func ReconcileConfigMap ¶
func ReconcileConfigMap(ctx context.Context, expected *corev1.ConfigMap, owner metav1.Object, client client.Client, scheme *runtime.Scheme) (ReconcileResult, error)
ReconcileConfigMap takes a ConfigMap and creates or updates it on a Kubernetes cluster. It will generate a revision hash that will be added to the object as a label and add the controller reference to the given owner object.
A successful ReconcileConfigMap returns a ReconcileResult and nil. A failed ReconcileConfigMap returns an empty ReconsileResult and an error.
func ReconcileDeployment ¶
func ReconcileDeployment(ctx context.Context, expected *appsv1.Deployment, owner metav1.Object, client client.Client, scheme *runtime.Scheme) (ReconcileResult, error)
ReconcileDeployment takes a Deployment and creates or updates it on a Kubernetes cluster. It will generate a revision hash that will be added to the object as a label and add the controller reference to the given owner object.
A successful ReconcileDeployment returns a ReconcileResult and nil. A failed ReconcileDeployment returns an empty ReconsileResult and an error.
func ReconcileIngress ¶
func ReconcileIngress(ctx context.Context, expected *networkingv1.Ingress, owner metav1.Object, client client.Client, scheme *runtime.Scheme) (ReconcileResult, error)
ReconcileIngress takes an Ingress and creates or updates it on a Kubernetes cluster. It will generate a revision hash that will be added to the object as a label and add the controller reference to the given owner object.
A successful ReconcileIngress returns a ReconcileResult and nil. A failed ReconcileIngress returns an empty ReconsileResult and an error.
func ReconcileSecret ¶
func ReconcileSecret(ctx context.Context, expected *corev1.Secret, owner metav1.Object, client client.Client, scheme *runtime.Scheme) (ReconcileResult, error)
ReconcileSecret takes a Secret and creates or updates it on a Kubernetes cluster. It will generate a revision hash that will be added to the object as a label and add the controller reference to the given owner object.
A successful ReconcileSecret returns a ReconcileResult and nil. A failed ReconcileSecret returns an empty ReconsileResult and an error.
func ReconcileService ¶
func ReconcileService(ctx context.Context, expected *corev1.Service, owner metav1.Object, client client.Client, scheme *runtime.Scheme) (ReconcileResult, error)
ReconcileService takes a Service and creates or updates it on a Kubernetes cluster. It will generate a revision hash that will be added to the object as a label and add the controller reference to the given owner object.
A successful ReconcileService returns a ReconcileResult and nil. A failed ReconcileService returns an empty ReconsileResult and an error.
func ReconcileStatefulSet ¶
func ReconcileStatefulSet(ctx context.Context, expected *appsv1.StatefulSet, owner metav1.Object, client client.Client, scheme *runtime.Scheme) (ReconcileResult, error)
ReconcileStatefulSet takes a StatefulSet and creates or updates it on a Kubernetes cluster. It will generate a revision hash that will be added to the object as a label and add the controller reference to the given owner object.
A successful ReconcileStatefulSet returns a ReconcileResult and nil. A failed ReconcileStatefulSet returns an empty ReconsileResult and an error.