config

package
v0.0.0-...-1f46663 Latest Latest
Warning

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

Go to latest
Published: Sep 13, 2022 License: MPL-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Parameters     Parameters
	TargetPath     string
	FilePermission os.FileMode
}

Config represents all of the provider's configurable behaviour from the SecretProviderClass, transmitted in the MountRequest proto message: * Parameters from the `Attributes` field. * Plus the rest of the proto fields we consume. See sigs.k8s.io/secrets-store-csi-driver/provider/v1alpha1/service.pb.go

func Parse

func Parse(parametersStr, targetPath, permissionStr string) (Config, error)

type FlagsConfig

type FlagsConfig struct {
	Endpoint   string
	Debug      bool
	Version    bool
	HealthAddr string
}

type Parameters

type Parameters struct {
	RoleName       string
	CertSpecs      []v1.CertSpec
	PodInfo        PodInfo
	Audience       string
	ObjectFormat   string
	ObjectEncoding string
}

type PodInfo

type PodInfo struct {
	Name               string
	UID                types.UID
	Namespace          string
	ServiceAccountName string
}

type Secret

type Secret struct {
	ObjectName     string                 `yaml:"objectName,omitempty"`
	SecretPath     string                 `yaml:"secretPath,omitempty"`
	SecretKey      string                 `yaml:"secretKey,omitempty"`
	Method         string                 `yaml:"method,omitempty"`
	SecretArgs     map[string]interface{} `yaml:"secretArgs,omitempty"`
	FilePermission os.FileMode            `yaml:"filePermission,omitempty"`
}

Jump to

Keyboard shortcuts

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