Documentation
¶
Index ¶
Constants ¶
const ( ContainerNameBeegfsCsiDriver = "beegfs" ContainerNameCsiNodeDriverRegistrar = "node-driver-registrar" ContainerNameCsiProvisioner = "csi-provisioner" ContainerNameLivenessProbe = "liveness-probe" )
These are expected container names within the Stateful Set and Daemon Set manifests. Some operator logic is based off the expectation that containers have these names. deploy_test.go attempts to ensure that a developer can not change these names without understanding that operator code must be refactored.
const ( ResourceNameConfigMap = "csi-beegfs-config" ResourceNameSecret = "csi-beegfs-connauth" )
These are expected Kubernetes resource names within the manifests. Some operator logic is based off the expectation that resources have these names. deploy_test.go attempts to ensure that a developer can not change these names without understanding that operator code must be refactored.
const ( KeyNameConfigMap = "csi-beegfs-config.yaml" KeyNameSecret = "csi-beegfs-connauth.yaml" )
These are expected Config Map and Secret keys within the manifests. Some operator logic is based off the expectation that keys have these names. deploy_test.go attempts to ensure that a developer can not change these names without understanding that operator code must be refactored.
Variables ¶
This section is empty.
Functions ¶
func GetCSIDriver ¶
GetCSIDriver returns the embedded byte slice as a CSI Driver object.
func GetControllerServiceStatefulSet ¶
func GetControllerServiceStatefulSet() (*appsv1.StatefulSet, error)
GetControllerServiceStatefulSet returns the embedded byte slice as a Stateful Set object representing the controller service.
func GetNodeServiceDaemonSet ¶
GetNodeServiceDaemonSet returns the embedded byte slice as a Daemon Set object representing the node service.
func GetRBAC ¶
func GetRBAC() ([]interface{}, error)
GetRBAC returns a slice of pointers to the following RBAC objects as interfaces: Cluster Role, Cluster Role Binding, Role, Role Binding, Service Account. GetRBAC returns an error if it finds a different kind of object or if an object cannot be correctly unmarshalled. The caller MUST assert the type of each object in the slice before using it. This approach allows us to add additional Roles, Role Bindings, etc. to the deployment manifests without reworking GetRBAC or the dependent operator code.
Types ¶
This section is empty.