app

package
v1.1.2 Latest Latest
Warning

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

Go to latest
Published: Dec 28, 2022 License: Apache-2.0 Imports: 6 Imported by: 3 modules, 11 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const (
	DefaultGlobalHooksDir  = "global-hooks"
	DefaultModulesDir      = "modules"
	DefaultTempDir         = "/tmp/addon-operator"
	DefaultDebugUnixSocket = "/var/run/addon-operator/debug.socket"
)

Variables

View Source
var (
	AppName        = "addon-operator"
	AppDescription = ""
	Version        = "dev"

	DefaultListenAddress           = "0.0.0.0"
	DefaultListenPort              = "9650"
	DefaultPrometheusMetricsPrefix = "addon_operator_"

	Helm3HistoryMax   int32         = 10
	Helm3Timeout      time.Duration = 5 * time.Minute
	HelmIgnoreRelease               = ""

	HelmMonitorKubeClientQpsDefault   = "5" // DefaultQPS from k8s.io/client-go/rest/config.go
	HelmMonitorKubeClientQps          float32
	HelmMonitorKubeClientBurstDefault = "10" // DefaultBurst from k8s.io/client-go/rest/config.go
	HelmMonitorKubeClientBurst        int

	Namespace     = ""
	ConfigMapName = "addon-operator"

	GlobalHooksDir = "global-hooks"
	ModulesDir     = "modules"
)

Functions

func AddOutputJsonYamlFlag

func AddOutputJsonYamlFlag(cmd *kingpin.CmdClause)

func DefineDebugCommands

func DefineDebugCommands(kpApp *kingpin.Application)

func DefineStartCommandFlags

func DefineStartCommandFlags(kpApp *kingpin.Application, cmd *kingpin.CmdClause)

DefineStartCommandFlags init global flags with default values

Types

type GlobalRequest

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

func Global

func Global(client *sh_debug.Client) *GlobalRequest

func (*GlobalRequest) Config

func (gr *GlobalRequest) Config(format string) ([]byte, error)

func (*GlobalRequest) List added in v1.0.4

func (gr *GlobalRequest) List(format string) ([]byte, error)

func (*GlobalRequest) Patches

func (gr *GlobalRequest) Patches() ([]byte, error)

func (*GlobalRequest) Snapshots added in v1.0.4

func (gr *GlobalRequest) Snapshots(format string) ([]byte, error)

func (*GlobalRequest) Values

func (gr *GlobalRequest) Values(format string) ([]byte, error)

type ModuleRequest

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

func Module

func Module(client *sh_debug.Client) *ModuleRequest

func (*ModuleRequest) Config

func (mr *ModuleRequest) Config(format string) ([]byte, error)

func (*ModuleRequest) List

func (r *ModuleRequest) List(format string) ([]byte, error)

func (*ModuleRequest) Name

func (mr *ModuleRequest) Name(name string) *ModuleRequest

func (*ModuleRequest) Patches

func (mr *ModuleRequest) Patches() ([]byte, error)

func (*ModuleRequest) Render

func (mr *ModuleRequest) Render() ([]byte, error)

func (*ModuleRequest) ResourceMonitor

func (mr *ModuleRequest) ResourceMonitor(format string) ([]byte, error)

func (*ModuleRequest) Snapshots added in v1.0.4

func (mr *ModuleRequest) Snapshots(format string) ([]byte, error)

func (*ModuleRequest) Values

func (mr *ModuleRequest) Values(format string) ([]byte, error)

Jump to

Keyboard shortcuts

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