kubernetes_manager

package
v0.11.2-rc1 Latest Latest
Warning

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

Go to latest
Published: Sep 13, 2023 License: Apache-2.0 Imports: 35 Imported by: 0

Documentation

Index

Constants

View Source
const (
	LabelOpsterCluster  = "opster.io/opensearch-cluster"
	LabelOpsterNodePool = "opster.io/opensearch-nodepool"
	LabelOpniNodeGroup  = "opni.io/node-group"
	TopologyKeyK8sHost  = "kubernetes.io/hostname"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type DefaultIndices added in v0.11.2

type DefaultIndices map[string]bool

func (DefaultIndices) RemoveFromSlice added in v0.11.2

func (d DefaultIndices) RemoveFromSlice(in []string) []string

func (DefaultIndices) Slice added in v0.11.2

func (d DefaultIndices) Slice() []string

type KubernetesManagerDriver

type KubernetesManagerDriver struct {
	KubernetesManagerDriverOptions
}

func (*KubernetesManagerDriver) AdminPassword

func (d *KubernetesManagerDriver) AdminPassword(ctx context.Context) (password []byte, retErr error)

func (*KubernetesManagerDriver) CreateOrUpdateCluster

func (d *KubernetesManagerDriver) CreateOrUpdateCluster(
	ctx context.Context,
	cluster *loggingadmin.OpensearchClusterV2,
	opniVersion string,
	natName string,
) error

func (*KubernetesManagerDriver) CreateOrUpdateSnapshot added in v0.11.2

func (d *KubernetesManagerDriver) CreateOrUpdateSnapshot(ctx context.Context, snapshot *loggingadmin.Snapshot) error

func (*KubernetesManagerDriver) DeleteCluster

func (d *KubernetesManagerDriver) DeleteCluster(ctx context.Context) error

func (*KubernetesManagerDriver) DeleteSnapshot added in v0.11.2

func (*KubernetesManagerDriver) DoUpgrade

func (d *KubernetesManagerDriver) DoUpgrade(ctx context.Context, opniVersion string) error

func (*KubernetesManagerDriver) GetCluster

func (*KubernetesManagerDriver) GetRecurringSnapshot added in v0.11.2

func (*KubernetesManagerDriver) GetStorageClasses

func (d *KubernetesManagerDriver) GetStorageClasses(ctx context.Context) ([]string, error)

func (*KubernetesManagerDriver) ListAllSnapshots added in v0.11.2

func (*KubernetesManagerDriver) NewOpensearchClientForCluster

func (d *KubernetesManagerDriver) NewOpensearchClientForCluster(ctx context.Context) *opensearch.Client

func (*KubernetesManagerDriver) UpgradeAvailable

func (d *KubernetesManagerDriver) UpgradeAvailable(ctx context.Context, opniVersion string) (bool, error)

type KubernetesManagerDriverOptions

type KubernetesManagerDriverOptions struct {
	OpensearchCluster *opnimeta.OpensearchClusterRef `option:"opensearchCluster"`
	K8sClient         client.Client                  `option:"k8sClient"`
	Logger            *zap.SugaredLogger
}

Jump to

Keyboard shortcuts

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