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
| Name | Type | Description |
|---|---|---|
| ctx | context.Context | The context for the operation, used for cancellation and tracing. |
| sc | *app.SetupContext | The setup context containing the Kubernetes client, namespace, and the mux to register the handler on. |
Returns
| Type | Description |
|---|---|
error | An error if the SecretService handler cannot be registered or if OpenTelemetry providers cannot be set up. |