Documentation
¶
Overview ¶
Package secretgenerator contains generator logic of secret resources used in Open Data Hub operator
Index ¶
Constants ¶
View Source
const ( SECRET_NAME_ANNOTATION = "secret-generator.opendatahub.io/name" //nolint SECRET_TYPE_ANNOTATION = "secret-generator.opendatahub.io/type" //nolint SECRET_LENGTH_ANNOTATION = "secret-generator.opendatahub.io/complexity" //nolint SECRET_OAUTH_CLIENT_ANNOTATION = "secret-generator.opendatahub.io/oauth-client-route" //nolint SECRET_DEFAULT_COMPLEXITY = 16 //nolint )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SecretGeneratorReconciler ¶
SecretGeneratorReconciler holds the controller configuration.
func (*SecretGeneratorReconciler) Reconcile ¶
func (r *SecretGeneratorReconciler) Reconcile(ctx context.Context, request ctrl.Request) (ctrl.Result, error)
Reconcile will generate new secret with random data for the annotated secret based on the specified type and complexity. This will avoid possible race conditions when a deployment mounts the secret before it is reconciled.
func (*SecretGeneratorReconciler) SetupWithManager ¶
func (r *SecretGeneratorReconciler) SetupWithManager(mgr ctrl.Manager) error
SetupWithManager sets up the controller with the Manager.
Click to show internal directories.
Click to hide internal directories.