utils

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2024 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AllowNotReadyContainers added in v0.6.0

func AllowNotReadyContainers(c client.Client, ctx context.Context, pod *corev1.Pod, svc *corev1.Service, isSvcShared bool) (bool, cperrors.PluginError)

Types

type NetworkManager

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

func NewNetworkManager

func NewNetworkManager(pod *corev1.Pod, client client.Client) *NetworkManager

func (*NetworkManager) GetNetworkConfig

func (nm *NetworkManager) GetNetworkConfig() []v1alpha1.NetworkConfParams

func (*NetworkManager) GetNetworkDisabled

func (nm *NetworkManager) GetNetworkDisabled() bool

func (*NetworkManager) GetNetworkStatus

func (nm *NetworkManager) GetNetworkStatus() (*v1alpha1.NetworkStatus, error)

func (*NetworkManager) GetNetworkType

func (nm *NetworkManager) GetNetworkType() string

func (*NetworkManager) SetNetworkState

func (nm *NetworkManager) SetNetworkState(disabled bool) error

func (*NetworkManager) UpdateNetworkStatus

func (nm *NetworkManager) UpdateNetworkStatus(networkStatus v1alpha1.NetworkStatus, pod *corev1.Pod) (*corev1.Pod, error)

Jump to

Keyboard shortcuts

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