conf

package
v0.0.8 Latest Latest
Warning

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

Go to latest
Published: Mar 11, 2024 License: MIT Imports: 20 Imported by: 0

Documentation

Overview

Copyright (c) Microsoft Corporation. Licensed under the MIT license.

Copyright (c) Microsoft Corporation. Licensed under the MIT license.

Index

Constants

This section is empty.

Variables

View Source
var ErrMainCNINotFound error = errors.New("no existing cni plugin configuration file found")

Functions

This section is empty.

Types

type CNIConfig

type CNIConfig struct {
	types.NetConf

	ExcludedCIDRs []string `json:"excludedCIDRs"`
	SocketPath    string   `json:"socketPath"`
}

func ParseCNIConfig

func ParseCNIConfig(stdin []byte) (*CNIConfig, error)

type K8sConfig

type K8sConfig struct {
	types.CommonArgs
	K8S_POD_NAME               types.UnmarshallableString
	K8S_POD_NAMESPACE          types.UnmarshallableString
	K8S_POD_INFRA_CONTAINER_ID types.UnmarshallableString
}

func LoadK8sInfo

func LoadK8sInfo(args string) (*K8sConfig, error)

type Manager

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

func NewCNIConfManager

func NewCNIConfManager(cniConfDir, cniConfFile, exceptionCidrs, cniUninstallConfigMapName string, k8sClient client.Client, grpcPort int) (*Manager, error)

func (*Manager) Start

func (mgr *Manager) Start(ctx context.Context) error

Jump to

Keyboard shortcuts

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