Skip to main content

NewBuilder

NewBuilder creates a kubeBuilder which is used by grpc resolver.

def NewBuilder(
ctx: context.Context,
client: kubernetes.Interface,
schema: string
) - > resolver.Builder

Creates a kubeBuilder which is used by grpc resolver.

Parameters

NameTypeDescription
ctxcontext.ContextThe context for the builder, used for cancellation and deadlines.
clientkubernetes.InterfaceThe Kubernetes client interface used to interact with the Kubernetes API.
schemastringThe schema string for the resolver, defining how service names are resolved.

Returns

TypeDescription
resolver.BuilderA kubeBuilder instance configured with the provided context, Kubernetes client, and schema.