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 (c *CSIScaleOperator) GenerateSnapshotterClusterRole() *rbacv1.ClusterRole
- func (c *CSIScaleOperator) GenerateSnapshotterClusterRoleBinding() *rbacv1.ClusterRoleBinding
- func (c *CSIScaleOperator) GenerateSnapshotterServiceAccount() *corev1.ServiceAccount
- func (c CSIScaleOperator) GetAffinity(resource string) *corev1.Affinity
- 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) GetContainerPort() []corev1.ContainerPort
- func (c *CSIScaleOperator) GetDefaultImage(name string) string
- func (c CSIScaleOperator) GetDeploymentStrategy() appsv1.DeploymentStrategy
- func (c *CSIScaleOperator) GetDeploymentStrategyType() appsv1.DeploymentStrategyType
- func (c CSIScaleOperator) GetHTTPGetAction() *corev1.HTTPGetAction
- func (c *CSIScaleOperator) GetHandler() corev1.ProbeHandler
- func (c *CSIScaleOperator) GetKubeletPodsDir() string
- func (c *CSIScaleOperator) GetKubeletRootDirPath() string
- func (c *CSIScaleOperator) GetLabels() map[string]string
- func (c *CSIScaleOperator) GetLivenessProbe() *corev1.Probe
- func (c *CSIScaleOperator) GetNodeAffinity(resource string) *corev1.NodeAffinity
- func (c *CSIScaleOperator) GetNodeSelectorTerms(resource string) []corev1.NodeSelectorTerm
- func (c *CSIScaleOperator) GetNodeSelectors(nodeSelectorObj []v1.CSINodeSelector) map[string]string
- func (c *CSIScaleOperator) GetNodeTolerations() []corev1.Toleration
- func (c *CSIScaleOperator) GetPodAffinity() *corev1.PodAffinity
- func (c *CSIScaleOperator) GetPodAffinityTerms(resource string) []corev1.PodAffinityTerm
- func (c *CSIScaleOperator) GetPodAntiAffinity(resource string) *corev1.PodAntiAffinity
- func (c *CSIScaleOperator) GetProtocol() corev1.Protocol
- func (c CSIScaleOperator) GetRollingUpdateDeployment() *appsv1.RollingUpdateDeployment
- 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) 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) GetAffinity ¶
func (c CSIScaleOperator) GetAffinity(resource string) *corev1.Affinity
GetAffinity method returns corev1.Affinity object based on resource name passed. Expected resource names: attacher, provisioner, resizer, snapshotter, node.
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) GetContainerPort ¶
func (c *CSIScaleOperator) GetContainerPort() []corev1.ContainerPort
GetContainerPort returns port details for the sidecar controller containers.
func (*CSIScaleOperator) GetDefaultImage ¶
func (c *CSIScaleOperator) GetDefaultImage(name string) string
func (CSIScaleOperator) GetDeploymentStrategy ¶
func (c CSIScaleOperator) GetDeploymentStrategy() appsv1.DeploymentStrategy
GetDeploymentStrategy returns update strategy details for kubernetes deployment.
func (*CSIScaleOperator) GetDeploymentStrategyType ¶
func (c *CSIScaleOperator) GetDeploymentStrategyType() appsv1.DeploymentStrategyType
GetDeploymentStrategyType returns deployment strategy type as `RollingUpdate` for kubernetes deployment.
func (CSIScaleOperator) GetHTTPGetAction ¶
func (c CSIScaleOperator) GetHTTPGetAction() *corev1.HTTPGetAction
GetHTTPGetAction returns httpGet information for the liveness probe.
func (*CSIScaleOperator) GetHandler ¶
func (c *CSIScaleOperator) GetHandler() corev1.ProbeHandler
GetHandler returns a handler with httpGet information.
func (*CSIScaleOperator) GetKubeletPodsDir ¶
func (c *CSIScaleOperator) GetKubeletPodsDir() string
GetKubeletPodsDir returns the kubelet pods directory TODO: Unexport these functions to fix lint warnings
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) GetLivenessProbe ¶
func (c *CSIScaleOperator) GetLivenessProbe() *corev1.Probe
GetLivenessProbe returns liveness probe information for sidecar controller.
func (*CSIScaleOperator) GetNodeAffinity ¶
func (c *CSIScaleOperator) GetNodeAffinity(resource string) *corev1.NodeAffinity
GetNodeAffinity returns kubernetes nodeAffinity based on architectures supported by IBM Storage Scale CSI.
func (*CSIScaleOperator) GetNodeSelectorTerms ¶
func (c *CSIScaleOperator) GetNodeSelectorTerms(resource string) []corev1.NodeSelectorTerm
GetNodeSelectorTerms returns corev1 NodeSelectorTerms based on architectures supported by IBM Storage Scale CSI.
func (*CSIScaleOperator) GetNodeSelectors ¶
func (c *CSIScaleOperator) GetNodeSelectors(nodeSelectorObj []v1.CSINodeSelector) map[string]string
GetNodeSelectors converts the given nodeselector array into a map.
func (*CSIScaleOperator) GetNodeTolerations ¶
func (c *CSIScaleOperator) GetNodeTolerations() []corev1.Toleration
GetNodeTolerations returns an array of kubernetes object of type corev1.Tolerations
func (*CSIScaleOperator) GetPodAffinity ¶
func (c *CSIScaleOperator) GetPodAffinity() *corev1.PodAffinity
GetPodAffinity returns kubernetes corev1 podAffinity from csiScaleOperator spec.affinity.podAffinity
func (*CSIScaleOperator) GetPodAffinityTerms ¶
func (c *CSIScaleOperator) GetPodAffinityTerms(resource string) []corev1.PodAffinityTerm
GetPodAffinityTerms returns corev1 podAffinityTerms for the attacher sidecar controller pod.
func (*CSIScaleOperator) GetPodAntiAffinity ¶
func (c *CSIScaleOperator) GetPodAntiAffinity(resource string) *corev1.PodAntiAffinity
GetAttacherPodAntiAffinity returns kubernetes podAntiAffinity for the attacher sidecar controller pod.
func (*CSIScaleOperator) GetProtocol ¶
func (c *CSIScaleOperator) GetProtocol() corev1.Protocol
GetProtocol returns the protocol to be used by liveness probe with httpGet request.
func (CSIScaleOperator) GetRollingUpdateDeployment ¶
func (c CSIScaleOperator) GetRollingUpdateDeployment() *appsv1.RollingUpdateDeployment
GetRollingUpdateDeployment returns rollingUpdate details. MaxSurge as 25% and MaxUnavailable as 50%.
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