Documentation ¶
Index ¶
- Constants
- func GetHugepageSize() string
- func ReplaceContainerRegistry(originalImage, newRegistry string) string
- func ReturnPatchedNetworkPlugins(networkPluginsReq *plumberv1.NetworkPlugins, req admission.Request) admission.Response
- type ApplyPlugin
- type DhcpControllerT
- type HostPlumberT
- type MultusT
- type NetworkPluginsReconciler
- type NetworkPluginsValidator
- type NodeFeatureDiscoveryT
- type OvsT
- type PluginsUpdateInfo
- type SriovT
- type WhereaboutsT
Constants ¶
View Source
const ( DefaultNamespace = "luigi-system" KubemacpoolNamespace = "dhcp-controller-system" MultusImage = "docker.io/platform9/multus:v3.7.2-pmk-2644970" WhereaboutsImage = "docker.io/platform9/whereabouts:v0.6.3" SriovCniImage = "docker.io/platform9/sriov-cni:v2.6.2-pmk-2877848" SriovDpImage = "docker.io/platform9/sriov-network-device-plugin:v3.3.2-pmk-2877839" OvsImage = "docker.io/platform9/openvswitch:v2.17.5-2" OvsCniImage = "quay.io/kubevirt/ovs-cni-plugin:v0.28.0" OvsMarkerImage = "quay.io/kubevirt/ovs-cni-marker:v0.28.0" HostPlumberImage = "docker.io/platform9/hostplumber:v0.5.4" DhcpControllerImage = "docker.io/platform9/pf9-dhcp-controller:v1.1" KubemacpoolImage = "quay.io/kubevirt/kubemacpool:v0.41.0" KubemacpoolRangeStart = "02:55:43:00:00:00" KubemacpoolRangeEnd = "02:55:43:FF:FF:FF" KubeRbacProxyImage = "gcr.io/kubebuilder/kube-rbac-proxy:v0.8.0" NfdImage = "docker.io/platform9/node-feature-discovery:v0.11.3-pmk-2877967" TemplateDir = "/etc/plugin_templates/" CreateDir = TemplateDir + "create/" DeleteDir = TemplateDir + "delete/" NetworkPluginsConfigMap = "pf9-networkplugins-config" IpReconcilerSchedule = "*/5 * * * *" HugepageSize = "2Mi" )
Variables ¶
This section is empty.
Functions ¶
func GetHugepageSize ¶
func GetHugepageSize() string
Types ¶
type ApplyPlugin ¶
type DhcpControllerT ¶
type DhcpControllerT plumberv1.DhcpController
func (*DhcpControllerT) ApplyTemplate ¶
func (dhcpControllerConfig *DhcpControllerT) ApplyTemplate(outputDir string) error
func (*DhcpControllerT) WriteConfigToTemplate ¶
func (dhcpControllerConfig *DhcpControllerT) WriteConfigToTemplate(outputDir, registry string) error
type HostPlumberT ¶
type HostPlumberT plumberv1.HostPlumber
func (*HostPlumberT) ApplyTemplate ¶
func (hostPlumberConfig *HostPlumberT) ApplyTemplate(outputDir string) error
func (*HostPlumberT) WriteConfigToTemplate ¶
func (hostPlumberConfig *HostPlumberT) WriteConfigToTemplate(outputDir, registry string) error
type NetworkPluginsReconciler ¶
NetworkPluginsReconciler reconciles a NetworkPlugins object
func (*NetworkPluginsReconciler) Reconcile ¶
func (r *NetworkPluginsReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)
Reconcile is part of the main kubernetes reconciliation loop which aims to move the current state of the cluster closer to the desired state. TODO(user): Modify the Reconcile function to compare the state specified by the NetworkPlugins object against the actual cluster state, and then perform operations to make the cluster state reflect the state specified by the user.
For more details, check Reconcile and its Result here: - https://pkg.go.dev/sigs.k8s.io/controller-runtime@v0.11.2/pkg/reconcile
func (*NetworkPluginsReconciler) SetupWithManager ¶
func (r *NetworkPluginsReconciler) SetupWithManager(mgr ctrl.Manager) error
SetupWithManager sets up the controller with the Manager.
func (*NetworkPluginsReconciler) TeardownPlugins ¶
func (r *NetworkPluginsReconciler) TeardownPlugins(req *PluginsUpdateInfo) error
type NetworkPluginsValidator ¶
type NetworkPluginsValidator struct { Client client.Client // contains filtered or unexported fields }
func (*NetworkPluginsValidator) InjectDecoder ¶
func (a *NetworkPluginsValidator) InjectDecoder(d *admission.Decoder) error
type NodeFeatureDiscoveryT ¶
type NodeFeatureDiscoveryT plumberv1.NodeFeatureDiscovery
func (*NodeFeatureDiscoveryT) ApplyTemplate ¶
func (nfdConfig *NodeFeatureDiscoveryT) ApplyTemplate(outputDir string) error
func (*NodeFeatureDiscoveryT) WriteConfigToTemplate ¶
func (nfdConfig *NodeFeatureDiscoveryT) WriteConfigToTemplate(outputDir, registry string) error
type PluginsUpdateInfo ¶
type PluginsUpdateInfo struct { Log logr.Logger NamespacedName types.NamespacedName // contains filtered or unexported fields }
type WhereaboutsT ¶
type WhereaboutsT plumberv1.Whereabouts
func (*WhereaboutsT) ApplyTemplate ¶
func (whereaboutsConfig *WhereaboutsT) ApplyTemplate(outputDir string) error
func (*WhereaboutsT) WriteConfigToTemplate ¶
func (whereaboutsConfig *WhereaboutsT) WriteConfigToTemplate(outputDir, registry string) error
Click to show internal directories.
Click to hide internal directories.