var ( ErrInvalidLengthGenerated = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowGenerated = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupGenerated = fmt.Errorf("proto: unexpected end of group") )
var ( GroupName = "cloud.network.openshift.io" GroupVersion = schema.GroupVersion{Group: GroupName, Version: "v1"} SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes) // Install is a function which adds this version to a scheme Install = SchemeBuilder.AddToScheme // SchemeGroupVersion generated code relies on this name // Deprecated SchemeGroupVersion = GroupVersion // AddToScheme exists solely to keep the old generators creating valid code // DEPRECATED AddToScheme = SchemeBuilder.AddToScheme )
func Resource(resource string) schema.GroupResource
Resource takes an unqualified resource and returns a Group qualified GroupResource
CloudPrivateIPConfig performs an assignment of a private IP address to the primary NIC associated with cloud VMs. This is done by specifying the IP and Kubernetes node which the IP should be assigned to. This CRD is intended to be used by the network plugin which manages the cluster network. The spec side represents the desired state requested by the network plugin, and the status side represents the current state that this CRD's controller has executed. No users will have permission to modify it, and if a cluster-admin decides to edit it for some reason, their changes will be overwritten the next time the network plugin reconciles the object. Note: the CR's name must specify the requested private IP address (can be IPv4 or IPv6).
Compatibility level 1: Stable within a major release for a minimum of 12 months or 3 minor releases (whichever is longer). +genclient +genclient:nonNamespaced +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object +k8s:openapi-gen=true +kubebuilder:object:root=true +kubebuilder:subresource:status +kubebuilder:resource:path=cloudprivateipconfigs,scope=Cluster +openshift:compatibility-gen:level=1
type CloudPrivateIPConfig struct { metav1.TypeMeta `json:",inline"` // metadata is the standard object's metadata. // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata metav1.ObjectMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` // spec is the definition of the desired private IP request. // +kubebuilder:validation:Required // +required Spec CloudPrivateIPConfigSpec `json:"spec" protobuf:"bytes,2,opt,name=spec"` // status is the observed status of the desired private IP request. Read-only. // +kubebuilder:validation:Optional // +optional Status CloudPrivateIPConfigStatus `json:"status,omitempty" protobuf:"bytes,3,opt,name=status"` }
func (in *CloudPrivateIPConfig) DeepCopy() *CloudPrivateIPConfig
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CloudPrivateIPConfig.
func (in *CloudPrivateIPConfig) DeepCopyInto(out *CloudPrivateIPConfig)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (in *CloudPrivateIPConfig) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*CloudPrivateIPConfig) Descriptor() ([]byte, []int)
func (m *CloudPrivateIPConfig) Marshal() (dAtA []byte, err error)
func (m *CloudPrivateIPConfig) MarshalTo(dAtA []byte) (int, error)
func (m *CloudPrivateIPConfig) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*CloudPrivateIPConfig) ProtoMessage()
func (m *CloudPrivateIPConfig) Reset()
func (m *CloudPrivateIPConfig) Size() (n int)
func (this *CloudPrivateIPConfig) String() string
func (CloudPrivateIPConfig) SwaggerDoc() map[string]string
func (m *CloudPrivateIPConfig) Unmarshal(dAtA []byte) error
func (m *CloudPrivateIPConfig) XXX_DiscardUnknown()
func (m *CloudPrivateIPConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (m *CloudPrivateIPConfig) XXX_Merge(src proto.Message)
func (m *CloudPrivateIPConfig) XXX_Size() int
func (m *CloudPrivateIPConfig) XXX_Unmarshal(b []byte) error
CloudPrivateIPConfigConditionType specifies the current condition type of the CloudPrivateIPConfig
type CloudPrivateIPConfigConditionType string
const ( // Assigned is the condition type of the cloud private IP request. // It is paired with the following ConditionStatus: // - True - in the case of a successful assignment // - False - in the case of a failed assignment // - Unknown - in the case of a pending assignment Assigned CloudPrivateIPConfigConditionType = "Assigned" )
Compatibility level 1: Stable within a major release for a minimum of 12 months or 3 minor releases (whichever is longer). +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object +resource:path=cloudprivateipconfig CloudPrivateIPConfigList is the list of CloudPrivateIPConfigList. +openshift:compatibility-gen:level=1
type CloudPrivateIPConfigList struct { metav1.TypeMeta `json:",inline"` // metadata is the standard list's metadata. // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata metav1.ListMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` // List of CloudPrivateIPConfig. Items []CloudPrivateIPConfig `json:"items" protobuf:"bytes,2,rep,name=items"` }
func (in *CloudPrivateIPConfigList) DeepCopy() *CloudPrivateIPConfigList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CloudPrivateIPConfigList.
func (in *CloudPrivateIPConfigList) DeepCopyInto(out *CloudPrivateIPConfigList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (in *CloudPrivateIPConfigList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*CloudPrivateIPConfigList) Descriptor() ([]byte, []int)
func (m *CloudPrivateIPConfigList) Marshal() (dAtA []byte, err error)
func (m *CloudPrivateIPConfigList) MarshalTo(dAtA []byte) (int, error)
func (m *CloudPrivateIPConfigList) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*CloudPrivateIPConfigList) ProtoMessage()
func (m *CloudPrivateIPConfigList) Reset()
func (m *CloudPrivateIPConfigList) Size() (n int)
func (this *CloudPrivateIPConfigList) String() string
func (CloudPrivateIPConfigList) SwaggerDoc() map[string]string
func (m *CloudPrivateIPConfigList) Unmarshal(dAtA []byte) error
func (m *CloudPrivateIPConfigList) XXX_DiscardUnknown()
func (m *CloudPrivateIPConfigList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (m *CloudPrivateIPConfigList) XXX_Merge(src proto.Message)
func (m *CloudPrivateIPConfigList) XXX_Size() int
func (m *CloudPrivateIPConfigList) XXX_Unmarshal(b []byte) error
CloudPrivateIPConfigSpec consists of a node name which the private IP should be assigned to. +k8s:openapi-gen=true
type CloudPrivateIPConfigSpec struct { // node is the node name, as specified by the Kubernetes field: node.metadata.name // +kubebuilder:validation:Optional // +optional Node string `json:"node" protobuf:"bytes,1,opt,name=node"` }
func (in *CloudPrivateIPConfigSpec) DeepCopy() *CloudPrivateIPConfigSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CloudPrivateIPConfigSpec.
func (in *CloudPrivateIPConfigSpec) DeepCopyInto(out *CloudPrivateIPConfigSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*CloudPrivateIPConfigSpec) Descriptor() ([]byte, []int)
func (m *CloudPrivateIPConfigSpec) Marshal() (dAtA []byte, err error)
func (m *CloudPrivateIPConfigSpec) MarshalTo(dAtA []byte) (int, error)
func (m *CloudPrivateIPConfigSpec) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*CloudPrivateIPConfigSpec) ProtoMessage()
func (m *CloudPrivateIPConfigSpec) Reset()
func (m *CloudPrivateIPConfigSpec) Size() (n int)
func (this *CloudPrivateIPConfigSpec) String() string
func (CloudPrivateIPConfigSpec) SwaggerDoc() map[string]string
func (m *CloudPrivateIPConfigSpec) Unmarshal(dAtA []byte) error
func (m *CloudPrivateIPConfigSpec) XXX_DiscardUnknown()
func (m *CloudPrivateIPConfigSpec) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (m *CloudPrivateIPConfigSpec) XXX_Merge(src proto.Message)
func (m *CloudPrivateIPConfigSpec) XXX_Size() int
func (m *CloudPrivateIPConfigSpec) XXX_Unmarshal(b []byte) error
CloudPrivateIPConfigStatus specifies the node assignment together with its assignment condition. +k8s:openapi-gen=true
type CloudPrivateIPConfigStatus struct { // node is the node name, as specified by the Kubernetes field: node.metadata.name // +kubebuilder:validation:Optional // +optional Node string `json:"node" protobuf:"bytes,1,opt,name=node"` // condition is the assignment condition of the private IP and its status // +kubebuilder:validation:Required // +required Conditions []metav1.Condition `json:"conditions" protobuf:"bytes,2,rep,name=conditions"` }
func (in *CloudPrivateIPConfigStatus) DeepCopy() *CloudPrivateIPConfigStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CloudPrivateIPConfigStatus.
func (in *CloudPrivateIPConfigStatus) DeepCopyInto(out *CloudPrivateIPConfigStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*CloudPrivateIPConfigStatus) Descriptor() ([]byte, []int)
func (m *CloudPrivateIPConfigStatus) Marshal() (dAtA []byte, err error)
func (m *CloudPrivateIPConfigStatus) MarshalTo(dAtA []byte) (int, error)
func (m *CloudPrivateIPConfigStatus) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*CloudPrivateIPConfigStatus) ProtoMessage()
func (m *CloudPrivateIPConfigStatus) Reset()
func (m *CloudPrivateIPConfigStatus) Size() (n int)
func (this *CloudPrivateIPConfigStatus) String() string
func (CloudPrivateIPConfigStatus) SwaggerDoc() map[string]string
func (m *CloudPrivateIPConfigStatus) Unmarshal(dAtA []byte) error
func (m *CloudPrivateIPConfigStatus) XXX_DiscardUnknown()
func (m *CloudPrivateIPConfigStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (m *CloudPrivateIPConfigStatus) XXX_Merge(src proto.Message)
func (m *CloudPrivateIPConfigStatus) XXX_Size() int
func (m *CloudPrivateIPConfigStatus) XXX_Unmarshal(b []byte) error