Documentation ¶
Overview ¶
Package v1alpha1 contains API Schema definitions for the podconfig v1alpha1 API group +kubebuilder:object:generate=true +groupName=podconfig.opdev.io
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ( // GroupVersion is group version used to register these objects GroupVersion = schema.GroupVersion{Group: "podconfig.opdev.io", Version: "v1alpha1"} // SchemeBuilder is used to add go types to the GroupVersionKind scheme SchemeBuilder = &scheme.Builder{GroupVersion: GroupVersion} // AddToScheme adds the types in this group-version to the given scheme. AddToScheme = SchemeBuilder.AddToScheme )
Functions ¶
This section is empty.
Types ¶
type Link ¶
type Link struct { Name string `json:"name,omitempty"` LinkType string `json:"linkType,omitemtpy"` // temporarily used for veth pair Parent string `json:"parent,omitemtpy"` // name for the parent interface Master string `json:"master,omitempty"` // name for the master bridge CIDR string `json:"cidr,omitempty"` }
Link type for new Pod interfaces
func (*Link) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Link.
func (*Link) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type PodConfig ¶
type PodConfig struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec PodConfigSpec `json:"spec"` Status PodConfigStatus `json:"status,omitempty"` }
PodConfig is the Schema for the podconfigs API
func (*PodConfig) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PodConfig.
func (*PodConfig) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*PodConfig) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type PodConfigList ¶
type PodConfigList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []PodConfig `json:"items"` }
PodConfigList contains a list of PodConfig
func (*PodConfigList) DeepCopy ¶
func (in *PodConfigList) DeepCopy() *PodConfigList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PodConfigList.
func (*PodConfigList) DeepCopyInto ¶
func (in *PodConfigList) DeepCopyInto(out *PodConfigList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*PodConfigList) DeepCopyObject ¶
func (in *PodConfigList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type PodConfigPhase ¶
type PodConfigPhase string
PodConfigPhase type for status
const ( PodConfigUnSet PodConfigPhase = "unset" PodConfigConfiguring PodConfigPhase = "configuring" PodConfigConfigured PodConfigPhase = "configured" )
Pod config const values
type PodConfigSpec ¶
type PodConfigSpec struct { // Flag to enable sample deployment SampleDeployment SampleResource `json:"sampleDeployment,omitempty"` // List of new interfaces to configure on Pod NetworkAttachments []Link `json:"networkAttachments,omitempty"` // VLANs to be added to subinterfaces Vlans []VlanSpec `json:"vlans,omitempty"` }
PodConfigSpec defines the desired state of PodConfig
func (*PodConfigSpec) DeepCopy ¶
func (in *PodConfigSpec) DeepCopy() *PodConfigSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PodConfigSpec.
func (*PodConfigSpec) DeepCopyInto ¶
func (in *PodConfigSpec) DeepCopyInto(out *PodConfigSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type PodConfigStatus ¶
type PodConfigStatus struct { // Phase is unset, configuring or configured Phase PodConfigPhase `json:"phase,omitempty"` PodConfigurations []PodConfiguration `json:"podConfigurations,omitemtpy"` }
PodConfigStatus defines the observed state of PodConfig
func (*PodConfigStatus) DeepCopy ¶
func (in *PodConfigStatus) DeepCopy() *PodConfigStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PodConfigStatus.
func (*PodConfigStatus) DeepCopyInto ¶
func (in *PodConfigStatus) DeepCopyInto(out *PodConfigStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type PodConfiguration ¶
type PodConfiguration struct { PodName string `json:"podName,omitempty"` ConfigList []string `json:"configList,omitemtpy"` }
PodConfiguration for status
func (*PodConfiguration) DeepCopy ¶
func (in *PodConfiguration) DeepCopy() *PodConfiguration
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PodConfiguration.
func (*PodConfiguration) DeepCopyInto ¶
func (in *PodConfiguration) DeepCopyInto(out *PodConfiguration)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type SampleResource ¶
type SampleResource struct { Create bool `json:"create,omitempty"` Name string `json:"name,omitempty"` }
SampleResource for testing with pods
func (*SampleResource) DeepCopy ¶
func (in *SampleResource) DeepCopy() *SampleResource
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SampleResource.
func (*SampleResource) DeepCopyInto ¶
func (in *SampleResource) DeepCopyInto(out *SampleResource)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type VlanSpec ¶
type VlanSpec struct { ParentInterfaceName string `json:"parentInterfaceName,omitempty"` VlanID int16 `json:"vlanID,omitempty"` BridgeName string `json:"bridgeName,omitempty"` }
VlanSpec type for Pods
func (*VlanSpec) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VlanSpec.
func (*VlanSpec) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.