utils

package
v0.0.0-...-fa67f7b Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2020 License: Apache-2.0 Imports: 10 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsInClusterDeployer

func IsInClusterDeployer(deployer *appv1alpha1.Deployer) bool

func SetInClusterDeployer

func SetInClusterDeployer(deployer *appv1alpha1.Deployer)

func SetRemoteDeployer

func SetRemoteDeployer(deployer *appv1alpha1.Deployer)

func StripGroup

func StripGroup(gv string) string

func StripVersion

func StripVersion(gv string) string

StripVersion removes the version part of a GV

Types

type Explorer

type Explorer struct {
	DynamicMCClient  dynamic.Interface
	DynamicHubClient dynamic.Interface
	Cluster          types.NamespacedName
	GVKGVRMap        map[schema.GroupVersionKind]schema.GroupVersionResource
}

func InitExplorer

func InitExplorer(hubconfig, mcconfig *rest.Config, cluster types.NamespacedName) (*Explorer, error)

Jump to

Keyboard shortcuts

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