kubedatasource

package
v0.0.0-...-6cd9bba Latest Latest
Warning

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

Go to latest
Published: Dec 12, 2024 License: BSD-2-Clause Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConfigMapDS

type ConfigMapDS struct {
	// contains filtered or unexported fields
}

func NewConfigMapDS

func NewConfigMapDS(ctx context.Context, cfg *config.Config, factory informers.SharedInformerFactory, updateChan chan time.Time) (*ConfigMapDS, error)

func (*ConfigMapDS) GetFdlist

GetFdlist return nil for this mode because it does not use CRDs:

func (*ConfigMapDS) GetFluentdConfig

func (c *ConfigMapDS) GetFluentdConfig(ctx context.Context, namespace string) (string, error)

GetFluentdConfig returns the fluentd configs for the given ns extracted by the configured ConfigMaps

func (*ConfigMapDS) IsReady

func (c *ConfigMapDS) IsReady() bool

IsReady returns a boolean specifying whether the ConfigMapDS is ready

type FluentdConfigDS

type FluentdConfigDS struct {
	Cfg        *config.Config
	Fdlist     kfoListersV1beta1.FluentdConfigLister
	Fdready    func() bool
	UpdateChan chan time.Time
}

func NewFluentdConfigDS

func NewFluentdConfigDS(ctx context.Context, cfg *config.Config, kubeCfg *rest.Config, updateChan chan time.Time) (*FluentdConfigDS, error)

func (*FluentdConfigDS) GetFdlist

GetFdList returns the lister for fluentconfigs informer:

func (*FluentdConfigDS) GetFluentdConfig

func (f *FluentdConfigDS) GetFluentdConfig(ctx context.Context, namespace string) (string, error)

GetFluentdConfig returns the fluentd configs for the given ns extracted by the configured FluentdConfigs k8s resources

func (*FluentdConfigDS) IsReady

func (f *FluentdConfigDS) IsReady() bool

IsReady returns a boolean specifying whether the FluentdConfigDS is ready

type KubeDS

type KubeDS interface {
	GetFluentdConfig(ctx context.Context, namespace string) (string, error)
	IsReady() bool
	GetFdlist() kfoListersV1beta1.FluentdConfigLister
}

KubeDS is an interface defining behavor for the Kubernetes Resources containing FluentD configurations

type MigrationModeDS

type MigrationModeDS struct {
	// contains filtered or unexported fields
}

MigrationModeDS is an abstraction providing a virtual KubeDS instance that internally uses both the fluentdConfig KubeDS and the configMap KubeDS This abstraction allows both KubeDS to be used together

func NewMigrationModeDS

func NewMigrationModeDS(ctx context.Context, cfg *config.Config, kubeCfg *rest.Config, factory informers.SharedInformerFactory, updateChan chan time.Time) (*MigrationModeDS, error)

func (*MigrationModeDS) GetFdlist

GetFdlist return nil for this mode because it does not use CRDs:

func (*MigrationModeDS) GetFluentdConfig

func (m *MigrationModeDS) GetFluentdConfig(ctx context.Context, namespace string) (string, error)

GetFluentdConfig returns the fluentd configs for the given ns extracted by the two KubeDS and concatenated together

func (*MigrationModeDS) IsReady

func (m *MigrationModeDS) IsReady() bool

IsReady returns a boolean specifying whether the MigrationModeDS is ready

Directories

Path Synopsis
fluentdconfig
client/clientset/versioned
This package has the automatically generated clientset.
This package has the automatically generated clientset.
client/clientset/versioned/fake
This package has the automatically generated fake clientset.
This package has the automatically generated fake clientset.
client/clientset/versioned/scheme
This package contains the scheme of the automatically generated clientset.
This package contains the scheme of the automatically generated clientset.
client/clientset/versioned/typed/logs.vdp.vmware.com/v1beta1
This package has the automatically generated typed clients.
This package has the automatically generated typed clients.
client/clientset/versioned/typed/logs.vdp.vmware.com/v1beta1/fake
Package fake has the automatically generated clients.
Package fake has the automatically generated clients.
crd

Jump to

Keyboard shortcuts

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