Documentation ¶
Overview ¶
Package v1alpha1 contains API Schema definitions for the shim v1alpha1 API group +k8s:openapi-gen=true +k8s:deepcopy-gen=package,register +k8s:conversion-gen=github.com/kudobuilder/shim/examples/statefulsetservice/crd/apis/externalservice +k8s:defaulter-gen=TypeMeta +groupName=service.statefulset.kudo.dev
Package v1alpha1 contains API Schema definitions for the kudoshim v1alpha1 API group +k8s:openapi-gen=true +k8s:deepcopy-gen=package,register +k8s:conversion-gen=github.com/kudobuilder/shim/examples/statefulsetservice/crd/apis/externalservice +k8s:defaulter-gen=TypeMeta +groupName=service.statefulset.kudo.dev
Index ¶
Constants ¶
const ( // GroupName is the group name use in this package GroupName string = "service.statefulset.kudo.dev" // CsiDriverResourcePlural is the plural name of the CSIDriver resource KUDOShimResourcePlural string = "externalservices" )
Variables ¶
var ( // SchemeGroupVersion is group version used to register these objects SchemeGroupVersion = schema.GroupVersion{Group: GroupName, Version: "v1beta1"} // SchemeBuilder is used to add go types to the GroupVersionKind scheme SchemeBuilder = runtime.NewSchemeBuilder(AddKnownTypes) // AddToScheme is required by pkg/client/... AddToScheme = SchemeBuilder.AddToScheme )
Functions ¶
func AddKnownTypes ¶
Adds the list of known types to the given scheme.
func Resource ¶
func Resource(resource string) schema.GroupResource
Resource is required by pkg/client/listers/...
Types ¶
type ExternalService ¶
type ExternalService struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec ExternalServiceSpec `json:"spec,omitempty"` Status ExternalServiceStatus `json:"status,omitempty"` }
+genclient +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object Instance is the Schema for the instances API. +k8s:openapi-gen=true
func (*ExternalService) DeepCopy ¶
func (in *ExternalService) DeepCopy() *ExternalService
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ExternalService.
func (*ExternalService) DeepCopyInto ¶
func (in *ExternalService) DeepCopyInto(out *ExternalService)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ExternalService) DeepCopyObject ¶
func (in *ExternalService) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type ExternalServiceList ¶
type ExternalServiceList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []ExternalService `json:"items"` }
+k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object ExternalServiceList contains a list of ExternalService.
func (*ExternalServiceList) DeepCopy ¶
func (in *ExternalServiceList) DeepCopy() *ExternalServiceList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ExternalServiceList.
func (*ExternalServiceList) DeepCopyInto ¶
func (in *ExternalServiceList) DeepCopyInto(out *ExternalServiceList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ExternalServiceList) DeepCopyObject ¶
func (in *ExternalServiceList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type ExternalServiceSpec ¶
type ExternalServiceSpec struct { // StatefulSet specifies the reference to Statefulset Object StatefulSet corev1.ObjectReference `json:"statefulset,omitempty"` Port int `json:"port,omitempty"` Count int `json:"count,omitempty"` TargetPort int `json:"targetPort,omitempty"` Type string `json:"type,omitempty"` ExternalTrafficPolicy string `json:"externalTrafficPolicy,omitempty"` }
ExternalServiceSpec defines the desired state of Instance.
func (*ExternalServiceSpec) DeepCopy ¶
func (in *ExternalServiceSpec) DeepCopy() *ExternalServiceSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ExternalServiceSpec.
func (*ExternalServiceSpec) DeepCopyInto ¶
func (in *ExternalServiceSpec) DeepCopyInto(out *ExternalServiceSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ExternalServiceStatus ¶
type ExternalServiceStatus struct {
Status string `json:"externalServiceStatus,omitempty"`
}
ExternalServiceStatus defines the observed state of Instance
func (*ExternalServiceStatus) DeepCopy ¶
func (in *ExternalServiceStatus) DeepCopy() *ExternalServiceStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ExternalServiceStatus.
func (*ExternalServiceStatus) DeepCopyInto ¶
func (in *ExternalServiceStatus) DeepCopyInto(out *ExternalServiceStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.