...

Package swapcfg

import "edge-infra.dev/pkg/sds/ien/k8s/controllers/nodeagent/plugins/swapcfg"
Overview
Index

Overview ▾

Variables

var (
    ErrSwapFieldNotFound = errors.New("swap enabled field not found")
)

type Plugin

type Plugin struct{}

func (Plugin) Reconcile

func (swapCfgPlugin Plugin) Reconcile(_ context.Context, ienode *v1ien.IENode, conf config.Config) (reconcile.Result, error)

Updates the swap configuration file on the node

type Swap

type Swap struct {
    Enabled bool `yaml:"enabled"`
}