MCPcopy Create free account
hub / github.com/encoder-run/operator / namespace

Function namespace

cmd/repositoryembedder/main.go:550–556  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

548}
549
550func namespace() (string, error) {
551 ns, err := os.ReadFile("/var/run/secrets/kubernetes.io/serviceaccount/namespace")
552 if err != nil {
553 return "", fmt.Errorf("failed to read namespace from service account: %w", err)
554 }
555 return string(ns), nil
556}
557
558func getRedisearchClient(opts *redis.Options, index string) *redisearch.Client {
559 pool := &redigoredis.Pool{Dial: func() (redigoredis.Conn, error) {

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected