Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrInvalidPrimaryIP indicates the NC primary IP is invalid. ErrInvalidPrimaryIP = errors.New("invalid primary IP") // ErrInvalidSecondaryIP indicates that a secondary IP on the NC is invalid. ErrInvalidSecondaryIP = errors.New("invalid secondary IP") // ErrUnsupportedNCQuantity indicates that the node has an unsupported nummber of Network Containers attached. ErrUnsupportedNCQuantity = errors.New("unsupported number of network containers") )
Functions ¶
func CRDStatusToNCRequest ¶ added in v1.4.13
func CRDStatusToNCRequest(status *v1alpha.NodeNetworkConfigStatus) (cns.CreateNetworkContainerRequest, error)
CRDStatusToNCRequest translates a crd status to createnetworkcontainer request
Types ¶
type Reconciler ¶ added in v1.4.13
type Reconciler struct {
// contains filtered or unexported fields
}
Reconciler watches for CRD status changes
func NewReconciler ¶ added in v1.4.13
func NewReconciler(nnccli nncGetter, cnscli cnsClient, ipampipampoolmonitorcli ipamPoolMonitorClient) *Reconciler
func (*Reconciler) Reconcile ¶ added in v1.4.13
func (r *Reconciler) Reconcile(ctx context.Context, req reconcile.Request) (reconcile.Result, error)
Reconcile is called on CRD status changes
func (*Reconciler) SetupWithManager ¶ added in v1.4.13
SetupWithManager Sets up the reconciler with a new manager, filtering using NodeNetworkConfigFilter on nodeName.
type ScopedClient ¶ added in v1.4.13
type ScopedClient struct {
types.NamespacedName
*nodenetworkconfig.Client
}
ScopedClient is provided to interface with a single configured NodeNetworkConfig.
func NewScopedClient ¶ added in v1.4.13
func NewScopedClient(cli *nodenetworkconfig.Client, key types.NamespacedName) *ScopedClient
NewScopedClient returns a NodeNetworkConfig client scoped to a single NodeNetworkConfig.
func (*ScopedClient) Get ¶ added in v1.4.13
func (sc *ScopedClient) Get(ctx context.Context) (*v1alpha.NodeNetworkConfig, error)
Get returns the NodeNetworkConfig that this scoped client is associated to.
func (*ScopedClient) UpdateSpec ¶ added in v1.4.13
func (sc *ScopedClient) UpdateSpec(ctx context.Context, spec *v1alpha.NodeNetworkConfigSpec) (*v1alpha.NodeNetworkConfig, error)
UpdateSpec updates the associated NodeNetworkConfig with the passed NodeNetworkConfigSpec.
Click to show internal directories.
Click to hide internal directories.