dmworker

package
v2.2.0-alpha.2 Latest Latest
Warning

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

Go to latest
Published: Jun 15, 2026 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Name          string `toml:"name"`
	WorkerAddr    string `toml:"worker-addr"`
	AdvertiseAddr string `toml:"advertise-addr"`
	// Join is the dm-master client address list (e.g., "host1:8261,host2:8261")
	Join     string `toml:"join"`
	RelayDir string `toml:"relay-dir"`

	// SSL fields are top-level in DM worker config (not nested under [security])
	SSLCA   string `toml:"ssl-ca"`
	SSLCert string `toml:"ssl-cert"`
	SSLKey  string `toml:"ssl-key"`
}

Config is a subset config of dm-worker. Only operator-managed fields are defined here.

func (*Config) Overlay

func (c *Config) Overlay(cluster *v1alpha1.Cluster, dw *v1alpha1.DMWorker, dmMasterAddr string) error

Overlay fills in operator-managed config fields. dmMasterAddr is the dm-master client service address (e.g., "host:8261") used as the join target.

func (*Config) Validate

func (c *Config) Validate() error

Jump to

Keyboard shortcuts

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