utils

package
v0.10.2 Latest Latest
Warning

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

Go to latest
Published: Mar 5, 2024 License: Apache-2.0 Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Apply

func Apply(ctx context.Context, rcg genericclioptions.RESTClientGetter, opts *runclient.Options, resources []byte) (string, error)

func NewScheme

func NewScheme() *apiruntime.Scheme

Types

type ClusterConfig added in v0.9.0

type ClusterConfig struct {
	ExternalAddress string
	InternalAddress string
	Name            string
	Server          string
	TLSClientConfig TLSClientConfig
}

func KubeClientForLeafCluster added in v0.9.0

func KubeClientForLeafCluster(mgmt client.Client, clusterName string, opts *runclient.Options) (client.Client, *ClusterConfig, error)

type SecretConfig added in v0.9.0

type SecretConfig struct {
	TLSClientConfig TLSClientConfig `json:"tlsClientConfig"`
}

type TLSClientConfig added in v0.9.0

type TLSClientConfig struct {
	Insecure   bool   `json:"insecure"`
	CertData   string `json:"certData"`
	KeyData    string `json:"keyData"`
	ServerName string `json:"serverName"`
}

Jump to

Keyboard shortcuts

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