Documentation ¶
Index ¶
Constants ¶
View Source
const ( APIGroup = "csi.ibm.com" APIVersion = "v1" Name = "ibm-block-csi-operator" DriverName = "block.csi.ibm.com" ProductName = "ibm-block-csi-driver" RbacAuthorizationApiGroup = "rbac.authorization.k8s.io" CsiNodesResource = "csinodes" SecretsResource = "secrets" PodsResource = "pods" VerbGet = "get" VerbList = "list" VerbWatch = "watch" VerbCreate = "create" VerbPatch = "patch" StorageApiGroup = "storage.k8s.io" AppsApiGroup = "apps" StorageClassesResource = "storageclasses" HostDefinerResource = "hostdefiners" HostDefinitionResource = "hostdefinitions" HostDefinitionStatusResource = "hostdefinitions/status" EventsResource = "events" NodesResource = "nodes" DaemonSetResource = "daemonsets" ENVKubeVersion = "KUBE_VERSION" CSINodeDriverRegistrar = "csi-node-driver-registrar" CSIProvisioner = "csi-provisioner" CSIAttacher = "csi-attacher" CSISnapshotter = "csi-snapshotter" CSIResizer = "csi-resizer" CSIAddonsReplicator = "csi-addons-replicator" CSIVolumeGroup = "csi-volume-group" 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/block.csi.ibm.com/csi.sock" CSIEndpoint = "unix:///var/lib/csi/sockets/pluginproxy/csi.sock" CSINodeEndpoint = "unix:///csi/csi.sock" )
Add a field here if it never changes, if it changes over time, put it to settings.go
View Source
const ( EnvNameIBMBlockCSICrYaml = "IBMBlockCSI_CR_YAML" EnvNameHostDefinerCrYaml = "HostDefiner_CR_YAML" DefaultLogLevel = "DEBUG" ControllerUserID = int64(9999) NodeAgentPort = "10086" IBMRegistryUsername = "ibmcom" K8SRegistryUsername = "k8s.gcr.io/sig-storage" QuayRegistryUsername = "quay.io/k8scsi" QuayAddonsRegistryUsername = "quay.io/csiaddons" QuayCSIBlockRegistryUsername = "quay.io/ibmcsiblock" RedHatRegistryUsername = "registry.redhat.io/openshift4" )
Variables ¶
View Source
var DefaultHostDefinerCr v1.HostDefiner
View Source
var DefaultIBMBlockCSICr v1.IBMBlockCSI
View Source
var DefaultSidecarsByName map[string]v1.CSISidecar
View Source
var OfficialRegistriesUsernames = sets.NewString(IBMRegistryUsername, K8SRegistryUsername, QuayRegistryUsername, QuayAddonsRegistryUsername, QuayCSIBlockRegistryUsername, RedHatRegistryUsername)
Functions ¶
func GetNameForResource ¶
func GetNameForResource(name ResourceName, driverName string) string
GetNameForResource returns the name of a resource for a CSI driver
func LoadDefaultsOfHostDefiner ¶ added in v1.10.0
func LoadDefaultsOfHostDefiner() error
func LoadDefaultsOfIBMBlockCSI ¶ added in v1.5.0
func LoadDefaultsOfIBMBlockCSI() error
Types ¶
type ResourceName ¶
type ResourceName string
ResourceName is the type for aliasing resources that will be created.
const ( CSIController ResourceName = "csi-controller" CSINode ResourceName = "csi-node" HostDefiner ResourceName = "hostdefiner" NodeAgent ResourceName = "ibm-node-agent" CSIControllerServiceAccount ResourceName = "csi-controller-sa" CSINodeServiceAccount ResourceName = "csi-node-sa" HostDefinerServiceAccount ResourceName = "hostdefiner-sa" ExternalProvisionerClusterRole ResourceName = "external-provisioner-clusterrole" ExternalProvisionerClusterRoleBinding ResourceName = "external-provisioner-clusterrolebinding" ExternalAttacherClusterRole ResourceName = "external-attacher-clusterrole" ExternalAttacherClusterRoleBinding ResourceName = "external-attacher-clusterrolebinding" ExternalSnapshotterClusterRole ResourceName = "external-snapshotter-clusterrole" ExternalSnapshotterClusterRoleBinding ResourceName = "external-snapshotter-clusterrolebinding" ExternalResizerClusterRole ResourceName = "external-resizer-clusterrole" ExternalResizerClusterRoleBinding ResourceName = "external-resizer-clusterrolebinding" CSIAddonsReplicatorClusterRole ResourceName = "csi-addons-replicator-clusterrole" CSIAddonsReplicatorClusterRoleBinding ResourceName = "csi-addons-replicator-clusterrolebinding" CSIVolumeGroupClusterRole ResourceName = "csi-volume-group-clusterrole" CSIVolumeGroupClusterRoleBinding ResourceName = "csi-volume-group-clusterrolebinding" CSIControllerSCCClusterRole ResourceName = "csi-controller-scc-clusterrole" CSIControllerSCCClusterRoleBinding ResourceName = "csi-controller-scc-clusterrolebinding" CSINodeSCCClusterRole ResourceName = "csi-node-scc-clusterrole" CSINodeSCCClusterRoleBinding ResourceName = "csi-node-scc-clusterrolebinding" HostDefinerClusterRole ResourceName = "hostdefiner-clusterrole" HostDefinerClusterRoleBinding ResourceName = "hostdefiner-clusterrolebinding" )
func (ResourceName) String ¶
func (rn ResourceName) String() string
Click to show internal directories.
Click to hide internal directories.