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 Codecs = serializer.NewCodecFactory(Scheme)
View Source
var Scheme = runtime.NewScheme()
Functions ¶
func ToErrorResponse ¶
func ToErrorResponse(err error) *v1beta1.AdmissionResponse
ToErrorResponse is a helper function to create an AdmissionResponse with an embedded error
Types ¶
Click to show internal directories.
Click to hide internal directories.