common

package
v0.0.0-...-f074d01 Latest Latest
Warning

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

Go to latest
Published: May 14, 2021 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (

	// AppConfigGroup is the Group of OAM
	AppConfigGroup = "core.oam.dev"
	// AppConfigVersion is the version of OAM spec this admission controller could validate
	AppConfigVersion = "v1alpha1"
	// AppConfigCRD is the resources of the Application Configuration
	AppConfigCRD = "applicationconfigurations"
	// ComponentCRD is the resources of the Component
	ComponentCRD = "componentschematics"
	// ScopeCRD is the resources of the Scope
	ScopeCRD = "applicationscopes"
	// TraitCRD is the resources of the Trait
	TraitCRD = "traits"
)
View Source
const (
	WorkloadServer          = "core.oam.dev/v1alpha1.Server"
	WorkloadSingletonServer = "core.oam.dev/v1alpha1.SingletonServer"
	WorkloadTask            = "core.oam.dev/v1alpha1.Task"
	WorkloadSingletonTask   = "core.oam.dev/v1alpha1.SingletonTask"
	WorkloadSingletonWorker = "core.oam.dev/v1alpha1.SingletonWorker"
	WorkloadWorker          = "core.oam.dev/v1alpha1.Worker"
)

Variables

View Source
var Scheme = runtime.NewScheme()

Functions

func ConfigTLS

func ConfigTLS(config Config) *tls.Config

func ToErrorResponse

func ToErrorResponse(err error) *v1beta1.AdmissionResponse

ToErrorResponse is a helper function to create an AdmissionResponse with an embedded error

Types

type Config

type Config struct {
	CertFile string
	KeyFile  string
}

Config contains the server (the webhook) cert and key.

func (*Config) AddFlags

func (c *Config) AddFlags()

Jump to

Keyboard shortcuts

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