controllers

package
v0.0.0-...-aa7c712 Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2022 License: Apache-2.0 Imports: 18 Imported by: 0

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

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳