components

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Aug 23, 2023 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Overview

Package components contains some helper functions related to the components.

Index

Constants

This section is empty.

Variables

View Source
var (
	// ErrBrokenLinks is returned when there are broken links.
	ErrBrokenLinks = fmt.Errorf("broken links dependency detected")
)

Functions

func BuildDashboardComponent added in v0.4.0

func BuildDashboardComponent(conf BuildDashboardComponentConfig) (component internalversion.Component, err error)

BuildDashboardComponent builds the dashboard component.

func BuildEtcdComponent

func BuildEtcdComponent(conf BuildEtcdComponentConfig) (component internalversion.Component, err error)

BuildEtcdComponent builds an etcd component.

func BuildJaegerComponent added in v0.4.0

func BuildJaegerComponent(conf BuildJaegerComponentConfig) (component internalversion.Component, err error)

BuildJaegerComponent builds a jaeger component.

func BuildKubeApiserverComponent

func BuildKubeApiserverComponent(conf BuildKubeApiserverComponentConfig) (component internalversion.Component, err error)

BuildKubeApiserverComponent builds a kube-apiserver component.

func BuildKubeControllerManagerComponent

func BuildKubeControllerManagerComponent(conf BuildKubeControllerManagerComponentConfig) (component internalversion.Component, err error)

BuildKubeControllerManagerComponent builds a kube-controller-manager component.

func BuildKubeSchedulerComponent

func BuildKubeSchedulerComponent(conf BuildKubeSchedulerComponentConfig) (component internalversion.Component, err error)

BuildKubeSchedulerComponent builds a kube-scheduler component.

func BuildKwokControllerComponent

func BuildKwokControllerComponent(conf BuildKwokControllerComponentConfig) (component internalversion.Component)

BuildKwokControllerComponent builds a kwok controller component.

func BuildPrometheusComponent

func BuildPrometheusComponent(conf BuildPrometheusComponentConfig) (component internalversion.Component, err error)

BuildPrometheusComponent builds a prometheus component.

func GroupByLinks(components []internalversion.Component) ([][]internalversion.Component, error)

GroupByLinks groups stages by links.

Types

type BuildDashboardComponentConfig added in v0.4.0

type BuildDashboardComponentConfig struct {
	Binary      string
	Image       string
	Version     version.Version
	Workdir     string
	BindAddress string
	Port        uint32

	Banner string

	CaCertPath     string
	AdminCertPath  string
	AdminKeyPath   string
	KubeconfigPath string
}

BuildDashboardComponentConfig is the configuration for building the dashboard component.

type BuildEtcdComponentConfig

type BuildEtcdComponentConfig struct {
	Binary       string
	Image        string
	Version      version.Version
	DataPath     string
	Workdir      string
	BindAddress  string
	Port         uint32
	PeerPort     uint32
	Verbosity    log.Level
	ExtraArgs    []internalversion.ExtraArgs
	ExtraVolumes []internalversion.Volume
	ExtraEnvs    []internalversion.Env
}

BuildEtcdComponentConfig is the configuration for building an etcd component.

type BuildJaegerComponentConfig added in v0.4.0

type BuildJaegerComponentConfig struct {
	Binary       string
	Image        string
	Version      version.Version
	Workdir      string
	BindAddress  string
	Port         uint32
	OtlpGrpcPort uint32
	Verbosity    log.Level
	ExtraArgs    []internalversion.ExtraArgs
	ExtraVolumes []internalversion.Volume
}

BuildJaegerComponentConfig is the configuration for building a jaeger component.

type BuildKubeApiserverComponentConfig

type BuildKubeApiserverComponentConfig struct {
	Binary            string
	Image             string
	Version           version.Version
	Workdir           string
	BindAddress       string
	Port              uint32
	EtcdAddress       string
	EtcdPort          uint32
	KubeRuntimeConfig string
	KubeFeatureGates  string
	SecurePort        bool
	KubeAuthorization bool
	KubeAdmission     bool
	AuditPolicyPath   string
	AuditLogPath      string
	CaCertPath        string
	AdminCertPath     string
	AdminKeyPath      string
	Verbosity         log.Level
	DisableQPSLimits  bool
	TracingConfigPath string
	ExtraArgs         []internalversion.ExtraArgs
	ExtraVolumes      []internalversion.Volume
	ExtraEnvs         []internalversion.Env
}

BuildKubeApiserverComponentConfig is the configuration for building a kube-apiserver component.

type BuildKubeControllerManagerComponentConfig

type BuildKubeControllerManagerComponentConfig struct {
	Binary                             string
	Image                              string
	Version                            version.Version
	Workdir                            string
	BindAddress                        string
	Port                               uint32
	SecurePort                         bool
	CaCertPath                         string
	AdminCertPath                      string
	AdminKeyPath                       string
	KubeAuthorization                  bool
	KubeconfigPath                     string
	KubeFeatureGates                   string
	NodeMonitorPeriodMilliseconds      int64
	NodeMonitorGracePeriodMilliseconds int64
	Verbosity                          log.Level
	DisableQPSLimits                   bool
	ExtraArgs                          []internalversion.ExtraArgs
	ExtraVolumes                       []internalversion.Volume
	ExtraEnvs                          []internalversion.Env
}

BuildKubeControllerManagerComponentConfig is the configuration for building a kube-controller-manager component.

type BuildKubeSchedulerComponentConfig

type BuildKubeSchedulerComponentConfig struct {
	Binary           string
	Image            string
	Version          version.Version
	Workdir          string
	BindAddress      string
	Port             uint32
	SecurePort       bool
	CaCertPath       string
	AdminCertPath    string
	AdminKeyPath     string
	ConfigPath       string
	KubeconfigPath   string
	KubeFeatureGates string
	Verbosity        log.Level
	DisableQPSLimits bool
	ExtraArgs        []internalversion.ExtraArgs
	ExtraVolumes     []internalversion.Volume
	ExtraEnvs        []internalversion.Env
}

BuildKubeSchedulerComponentConfig is the configuration for building a kube-scheduler component.

type BuildKwokControllerComponentConfig

type BuildKwokControllerComponentConfig struct {
	Binary                   string
	Image                    string
	Version                  version.Version
	Workdir                  string
	BindAddress              string
	Port                     uint32
	ConfigPath               string
	KubeconfigPath           string
	CaCertPath               string
	AdminCertPath            string
	AdminKeyPath             string
	NodeName                 string
	Verbosity                log.Level
	NodeLeaseDurationSeconds uint
	EnableCRDs               []string
	ExtraArgs                []internalversion.ExtraArgs
	ExtraVolumes             []internalversion.Volume
	ExtraEnvs                []internalversion.Env
}

BuildKwokControllerComponentConfig is the configuration for building a kwok controller component.

type BuildPrometheusComponentConfig

type BuildPrometheusComponentConfig struct {
	Binary        string
	Image         string
	Version       version.Version
	Workdir       string
	BindAddress   string
	Port          uint32
	ConfigPath    string
	AdminCertPath string
	AdminKeyPath  string
	Verbosity     log.Level
	ExtraArgs     []internalversion.ExtraArgs
	ExtraVolumes  []internalversion.Volume
	ExtraEnvs     []internalversion.Env
}

BuildPrometheusComponentConfig is the configuration for building a prometheus component.

Jump to

Keyboard shortcuts

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