Documentation ¶
Index ¶
Constants ¶
const GroupName = "apiextensions.k8s.io"
Variables ¶
var ( SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes) AddToScheme = localSchemeBuilder.AddToScheme )
var SchemeGroupVersion = schema.GroupVersion{Group: GroupName, Version: runtime.APIVersionInternal}
SchemeGroupVersion is group version used to register these objects
Functions ¶
func Resource ¶
func Resource(resource string) schema.GroupResource
Resource takes an unqualified resource and returns back a Group qualified GroupResource
Types ¶
type ConversionRequest ¶
type ConversionRequest struct { // uid is an identifier for the individual request/response. It allows distinguishing instances of requests which are // otherwise identical (parallel requests, etc). // The UID is meant to track the round trip (request/response) between the Kubernetes API server and the webhook, not the user request. // It is suitable for correlating log entries between the webhook and apiserver, for either auditing or debugging. UID types.UID // desiredAPIVersion is the version to convert given objects to. e.g. "myapi.example.com/v1" DesiredAPIVersion string // objects is the list of custom resource objects to be converted. Objects []runtime.RawExtension }
ConversionRequest describes the conversion request parameters.
func (*ConversionRequest) DeepCopy ¶
func (in *ConversionRequest) DeepCopy() *ConversionRequest
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ConversionRequest.
func (*ConversionRequest) DeepCopyInto ¶
func (in *ConversionRequest) DeepCopyInto(out *ConversionRequest)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ConversionResponse ¶
type ConversionResponse struct { // uid is an identifier for the individual request/response. // This should be copied over from the corresponding `request.uid`. UID types.UID // convertedObjects is the list of converted version of `request.objects` if the `result` is successful, otherwise empty. // The webhook is expected to set `apiVersion` of these objects to the `request.desiredAPIVersion`. The list // must also have the same size as the input list with the same objects in the same order (equal kind, metadata.uid, metadata.name and metadata.namespace). // The webhook is allowed to mutate labels and annotations. Any other change to the metadata is silently ignored. ConvertedObjects []runtime.RawExtension // result contains the result of conversion with extra details if the conversion failed. `result.status` determines if // the conversion failed or succeeded. The `result.status` field is required and represents the success or failure of the // conversion. A successful conversion must set `result.status` to `Success`. A failed conversion must set // `result.status` to `Failure` and provide more details in `result.message` and return http status 200. The `result.message` // will be used to construct an error message for the end user. Result metav1.Status }
ConversionResponse describes a conversion response.
func (*ConversionResponse) DeepCopy ¶
func (in *ConversionResponse) DeepCopy() *ConversionResponse
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ConversionResponse.
func (*ConversionResponse) DeepCopyInto ¶
func (in *ConversionResponse) DeepCopyInto(out *ConversionResponse)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ConversionReview ¶
type ConversionReview struct { metav1.TypeMeta // request describes the attributes for the conversion request. // +optional Request *ConversionRequest // response describes the attributes for the conversion response. // +optional Response *ConversionResponse }
ConversionReview describes a conversion request/response.
func (*ConversionReview) DeepCopy ¶
func (in *ConversionReview) DeepCopy() *ConversionReview
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ConversionReview.
func (*ConversionReview) DeepCopyInto ¶
func (in *ConversionReview) DeepCopyInto(out *ConversionReview)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ConversionReview) DeepCopyObject ¶
func (in *ConversionReview) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.