kubernetes

package
v0.0.0-...-e19464a Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2025 License: AGPL-3.0 Imports: 37 Imported by: 0

Documentation

Overview

Package kubernetes provides the kubernetes secrets backend.

Index

Constants

View Source
const (
	// BackendType is the type of the Kubernetes secrets backend.
	BackendType = "kubernetes"
)

Variables

View Source
var (
	NewK8sClient = func(config *rest.Config) (kubernetes.Interface, error) {
		return kubernetes.NewForConfig(config)
	}
	InClusterConfig = func() (*rest.Config, error) {
		return rest.InClusterConfig()
	}
)

These are patched for testing.

Functions

func BuiltInConfig

func BuiltInConfig(modelName string, controllerUUID string, cloudSpec cloudspec.CloudSpec) (*provider.BackendConfig, error)

BuiltInConfig returns the config needed to create a k8s secrets backend using the same namespace as the specified model.

func BuiltInName

func BuiltInName(modelName string) string

BuiltInName returns the backend name for the k8s in-model backend.

func IsBuiltInName

func IsBuiltInName(backendName string) bool

IsBuiltInName returns true of the backend name is the built-in one.

func NewProvider

func NewProvider() provider.SecretBackendProvider

NewProvider returns a Kubernetes secrets provider.

Types

This section is empty.

Directories

Path Synopsis
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.

Jump to

Keyboard shortcuts

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