Documentation ¶
Index ¶
- Constants
- func Int32ToPtr(i int32) *int32
- type PgadminReconciler
- func (r *PgadminReconciler) CreateUpdateDeployment(ctx context.Context, Pgadmin *pgadminv1alpha1.Pgadmin) error
- func (r *PgadminReconciler) CreateUpdateService(ctx context.Context, Pgadmin *pgadminv1alpha1.Pgadmin) error
- func (r *PgadminReconciler) DeleteDeployment(ctx context.Context, Pgadmin *pgadminv1alpha1.Pgadmin) error
- func (r *PgadminReconciler) DeleteService(ctx context.Context, Pgadmin *pgadminv1alpha1.Pgadmin) error
- func (r *PgadminReconciler) GetPgadminLabels() map[string]string
- func (r *PgadminReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)
- func (r *PgadminReconciler) SetLogger(ctx context.Context)
- func (r *PgadminReconciler) SetupWithManager(mgr ctrl.Manager) error
- func (r *PgadminReconciler) ValidateCredsSecret(ctx context.Context, Pgadmin *pgadminv1alpha1.Pgadmin) error
Constants ¶
const PgAdminFinalizer string = "pgadmin.dhope-nagesh.io/finalizer"
Variables ¶
This section is empty.
Functions ¶
func Int32ToPtr ¶
Types ¶
type PgadminReconciler ¶
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 ¶
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