Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewDatabase ¶
func NewDatabase( ctx context.Context, kargoClient client.Client, cfg DatabaseConfig, ) credentials.Database
NewDatabase initializes and returns an implementation of the credentials.Database interface that utilizes a Kubernetes controller runtime client to retrieve Credentials stored in Kubernetes Secrets.
Types ¶
type DatabaseConfig ¶
type DatabaseConfig struct {
GlobalCredentialsNamespaces []string `envconfig:"GLOBAL_CREDENTIALS_NAMESPACES" default:""`
}
DatabaseConfig represents configuration for a Kubernetes based implementation of the credentials.Database interface.
func DatabaseConfigFromEnv ¶
func DatabaseConfigFromEnv() DatabaseConfig
Click to show internal directories.
Click to hide internal directories.