common

package
v0.0.0-...-34a3a48 Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2024 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Overview

Package common ...

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ControllerHelper

type ControllerHelper struct {
	client.Client
	Log              logr.Logger
	Region           string
	CosEP            string
	IaaSProvider     string
	S3Provider       string // IBM COS / AWS S3 / Wasabi
	S3ProviderRegion string
}

ControllerHelper ...

func NewControllerHelper

func NewControllerHelper(client client.Client, logger logr.Logger) *ControllerHelper

NewControllerHelper ...

func (*ControllerHelper) AddFinalizerIfNotPresent

func (ch *ControllerHelper) AddFinalizerIfNotPresent(instance crutils.Instance,
	unwrappedInstance client.Object) error

AddFinalizerIfNotPresent ...

func (*ControllerHelper) DeleteClusterRoleBindings

func (ch *ControllerHelper) DeleteClusterRoleBindings(clusterRoleBindings []*rbacv1.ClusterRoleBinding) error

DeleteClusterRoleBindings ...

func (*ControllerHelper) DeleteClusterRoles

func (ch *ControllerHelper) DeleteClusterRoles(clusterRoles []*rbacv1.ClusterRole) error

DeleteClusterRoles ...

func (*ControllerHelper) DeleteStorageClasses

func (ch *ControllerHelper) DeleteStorageClasses(storageClasses []*storagev1.StorageClass) error

DeleteStorageClasses ...

func (*ControllerHelper) GetClusterInfo

func (ch *ControllerHelper) GetClusterInfo(inConfig rest.Config) error

Check the platform, if IBMCloud then get Region and IaaS provider If not IBMCloud, check if it is unmanaged/IPI cluster

func (*ControllerHelper) GetCosEP

func (ch *ControllerHelper) GetCosEP() string

func (*ControllerHelper) GetIBMCosSC

func (ch *ControllerHelper) GetIBMCosSC() []string

func (*ControllerHelper) GetIaaSProvider

func (ch *ControllerHelper) GetIaaSProvider() string

func (*ControllerHelper) GetRegion

func (ch *ControllerHelper) GetRegion() string

func (*ControllerHelper) GetS3Provider

func (ch *ControllerHelper) GetS3Provider() string

func (*ControllerHelper) ReconcileClusterRole

func (ch *ControllerHelper) ReconcileClusterRole(clusterRoles []*rbacv1.ClusterRole) error

ReconcileClusterRole ...

func (*ControllerHelper) ReconcileClusterRoleBinding

func (ch *ControllerHelper) ReconcileClusterRoleBinding(clusterRoleBindings []*rbacv1.ClusterRoleBinding) error

ReconcileClusterRoleBinding ...

func (*ControllerHelper) ReconcileStorageClasses

func (ch *ControllerHelper) ReconcileStorageClasses(storageclasses []*storagev1.StorageClass) error

ReconcileStorageClasses ...

func (*ControllerHelper) RemoveFinalizer

func (ch *ControllerHelper) RemoveFinalizer(instance crutils.Instance,
	unwrappedInstance client.Object) error

RemoveFinalizer ...

func (*ControllerHelper) SetIBMCosEP

func (ch *ControllerHelper) SetIBMCosEP()

func (*ControllerHelper) SetS3ProviderEP

func (ch *ControllerHelper) SetS3ProviderEP()

Jump to

Keyboard shortcuts

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