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 ¶
func GetControllerServiceStatefulSet ¶
func GetControllerServiceStatefulSet() (*appsv1.StatefulSet, error)
func GetNodeServiceDaemonSet ¶
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.