options

package
v1.10.10 Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2026 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

View Source
const VelaCoreHTTPDenyConfigTemplate = "vela-core-http-deny"

VelaCoreHTTPDenyConfigTemplate is the vela-core chart ConfigTemplate name and discovery label (config.oam.dev/type). Distinct from workflow's httpguard.WorkflowHTTPDenyConfigTemplate so dual install owns separate templates.

Variables

This section is empty.

Functions

This section is empty.

Types

type CoreOptions

type CoreOptions struct {
	UseWebhook              bool
	CertDir                 string
	WebhookPort             int
	MetricsAddr             string
	EnableLeaderElection    bool
	LeaderElectionNamespace string
	LogFilePath             string
	LogFileMaxSize          uint64
	LogDebug                bool
	DevLogs                 bool
	ControllerArgs          *oamcontroller.Args
	HealthAddr              string
	StorageDriver           string
	InformerSyncPeriod      time.Duration
	QPS                     float64
	Burst                   int
	LeaseDuration           time.Duration
	RenewDeadLine           time.Duration
	RetryPeriod             time.Duration
	EnableClusterGateway    bool
	EnableClusterMetrics    bool
	ClusterMetricsInterval  time.Duration
	// WebhookTLSSecret is the <namespace>/<name> of the Secret that holds the
	// webhook serving cert. If it is set and UseWebhook is true, vela-core
	// creates or renews the cert at startup. vela-core writes the cert to CertDir and sets the caBundle of the
	// webhook configurations.
	WebhookTLSSecret string
	// WebhookConfigurationName is the name of the MutatingWebhookConfiguration
	// and the ValidatingWebhookConfiguration whose caBundle vela-core sets.
	WebhookConfigurationName string
	// WebhookFailurePolicy, if not empty, goes to every webhook when the webhook
	// server serves requests.
	WebhookFailurePolicy string
	// WebhookConversionCRDs are the CRDs whose conversion webhook vela-core
	// points at its webhook Service.
	WebhookConversionCRDs []string
	// ClusterGatewayTLSSecret is the <namespace>/<name> of the Secret that holds
	// the cluster-gateway serving cert. If it is set and EnableClusterGateway is
	// true, vela-core creates or renews the cert at startup. vela-core writes
	// the CA into the cluster-gateway APIService when the APIService points at
	// ClusterGatewayService.
	ClusterGatewayTLSSecret string
	// ClusterGatewayService is the <namespace>/<name> of the Service that the
	// cluster-gateway serving cert is for. vela-core sets the APIService
	// caBundle only when the APIService points at this Service.
	ClusterGatewayService string

	// WorkflowHTTPDenyConfigTemplateName selects the labeled workflow HTTP deny ConfigMaps.
	WorkflowHTTPDenyConfigTemplateName string
}

CoreOptions contains everything necessary to create and run vela-core

func NewCoreOptions

func NewCoreOptions() *CoreOptions

NewCoreOptions creates a new NewVelaCoreOptions object with default parameters

func (*CoreOptions) Flags

func (s *CoreOptions) Flags() cliflag.NamedFlagSets

Flags returns the complete NamedFlagSets

Jump to

Keyboard shortcuts

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