Documentation
¶
Index ¶
- Variables
- func GetReadyInstancePod(ctx context.Context, c client.Client, clusterName, namespace string) (*corev1.Pod, error)
- func JobCompleted(job *batchv1.Job) bool
- func JobFailed(job *batchv1.Job) bool
- func RunFinalizer[T client.Object](ctx context.Context, cl client.Client, obj T, finalizer string, ...) (bool, error)
- type CustomManager
- type FinalizerFunc
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrFinalizerPending = errors.New("finalizer pending")
Functions ¶
func GetReadyInstancePod ¶
func JobCompleted ¶
jobCompleted returns "true" if the Job provided completed successfully. Otherwise it returns "false".
Types ¶
type CustomManager ¶
CustomManager is needed to receive a crunchy controller without modifying the crunchy code. It should be used in the `(r *postgrescluster.Reconciler) SetupWithManager(mgr manager.Manager)` method. A Crunchy controller is received when `controller.New` is called which uses the `Add` method. This manager has a custom `Add` method which additionally sets a controller to the manager if provided.
func (*CustomManager) Controller ¶
func (m *CustomManager) Controller() controller.Controller
Click to show internal directories.
Click to hide internal directories.