Documentation ¶
Index ¶
- Constants
- Variables
- func ConvertToUnstructured(resourceObject runtime.Object) (resource *unstructured.Unstructured)
- func DeserializeResource(resourceRawExtension *runtime.RawExtension, fldPath *field.Path) (resource runtime.Object, allErrs field.ErrorList)
- type ResourceDistributionCreateUpdateHandler
Constants ¶
View Source
const ( ResourceHashCodeAnnotation = "kruise.io/resourcedistribution.resource.hashcode" SourceResourceDistributionOfResource = "kruise.io/resourcedistribution.resource.from" )
Variables ¶
View Source
var ( // HandlerGetterMap contains admission webhook handlers HandlerGetterMap = map[string]types.HandlerGetter{ "validate-apps-kruise-io-v1alpha1-resourcedistribution": func(mgr manager.Manager) admission.Handler { return &ResourceDistributionCreateUpdateHandler{ Client: mgr.GetClient(), Decoder: admission.NewDecoder(mgr.GetScheme()), } }, } )
Functions ¶
func ConvertToUnstructured ¶
func ConvertToUnstructured(resourceObject runtime.Object) (resource *unstructured.Unstructured)
ConvertToUnstructured receive runtime.Object, return *unstructured.Unstructured reused by controller
func DeserializeResource ¶
func DeserializeResource(resourceRawExtension *runtime.RawExtension, fldPath *field.Path) (resource runtime.Object, allErrs field.ErrorList)
DeserializeResource receive yaml of resource, return runtime.Object reused by controller
Types ¶
Click to show internal directories.
Click to hide internal directories.