core_oam_dev

package
v1.9.0-beta.2 Latest Latest
Warning

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

Go to latest
Published: Jun 1, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ApplyOnceOnlyMode added in v0.3.3

type ApplyOnceOnlyMode string

ApplyOnceOnlyMode enumerates ApplyOnceOnly modes.

type Args

type Args struct {

	// RevisionLimit is the maximum number of revisions that will be maintained.
	// The default value is 50.
	RevisionLimit int

	// AppRevisionLimit is the maximum number of application revisions that will be maintained.
	// The default value is 10.
	AppRevisionLimit int

	// DefRevisionLimit is the maximum number of component/trait definition revisions that will be maintained.
	// The default value is 20.
	DefRevisionLimit int

	// ApplyMode indicates whether workloads and traits should be
	// affected if no spec change is made in the ApplicationConfiguration.
	ApplyMode ApplyOnceOnlyMode

	// CustomRevisionHookURL is a webhook which will let oam-runtime to call with AC+Component info
	// The webhook server will return a customized component revision for oam-runtime
	CustomRevisionHookURL string

	// PackageDiscover used for CRD discovery in CUE packages, a K8s client is contained in it.
	PackageDiscover *packages.PackageDiscover

	// ConcurrentReconciles is the concurrent reconcile number of the controller
	ConcurrentReconciles int

	// DependCheckWait is the time to wait for ApplicationConfiguration's dependent-resource ready
	DependCheckWait time.Duration

	// AutoGenWorkloadDefinition indicates whether automatic generated workloadDefinition which componentDefinition refers to
	AutoGenWorkloadDefinition bool

	// OAMSpecVer is the oam spec version controller want to setup
	OAMSpecVer string

	// EnableCompatibility indicates that will change some functions of controller to adapt to multiple platforms, such as asi.
	EnableCompatibility bool

	// IgnoreAppWithoutControllerRequirement indicates that application controller will not process the app without 'app.oam.dev/controller-version-require' annotation.
	IgnoreAppWithoutControllerRequirement bool

	// IgnoreDefinitionWithoutControllerRequirement indicates that trait/component/workflowstep definition controller will not process the definition without 'definition.oam.dev/controller-version-require' annotation.
	IgnoreDefinitionWithoutControllerRequirement bool
}

Args args used by controller

func (*Args) AddFlags added in v1.7.0

func (a *Args) AddFlags(fs *pflag.FlagSet, c *Args)

AddFlags adds flags to the specified FlagSet

Directories

Path Synopsis
core/components
Package components provides components related controllers.
Package components provides components related controllers.
core/traits
Package traits provides traits related controllers.
Package traits provides traits related controllers.

Jump to

Keyboard shortcuts

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