constants

package
v0.0.0-...-34a3a48 Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Overview

Package constants ...

Index

Constants

View Source
const (
	APIGroup = "objectdriver.csi.ibm.com"

	APIVersion           = "v1"
	CSIOperatorName      = "ibm-object-csi-driver-operator"
	CSIOperatorNamespace = "ibm-object-csi-operator"
	CSIDriverName        = "ibm-object-csi-driver"
	DriverName           = "cos.s3.csi.ibm.io"

	RbacAuthorizationAPIGroup = "rbac.authorization.k8s.io"
	SecurityOpenshiftAPIGroup = "security.openshift.io"
	StorageAPIGroup           = "storage.k8s.io"

	CSINodesResource                   = "csinodes"
	SecretsResource                    = "secrets"
	SecurityContextConstraintsResource = "securitycontextconstraints"
	StorageClassesResource             = "storageclasses"
	EventsResource                     = "events"
	NodesResource                      = "nodes"
	PersistentVolumesResource          = "persistentvolumes"
	PersistentVolumeClaimsResource     = "persistentvolumeclaims"
	ConfigMapResource                  = "configmaps"

	VerbGet    = "get"
	VerbList   = "list"
	VerbWatch  = "watch"
	VerbCreate = "create"
	VerbUpdate = "update"
	VerbPatch  = "patch"
	VerbDelete = "delete"

	CSINodeDriverRegistrar = "csi-node-driver-registrar"
	CSIProvisioner         = "csi-provisioner"
	LivenessProbe          = "livenessprobe"

	ControllerSocketVolumeMountPath                       = "/var/lib/csi/sockets/pluginproxy/"
	NodeSocketVolumeMountPath                             = "/csi"
	ControllerLivenessProbeContainerSocketVolumeMountPath = "/csi"
	ControllerSocketPath                                  = "/var/lib/csi/sockets/pluginproxy/csi.sock"
	NodeSocketPath                                        = "/csi/csi.sock"
	NodeRegistrarSocketPath                               = "/var/lib/kubelet/plugins/cos.s3.csi.ibm.io/csi.sock"
	CSIEndpoint                                           = "unix:///var/lib/csi/sockets/pluginproxy/csi.sock"
	CSINodeEndpoint                                       = "unix:///csi/csi.sock"
	RegistrationVolumeMountPath                           = "/registration"

	NodeContainerName       = "ibm-object-csi-node"
	ControllerContainerName = "ibm-object-csi-controller"

	RegistrationVolumeName = "registration-dir"
	PluginVolumeName       = "plugin-dir"
	SocketVolumeName       = "socket-dir"

	HealthPortName   = "healthz"
	HealthPortNumber = 9808

	CSIController                         = "controller"
	CSINode                               = "node"
	CSIControllerServiceAccount           = "controller-sa"
	CSINodeServiceAccount                 = "node-sa"
	ExternalProvisionerClusterRole        = "external-provisioner-clusterrole"
	ExternalProvisionerClusterRoleBinding = "external-provisioner-clusterrolebinding"
	CSIControllerSCCClusterRole           = "controller-scc-clusterrole"
	CSIControllerSCCClusterRoleBinding    = "controller-scc-clusterrolebinding"
	CSINodeSCCClusterRole                 = "node-scc-clusterrole"
	CSINodeSCCClusterRoleBinding          = "node-scc-clusterrolebinding"
	CSINodePriorityClassName              = "system-node-critical"

	ResourceReqLimitsConfigMap = "cos-csi-driver-configmap"
	ObjectCSIDriver            = "ibm-object-csi"

	RetainPolicyTag = "retain"

	StorageClassPrefix = "ibm-object-storage"

	RcloneRetainStorageClass = StorageClassPrefix + "-rclone-retain"
	RcloneStorageClass       = StorageClassPrefix + "-rclone"
	S3fsRetainStorageClass   = StorageClassPrefix + "-s3fs-retain"
	S3fsStorageClass         = StorageClassPrefix + "-s3fs"

	S3ProviderIBM    = "ibm-cos"
	S3ProviderAWS    = "aws"
	S3ProviderWasabi = "wasabi"
	IaasIBMClassic   = "ibm-classic"
	IaasIBMVPC       = "ibm-vpc"

	IBMEP    = "https://s3.%s.%s.cloud-object-storage.appdomain.cloud"
	AWSEP    = "https://s3.%s.amazonaws.com"
	WasabiEP = "https://s3.%s.wasabisys.com"

	DefaultLogTailLines    = 300
	DefaultNamespace       = "default"
	ReconcilationTime      = 5 * time.Minute
	TransportEndpointError = "transport endpoint is not connected"

	InfraProviderPlatformIBM = "IBMCloud"
	InfraProviderType        = "VPC"
)

Variables

View Source
var CommonCSIResourceLabels = map[string]string{
	"app.kubernetes.io/part-of":    CSIDriverName,
	"app.kubernetes.io/managed-by": CSIOperatorName,
}

Functions

func GetResourceName

func GetResourceName(name string) string

GetResourceName returns the name of a resource for a CSI driver

Types

This section is empty.

Jump to

Keyboard shortcuts

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