Documentation
¶
Index ¶
Constants ¶
View Source
const ( // FinalizerName is a constant for the name of a finalizer used by this controller. FinalizerName = "persephone.sci.cloud.sap/secret-controller" // RotationThreshold is the fraction of a Secret's total validity after which new credentials should be generated. RotationThreshold = 0.5 )
View Source
const ControllerName = "secret"
ControllerName is the name of the controller.
Variables ¶
View Source
var ( // RequeueAfterWhenSecretStillInUse is the duration with which a Secret with a deletion timestamp will be requeued // in case it is still in use by its Shoot. RequeueAfterWhenSecretStillInUse = 5 * time.Minute // RequeueAfterWhenSecretOwnsClusterServiceUser is the duration with which a Secret with a deletion timestamp will // be requeued in case it owns the OpenStack cluster service user but is not the last Secret existing in the system // for the respective Shoot cluster it belongs to. RequeueAfterWhenSecretOwnsClusterServiceUser = 10 * time.Second )
Functions ¶
This section is empty.
Types ¶
type Reconciler ¶
type Reconciler struct {
// Client is the controller-runtime Kubernetes client.
Client client.Client
// OpenStackClientSet is a mapping of OpenStack region to respective client set.
OpenStackClientSet openstacklocal.RegionOpenStackClientSet
// Clock is a clock.
Clock clock.Clock
// LandscapeName is the name of the landscape.
LandscapeName string
// contains filtered or unexported fields
}
Reconciler reconciles Secret resources.
func (*Reconciler) AddToManager ¶
func (r *Reconciler) AddToManager(mgr manager.Manager, maxConcurrentReconciles int) error
AddToManager adds the controller to the manager.
func (*Reconciler) InternalSecretPredicate ¶
func (r *Reconciler) InternalSecretPredicate() predicate.Predicate
InternalSecretPredicate returns the predicate for InternalSecret watches.
Click to show internal directories.
Click to hide internal directories.