Documentation
¶
Overview ¶
Package crutils ...
Package crutils ...
Package crutils ...
Index ¶
- func GetImagePullSecrets(imagePullSecrets []string) []corev1.LocalObjectReference
- type IBMObjectCSI
- func (c *IBMObjectCSI) GenerateCSIDriver() *storagev1.CSIDriver
- func (c *IBMObjectCSI) GenerateControllerServiceAccount() *corev1.ServiceAccount
- func (c *IBMObjectCSI) GenerateExternalProvisionerClusterRole() *rbacv1.ClusterRole
- func (c *IBMObjectCSI) GenerateExternalProvisionerClusterRoleBinding() *rbacv1.ClusterRoleBinding
- func (c *IBMObjectCSI) GenerateNodeServiceAccount() *corev1.ServiceAccount
- func (c *IBMObjectCSI) GenerateRcloneSC(reclaimPolicy corev1.PersistentVolumeReclaimPolicy, s3Provider string, ...) *storagev1.StorageClass
- func (c *IBMObjectCSI) GenerateS3fsSC(reclaimPolicy corev1.PersistentVolumeReclaimPolicy, s3Provider string, ...) *storagev1.StorageClass
- func (c *IBMObjectCSI) GenerateSCCForControllerClusterRole() *rbacv1.ClusterRole
- func (c *IBMObjectCSI) GenerateSCCForControllerClusterRoleBinding() *rbacv1.ClusterRoleBinding
- func (c *IBMObjectCSI) GenerateSCCForNodeClusterRole() *rbacv1.ClusterRole
- func (c *IBMObjectCSI) GenerateSCCForNodeClusterRoleBinding() *rbacv1.ClusterRoleBinding
- func (c *IBMObjectCSI) GetAnnotations() labels.Set
- func (c *IBMObjectCSI) GetCSIControllerImage() string
- func (c *IBMObjectCSI) GetCSIControllerPodLabels() labels.Set
- func (c *IBMObjectCSI) GetCSIControllerResourceRequests() *objectdriverv1alpha1.ResourcesSpec
- func (c *IBMObjectCSI) GetCSIControllerSelectorLabels() labels.Set
- func (c *IBMObjectCSI) GetCSINodeImage() string
- func (c *IBMObjectCSI) GetCSINodePodLabels() labels.Set
- func (c *IBMObjectCSI) GetCSINodeResourceRequests() *objectdriverv1alpha1.ResourcesSpec
- func (c *IBMObjectCSI) GetCSINodeSelectorLabels() labels.Set
- func (c *IBMObjectCSI) GetLabels() labels.Set
- func (c *IBMObjectCSI) Unwrap() *objectdriverv1alpha1.IBMObjectCSI
- type Instance
- type K8sResourceOps
- func (op *K8sResourceOps) DeletePod(pod *corev1.Pod) error
- func (op *K8sResourceOps) GetDeployment(name string) (*appsv1.Deployment, error)
- func (op *K8sResourceOps) ListDeployment() (*appsv1.DeploymentList, error)
- func (op *K8sResourceOps) ListPVC() (*corev1.PersistentVolumeClaimList, error)
- func (op *K8sResourceOps) ListPod() (*corev1.PodList, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetImagePullSecrets ¶
func GetImagePullSecrets(imagePullSecrets []string) []corev1.LocalObjectReference
GetImagePullSecrets ...
Types ¶
type IBMObjectCSI ¶
type IBMObjectCSI struct {
*objectdriverv1alpha1.IBMObjectCSI
}
IBMObjectCSI is the wrapper for objectdriverv1alpha1.IBMObjectCSI type
func New ¶
func New(c *objectdriverv1alpha1.IBMObjectCSI) *IBMObjectCSI
New returns a wrapper for objectdriverv1.IBMObjectCSI
func (*IBMObjectCSI) GenerateCSIDriver ¶
func (c *IBMObjectCSI) GenerateCSIDriver() *storagev1.CSIDriver
GenerateCSIDriver ...
func (*IBMObjectCSI) GenerateControllerServiceAccount ¶
func (c *IBMObjectCSI) GenerateControllerServiceAccount() *corev1.ServiceAccount
GenerateControllerServiceAccount ...
func (*IBMObjectCSI) GenerateExternalProvisionerClusterRole ¶
func (c *IBMObjectCSI) GenerateExternalProvisionerClusterRole() *rbacv1.ClusterRole
GenerateExternalProvisionerClusterRole ...
func (*IBMObjectCSI) GenerateExternalProvisionerClusterRoleBinding ¶
func (c *IBMObjectCSI) GenerateExternalProvisionerClusterRoleBinding() *rbacv1.ClusterRoleBinding
GenerateExternalProvisionerClusterRoleBinding ...
func (*IBMObjectCSI) GenerateNodeServiceAccount ¶
func (c *IBMObjectCSI) GenerateNodeServiceAccount() *corev1.ServiceAccount
GenerateNodeServiceAccount ...
func (*IBMObjectCSI) GenerateRcloneSC ¶
func (c *IBMObjectCSI) GenerateRcloneSC(reclaimPolicy corev1.PersistentVolumeReclaimPolicy, s3Provider string, region string, cosEndpoint string, cosStorageClass string) *storagev1.StorageClass
GenerateRcloneSC ...
func (*IBMObjectCSI) GenerateS3fsSC ¶
func (c *IBMObjectCSI) GenerateS3fsSC(reclaimPolicy corev1.PersistentVolumeReclaimPolicy, s3Provider string, region string, cosEndpoint string, cosStorageClass string) *storagev1.StorageClass
Generates3fsSC ...
func (*IBMObjectCSI) GenerateSCCForControllerClusterRole ¶
func (c *IBMObjectCSI) GenerateSCCForControllerClusterRole() *rbacv1.ClusterRole
GenerateSCCForControllerClusterRole ...
func (*IBMObjectCSI) GenerateSCCForControllerClusterRoleBinding ¶
func (c *IBMObjectCSI) GenerateSCCForControllerClusterRoleBinding() *rbacv1.ClusterRoleBinding
GenerateSCCForControllerClusterRoleBinding ...
func (*IBMObjectCSI) GenerateSCCForNodeClusterRole ¶
func (c *IBMObjectCSI) GenerateSCCForNodeClusterRole() *rbacv1.ClusterRole
GenerateSCCForNodeClusterRole ...
func (*IBMObjectCSI) GenerateSCCForNodeClusterRoleBinding ¶
func (c *IBMObjectCSI) GenerateSCCForNodeClusterRoleBinding() *rbacv1.ClusterRoleBinding
GenerateSCCForNodeClusterRoleBinding ...
func (*IBMObjectCSI) GetAnnotations ¶
func (c *IBMObjectCSI) GetAnnotations() labels.Set
GetAnnotations returns all the annotations to be set on all resources
func (*IBMObjectCSI) GetCSIControllerImage ¶
func (c *IBMObjectCSI) GetCSIControllerImage() string
GetCSIControllerImage ...
func (*IBMObjectCSI) GetCSIControllerPodLabels ¶
func (c *IBMObjectCSI) GetCSIControllerPodLabels() labels.Set
GetCSIControllerPodLabels ...
func (*IBMObjectCSI) GetCSIControllerResourceRequests ¶
func (c *IBMObjectCSI) GetCSIControllerResourceRequests() *objectdriverv1alpha1.ResourcesSpec
GetCSIControllerResourceRequests ...
func (*IBMObjectCSI) GetCSIControllerSelectorLabels ¶
func (c *IBMObjectCSI) GetCSIControllerSelectorLabels() labels.Set
GetCSIControllerSelectorLabels ...
func (*IBMObjectCSI) GetCSINodeImage ¶
func (c *IBMObjectCSI) GetCSINodeImage() string
GetCSINodeImage ...
func (*IBMObjectCSI) GetCSINodePodLabels ¶
func (c *IBMObjectCSI) GetCSINodePodLabels() labels.Set
GetCSINodePodLabels ...
func (*IBMObjectCSI) GetCSINodeResourceRequests ¶
func (c *IBMObjectCSI) GetCSINodeResourceRequests() *objectdriverv1alpha1.ResourcesSpec
GetCSINodeResourceRequests ...
func (*IBMObjectCSI) GetCSINodeSelectorLabels ¶
func (c *IBMObjectCSI) GetCSINodeSelectorLabels() labels.Set
GetCSINodeSelectorLabels ...
func (*IBMObjectCSI) GetLabels ¶
func (c *IBMObjectCSI) GetLabels() labels.Set
GetLabels returns all the labels to be set on all resources
func (*IBMObjectCSI) Unwrap ¶
func (c *IBMObjectCSI) Unwrap() *objectdriverv1alpha1.IBMObjectCSI
Unwrap returns the objectdriverv1.IBMObjectCSI object
type Instance ¶
type Instance interface { GetLabels() labels.Set GetObjectKind() schema.ObjectKind }
Instance ...
type K8sResourceOps ¶
func (*K8sResourceOps) GetDeployment ¶
func (op *K8sResourceOps) GetDeployment(name string) (*appsv1.Deployment, error)
func (*K8sResourceOps) ListDeployment ¶
func (op *K8sResourceOps) ListDeployment() (*appsv1.DeploymentList, error)
func (*K8sResourceOps) ListPVC ¶
func (op *K8sResourceOps) ListPVC() (*corev1.PersistentVolumeClaimList, error)