controllers

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: May 10, 2024 License: Apache-2.0 Imports: 24 Imported by: 0

Documentation

Overview

Copyright 2022, ForgeRock AS.

/ Manage Volume Snapshot Creation

Index

Constants

View Source
const (
	SnapshotApiGroupString = "snapshot.storage.k8s.io"
	// where we mount the PVC on the DS pod
	// TODO: Update when https://bugster.forgerock.org/jira/browse/OPENDJ-8372 is fixed
	DSDataPath = "/opt/opendj/data"
	// The path in the pod where PEM secrets are mounted
	MasterKeyPath     = "/var/run/secrets/ds-master-keypair"
	SSLKeyPath        = "/var/run/secrets/ds-ssl-keypair"
	TruststoreKeyPath = "/var/run/secrets/truststore"
)
View Source
const LabelApplicationName = "ds"

LabelApplicationName is the value for app.kubernetes.io/name. See https://kubernetes.io/docs/concepts/overview/working-with-objects/common-labels/

View Source
const LastPasswordCheckAnnotation = "directory.forgerock.io/last-password-check"

annotation we add to the CR to record when we last checked the passwords to see if they are correct in the diretory

View Source
const PasswordCheckTimeSeconds = 300

PasswordCheckTimeSeconds is the number of seconds between password checks. This is to avoid overloading the directory with frequent password checks/changes

View Source
const PasswordUpdatedStatus = "password-updated-status"
View Source
const (
	SnapshotApiGroup = "snapshot.storage.k8s.io"
)

Variables

View Source
var DebugContainer = false

If DebugContainer is true, we inject debug init and sidecars into the DS pod. This is needed to chown the hostpath CSI volumes to the forgerock user.

View Source
var DevMode = false

DevMode is true if running outside of K8S. Port forward to localhost:1636 in development

View Source
var ForgeRockUser int64 = 11111

These need to be vars (not constants) as we use them in templates, and Go wants a pointer to the var, not a const.

View Source
var RootGroup int64 = 0

Functions

This section is empty.

Types

type DirectoryBackupReconciler added in v0.1.0

type DirectoryBackupReconciler struct {
	client.Client
	Scheme *runtime.Scheme
}

DirectoryBackupReconciler reconciles a DirectoryBackup object

func (*DirectoryBackupReconciler) Reconcile added in v0.1.0

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

func (*DirectoryBackupReconciler) SetupWithManager added in v0.1.0

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

SetupWithManager sets up the controller with the Manager.

type DirectoryRestoreReconciler added in v0.1.0

type DirectoryRestoreReconciler struct {
	client.Client
	Scheme *runtime.Scheme
}

DirectoryRestoreReconciler reconciles a DirectoryRestore object

func (*DirectoryRestoreReconciler) Reconcile added in v0.1.0

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

func (*DirectoryRestoreReconciler) SetupWithManager added in v0.1.0

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

SetupWithManager sets up the controller with the Manager.

type DirectoryServiceReconciler

type DirectoryServiceReconciler struct {
	client.Client
	Scheme *runtime.Scheme
	// contains filtered or unexported fields
}

DirectoryServiceReconciler reconciles a DirectoryService object

func (*DirectoryServiceReconciler) Reconcile

Reconcile loop for DS controller

func (*DirectoryServiceReconciler) SetupWithManager

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

SetupWithManager stuff

Jump to

Keyboard shortcuts

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