crutils

package
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 3, 2025 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Overview

Package crutils ...

Package crutils ...

Package crutils ...

Index

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

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

Unwrap returns the objectdriverv1.IBMObjectCSI object

type Instance

type Instance interface {
	GetLabels() labels.Set
	GetObjectKind() schema.ObjectKind
}

Instance ...

type K8sResourceOps

type K8sResourceOps struct {
	client.Client
	Ctx       context.Context
	Namespace string
}

func (*K8sResourceOps) DeletePod

func (op *K8sResourceOps) DeletePod(pod *corev1.Pod) error

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 (*K8sResourceOps) ListPod

func (op *K8sResourceOps) ListPod() (*corev1.PodList, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL