platform

package
v0.11.0 Latest Latest
Warning

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

Go to latest
Published: Oct 8, 2024 License: AGPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EnsureVolSyncMoverSCCIfOpenShift

func EnsureVolSyncMoverSCCIfOpenShift(ctx context.Context, k8sClient client.Client, logger logr.Logger,
	sccName string, sccRaw []byte) error

Types

type Properties

type Properties struct {
	IsOpenShift        bool // True if we are running on OpenShift
	HasSCCRestrictedV2 bool // True if the SecurityContextConstraints "restricted-v2" exists
}

Properties contains properties about the environment in which we are running

func GetProperties

func GetProperties(ctx context.Context, client client.Client, logger logr.Logger) (Properties, error)

Retrieves properties of the running cluster

Jump to

Keyboard shortcuts

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