kubernetes

package
v0.0.0-...-cf6de95 Latest Latest
Warning

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

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

Documentation

Overview

Package kubernetes provides the kubernetes secrets backend.

Index

Constants

View Source
const (
	// BackendName is the name of the Kubernetes secrets backend.
	BackendName = "kubernetes"
	// 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(controllerName, modelName 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 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