cni

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Oct 4, 2021 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsApiNotReadyYet

func IsApiNotReadyYet(err error) bool

IsApiNotReadyYet will assert possible errors that can be caused wc k8s api not ready yet

func IsENIConfigNotRegistered

func IsENIConfigNotRegistered(err error) bool

IsENIConfigNotRegistered will assert and error when aws-cni did not registered ENIConfigs CRD

Types

type CNIConfig

type CNIConfig struct {
	AWSSession         awsclient.ConfigProvider
	ClusterName        string
	CNISecurityGroupID string
	CtrlClient         client.Client
	CNICIDR            string
	Log                logr.Logger
	VPCAzList          []string
	VPCID              string
}

type CNIService

type CNIService struct {
	// contains filtered or unexported fields
}

func New

func New(c CNIConfig) (*CNIService, error)

func (*CNIService) Delete

func (c *CNIService) Delete() error

Delete will clean any remaining CNI resources in WC VPC

func (*CNIService) Reconcile

func (c *CNIService) Reconcile() error

type CNISubnet

type CNISubnet struct {
	AZ       string
	SubnetID string
}

Jump to

Keyboard shortcuts

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