Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type K8sWrapper ¶
type K8sWrapper interface { GetNode(nodeName string) (*v1.Node, error) AdvertiseCapacityIfNotSet(nodeName string, resourceName string, capacity int) error GetENIConfig(eniConfigName string) (*v1alpha1.ENIConfig, error) GetDeployment(namespace string, name string) (*appV1.Deployment, error) BroadcastEvent(obj runtime.Object, reason string, message string, eventType string) GetConfigMap(configMapName string, configMapNamespace string) (*v1.ConfigMap, error) ListNodes() (*v1.NodeList, error) }
K8sWrapper represents an interface with all the common operations on K8s objects
func NewK8sWrapper ¶
func NewK8sWrapper(client client.Client, coreV1 corev1.CoreV1Interface, ctx context.Context) K8sWrapper
NewK8sWrapper returns a new K8sWrapper
Click to show internal directories.
Click to hide internal directories.