v1

package
v0.1.13 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 3, 2021 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// KindKubeControllersConfiguration const
	KindKubeControllersConfiguration = "KubeControllersConfiguration"
	// KindKubeControllersConfigurationList const
	KindKubeControllersConfigurationList = "KubeControllersConfigurationList"
)
View Source
const (
	// KindNodeTopology const
	KindNodeTopology = "NodeTopology"
	// KindNodeTopologyList const
	KindNodeTopologyList = "NodeTopologyList"
)
View Source
const (
	// KindWorkLoad const
	KindWorkLoad = "WorkLoad"
	// KindWorkLoadList const
	KindWorkLoadList = "WorkLoadList"
)

Variables

View Source
var (
	// SchemeBuilder var
	SchemeBuilder runtime.SchemeBuilder

	// AddToScheme var
	AddToScheme = localSchemeBuilder.AddToScheme
)
View Source
var SchemeGroupVersion = schema.GroupVersion{
	Group:   "fsc.henderiw.be",
	Version: "v1",
}

SchemeGroupVersion your schema name and the version

Functions

func Resource

func Resource(resource string) schema.GroupResource

Resource takes an unqualified resource and returns a Group qualified GroupResource

Types

type ConfigMapControllerConfig

type ConfigMapControllerConfig struct {
	// ReconcilerPeriod is the period to perform reconciliation with the fsc datastore. [Default: 5m]
	ReconcilerPeriod *metav1.Duration `json:"reconcilerPeriod,omitempty" validate:"omitempty"`
}

ConfigMapControllerConfig configures the configMap controller, which identifies the configured sriov config in the cluster

func (*ConfigMapControllerConfig) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ConfigMapControllerConfig.

func (*ConfigMapControllerConfig) DeepCopyInto

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type ControllersConfig

type ControllersConfig struct {
	// Node enables and configures the node controller. Enabled by default, set to nil to disable.
	Node *NodeControllerConfig `json:"node,omitempty"`

	// Namespace enables and configures the namespace controller. Enabled by default, set to nil to disable.
	Namespace *NamespaceControllerConfig `json:"namespace,omitempty"`

	// Multus enables and configures the multus controller. Enabled by default, set to nil to disable.
	Multus *MultusControllerConfig `json:"multus,omitempty"`

	// ConfigMap enables and configures the ConfigMap controller. Enabled by default, set to nil to disable.
	ConfigMap *ConfigMapControllerConfig `json:"configMap,omitempty"`
}

ControllersConfig enables and configures individual Kubernetes controllers

func (*ControllersConfig) DeepCopy

func (in *ControllersConfig) DeepCopy() *ControllersConfig

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ControllersConfig.

func (*ControllersConfig) DeepCopyInto

func (in *ControllersConfig) DeepCopyInto(out *ControllersConfig)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type Device

type Device struct {
	// Name defines the device Name
	Name string `json:"name,omitempty"`

	// Kind defines the kind of device, like wbx, 7220, etc
	Kind string `json:"kind,omitempty"`

	// DeviceIndentifier defines the id of the device
	DeviceIdentifier string `json:"deviceIdentifier,omitempty"`

	// DeviceIndentifier defines the type of the device identifier
	DeviceIdentifierType string `json:"deviceIdentifierType,omitempty"`

	// Endpoints defines the endpoints attached to the device
	Endpoints []*Endpoint `json:"endpoints,omitempty"`
}

Device defines the Device attibutes

func (*Device) DeepCopy

func (in *Device) DeepCopy() *Device

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Device.

func (*Device) DeepCopyInto

func (in *Device) DeepCopyInto(out *Device)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type Endpoint

type Endpoint struct {
	// Name defines the endpoint Name
	Name string `json:"name,omitempty"`

	// InterfaceIdentifier defines the identifier of the interface
	InterfaceIdentifier string `json:"interfaceIdentifier,omitempty"`

	// InterfaceIdentifierType defines the type of the interface identifier
	InterfaceIdentifierType string `json:"interfaceIdentifierType,omitempty"`

	// MTU defines the endpoint MTU
	MTU int `json:"mtu,omitempty"`

	// LAG identifies if the interface is part of a LAG
	LAG bool `json:"lag,omitempty"`

	// Vlans defines the vlans attached to the endpoint
	Vlans []*Vlan `json:"vlans,omitempty"`
}

Endpoint defines the Endpoint attributes

func (*Endpoint) DeepCopy

func (in *Endpoint) DeepCopy() *Endpoint

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Endpoint.

func (*Endpoint) DeepCopyInto

func (in *Endpoint) DeepCopyInto(out *Endpoint)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type KubeControllersConfiguration

type KubeControllersConfiguration struct {
	metav1.TypeMeta `json:",inline"`
	// +optional
	metav1.ObjectMeta `json:"metadata,omitempty"`

	Spec KubeControllersConfigurationSpec `json:"spec,omitempty"`
	// +optional
	Status KubeControllersConfigurationStatus `json:"status,omitempty"`
}

KubeControllersConfiguration is the Schema for the kubecontrollersconfigurations API

func NewKubeControllersConfiguration

func NewKubeControllersConfiguration() *KubeControllersConfiguration

NewKubeControllersConfiguration creates a new (zeroed) KubeControllersConfiguration struct with the TypeMetadata initialized to the current version.

func (*KubeControllersConfiguration) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new KubeControllersConfiguration.

func (*KubeControllersConfiguration) DeepCopyInto

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*KubeControllersConfiguration) DeepCopyObject

func (in *KubeControllersConfiguration) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type KubeControllersConfigurationList

type KubeControllersConfigurationList struct {
	metav1.TypeMeta `json:",inline"`
	// +optional
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []KubeControllersConfiguration `json:"items"`
}

KubeControllersConfigurationList contains a list of KubeControllersConfiguration

func NewKubeControllersConfigurationList

func NewKubeControllersConfigurationList() *KubeControllersConfigurationList

NewKubeControllersConfigurationList creates a new (zeroed) KubeControllersConfigurationList struct with the TypeMetadata initialized to the current version.

func (*KubeControllersConfigurationList) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new KubeControllersConfigurationList.

func (*KubeControllersConfigurationList) DeepCopyInto

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*KubeControllersConfigurationList) DeepCopyObject

func (in *KubeControllersConfigurationList) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type KubeControllersConfigurationSpec

type KubeControllersConfigurationSpec struct {
	// LogLevel is the log level above which logs are sent to the stdout. [Default: Info]
	LogLevel string `json:"logLevel,omitempty" validate:"omitempty"`

	// HealthChecks enables or disables support for health checks [Default: Enabled]
	HealthChecks string `json:"healthChecks,omitempty" validate:"omitempty,oneof=Enabled Disabled"`

	// Controllers enables and configures individual Kubernetes controllers
	Controllers *ControllersConfig `json:"controllers"`
}

KubeControllersConfigurationSpec defines the desired state of KubeControllersConfiguration

func (*KubeControllersConfigurationSpec) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new KubeControllersConfigurationSpec.

func (*KubeControllersConfigurationSpec) DeepCopyInto

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type KubeControllersConfigurationStatus

type KubeControllersConfigurationStatus struct {
	// RunningConfig contains the effective config that is running in the kube-controllers pod, after
	// merging the API resource with any environment variables.
	RunningConfig KubeControllersConfigurationSpec `json:"runningConfig,omitempty"`

	// EnvironmentVars contains the environment variables on the kube-controllers that influenced
	// the RunningConfig.
	EnvironmentVars map[string]string `json:"environmentVars,omitempty"`
}

KubeControllersConfigurationStatus represents the status of the configuration. It's useful for admins to be able to see the actual config that was applied, which can be modified by environment variables on the kube-controllers process.

func (*KubeControllersConfigurationStatus) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new KubeControllersConfigurationStatus.

func (*KubeControllersConfigurationStatus) DeepCopyInto

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type MultusControllerConfig

type MultusControllerConfig struct {
	// ReconcilerPeriod is the period to perform reconciliation with the fsc datastore. [Default: 5m]
	ReconcilerPeriod *metav1.Duration `json:"reconcilerPeriod,omitempty" validate:"omitempty"`
}

MultusControllerConfig configures the multus controller, which identifies the configured network attachements in the cluster

func (*MultusControllerConfig) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MultusControllerConfig.

func (*MultusControllerConfig) DeepCopyInto

func (in *MultusControllerConfig) DeepCopyInto(out *MultusControllerConfig)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type NamespaceControllerConfig

type NamespaceControllerConfig struct {
	// ReconcilerPeriod is the period to perform reconciliation with the fsc datastore. [Default: 5m]
	ReconcilerPeriod *metav1.Duration `json:"reconcilerPeriod,omitempty" validate:"omitempty"`
}

NamespaceControllerConfig configures the namespace controller, which identifies the active namespaces in the cluster

func (*NamespaceControllerConfig) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NamespaceControllerConfig.

func (*NamespaceControllerConfig) DeepCopyInto

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type NodeControllerConfig

type NodeControllerConfig struct {
	// ReconcilerPeriod is the period to perform reconciliation with the fsc datastore. [Default: 5m]
	ReconcilerPeriod *metav1.Duration `json:"reconcilerPeriod,omitempty" validate:"omitempty"`
}

NodeControllerConfig configures the node controller, which automatically cleans up configuration for nodes that no longer exist.

func (*NodeControllerConfig) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NodeControllerConfig.

func (*NodeControllerConfig) DeepCopyInto

func (in *NodeControllerConfig) DeepCopyInto(out *NodeControllerConfig)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type NodeTopology

type NodeTopology struct {
	metav1.TypeMeta `json:",inline"`

	metav1.ObjectMeta `json:"metadata,omitempty"`

	Spec NodeTopologySpec `json:"spec,omitempty"`
}

NodeTopology is the Schema for the node topology API

func NewNodeTopology

func NewNodeTopology() *NodeTopology

NewNodeTopology creates a new (zeroed) NodeTopology struct with the TypeMetadata initialized to the current version.

func (*NodeTopology) DeepCopy

func (in *NodeTopology) DeepCopy() *NodeTopology

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NodeTopology.

func (*NodeTopology) DeepCopyInto

func (in *NodeTopology) DeepCopyInto(out *NodeTopology)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*NodeTopology) DeepCopyObject

func (in *NodeTopology) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type NodeTopologyList

type NodeTopologyList struct {
	metav1.TypeMeta `json:",inline"`
	// +optional
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []NodeTopology `json:"items"`
}

NodeTopologyList contains a list of NodeTopology

func NewNodeTopologyList

func NewNodeTopologyList() *NodeTopologyList

NewNodeTopologyList creates a new (zeroed) NodeTopologyList struct with the TypeMetadata initialized to the current version.

func (*NodeTopologyList) DeepCopy

func (in *NodeTopologyList) DeepCopy() *NodeTopologyList

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NodeTopologyList.

func (*NodeTopologyList) DeepCopyInto

func (in *NodeTopologyList) DeepCopyInto(out *NodeTopologyList)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*NodeTopologyList) DeepCopyObject

func (in *NodeTopologyList) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type NodeTopologySpec

type NodeTopologySpec struct {
	// Devices identifies the devices connected to the node
	Devices []*Device `json:"devices,omitempty"`
}

NodeTopologySpec defines the desired state of NodeTopology

func (*NodeTopologySpec) DeepCopy

func (in *NodeTopologySpec) DeepCopy() *NodeTopologySpec

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NodeTopologySpec.

func (*NodeTopologySpec) DeepCopyInto

func (in *NodeTopologySpec) DeepCopyInto(out *NodeTopologySpec)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type Vlan

type Vlan struct {
	// ID defines the vlan identifier
	ID int `json:"id,omitempty"`
}

Vlan defines the vlan attributes

func (*Vlan) DeepCopy

func (in *Vlan) DeepCopy() *Vlan

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Vlan.

func (*Vlan) DeepCopyInto

func (in *Vlan) DeepCopyInto(out *Vlan)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type WorkLoad

type WorkLoad struct {
	metav1.TypeMeta `json:",inline"`

	metav1.ObjectMeta `json:"metadata,omitempty"`

	Spec WorkLoadSpec `json:"spec,omitempty"`

	Status WorkLoadStatus `json:"status,omitempty"`
}

WorkLoad is the Schema for the workload API

func NewWorkLoad

func NewWorkLoad() *WorkLoad

NewWorkLoad creates a new (zeroed) Workload struct with the TypeMetadata initialized to the current version.

func (*WorkLoad) DeepCopy

func (in *WorkLoad) DeepCopy() *WorkLoad

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new WorkLoad.

func (*WorkLoad) DeepCopyInto

func (in *WorkLoad) DeepCopyInto(out *WorkLoad)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*WorkLoad) DeepCopyObject

func (in *WorkLoad) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type WorkLoadList

type WorkLoadList struct {
	metav1.TypeMeta `json:",inline"`
	// +optional
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []WorkLoad `json:"items"`
}

WorkLoadList contains a list of workloads

func NewWorkLoadList

func NewWorkLoadList() *WorkLoadList

NewWorkLoadList creates a new (zeroed) WorkloadList struct with the TypeMetadata initialized to the current version.

func (*WorkLoadList) DeepCopy

func (in *WorkLoadList) DeepCopy() *WorkLoadList

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new WorkLoadList.

func (*WorkLoadList) DeepCopyInto

func (in *WorkLoadList) DeepCopyInto(out *WorkLoadList)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*WorkLoadList) DeepCopyObject

func (in *WorkLoadList) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type WorkLoadSpec

type WorkLoadSpec struct {
	// RouteTarget identifies the route target of the workload
	RouteTarget string `json:"routeTarget,omitempty"`

	// RouteDistinguisher identifies the route distinguisher of the workload
	RouteDistinguisher string `json:"routeDistinguisher,omitempty"`

	// Vlans defines the vlans attached to the workload
	Vlans []*Vlan `json:"vlans,omitempty"`
}

WorkLoadSpec defines the desired state of WorkLoad

func (*WorkLoadSpec) DeepCopy

func (in *WorkLoadSpec) DeepCopy() *WorkLoadSpec

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new WorkLoadSpec.

func (*WorkLoadSpec) DeepCopyInto

func (in *WorkLoadSpec) DeepCopyInto(out *WorkLoadSpec)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type WorkLoadStatus

type WorkLoadStatus struct {
	// RunningConfig contains the effective config that is running, after
	// merging the API resource with any nodal interface/vlan status
	RunningConfig WorkLoadSpec `json:"runningConfig,omitempty"`

	// Devices and its related interface on which this workload is applied
	Devices []*Device `json:"devices,omitempty"`
}

WorkLoadStatus represents the status of the workload configuration and the associated endpoints and provisioning status

func (*WorkLoadStatus) DeepCopy

func (in *WorkLoadStatus) DeepCopy() *WorkLoadStatus

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new WorkLoadStatus.

func (*WorkLoadStatus) DeepCopyInto

func (in *WorkLoadStatus) DeepCopyInto(out *WorkLoadStatus)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL