Help us shape the future of Go! Take the 2026 Go Developer Survey

flags

package
v0.34.5 Latest Latest
Warning

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

Go to latest
Published: Oct 8, 2026 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Overview

Package flags declares the CLI flags and environment defaults for reaching the registry-packages-proxy.

Reaching the proxy means two separate TLS connections, each with its own trust decision, so each has its own switch:

  • the Kubernetes API server, asked where the proxy lives (endpoint discovery);
  • the proxy itself, which serves the artifacts.

Index

Constants

View Source
const (
	EnvEndpoint = "D8_RPP_ENDPOINT"
	EnvCAFile   = "D8_RPP_CA_FILE"
)

Variables

View Source
var (
	// Endpoint is the proxy base URL (e.g. https://<master-ip>:4219, or the
	// public Ingress). Empty means discover it from the cluster.
	Endpoint = os.Getenv(EnvEndpoint)

	// CAFile points to a PEM CA bundle used to verify the proxy TLS certificate
	// in addition to the system roots.
	CAFile = os.Getenv(EnvCAFile)

	// InsecureSkipTLSVerify disables TLS verification on both connections d8 makes:
	// to the API server and to the proxy (debugging only).
	InsecureSkipTLSVerify bool
)

CLI parameters for the registry-packages-proxy connection.

Functions

func AddFlags

func AddFlags(flagSet *pflag.FlagSet)

AddFlags registers the registry-packages-proxy connection flags on flagSet.

Types

This section is empty.

Jump to

Keyboard shortcuts

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