context

package
v1.0.1-rc1 Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2022 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const AnnotationGid = "riotkit.org/volume-group-id"
View Source
const AnnotationUid = "riotkit.org/volume-user-id"
View Source
const InitContainerName = "init-volume-restore"
View Source
const LabelIsEnabled = "riotkit.org/volume-syncing-controller"
View Source
const SecretKeyNameForEncryption = "ENCRYPTED_PASSWORD"
View Source
const SideCarName = "volume-syncing-sidecar"

Variables

This section is empty.

Functions

This section is empty.

Types

type SynchronizationParameters

type SynchronizationParameters struct {
	LocalPath  string
	RemotePath string

	// Sync Options
	SyncSchedule             string
	SyncMethod               string
	SyncMaxOneSyncPerMinutes string

	// Environments already mixed together
	Env        map[string]string
	EnvSecrets []string // will be rendered as `envFrom`

	Debug bool

	// Clean up (sync vs copy)
	CleanUpRemote      bool
	ForceCleanUpRemote bool
	CleanUpLocal       bool
	ForceCleanUpLocal  bool

	// Optional owner UID & group GID
	Owner string
	Group string

	// Where to place initContainer
	InitContainerPlacement v1alpha1.InitContainerPlacementSpec
}

func NewSynchronizationParameters

func NewSynchronizationParameters(pod *corev1.Pod, syncDefinition *v1alpha1.PodFilesystemSync, env map[string]string) (SynchronizationParameters, error)

NewSynchronizationParameters constructs a unified parameters context mapped from CRD into a format used by Mutator the "env" parameter should be already a merged list of environment variables, with resolved `kind: Secret` objects into environment variables

func (*SynchronizationParameters) CreateCommandlineArgumentsForInitContainer

func (p *SynchronizationParameters) CreateCommandlineArgumentsForInitContainer() []string

CreateCommandlineArgumentsForInitContainer is creating commandline arguments for volume-syncing-controller remote-to-local-sync

func (*SynchronizationParameters) CreateCommandlineArgumentsForSideCar

func (p *SynchronizationParameters) CreateCommandlineArgumentsForSideCar() []string

CreateCommandlineArgumentsForSideCar is creating commandline args for volume-syncing-controller sync-to-remote

Jump to

Keyboard shortcuts

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