Documentation ¶
Index ¶
- Constants
- func ArrayElementContains(array []string, content string) bool
- func ComposeOpensearchCrd(clusterName string, namespace string) eliatrav1.OpenSearchCluster
- func CreateNamespace(k8sClient client.Client, cluster *eliatrav1.OpenSearchCluster) error
- func HasOwnerReference(object client.Object, owner *eliatrav1.OpenSearchCluster) bool
- func IsConfigMapDeleted(k8sClient client.Client, name string, namespace string) bool
- func IsCreated(ctx context.Context, k8sClient client.Client, obj client.Object) bool
- func IsDeploymentDeleted(k8sClient client.Client, name string, namespace string) bool
- func IsNsCreated(k8sClient client.Client, name string) bool
- func IsNsDeleted(k8sClient client.Client, namespace corev1.Namespace) bool
- func IsSTSDeleted(k8sClient client.Client, name string, namespace string) bool
- func IsSecretDeleted(k8sClient client.Client, name string, namespace string) bool
- func IsServiceDeleted(k8sClient client.Client, name string, namespace string) bool
- type OpenSearchClusterReconciler
- type OpensearchActionGroupReconciler
- type OpensearchComponentTemplateReconciler
- type OpensearchISMPolicyReconciler
- type OpensearchIndexTemplateReconciler
- type OpensearchRoleReconciler
- type OpensearchTenantReconciler
- type OpensearchUserReconciler
- type OpensearchUserRoleBindingReconciler
Constants ¶
const (
OpensearchFinalizer = "eliatra.io/opensearch-data"
)
Variables ¶
This section is empty.
Functions ¶
func ArrayElementContains ¶
func ComposeOpensearchCrd ¶
func ComposeOpensearchCrd(clusterName string, namespace string) eliatrav1.OpenSearchCluster
func CreateNamespace ¶
func CreateNamespace(k8sClient client.Client, cluster *eliatrav1.OpenSearchCluster) error
func HasOwnerReference ¶
func HasOwnerReference(object client.Object, owner *eliatrav1.OpenSearchCluster) bool
func IsConfigMapDeleted ¶
func IsDeploymentDeleted ¶
func IsSecretDeleted ¶
Types ¶
type OpenSearchClusterReconciler ¶
type OpenSearchClusterReconciler struct { client.Client Scheme *runtime.Scheme Recorder record.EventRecorder Instance *eliatrav1.OpenSearchCluster logr.Logger }
OpenSearchClusterReconciler reconciles a OpenSearchCluster object
func (*OpenSearchClusterReconciler) Reconcile ¶
func (r *OpenSearchClusterReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)
Reconcile is part of the main kubernetes reconciliation loop which aims to move the current state of the cluster closer to the desired state. TODO(user): Modify the Reconcile function to compare the state specified by the OpenSearchCluster object against the actual cluster state, and then perform operations to make the cluster state reflect the state specified by the user.
For more details, check Reconcile and its Result here: - https://pkg.go.dev/sigs.k8s.io/controller-runtime@v0.8.3/pkg/reconcile
func (*OpenSearchClusterReconciler) SetupWithManager ¶
func (r *OpenSearchClusterReconciler) SetupWithManager(mgr ctrl.Manager) error
SetupWithManager sets up the controller with the Manager.
type OpensearchActionGroupReconciler ¶
type OpensearchActionGroupReconciler struct { client.Client Scheme *runtime.Scheme Recorder record.EventRecorder Instance *eliatrav1.OpensearchActionGroup logr.Logger }
OpensearchActionGroupReconciler reconciles a OpensearchActionGroup object
func (*OpensearchActionGroupReconciler) Reconcile ¶
func (r *OpensearchActionGroupReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)
Reconcile is part of the main kubernetes reconciliation loop which aims to move the current state of the cluster closer to the desired state.
func (*OpensearchActionGroupReconciler) SetupWithManager ¶
func (r *OpensearchActionGroupReconciler) SetupWithManager(mgr ctrl.Manager) error
SetupWithManager sets up the controller with the Manager.
type OpensearchComponentTemplateReconciler ¶
type OpensearchComponentTemplateReconciler struct { client.Client Scheme *runtime.Scheme Recorder record.EventRecorder Instance *eliatrav1.OpensearchComponentTemplate logr.Logger }
OpensearchComponentTemplateReconciler reconciles a OpensearchComponentTemplate object
func (*OpensearchComponentTemplateReconciler) Reconcile ¶
func (r *OpensearchComponentTemplateReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)
Reconcile is part of the main kubernetes reconciliation loop which aims to move the current state of the cluster closer to the desired state.
func (*OpensearchComponentTemplateReconciler) SetupWithManager ¶
func (r *OpensearchComponentTemplateReconciler) SetupWithManager(mgr ctrl.Manager) error
SetupWithManager sets up the controller with the Manager.
type OpensearchISMPolicyReconciler ¶
type OpensearchISMPolicyReconciler struct { client.Client Scheme *runtime.Scheme Recorder record.EventRecorder Instance *eliatrav1.OpenSearchISMPolicy logr.Logger }
OpensearchISMReconciler reconciles a ISMPolicy object
func (*OpensearchISMPolicyReconciler) Reconcile ¶
func (r *OpensearchISMPolicyReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)
Reconcile is part of the main kubernetes reconciliation loop which aims to move the current state of the cluster closer to the desired state.
func (*OpensearchISMPolicyReconciler) SetupWithManager ¶
func (r *OpensearchISMPolicyReconciler) SetupWithManager(mgr ctrl.Manager) error
SetupWithManager sets up the controller with the Manager.
type OpensearchIndexTemplateReconciler ¶
type OpensearchIndexTemplateReconciler struct { client.Client Scheme *runtime.Scheme Recorder record.EventRecorder Instance *eliatrav1.OpensearchIndexTemplate logr.Logger }
OpensearchIndexTemplateReconciler reconciles a OpensearchIndexTemplate object
func (*OpensearchIndexTemplateReconciler) Reconcile ¶
func (r *OpensearchIndexTemplateReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)
Reconcile is part of the main kubernetes reconciliation loop which aims to move the current state of the cluster closer to the desired state.
func (*OpensearchIndexTemplateReconciler) SetupWithManager ¶
func (r *OpensearchIndexTemplateReconciler) SetupWithManager(mgr ctrl.Manager) error
SetupWithManager sets up the controller with the Manager.
type OpensearchRoleReconciler ¶
type OpensearchRoleReconciler struct { client.Client Scheme *runtime.Scheme Recorder record.EventRecorder Instance *eliatrav1.OpensearchRole logr.Logger }
OpensearchRoleReconciler reconciles a OpensearchRole object
func (*OpensearchRoleReconciler) Reconcile ¶
func (r *OpensearchRoleReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)
Reconcile is part of the main kubernetes reconciliation loop which aims to move the current state of the cluster closer to the desired state.
func (*OpensearchRoleReconciler) SetupWithManager ¶
func (r *OpensearchRoleReconciler) SetupWithManager(mgr ctrl.Manager) error
SetupWithManager sets up the controller with the Manager.
type OpensearchTenantReconciler ¶
type OpensearchTenantReconciler struct { client.Client Scheme *runtime.Scheme Recorder record.EventRecorder Instance *eliatrav1.OpensearchTenant logr.Logger }
OpensearchTenantReconciler reconciles a OpensearchTenant object
func (*OpensearchTenantReconciler) Reconcile ¶
func (r *OpensearchTenantReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)
Reconcile is part of the main kubernetes reconciliation loop which aims to move the current state of the cluster closer to the desired state.
func (*OpensearchTenantReconciler) SetupWithManager ¶
func (r *OpensearchTenantReconciler) SetupWithManager(mgr ctrl.Manager) error
SetupWithManager sets up the controller with the Manager.
type OpensearchUserReconciler ¶
type OpensearchUserReconciler struct { client.Client Scheme *runtime.Scheme Recorder record.EventRecorder Instance *eliatrav1.OpensearchUser logr.Logger }
OpensearchUserReconciler reconciles a OpensearchUser object
func (*OpensearchUserReconciler) Reconcile ¶
func (r *OpensearchUserReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)
Reconcile is part of the main kubernetes reconciliation loop which aims to move the current state of the cluster closer to the desired state.
func (*OpensearchUserReconciler) SetupWithManager ¶
func (r *OpensearchUserReconciler) SetupWithManager(mgr ctrl.Manager) error
SetupWithManager sets up the controller with the Manager.
type OpensearchUserRoleBindingReconciler ¶
type OpensearchUserRoleBindingReconciler struct { client.Client Scheme *runtime.Scheme Recorder record.EventRecorder Instance *eliatrav1.OpensearchUserRoleBinding logr.Logger }
OpensearchUserRoleBindingReconciler reconciles a OpensearchUserRoleBinding object
func (*OpensearchUserRoleBindingReconciler) Reconcile ¶
func (r *OpensearchUserRoleBindingReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)
Reconcile is part of the main kubernetes reconciliation loop which aims to move the current state of the cluster closer to the desired state.
func (*OpensearchUserRoleBindingReconciler) SetupWithManager ¶
func (r *OpensearchUserRoleBindingReconciler) SetupWithManager(mgr ctrl.Manager) error
SetupWithManager sets up the controller with the Manager.
Source Files ¶
- controller_settings.go
- opensearchController.go
- opensearch_componenttemplate_controller.go
- opensearch_indextemplate_controller.go
- opensearchactiongroup_controller.go
- opensearchism_controller.go
- opensearchrole_controller.go
- opensearchtenant_controller.go
- opensearchuser_controller.go
- opensearchuserrolebinding_controller.go
- suite_test_helpers.go