client

package
v0.0.19 Latest Latest
Warning

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

Go to latest
Published: Jan 20, 2025 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsOpenShift

func IsOpenShift(d discovery.DiscoveryInterface) (bool, error)

func NewRESTClientForConfig

func NewRESTClientForConfig(config *rest.Config) (*rest.RESTClient, error)

Types

type Client

type Client struct {
	ctrl.Client
	kubernetes.Interface

	Discovery discovery.DiscoveryInterface
	Route     route.Interface
	// contains filtered or unexported fields
}

func NewClient

func NewClient(cfg *rest.Config, scheme *runtime.Scheme, cc ctrl.Client) (*Client, error)

func (*Client) IsOpenShift

func (c *Client) IsOpenShift() (bool, error)

IsOpenShift returns true if we are connected to a OpenShift cluster.

Jump to

Keyboard shortcuts

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