Documentation ¶
Index ¶
- Constants
- Variables
- func NewDatabase(ctx context.Context, r *DatabaseReconciler, db *v1alpha1.Database, ...) (bool, error)
- func NewUsers(ctx context.Context, r *DatabaseReconciler, db *v1alpha1.Database, ...) error
- func SyncUsers(ctx context.Context, r *DatabaseReconciler, db *v1alpha1.Database, ...) error
- type DatabaseReconciler
Constants ¶
View Source
const (
DatabaseContainerName = "oracledb"
)
Variables ¶
View Source
var (
CheckStatusInstanceFunc = controllers.CheckStatusInstanceFunc
)
These variables allow to plug in mock objects for functional tests
Functions ¶
func NewDatabase ¶
func NewDatabase(ctx context.Context, r *DatabaseReconciler, db *v1alpha1.Database, dbDomain, cdbName string, log logr.Logger) (bool, error)
NewDatabase attempts to create a new PDB if it doesn't exist yet. The first return value of NewDatabase is "bail out or not?". If a PDB is new, just created now, NewDatabase returns bail=false. If it's an existing PDB, NewDatabase returns bail=true (so that the rest of the workflow, e.g. creating users step, is not attempted).
Types ¶
type DatabaseReconciler ¶
type DatabaseReconciler struct { client.Client Log logr.Logger Scheme *runtime.Scheme Recorder record.EventRecorder InstanceLocks *sync.Map DatabaseClientFactory controllers.DatabaseClientFactory }
DatabaseReconciler reconciles a Database object
func (*DatabaseReconciler) Reconcile ¶
Reconcile is the main method that reconciles the Database resource.
func (*DatabaseReconciler) SetupWithManager ¶
func (r *DatabaseReconciler) SetupWithManager(mgr ctrl.Manager) error
SetupWithManager starts the reconciler loop.
Click to show internal directories.
Click to hide internal directories.