Documentation ¶
Overview ¶
'package' indicates that the generated code should be included at the package level 'groupName' indicates the name of the API Group +k8s:deepcopy-gen=package,register +groupName=kompass.io
Index ¶
Constants ¶
const GroupName = "kompass.io"
GroupName specifies the group name used to register the objects.
Variables ¶
var ( // localSchemeBuilder and AddToScheme will stay in k8s.io/kubernetes. SchemeBuilder runtime.SchemeBuilder // Depreciated: use Install instead AddToScheme = localSchemeBuilder.AddToScheme Install = localSchemeBuilder.AddToScheme )
var GroupVersion = v1.GroupVersion{Group: GroupName, Version: "v1alpha1"}
GroupVersion specifies the group and the version used to register the objects.
var SchemeGroupVersion = schema.GroupVersion{Group: GroupName, Version: "v1alpha1"}
SchemeGroupVersion is group version used to register these objects Deprecated: use GroupVersion instead.
Functions ¶
func Resource ¶
func Resource(resource string) schema.GroupResource
Resource takes an unqualified resource and returns a Group qualified GroupResource
Types ¶
type LeafPodConvertPolicy ¶
type LeafPodConvertPolicy struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec LeafPodConvertPolicySpec `json:"spec"` // +optional Status LeafPodConvertPolicyStatus `json:"status"` }
func (*LeafPodConvertPolicy) DeepCopy ¶
func (in *LeafPodConvertPolicy) DeepCopy() *LeafPodConvertPolicy
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LeafPodConvertPolicy.
func (*LeafPodConvertPolicy) DeepCopyInto ¶
func (in *LeafPodConvertPolicy) DeepCopyInto(out *LeafPodConvertPolicy)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*LeafPodConvertPolicy) DeepCopyObject ¶
func (in *LeafPodConvertPolicy) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type LeafPodConvertPolicyList ¶
type LeafPodConvertPolicyList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata"` Items []LeafPodConvertPolicy `json:"items"` }
func (*LeafPodConvertPolicyList) DeepCopy ¶
func (in *LeafPodConvertPolicyList) DeepCopy() *LeafPodConvertPolicyList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LeafPodConvertPolicyList.
func (*LeafPodConvertPolicyList) DeepCopyInto ¶
func (in *LeafPodConvertPolicyList) DeepCopyInto(out *LeafPodConvertPolicyList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*LeafPodConvertPolicyList) DeepCopyObject ¶
func (in *LeafPodConvertPolicyList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type LeafPodConvertPolicySpec ¶
type LeafPodConvertPolicySpec struct { // If specified, the pod's scheduling constraints // +optional Affinity *corev1.Affinity `json:"affinity,omitempty" protobuf:"bytes,18,opt,name=affinity"` // If specified, the pod's tolerations. // +optional Tolerations []corev1.Toleration `json:"tolerations,omitempty" protobuf:"bytes,22,opt,name=tolerations"` // HostAliases is an optional list of hosts and IPs that will be injected into the pod's hosts // file if specified. This is only valid for non-hostNetwork pods. // +optional HostAliases []corev1.HostAlias `json:"hostAliases,omitempty"` }
func (*LeafPodConvertPolicySpec) DeepCopy ¶
func (in *LeafPodConvertPolicySpec) DeepCopy() *LeafPodConvertPolicySpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LeafPodConvertPolicySpec.
func (*LeafPodConvertPolicySpec) DeepCopyInto ¶
func (in *LeafPodConvertPolicySpec) DeepCopyInto(out *LeafPodConvertPolicySpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type LeafPodConvertPolicyStatus ¶
type LeafPodConvertPolicyStatus struct { // +optional CUEScript string `json:"cue,omitempty"` }
func (*LeafPodConvertPolicyStatus) DeepCopy ¶
func (in *LeafPodConvertPolicyStatus) DeepCopy() *LeafPodConvertPolicyStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LeafPodConvertPolicyStatus.
func (*LeafPodConvertPolicyStatus) DeepCopyInto ¶
func (in *LeafPodConvertPolicyStatus) DeepCopyInto(out *LeafPodConvertPolicyStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.