components

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Jun 20, 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 BuildEtcdComponent

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

BuildEtcdComponent builds an etcd 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 ForeachComponents added in v0.3.0

func ForeachComponents(ctx context.Context, cs []internalversion.Component, reverse, order bool, fun func(ctx context.Context, component internalversion.Component) error) error

ForeachComponents starts components.

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

GroupByLinks groups stages by links.

Types

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
}

BuildEtcdComponentConfig is the configuration for building an etcd 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
	ExtraArgs         []internalversion.ExtraArgs
	ExtraVolumes      []internalversion.Volume
}

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
}

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
}

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
	ExtraArgs                []internalversion.ExtraArgs
	ExtraVolumes             []internalversion.Volume
}

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
}

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
JackTT - Gopher 🇻🇳