crutils

package
v1.11.1 Latest Latest
Warning

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

Go to latest
Published: May 7, 2023 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IBMBlockCSI

type IBMBlockCSI struct {
	*csiv1.IBMBlockCSI
	ServerVersion string
}

IBMBlockCSI is the wrapper for csiv1.IBMBlockCSI type

func New

func New(c *csiv1.IBMBlockCSI, serverVersion string) *IBMBlockCSI

New returns a wrapper for csiv1.IBMBlockCSI

func (*IBMBlockCSI) GenerateCSIAddonsReplicatorClusterRole

func (c *IBMBlockCSI) GenerateCSIAddonsReplicatorClusterRole() *rbacv1.ClusterRole

func (*IBMBlockCSI) GenerateCSIAddonsReplicatorClusterRoleBinding

func (c *IBMBlockCSI) GenerateCSIAddonsReplicatorClusterRoleBinding() *rbacv1.ClusterRoleBinding

func (*IBMBlockCSI) GenerateCSIDriver

func (c *IBMBlockCSI) GenerateCSIDriver() *storagev1.CSIDriver

func (*IBMBlockCSI) GenerateControllerServiceAccount

func (c *IBMBlockCSI) GenerateControllerServiceAccount() *corev1.ServiceAccount

func (*IBMBlockCSI) GenerateExternalAttacherClusterRole

func (c *IBMBlockCSI) GenerateExternalAttacherClusterRole() *rbacv1.ClusterRole

func (*IBMBlockCSI) GenerateExternalAttacherClusterRoleBinding

func (c *IBMBlockCSI) GenerateExternalAttacherClusterRoleBinding() *rbacv1.ClusterRoleBinding

func (*IBMBlockCSI) GenerateExternalProvisionerClusterRole

func (c *IBMBlockCSI) GenerateExternalProvisionerClusterRole() *rbacv1.ClusterRole

func (*IBMBlockCSI) GenerateExternalProvisionerClusterRoleBinding

func (c *IBMBlockCSI) GenerateExternalProvisionerClusterRoleBinding() *rbacv1.ClusterRoleBinding

func (*IBMBlockCSI) GenerateExternalResizerClusterRole

func (c *IBMBlockCSI) GenerateExternalResizerClusterRole() *rbacv1.ClusterRole

func (*IBMBlockCSI) GenerateExternalResizerClusterRoleBinding

func (c *IBMBlockCSI) GenerateExternalResizerClusterRoleBinding() *rbacv1.ClusterRoleBinding

func (*IBMBlockCSI) GenerateExternalSnapshotterClusterRole

func (c *IBMBlockCSI) GenerateExternalSnapshotterClusterRole() *rbacv1.ClusterRole

func (*IBMBlockCSI) GenerateExternalSnapshotterClusterRoleBinding

func (c *IBMBlockCSI) GenerateExternalSnapshotterClusterRoleBinding() *rbacv1.ClusterRoleBinding

func (*IBMBlockCSI) GenerateNodeServiceAccount

func (c *IBMBlockCSI) GenerateNodeServiceAccount() *corev1.ServiceAccount

func (*IBMBlockCSI) GenerateSCCForControllerClusterRole

func (c *IBMBlockCSI) GenerateSCCForControllerClusterRole() *rbacv1.ClusterRole

func (*IBMBlockCSI) GenerateSCCForControllerClusterRoleBinding

func (c *IBMBlockCSI) GenerateSCCForControllerClusterRoleBinding() *rbacv1.ClusterRoleBinding

func (*IBMBlockCSI) GenerateSCCForNodeClusterRole

func (c *IBMBlockCSI) GenerateSCCForNodeClusterRole() *rbacv1.ClusterRole

func (*IBMBlockCSI) GenerateSCCForNodeClusterRoleBinding

func (c *IBMBlockCSI) GenerateSCCForNodeClusterRoleBinding() *rbacv1.ClusterRoleBinding

func (*IBMBlockCSI) GenerateVolumeGroupClusterRole added in v1.11.0

func (c *IBMBlockCSI) GenerateVolumeGroupClusterRole() *rbacv1.ClusterRole

func (*IBMBlockCSI) GenerateVolumeGroupClusterRoleBinding added in v1.11.0

func (c *IBMBlockCSI) GenerateVolumeGroupClusterRoleBinding() *rbacv1.ClusterRoleBinding

func (*IBMBlockCSI) GetAnnotations

func (c *IBMBlockCSI) GetAnnotations(daemonSetRestartedKey string, daemonSetRestartedValue string) labels.Set

GetAnnotations returns all the annotations to be set on all resources

func (*IBMBlockCSI) GetCSIControllerImage

func (c *IBMBlockCSI) GetCSIControllerImage() string

func (*IBMBlockCSI) GetCSIControllerPodLabels

func (c *IBMBlockCSI) GetCSIControllerPodLabels() labels.Set

func (*IBMBlockCSI) GetCSIControllerSelectorLabels

func (c *IBMBlockCSI) GetCSIControllerSelectorLabels() labels.Set

func (*IBMBlockCSI) GetCSINodeImage

func (c *IBMBlockCSI) GetCSINodeImage() string

func (*IBMBlockCSI) GetCSINodePodLabels

func (c *IBMBlockCSI) GetCSINodePodLabels() labels.Set

func (*IBMBlockCSI) GetCSINodeSelectorLabels

func (c *IBMBlockCSI) GetCSINodeSelectorLabels() labels.Set

func (*IBMBlockCSI) GetDefaultSidecarImageByName

func (c *IBMBlockCSI) GetDefaultSidecarImageByName(name string) string

func (*IBMBlockCSI) GetLabels

func (c *IBMBlockCSI) GetLabels() labels.Set

GetLabels returns all the labels to be set on all resources

func (*IBMBlockCSI) SetDefaults

func (c *IBMBlockCSI) SetDefaults() bool

SetDefaults set defaults if omitted in spec, returns true means CR should be updated on cluster. Replace it with kubernetes native default setter when it is available. https://kubernetes.io/docs/tasks/access-kubernetes-api/custom-resources/custom-resource-definitions/#defaulting

func (*IBMBlockCSI) Unwrap

func (c *IBMBlockCSI) Unwrap() *csiv1.IBMBlockCSI

Unwrap returns the csiv1.IBMBlockCSI object

func (*IBMBlockCSI) Validate

func (c *IBMBlockCSI) Validate() error

Validate checks if the spec is valid Replace it with kubernetes native default setter when it is available. https://kubernetes.io/docs/tasks/access-kubernetes-api/custom-resources/custom-resource-definitions/#validation

type Instance

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

Jump to

Keyboard shortcuts

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