backup

package
v0.0.0-...-5fddbe4 Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetNodeAffinityForBackupPod

func GetNodeAffinityForBackupPod(nodeName string, required bool) *corev1.Affinity

GetNodeAffinityForBackupPod returns an Affinity for the backup pod given the nodeName that the user's jupyter pod is running on. If required is true, a NodeAffinity with a RequiredDuringSchedulingIgnoredDuringExecution will be returned, otherwise a NodeAffinity with PreferredDuringSchedulingIgnoredDuringExecution will be returned.

func GetUserNameFromPVCName

func GetUserNameFromPVCName(s string) string

GetUserNameFromPVCName returns the username formatted as user.name or user-name

Types

This section is empty.

Jump to

Keyboard shortcuts

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