controller

package
v0.1.5 Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2025 License: MIT Imports: 32 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Command

type Command struct {
	Run     RunCmd     `cmd:"" help:"Run the ArgoCD Tailscale integration controller."`
	Version VersionCmd `cmd:"" name:"version" help:"Show version information and exit."`
}

type RunCmd

type RunCmd struct {
	ReconcileInterval time.Duration `` /* 149-byte string literal not displayed */

	Tailscale struct {
		BaseURL          *url.URL `` /* 131-byte string literal not displayed */
		Tailnet          string   `` /* 137-byte string literal not displayed */
		AuthKey          string   `` /* 150-byte string literal not displayed */
		AuthKeyFile      []byte   `` /* 204-byte string literal not displayed */
		DeviceTagFilters []string `` /* 154-byte string literal not displayed */

		Webhook struct {
			Enable     bool   `` /* 129-byte string literal not displayed */
			Port       int    `name:"port" help:"Tailscale webhook port." default:"3000" env:"TAILSCALE_WEBHOOK_PORT" group:"Tailscale flags" `
			Secret     string `` /* 154-byte string literal not displayed */
			SecretFile []byte `` /* 221-byte string literal not displayed */
		} `embed:"" prefix:"webhook."`
	} `embed:"" prefix:"ts."`

	Namespace string `` // trunk-ignore(golangci-lint/lll)
	/* 152-byte string literal not displayed */

	Log struct {
		Development bool                 `name:"devel" help:"Enable development logging." env:"DEVEL" group:"Log flags"`
		Verbosity   zapcore.LevelEnabler `name:"v" help:"Log verbosity level." default:"2" env:"VERBOSITY" group:"Log flags"`
		Format      zapcore.Encoder      `name:"format" help:"Log encoding format, either 'json' or 'console'." default:"json" env:"FORMAT" group:"Log flags"`
	} `embed:"" prefix:"log." envprefix:"LOG_"`
	// contains filtered or unexported fields
}

func (*RunCmd) AfterApply

func (c *RunCmd) AfterApply() error

func (*RunCmd) Run

func (c *RunCmd) Run(cli *kong.Context) error

type VersionCmd

type VersionCmd struct{}

func (VersionCmd) Run

func (VersionCmd) Run(cli *kong.Context) error

Jump to

Keyboard shortcuts

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