Documentation ¶
Index ¶
- Constants
- Variables
- func BuildClusterSvcHostName(instance *opsterv1.OpenSearchCluster) string
- func BuildCmdArg(instance *opsterv1.OpenSearchCluster, secret *corev1.Secret, log logr.Logger) string
- func UpdateComponentStatus(k8sClient k8s.K8sClient, cluster *opsterv1.OpenSearchCluster, ...) error
- type ActionGroupReconciler
- type ClusterReconciler
- type ComponentReconciler
- type ComponentTemplateReconciler
- type ConfigurationReconciler
- type DashboardsReconciler
- type IndexTemplateReconciler
- type IsmPolicyReconciler
- type NodePoolHash
- type ReconcilerContext
- type ReconcilerOption
- type ReconcilerOptions
- type RoleReconciler
- type RollingRestartReconciler
- type ScalerReconciler
- type SecurityconfigReconciler
- type SnapshotRepositoryReconciler
- type TLSReconciler
- type TenantReconciler
- type UpgradeReconciler
- type UserReconciler
- type UserRoleBindingReconciler
Constants ¶
View Source
const ( SecurityAdminBaseCmdTmpl = `` /* 196-byte string literal not displayed */ ApplyAllYmlCmdTmpl = `count=0; until $ADMIN -cacert %s -cert %s -key %s -cd %s -icl -nhnv -h %s -p %v || (( count++ >= 20 )); do sleep 20; done;` ApplySingleYmlCmdTmpl = `` /* 127-byte string literal not displayed */ )
View Source
const (
CaCertKey = "ca.crt"
)
Variables ¶
Functions ¶
func BuildClusterSvcHostName ¶
func BuildClusterSvcHostName(instance *opsterv1.OpenSearchCluster) string
BuildClusterSvcHostName builds the cluster host name as {svc-name}.{namespace}.svc.{dns-base}
func BuildCmdArg ¶
func BuildCmdArg(instance *opsterv1.OpenSearchCluster, secret *corev1.Secret, log logr.Logger) string
BuildCmdArg builds the command for the securityconfig-update job for each individual ymls present in the securityconfig secret. yml files which are not present in the secret are not applied/updated
func UpdateComponentStatus ¶
func UpdateComponentStatus( k8sClient k8s.K8sClient, cluster *opsterv1.OpenSearchCluster, status *opsterv1.ComponentStatus, ) error
Types ¶
type ActionGroupReconciler ¶
type ActionGroupReconciler struct { ReconcilerOptions // contains filtered or unexported fields }
func NewActionGroupReconciler ¶
func NewActionGroupReconciler( client client.Client, ctx context.Context, recorder record.EventRecorder, instance *opsterv1.OpensearchActionGroup, opts ...ReconcilerOption, ) *ActionGroupReconciler
func (*ActionGroupReconciler) Delete ¶
func (r *ActionGroupReconciler) Delete() error
type ClusterReconciler ¶
type ClusterReconciler struct {
// contains filtered or unexported fields
}
func NewClusterReconciler ¶
func NewClusterReconciler( client client.Client, ctx context.Context, recorder record.EventRecorder, reconcilerContext *ReconcilerContext, instance *opsterv1.OpenSearchCluster, opts ...reconciler.ResourceReconcilerOption, ) *ClusterReconciler
func (*ClusterReconciler) DeleteResources ¶
func (r *ClusterReconciler) DeleteResources() (ctrl.Result, error)
func (*ClusterReconciler) UpdateClusterStatus ¶
func (r *ClusterReconciler) UpdateClusterStatus() error
UpdateClusterStatus updates the cluster health and number of available nodes in the CR status
type ComponentReconciler ¶
type ComponentTemplateReconciler ¶
type ComponentTemplateReconciler struct { ReconcilerOptions // contains filtered or unexported fields }
func NewComponentTemplateReconciler ¶
func NewComponentTemplateReconciler( ctx context.Context, client client.Client, recorder record.EventRecorder, instance *opsterv1.OpensearchComponentTemplate, opts ...ReconcilerOption, ) *ComponentTemplateReconciler
func (*ComponentTemplateReconciler) Delete ¶
func (r *ComponentTemplateReconciler) Delete() error
type ConfigurationReconciler ¶
type ConfigurationReconciler struct {
// contains filtered or unexported fields
}
func NewConfigurationReconciler ¶
func NewConfigurationReconciler( client client.Client, ctx context.Context, recorder record.EventRecorder, reconcilerContext *ReconcilerContext, instance *opsterv1.OpenSearchCluster, opts ...reconciler.ResourceReconcilerOption, ) *ConfigurationReconciler
func (*ConfigurationReconciler) DeleteResources ¶
func (r *ConfigurationReconciler) DeleteResources() (ctrl.Result, error)
type DashboardsReconciler ¶
type DashboardsReconciler struct {
// contains filtered or unexported fields
}
func NewDashboardsReconciler ¶
func NewDashboardsReconciler( client client.Client, ctx context.Context, recorder record.EventRecorder, reconcilerContext *ReconcilerContext, instance *opsterv1.OpenSearchCluster, opts ...reconciler.ResourceReconcilerOption, ) *DashboardsReconciler
func (*DashboardsReconciler) DeleteResources ¶
func (r *DashboardsReconciler) DeleteResources() (ctrl.Result, error)
type IndexTemplateReconciler ¶
type IndexTemplateReconciler struct { ReconcilerOptions // contains filtered or unexported fields }
func NewIndexTemplateReconciler ¶
func NewIndexTemplateReconciler( ctx context.Context, client client.Client, recorder record.EventRecorder, instance *opsterv1.OpensearchIndexTemplate, opts ...ReconcilerOption, ) *IndexTemplateReconciler
func (*IndexTemplateReconciler) Delete ¶
func (r *IndexTemplateReconciler) Delete() error
type IsmPolicyReconciler ¶
type IsmPolicyReconciler struct { ReconcilerOptions // contains filtered or unexported fields }
func NewIsmReconciler ¶
func NewIsmReconciler( ctx context.Context, client client.Client, recorder record.EventRecorder, instance *opsterv1.OpenSearchISMPolicy, opts ...ReconcilerOption, ) *IsmPolicyReconciler
func (*IsmPolicyReconciler) CreateISMPolicy ¶
func (r *IsmPolicyReconciler) CreateISMPolicy() (*requests.ISMPolicySpec, error)
func (*IsmPolicyReconciler) Delete ¶
func (r *IsmPolicyReconciler) Delete() error
Delete ISM policy from the OS cluster
type NodePoolHash ¶
type ReconcilerContext ¶
type ReconcilerContext struct { Volumes []corev1.Volume VolumeMounts []corev1.VolumeMount NodePoolHashes []NodePoolHash DashboardsConfig map[string]string OpenSearchConfig map[string]string // contains filtered or unexported fields }
func NewReconcilerContext ¶
func NewReconcilerContext(recorder record.EventRecorder, instance *opsterv1.OpenSearchCluster, nodepools []opsterv1.NodePool) ReconcilerContext
func (*ReconcilerContext) AddConfig ¶
func (c *ReconcilerContext) AddConfig(key string, value string)
func (*ReconcilerContext) AddDashboardsConfig ¶
func (c *ReconcilerContext) AddDashboardsConfig(key string, value string)
type ReconcilerOption ¶
type ReconcilerOption func(*ReconcilerOptions)
func WithOSClientTransport ¶
func WithOSClientTransport(transport http.RoundTripper) ReconcilerOption
func WithUpdateStatus ¶
func WithUpdateStatus(update bool) ReconcilerOption
type ReconcilerOptions ¶
type ReconcilerOptions struct {
// contains filtered or unexported fields
}
type RoleReconciler ¶
type RoleReconciler struct { ReconcilerOptions // contains filtered or unexported fields }
func NewRoleReconciler ¶
func NewRoleReconciler( client client.Client, ctx context.Context, recorder record.EventRecorder, instance *opsterv1.OpensearchRole, opts ...ReconcilerOption, ) *RoleReconciler
func (*RoleReconciler) Delete ¶
func (r *RoleReconciler) Delete() error
type RollingRestartReconciler ¶
type RollingRestartReconciler struct {
// contains filtered or unexported fields
}
func NewRollingRestartReconciler ¶
func NewRollingRestartReconciler( client client.Client, ctx context.Context, recorder record.EventRecorder, reconcilerContext *ReconcilerContext, instance *opsterv1.OpenSearchCluster, opts ...reconciler.ResourceReconcilerOption, ) *RollingRestartReconciler
type ScalerReconciler ¶
type ScalerReconciler struct { ReconcilerOptions // contains filtered or unexported fields }
func NewScalerReconciler ¶
func NewScalerReconciler( client client.Client, ctx context.Context, recorder record.EventRecorder, reconcilerContext *ReconcilerContext, instance *opsterv1.OpenSearchCluster, opts ...ReconcilerOption, ) *ScalerReconciler
type SecurityconfigReconciler ¶
type SecurityconfigReconciler struct {
// contains filtered or unexported fields
}
func NewSecurityconfigReconciler ¶
func NewSecurityconfigReconciler( client client.Client, ctx context.Context, recorder record.EventRecorder, reconcilerContext *ReconcilerContext, instance *opsterv1.OpenSearchCluster, opts ...reconciler.ResourceReconcilerOption, ) *SecurityconfigReconciler
func (*SecurityconfigReconciler) DeleteResources ¶
func (r *SecurityconfigReconciler) DeleteResources() (ctrl.Result, error)
type SnapshotRepositoryReconciler ¶
type SnapshotRepositoryReconciler struct { ReconcilerOptions // contains filtered or unexported fields }
func NewSnapshotRepositoryReconciler ¶
func NewSnapshotRepositoryReconciler( client client.Client, ctx context.Context, recorder record.EventRecorder, instance *opsterv1.OpenSearchCluster, opts ...ReconcilerOption, ) *SnapshotRepositoryReconciler
func (*SnapshotRepositoryReconciler) Delete ¶
func (r *SnapshotRepositoryReconciler) Delete() error
func (*SnapshotRepositoryReconciler) Reconcile ¶
func (r *SnapshotRepositoryReconciler) Reconcile() (ctrl.Result, error)
func (*SnapshotRepositoryReconciler) ReconcileRepository ¶
func (r *SnapshotRepositoryReconciler) ReconcileRepository(repoConfig *opsterv1.SnapshotRepoConfig) error
type TLSReconciler ¶
type TLSReconciler struct {
// contains filtered or unexported fields
}
func NewTLSReconciler ¶
func NewTLSReconciler( client client.Client, ctx context.Context, reconcilerContext *ReconcilerContext, instance *opsterv1.OpenSearchCluster, opts ...reconciler.ResourceReconcilerOption, ) *TLSReconciler
func (*TLSReconciler) DeleteResources ¶
func (r *TLSReconciler) DeleteResources() (ctrl.Result, error)
type TenantReconciler ¶
type TenantReconciler struct { ReconcilerOptions // contains filtered or unexported fields }
func NewTenantReconciler ¶
func NewTenantReconciler( client client.Client, ctx context.Context, recorder record.EventRecorder, instance *opsterv1.OpensearchTenant, opts ...ReconcilerOption, ) *TenantReconciler
func (*TenantReconciler) Delete ¶
func (r *TenantReconciler) Delete() error
type UpgradeReconciler ¶
type UpgradeReconciler struct {
// contains filtered or unexported fields
}
func NewUpgradeReconciler ¶
func NewUpgradeReconciler( client client.Client, ctx context.Context, recorder record.EventRecorder, reconcilerContext *ReconcilerContext, instance *opsterv1.OpenSearchCluster, opts ...reconciler.ResourceReconcilerOption, ) *UpgradeReconciler
type UserReconciler ¶
type UserReconciler struct { ReconcilerOptions // contains filtered or unexported fields }
func NewUserReconciler ¶
func NewUserReconciler( client client.Client, ctx context.Context, recorder record.EventRecorder, instance *opsterv1.OpensearchUser, opts ...ReconcilerOption, ) *UserReconciler
func (*UserReconciler) Delete ¶
func (r *UserReconciler) Delete() error
type UserRoleBindingReconciler ¶
type UserRoleBindingReconciler struct { ReconcilerOptions // contains filtered or unexported fields }
func NewUserRoleBindingReconciler ¶
func NewUserRoleBindingReconciler( client client.Client, ctx context.Context, recorder record.EventRecorder, instance *opsterv1.OpensearchUserRoleBinding, opts ...ReconcilerOption, ) *UserRoleBindingReconciler
func (*UserRoleBindingReconciler) Delete ¶
func (r *UserRoleBindingReconciler) Delete() error
Source Files ¶
Click to show internal directories.
Click to hide internal directories.