Documentation ¶
Overview ¶
Package common ...
Index ¶
- type ControllerHelper
- func (ch *ControllerHelper) AddFinalizerIfNotPresent(instance crutils.Instance, unwrappedInstance client.Object) error
- func (ch *ControllerHelper) DeleteClusterRoleBindings(clusterRoleBindings []*rbacv1.ClusterRoleBinding) error
- func (ch *ControllerHelper) DeleteClusterRoles(clusterRoles []*rbacv1.ClusterRole) error
- func (ch *ControllerHelper) DeleteStorageClasses(storageClasses []*storagev1.StorageClass) error
- func (ch *ControllerHelper) GetClusterInfo(inConfig rest.Config) error
- func (ch *ControllerHelper) GetCosEP() string
- func (ch *ControllerHelper) GetIBMCosSC() []string
- func (ch *ControllerHelper) GetIaaSProvider() string
- func (ch *ControllerHelper) GetRegion() string
- func (ch *ControllerHelper) GetS3Provider() string
- func (ch *ControllerHelper) ReconcileClusterRole(clusterRoles []*rbacv1.ClusterRole) error
- func (ch *ControllerHelper) ReconcileClusterRoleBinding(clusterRoleBindings []*rbacv1.ClusterRoleBinding) error
- func (ch *ControllerHelper) ReconcileStorageClasses(storageclasses []*storagev1.StorageClass) error
- func (ch *ControllerHelper) RemoveFinalizer(instance crutils.Instance, unwrappedInstance client.Object) error
- func (ch *ControllerHelper) SetIBMCosEP()
- func (ch *ControllerHelper) SetS3ProviderEP()
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()
Click to show internal directories.
Click to hide internal directories.