k8s

package
v1.13.0-rc5 Latest Latest
Warning

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

Go to latest
Published: Jan 24, 2023 License: Apache-2.0 Imports: 5 Imported by: 2

Documentation

Overview

Package k8s provides a Kubernetes client to be used with MetalLB integration.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	client.Clientset
	// contains filtered or unexported fields
}

Client wraps the K8s client so that it can conform to the client from MetalLB.

func New

func New(l *logrus.Logger, cs client.Clientset) *Client

func (*Client) Errorf

func (c *Client) Errorf(_ *v1.Service, desc, fmt string, args ...interface{})

func (*Client) Infof

func (c *Client) Infof(_ *v1.Service, desc, fmt string, args ...interface{})

func (*Client) Update

func (c *Client) Update(svc *v1.Service) (*v1.Service, error)

func (*Client) UpdateStatus

func (c *Client) UpdateStatus(svc *v1.Service) error

Jump to

Keyboard shortcuts

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