Documentation ¶
Index ¶
- Constants
- Variables
- func ConfigNamesFromContainer(namespace string, container *corev1.Container) []string
- func ConfigNamesFromEphemeralContainer(namespace string, container *corev1.EphemeralContainer) []string
- func ConfigNamesFromPod(pod *corev1.Pod) []string
- func Register(ctx *context2.ControllerContext) error
- func RegisterIndices(ctx *context2.ControllerContext) error
- func SecretNamesFromContainer(namespace string, container *corev1.Container) []string
- func SecretNamesFromEphemeralContainer(namespace string, container *corev1.EphemeralContainer) []string
- func SecretNamesFromPod(vClient client.Client, pod *corev1.Pod) []string
- type ImageTranslator
Constants ¶
View Source
const ( OwnerSetKind = "vcluster.loft.sh/owner-set-kind" NamespaceAnnotation = "vcluster.loft.sh/namespace" NameAnnotation = "vcluster.loft.sh/name" LabelsAnnotation = "vcluster.loft.sh/labels" UIDAnnotation = "vcluster.loft.sh/uid" ServiceAccountNameAnnotation = "vcluster.loft.sh/service-account-name" DisableSubdomainRewriteAnnotation = "vcluster.loft.sh/disable-subdomain-rewrite" HostsRewrittenAnnotation = "vcluster.loft.sh/hosts-rewritten" HostsVolumeName = "vcluster-rewrite-hosts" HostsRewriteImage = "alpine:3.13.1" HostsRewriteContainerName = "vcluster-rewrite-hosts" )
Variables ¶
View Source
var (
False = false
)
View Source
var (
FieldPathLabelRegEx = regexp.MustCompile("^metadata\\.labels\\['(.+)'\\]$")
)
Functions ¶
func ConfigNamesFromEphemeralContainer ¶
func ConfigNamesFromEphemeralContainer(namespace string, container *corev1.EphemeralContainer) []string
func ConfigNamesFromPod ¶
func Register ¶
func Register(ctx *context2.ControllerContext) error
func RegisterIndices ¶ added in v0.3.0
func RegisterIndices(ctx *context2.ControllerContext) error
func SecretNamesFromEphemeralContainer ¶
func SecretNamesFromEphemeralContainer(namespace string, container *corev1.EphemeralContainer) []string
Types ¶
type ImageTranslator ¶
func NewImageTranslator ¶
func NewImageTranslator(translateImages []string) (ImageTranslator, error)
Click to show internal directories.
Click to hide internal directories.