Skip to main content

Setup

Registers the SecretService handler on the SetupContext mux. Requires sc.K8sClient and sc.Namespace to be set.

def Setup(
ctx: context.Context,
sc: *app.SetupContext
) - > error

Registers the SecretService handler on the SetupContext mux. This function requires sc.K8sClient and sc.Namespace to be set to properly initialize the service and its dependencies.

Parameters

NameTypeDescription
ctxcontext.ContextThe context for the operation, used for cancellation and tracing.
sc*app.SetupContextThe setup context containing the Kubernetes client, namespace, and the mux to register the handler on.

Returns

TypeDescription
errorAn error if the SecretService handler cannot be registered or if OpenTelemetry providers cannot be set up.