storage

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 26, 2026 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ApplyEnv

func ApplyEnv(cfg *Config, podSpec *corev1.PodSpec, container *corev1.Container, timeout string)

ApplyEnv applies storage-related env vars, volumes, and mounts to the provided container/pod spec. The helper is provider-aware and does nothing when cfg is nil.

func ApplyEnvE

func ApplyEnvE(cfg *Config, podSpec *corev1.PodSpec, container *corev1.Container, timeout string) error

ApplyEnvE applies storage-related env vars, volumes, and mounts to the provided container/pod spec, returning configuration errors to callers that want to fail fast.

Types

type Config

type Config struct {
	S3   *S3Config
	File *FileConfig
}

Config represents the storage provider configuration required to wire env vars, secrets, and volumes into controller-managed workloads.

type FileConfig

type FileConfig struct {
	Path            string
	VolumeClaimName string
	EmptyDir        *corev1.EmptyDirVolumeSource
}

FileConfig configures a filesystem-backed storage target.

type S3Config

type S3Config struct {
	Bucket       string
	Region       string
	Endpoint     string
	SecretName   string
	UsePathStyle bool
}

S3Config captures the parameters needed to talk to an S3-compatible backend.

Jump to

Keyboard shortcuts

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