controllers

package
v0.0.0-...-5fa7f0c Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2024 License: Apache-2.0 Imports: 25 Imported by: 0

Documentation

Index

Constants

View Source
const (
	OpensearchFinalizer = "opster.io/opensearch-data"
)

Variables

This section is empty.

Functions

func ArrayElementContains

func ArrayElementContains(array []string, content string) bool

func ComposeOpensearchCrd

func ComposeOpensearchCrd(clusterName string, namespace string) opsterv1.OpenSearchCluster

func CreateNamespace

func CreateNamespace(k8sClient client.Client, cluster *opsterv1.OpenSearchCluster) error

func HasOwnerReference

func HasOwnerReference(object client.Object, owner *opsterv1.OpenSearchCluster) bool

func IsConfigMapDeleted

func IsConfigMapDeleted(k8sClient client.Client, name string, namespace string) bool

func IsCreated

func IsCreated(ctx context.Context, k8sClient client.Client, obj client.Object) bool

func IsDeploymentDeleted

func IsDeploymentDeleted(k8sClient client.Client, name string, namespace string) bool

func IsNsCreated

func IsNsCreated(k8sClient client.Client, name string) bool

func IsNsDeleted

func IsNsDeleted(k8sClient client.Client, namespace corev1.Namespace) bool

func IsSTSDeleted

func IsSTSDeleted(k8sClient client.Client, name string, namespace string) bool

func IsSecretDeleted

func IsSecretDeleted(k8sClient client.Client, name string, namespace string) bool

func IsServiceDeleted

func IsServiceDeleted(k8sClient client.Client, name string, namespace string) bool

Types

type OpenSearchClusterReconciler

type OpenSearchClusterReconciler struct {
	client.Client
	Scheme   *runtime.Scheme
	Recorder record.EventRecorder
	Instance *opsterv1.OpenSearchCluster
	logr.Logger
}

OpenSearchClusterReconciler reconciles a OpenSearchCluster object

func (*OpenSearchClusterReconciler) Reconcile

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 *opsterv1.OpensearchActionGroup
	logr.Logger
}

OpensearchActionGroupReconciler reconciles a OpensearchActionGroup object

func (*OpensearchActionGroupReconciler) Reconcile

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 *opsterv1.OpensearchComponentTemplate
	logr.Logger
}

OpensearchComponentTemplateReconciler reconciles a OpensearchComponentTemplate object

func (*OpensearchComponentTemplateReconciler) Reconcile

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 *opsterv1.OpenSearchISMPolicy
	logr.Logger
}

OpensearchISMReconciler reconciles a ISMPolicy object

func (*OpensearchISMPolicyReconciler) Reconcile

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 *opsterv1.OpensearchIndexTemplate
	logr.Logger
}

OpensearchIndexTemplateReconciler reconciles a OpensearchIndexTemplate object

func (*OpensearchIndexTemplateReconciler) Reconcile

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 *opsterv1.OpensearchRole
	logr.Logger
}

OpensearchRoleReconciler reconciles a OpensearchRole object

func (*OpensearchRoleReconciler) Reconcile

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 *opsterv1.OpensearchTenant
	logr.Logger
}

OpensearchTenantReconciler reconciles a OpensearchTenant object

func (*OpensearchTenantReconciler) Reconcile

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 *opsterv1.OpensearchUser
	logr.Logger
}

OpensearchUserReconciler reconciles a OpensearchUser object

func (*OpensearchUserReconciler) Reconcile

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 *opsterv1.OpensearchUserRoleBinding
	logr.Logger
}

OpensearchUserRoleBindingReconciler reconciles a OpensearchUserRoleBinding object

func (*OpensearchUserRoleBindingReconciler) Reconcile

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.

Jump to

Keyboard shortcuts

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