utils

package
v0.0.0-...-791b03a Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 11, 2026 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetConfigMapValue

func GetConfigMapValue(ctx context.Context, c client.Client, ref client.ObjectKey, key string) (string, error)

GetConfigMapValue fetches a value from a ConfigMap

func GetMetadataValue

func GetMetadataValue(metadata map[string]any, key string) (any, bool)

GetMetadataValue looks up an unprefixed key in A2A metadata, checking "adk_<key>" first then falling back to "kagent_<key>". This allows interoperability with upstream ADK (adk_ prefix) while preserving backward-compatibility with kagent's own kagent_ prefix.

func GetSecretValue

func GetSecretValue(ctx context.Context, c client.Client, ref client.ObjectKey, key string) (string, error)

GetSecretValue fetches a value from a Secret

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL