Documentation ¶
Index ¶
- type CSIScaleOperator
- func (c *CSIScaleOperator) GenerateAttacherClusterRole() *rbacv1.ClusterRole
- func (c *CSIScaleOperator) GenerateAttacherClusterRoleBinding() *rbacv1.ClusterRoleBinding
- func (c *CSIScaleOperator) GenerateAttacherServiceAccount() *corev1.ServiceAccount
- func (c *CSIScaleOperator) GenerateCSIDriver() *storagev1.CSIDriver
- func (c *CSIScaleOperator) GenerateNodePluginClusterRole() *rbacv1.ClusterRole
- func (c *CSIScaleOperator) GenerateNodePluginClusterRoleBinding() *rbacv1.ClusterRoleBinding
- func (c *CSIScaleOperator) GenerateNodeServiceAccount() *corev1.ServiceAccount
- func (c *CSIScaleOperator) GenerateProvisionerClusterRole() *rbacv1.ClusterRole
- func (c *CSIScaleOperator) GenerateProvisionerClusterRoleBinding() *rbacv1.ClusterRoleBinding
- func (c *CSIScaleOperator) GenerateProvisionerServiceAccount() *corev1.ServiceAccount
- func (c *CSIScaleOperator) GenerateResizerClusterRole() *rbacv1.ClusterRole
- func (c *CSIScaleOperator) GenerateResizerClusterRoleBinding() *rbacv1.ClusterRoleBinding
- func (c *CSIScaleOperator) GenerateResizerServiceAccount() *corev1.ServiceAccount
- func (s *CSIScaleOperator) GenerateSecurityContextConstraint(users []string) *securityv1.SecurityContextConstraints
- func (c *CSIScaleOperator) GenerateSnapshotterClusterRole() *rbacv1.ClusterRole
- func (c *CSIScaleOperator) GenerateSnapshotterClusterRoleBinding() *rbacv1.ClusterRoleBinding
- func (c *CSIScaleOperator) GenerateSnapshotterServiceAccount() *corev1.ServiceAccount
- func (c *CSIScaleOperator) GetAnnotations(daemonSetRestartedKey string, daemonSetRestartedValue string) map[string]string
- func (c *CSIScaleOperator) GetCSIControllerPodLabels(appName string) labels.Set
- func (c *CSIScaleOperator) GetCSIControllerSelectorLabels(appName string) labels.Set
- func (c *CSIScaleOperator) GetCSIEndpoint() string
- func (c *CSIScaleOperator) GetCSINodePodLabels(appName string) labels.Set
- func (c *CSIScaleOperator) GetCSINodeSelectorLabels(appName string) labels.Set
- func (c *CSIScaleOperator) GetDefaultImage(name string) string
- func (c *CSIScaleOperator) GetKubeletRootDirPath() string
- func (c *CSIScaleOperator) GetLabels() map[string]string
- func (s *CSIScaleOperator) GetNodeSelectors(nodeSelectorObj []v1.CSINodeSelector) map[string]string
- func (c *CSIScaleOperator) GetSelectorLabels(appName string) labels.Set
- func (c *CSIScaleOperator) GetSocketDir() string
- func (c *CSIScaleOperator) GetSocketPath() string
- func (c *CSIScaleOperator) Unwrap() *csiv1.CSIScaleOperator
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CSIScaleOperator ¶
type CSIScaleOperator struct {
*csiv1.CSIScaleOperator
}
CSIScaleOperator is the wrapper for csiv1.CSIScaleOperator type
func New ¶
func New(c *csiv1.CSIScaleOperator) *CSIScaleOperator
New returns a wrapper for csiv1.CSIScaleOperator
func (*CSIScaleOperator) GenerateAttacherClusterRole ¶
func (c *CSIScaleOperator) GenerateAttacherClusterRole() *rbacv1.ClusterRole
GenerateAttacherClusterRole returns a kubernetes clusterrole object for the attacher service.
func (*CSIScaleOperator) GenerateAttacherClusterRoleBinding ¶
func (c *CSIScaleOperator) GenerateAttacherClusterRoleBinding() *rbacv1.ClusterRoleBinding
GenerateAttacherClusterRoleBinding returns a kubernetes clusterrolebinding object for the attacher service.
func (*CSIScaleOperator) GenerateAttacherServiceAccount ¶
func (c *CSIScaleOperator) GenerateAttacherServiceAccount() *corev1.ServiceAccount
GenerateAttacherServiceAccount creates a kubernetes service account for the attacher service and modify the service account to use secret as an imagePullSecret. It returns an object of type *corev1.ServiceAccount.
func (*CSIScaleOperator) GenerateCSIDriver ¶
func (c *CSIScaleOperator) GenerateCSIDriver() *storagev1.CSIDriver
GenerateCSIDriver returns a non-namespaced CSIDriver object.
func (*CSIScaleOperator) GenerateNodePluginClusterRole ¶
func (c *CSIScaleOperator) GenerateNodePluginClusterRole() *rbacv1.ClusterRole
GenerateNodePluginClusterRole returns a kubernetes clusterrole object for the CSI driver node plugin.
func (*CSIScaleOperator) GenerateNodePluginClusterRoleBinding ¶
func (c *CSIScaleOperator) GenerateNodePluginClusterRoleBinding() *rbacv1.ClusterRoleBinding
GenerateNodePluginClusterRoleBinding returns a kubernetes clusterrolebinding object for the CSI driver node plugin.
func (*CSIScaleOperator) GenerateNodeServiceAccount ¶
func (c *CSIScaleOperator) GenerateNodeServiceAccount() *corev1.ServiceAccount
GenerateNodeServiceAccount creates a kubernetes service account for the node/driver service and modify the service account to use secret as an imagePullSecret. It returns an object of type *corev1.ServiceAccount.
func (*CSIScaleOperator) GenerateProvisionerClusterRole ¶
func (c *CSIScaleOperator) GenerateProvisionerClusterRole() *rbacv1.ClusterRole
GenerateProvisionerClusterRole returns a kubernetes clusterrole object for the provisioner service.
func (*CSIScaleOperator) GenerateProvisionerClusterRoleBinding ¶
func (c *CSIScaleOperator) GenerateProvisionerClusterRoleBinding() *rbacv1.ClusterRoleBinding
GenerateProvisionerClusterRole returns a kubernetes clusterrolebinding object for the provisioner service.
func (*CSIScaleOperator) GenerateProvisionerServiceAccount ¶
func (c *CSIScaleOperator) GenerateProvisionerServiceAccount() *corev1.ServiceAccount
GenerateProvisionerServiceAccount creates a kubernetes service account for the provisioner service and modify the service account to use secret as an imagePullSecret. It returns an object of type *corev1.ServiceAccount.
func (*CSIScaleOperator) GenerateResizerClusterRole ¶
func (c *CSIScaleOperator) GenerateResizerClusterRole() *rbacv1.ClusterRole
GenerateResizerClusterRole returns a kubernetes clusterrole object for the resizer service.
func (*CSIScaleOperator) GenerateResizerClusterRoleBinding ¶
func (c *CSIScaleOperator) GenerateResizerClusterRoleBinding() *rbacv1.ClusterRoleBinding
GenerateResizerClusterRoleBinding returns a kubernetes clusterrolebinding object for the resizer service.
func (*CSIScaleOperator) GenerateResizerServiceAccount ¶
func (c *CSIScaleOperator) GenerateResizerServiceAccount() *corev1.ServiceAccount
GenerateResizerServiceAccount creates a kubernetes service account for the resizer service and modify the service account to use secret as an imagePullSecret. It returns an object of type *corev1.ServiceAccount.
func (*CSIScaleOperator) GenerateSecurityContextConstraint ¶
func (s *CSIScaleOperator) GenerateSecurityContextConstraint(users []string) *securityv1.SecurityContextConstraints
GenerateSecurityContextConstraint returns an openshift securitycontextconstraints object.
func (*CSIScaleOperator) GenerateSnapshotterClusterRole ¶
func (c *CSIScaleOperator) GenerateSnapshotterClusterRole() *rbacv1.ClusterRole
GenerateSnapshotterClusterRole returns a kubernetes clusterrole object for the snapshotter service.
func (*CSIScaleOperator) GenerateSnapshotterClusterRoleBinding ¶
func (c *CSIScaleOperator) GenerateSnapshotterClusterRoleBinding() *rbacv1.ClusterRoleBinding
GenerateSnapshotterClusterRoleBinding returns a kubernetes clusterrolebinding object for the snapshotter service.
func (*CSIScaleOperator) GenerateSnapshotterServiceAccount ¶
func (c *CSIScaleOperator) GenerateSnapshotterServiceAccount() *corev1.ServiceAccount
GenerateSnapshotterServiceAccount creates a kubernetes service account for the snapshotter service and modify the service account to use secret as an imagePullSecret. It returns an object of type *corev1.ServiceAccount.
func (*CSIScaleOperator) GetAnnotations ¶
func (c *CSIScaleOperator) GetAnnotations(daemonSetRestartedKey string, daemonSetRestartedValue string) map[string]string
GetAnnotations returns all the annotations to be set on all resources func (c *CSIScaleOperator) GetAnnotations(daemonSetRestartedKey string, daemonSetRestartedValue string) labels.Set {
func (*CSIScaleOperator) GetCSIControllerPodLabels ¶
func (c *CSIScaleOperator) GetCSIControllerPodLabels(appName string) labels.Set
func (*CSIScaleOperator) GetCSIControllerSelectorLabels ¶
func (c *CSIScaleOperator) GetCSIControllerSelectorLabels(appName string) labels.Set
func (*CSIScaleOperator) GetCSIEndpoint ¶
func (c *CSIScaleOperator) GetCSIEndpoint() string
func (*CSIScaleOperator) GetCSINodePodLabels ¶
func (c *CSIScaleOperator) GetCSINodePodLabels(appName string) labels.Set
func (*CSIScaleOperator) GetCSINodeSelectorLabels ¶
func (c *CSIScaleOperator) GetCSINodeSelectorLabels(appName string) labels.Set
func (*CSIScaleOperator) GetDefaultImage ¶
func (c *CSIScaleOperator) GetDefaultImage(name string) string
func (*CSIScaleOperator) GetKubeletRootDirPath ¶
func (c *CSIScaleOperator) GetKubeletRootDirPath() string
func (*CSIScaleOperator) GetLabels ¶
func (c *CSIScaleOperator) GetLabels() map[string]string
GetLabels returns all the labels to be set on all resources func (c *CSIScaleOperator) GetLabels() labels.Set {
func (*CSIScaleOperator) GetNodeSelectors ¶
func (s *CSIScaleOperator) GetNodeSelectors(nodeSelectorObj []v1.CSINodeSelector) map[string]string
getNodeSelector converts the given nodeselector array into a map.
func (*CSIScaleOperator) GetSelectorLabels ¶
func (c *CSIScaleOperator) GetSelectorLabels(appName string) labels.Set
GetSelectorLabels returns labels used in label selectors
func (*CSIScaleOperator) GetSocketDir ¶
func (c *CSIScaleOperator) GetSocketDir() string
func (*CSIScaleOperator) GetSocketPath ¶
func (c *CSIScaleOperator) GetSocketPath() string
func (*CSIScaleOperator) Unwrap ¶
func (c *CSIScaleOperator) Unwrap() *csiv1.CSIScaleOperator
Unwrap returns the csiv1.CSIScaleOperator object