credentials

package
v0.12.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	CredentialConfigKeyName     = "credentials"
	UriSchemePlaceholder        = "<scheme-placeholder>"
	StorageConfigEnvKey         = "STORAGE_CONFIG"
	StorageOverrideConfigEnvKey = "STORAGE_OVERRIDE_CONFIG"
	DefaultStorageSecretKey     = "default"
	UnsupportedStorageSpecType  = "storage type must be one of [%s]. storage type [%s] is not supported"
	MissingBucket               = "format [%s] requires a bucket but one wasn't found in storage data or parameters"
	AwsIrsaAnnotationKey        = "eks.amazonaws.com/role-arn"
)

Variables

View Source
var (
	SupportedStorageSpecTypes = []string{"s3", "hdfs", "webhdfs"}
	StorageBucketTypes        = []string{"s3"}
)

Functions

This section is empty.

Types

type CredentialBuilder

type CredentialBuilder struct {
	// contains filtered or unexported fields
}

func NewCredentialBuilder added in v0.11.0

func NewCredentialBuilder(client client.Client, config *v1.ConfigMap) *CredentialBuilder

func (*CredentialBuilder) CreateSecretVolumeAndEnv

func (c *CredentialBuilder) CreateSecretVolumeAndEnv(namespace string, annotations map[string]string, serviceAccountName string,
	container *v1.Container, volumes *[]v1.Volume) error

func (*CredentialBuilder) CreateStorageSpecSecretEnvs added in v0.9.0

func (c *CredentialBuilder) CreateStorageSpecSecretEnvs(namespace string, annotations map[string]string, storageKey string,
	overrideParams map[string]string, container *v1.Container) error

type CredentialConfig

type CredentialConfig struct {
	S3                          s3.S3Config   `json:"s3,omitempty"`
	GCS                         gcs.GCSConfig `json:"gcs,omitempty"`
	StorageSpecSecretName       string        `json:"storageSpecSecretName,omitempty"`
	StorageSecretNameAnnotation string        `json:"storageSecretNameAnnotation,omitempty"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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