kubernetes

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2024 License: Apache-2.0 Imports: 17 Imported by: 0

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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