Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
var (
// AddToScheme adds to the scheme.
AddToScheme = localSchemeBuilder.AddToScheme
)
var SchemeGroupVersion = schema.GroupVersion{
Group: "examplecrd.jasonhancock.com",
Version: "v1",
}
SchemeGroupVersion defines the group info of the API.
Functions ¶
func Resource ¶
func Resource(resource string) schema.GroupResource
Resource takes an unqualified resource and returns a Group qualified GroupResource
Types ¶
type ExampleResource ¶
type ExampleResource struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec ExampleResourceSpec `json:"spec"` }
ExampleResource is our example resource. +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
func (*ExampleResource) DeepCopy ¶
func (in *ExampleResource) DeepCopy() *ExampleResource
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ExampleResource.
func (*ExampleResource) DeepCopyInto ¶
func (in *ExampleResource) DeepCopyInto(out *ExampleResource)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ExampleResource) DeepCopyObject ¶
func (in *ExampleResource) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type ExampleResourceList ¶
type ExampleResourceList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []ExampleResource `json:"items"` }
ExampleResourceList is a list of ExampleResource objects. +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
func (*ExampleResourceList) DeepCopy ¶
func (in *ExampleResourceList) DeepCopy() *ExampleResourceList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ExampleResourceList.
func (*ExampleResourceList) DeepCopyInto ¶
func (in *ExampleResourceList) DeepCopyInto(out *ExampleResourceList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ExampleResourceList) DeepCopyObject ¶
func (in *ExampleResourceList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type ExampleResourceSpec ¶
ExampleResourceSpec is the spec of the ExampleResource object. +kubebuilder:object:generate=true
func (*ExampleResourceSpec) DeepCopy ¶
func (in *ExampleResourceSpec) DeepCopy() *ExampleResourceSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ExampleResourceSpec.
func (*ExampleResourceSpec) DeepCopyInto ¶
func (in *ExampleResourceSpec) DeepCopyInto(out *ExampleResourceSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.