cluster

package
v1.13.0 Latest Latest
Warning

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

Go to latest
Published: Mar 5, 2025 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Variant

type Variant int

Variant represents different Kubernetes distributions

const (
	DefaultKubernetes Variant = iota // Vanilla K8s
	OpenShift                        // OpenShift K8s
)

func DetectVariant

func DetectVariant(client *rest.Config, log logr.Logger) Variant

DetectVariant determines Kubernetes variant by checking API groups.

func (Variant) MountpointPodUserID

func (c Variant) MountpointPodUserID() *int64

MountpointPodUserID returns the appropriate RunAsUser for Mountpoint Pod based on the cluster variant.

Jump to

Keyboard shortcuts

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