Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CredentialRotatorReconciler ¶
type CredentialRotatorReconciler struct { client.Client Recorder record.EventRecorder Scheme *runtime.Scheme }
CredentialRotatorReconciler reconciles a CredentialRotator object
func (*CredentialRotatorReconciler) Reconcile ¶
func (r *CredentialRotatorReconciler) 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.
This implementation creates a new resource key in the IBM Cloud. This key contains the API key as part of the credentials for accessing a service, for example a Cloudant DB. The credentials are stored in a Kubernetes secret which an application uses to access the backend service. After creating the new key, the app instances will be restarted to load the new credentials. The previous resource key will then be deleted.
For more details, check Reconcile and its Result here: - https://pkgo.dev/sigs.k8s.io/[email protected]/pkg/reconcile
func (*CredentialRotatorReconciler) SetupWithManager ¶
func (r *CredentialRotatorReconciler) SetupWithManager(mgr ctrl.Manager) error
SetupWithManager sets up the controller with the Manager.