Documentation
¶
Overview ¶
Package v1 contains API Schema definitions for the cdnos v1 API group +kubebuilder:object:generate=true +groupName=cdnos.dev.drivenets.net
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ( // GroupVersion is group version used to register these objects GroupVersion = schema.GroupVersion{Group: "cdnos.dev.drivenets.net", Version: "v1"} // SchemeGroupVersion is needed for client-gen SchemeGroupVersion = GroupVersion // 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 Cdnos ¶
type Cdnos struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec CdnosSpec `json:"spec,omitempty"` Status CdnosStatus `json:"status,omitempty"` }
Cdnos is the Schema for the cdnos API
func (*Cdnos) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Cdnos.
func (*Cdnos) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Cdnos) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type CdnosList ¶
type CdnosList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []Cdnos `json:"items"` }
CdnosList contains a list of Cdnos
func (*CdnosList) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CdnosList.
func (*CdnosList) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*CdnosList) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type CdnosPhase ¶
type CdnosPhase string
CdnosPhase is the overall status of the Cdnos.
const ( // Running indicates a successfully running cdnos. Running CdnosPhase = "Running" // Failed indicates an error state. Failed CdnosPhase = "Failed" // Unknown indicates an unknown state. Unknown CdnosPhase = "Unknown" // Pending indicates a pending state. Pending CdnosPhase = "Pending" )
type CdnosSpec ¶
type CdnosSpec struct { // Image to use for the CDNOS container Image string `json:"image,omitempty"` // Command is the name of the executable to run. Command string `json:"command,omitempty"` // Args are the args to pass to the command. Args []string `json:"args,omitempty"` // Env are the environment variables to set for the container. // +listType=map // +listMapKey=name Env []corev1.EnvVar `json:"env,omitempty"` // Metadata labels describing the node. Labels map[string]string `json:"labels,omitempty"` // ConfigPath is the mount point for configuration inside the pod. ConfigPath string `json:"configPath,omitempty"` // ConfigFile is the default configuration file name for the pod. ConfigFile string `json:"configFile,omitempty"` // InitImage is the docker image to use as an init container for the pod. InitImage string `json:"initImage,omitempty"` // Ports are ports to create on the service. Ports map[string]ServicePort `json:"ports,omitempty"` // InterfaceCount is number of interfaces to be attached to the pod. // +optional InterfaceCount int `json:"interfaceCount"` // InitSleep is the time sleep in the init container // +optional InitSleep int `json:"initSleep"` // Resources are the K8s resources to allocate to cdnos container. // +optional Resources corev1.ResourceRequirements `json:"resources"` // TLS is the configuration the key/certs to use for management. // +optional TLS *TLSSpec `json:"tls"` }
CdnosSpec defines the desired state of Cdnos
func (*CdnosSpec) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CdnosSpec.
func (*CdnosSpec) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type CdnosStatus ¶
type CdnosStatus struct { // Phase is the overall status of the Cdnos. Phase CdnosPhase `json:"phase"` // Message describes why the Cdnos is in the current phase. Message string `json:"message"` }
CdnosStatus defines the observed state of Cdnos
func (*CdnosStatus) DeepCopy ¶
func (in *CdnosStatus) DeepCopy() *CdnosStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CdnosStatus.
func (*CdnosStatus) DeepCopyInto ¶
func (in *CdnosStatus) DeepCopyInto(out *CdnosStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type SelfSignedSpec ¶
type SelfSignedSpec struct { /// Common name to set in the cert. CommonName string `json:"commonName"` // RSA keysize to use for key generation. KeySize int `json:"keySize"` }
SelfSignedSpec is the configuration to generate a self-signed cert.
func (*SelfSignedSpec) DeepCopy ¶
func (in *SelfSignedSpec) DeepCopy() *SelfSignedSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SelfSignedSpec.
func (*SelfSignedSpec) DeepCopyInto ¶
func (in *SelfSignedSpec) DeepCopyInto(out *SelfSignedSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ServicePort ¶
type ServicePort struct { // InnerPort is port on the container to expose. InnerPort int32 `json:"innerPort"` // OuterPort is port on the container to expose. OuterPort int32 `json:"outerPort"` }
ServicePort describes an external L4 port on the device.
func (*ServicePort) DeepCopy ¶
func (in *ServicePort) DeepCopy() *ServicePort
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ServicePort.
func (*ServicePort) DeepCopyInto ¶
func (in *ServicePort) DeepCopyInto(out *ServicePort)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type TLSSpec ¶
type TLSSpec struct { // SelfSigned generates a new self signed certificate. // +optional SelfSigned *SelfSignedSpec `json:"selfSigned"` }
func (*TLSSpec) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TLSSpec.
func (*TLSSpec) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
Directories
¶
Path | Synopsis |
---|---|
This package has the automatically generated clientset.
|
This package has the automatically generated clientset. |
scheme
This package contains the scheme of the automatically generated clientset.
|
This package contains the scheme of the automatically generated clientset. |
typed/cdnos/v1alpha1
This package has the automatically generated typed clients.
|
This package has the automatically generated typed clients. |