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 ¶
BuiltInName returns the backend name for the k8s in-model backend.
func IsBuiltInName ¶
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.
Click to show internal directories.
Click to hide internal directories.