common

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Nov 28, 2023 License: AGPL-3.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

View Source
const (
	WebhookAPIVersion       = "/webhook/v1"
	UpgradeServerPort       = "4221"
	WebhookDefaultPort      = "4222"
	WebhookAPIBucketService = WebhookAPIVersion + "/bucketsrv"
	WebhookAPIUpdate        = WebhookAPIVersion + "/update"
)

Constants for the webhook endpoints

View Source
const (
	// OperatorRuntimeEnv tells us which runtime we have. (EKS, Rancher, OpenShift, etc...)
	OperatorRuntimeEnv = "MINIO_OPERATOR_RUNTIME"
	// OperatorRuntimeK8s is the default runtime when no specific runtime is set
	OperatorRuntimeK8s Runtime = "K8S"
	// OperatorRuntimeEKS is the EKS runtime flag
	OperatorRuntimeEKS Runtime = "EKS"
	// OperatorRuntimeOpenshift is the Openshift runtime flag
	OperatorRuntimeOpenshift Runtime = "OPENSHIFT"
	// OperatorRuntimeRancher is the Rancher runtime flag
	OperatorRuntimeRancher Runtime = "RANCHER"

	// TLSCRT is  name of the field containing tls certificate in secret
	TLSCRT = "tls.crt"

	// CACRT name of the field containing ca certificate in secret
	CACRT = "ca.crt"

	// PublicCRT name of the field containing public certificate in secret
	PublicCRT = "public.crt"
)

Variables

View Source
var Runtimes = map[string]Runtime{
	"K8S":       OperatorRuntimeK8s,
	"EKS":       OperatorRuntimeEKS,
	"OPENSHIFT": OperatorRuntimeOpenshift,
	"RANCHER":   OperatorRuntimeRancher,
}

Runtimes is a map of the supported Kubernetes runtimes

Functions

This section is empty.

Types

type Runtime

type Runtime string

Runtime type to for Operator runtime

Jump to

Keyboard shortcuts

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