eniconfig

package
v1.19.0 Latest Latest
Warning

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

Go to latest
Published: Nov 14, 2024 License: Apache-2.0 Imports: 9 Imported by: 39

Documentation

Overview

Package eniconfig handles eniconfig CRD

Index

Constants

View Source
const (
	EniConfigDefault = "default"
)

Variables

View Source
var ErrNoENIConfig = errors.New("eniconfig: eniconfig is not available")

ErrNoENIConfig is the missing ENIConfig error

Functions

func GetNodeSpecificENIConfigName added in v1.8.0

func GetNodeSpecificENIConfigName(node corev1.Node) (string, error)

func MyENIConfig added in v1.8.0

func MyENIConfig(ctx context.Context, k8sClient client.Client) (*v1alpha1.ENIConfigSpec, error)

MyENIConfig returns the ENIConfig applicable to the particular node

Types

type ENIConfig

type ENIConfig interface {
	MyENIConfig(client.Client) (*v1alpha1.ENIConfigSpec, error)
	GetENIConfigName(context.Context, client.Client) (string, error)
}

ENIConfig interface

type ENIConfigInfo

type ENIConfigInfo struct {
	ENI                    map[string]v1alpha1.ENIConfigSpec
	MyENI                  string
	EniConfigAnnotationDef string
	EniConfigLabelDef      string
}

ENIConfigInfo returns locally cached ENIConfigs

Directories

Path Synopsis
Package mock_eniconfig is a generated GoMock package.
Package mock_eniconfig is a generated GoMock package.

Jump to

Keyboard shortcuts

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