controllers

package
v0.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 18, 2022 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const PgAdminFinalizer string = "pgadmin.dhope-nagesh.io/finalizer"

Variables

This section is empty.

Functions

func Int32ToPtr

func Int32ToPtr(i int32) *int32

Types

type PgadminReconciler

type PgadminReconciler struct {
	client.Client
	Logger logr.Logger
	Scheme *runtime.Scheme
}

PgadminReconciler reconciles a Pgadmin object

func (*PgadminReconciler) CreateUpdateDeployment

func (r *PgadminReconciler) CreateUpdateDeployment(ctx context.Context, Pgadmin *pgadminv1alpha1.Pgadmin) error

CreateUpdateDeployment creates or update pgadmin deployment

func (*PgadminReconciler) CreateUpdateService

func (r *PgadminReconciler) CreateUpdateService(ctx context.Context, Pgadmin *pgadminv1alpha1.Pgadmin) error

CreateUpdateService creates or update pgadmin service

func (*PgadminReconciler) DeleteDeployment

func (r *PgadminReconciler) DeleteDeployment(ctx context.Context, Pgadmin *pgadminv1alpha1.Pgadmin) error

DeleteDeployment cleanups pgadmin deployment

func (*PgadminReconciler) DeleteService

func (r *PgadminReconciler) DeleteService(ctx context.Context, Pgadmin *pgadminv1alpha1.Pgadmin) error

DeleteService cleanups pgadmin service

func (*PgadminReconciler) GetPgadminLabels

func (r *PgadminReconciler) GetPgadminLabels() map[string]string

GetPgadminLabels return labels for pgadmin deployment

func (*PgadminReconciler) Reconcile

func (r *PgadminReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)

Reconcile is part of the main kubernetes reconciliation loop which aims to move the current state of the cluster closer to the desired state. TODO(user): Modify the Reconcile function to compare the state specified by the Pgadmin object against the actual cluster state, and then perform operations to make the cluster state reflect the state specified by the user.

For more details, check Reconcile and its Result here: - https://pkg.go.dev/sigs.k8s.io/controller-runtime@v0.13.0/pkg/reconcile

func (*PgadminReconciler) SetLogger

func (r *PgadminReconciler) SetLogger(ctx context.Context)

SetLogger set Logger object on reconciler object

func (*PgadminReconciler) SetupWithManager

func (r *PgadminReconciler) SetupWithManager(mgr ctrl.Manager) error

SetupWithManager sets up the controller with the Manager.

func (*PgadminReconciler) ValidateCredsSecret

func (r *PgadminReconciler) ValidateCredsSecret(ctx context.Context, Pgadmin *pgadminv1alpha1.Pgadmin) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL