utils

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jan 21, 2022 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AlterFieldOfNestedStringMaps added in v0.0.5

func AlterFieldOfNestedStringMaps(obj interface{}, key string, value string) error

func GetFullyQualifiedType added in v0.0.8

func GetFullyQualifiedType(obj *unstructured.Unstructured) string

func GetObjectGVK

func GetObjectGVK(obj metav1.Object, scheme *runtime.Scheme) (schema.GroupVersionKind, error)

func HereYaml added in v0.0.5

func HereYaml(y string) string

func HereYamlF added in v0.0.5

func HereYamlF(y string, args ...interface{}) string

func SinglePathEvaluate

func SinglePathEvaluate(jsonpathExpression string, obj interface{}) ([]interface{}, error)

Types

type KubeconfigRestricted added in v0.0.8

type KubeconfigRestricted struct {
	// contains filtered or unexported fields
}

func NewKubeconfigRestricted added in v0.0.8

func NewKubeconfigRestricted(input string) (*KubeconfigRestricted, error)

NewKubeconfigRestricted takes kubeconfig yaml as input and returns kubeconfig yaml with certain fields restricted (removed). Developers may find it informative to view their own config at ~/.kube/config

func (*KubeconfigRestricted) AsYAML added in v0.0.8

func (r *KubeconfigRestricted) AsYAML() string

type ServiceAccounts added in v0.0.8

type ServiceAccounts struct {
	// contains filtered or unexported fields
}

func (*ServiceAccounts) Find added in v0.0.8

func (s *ServiceAccounts) Find(nsName string, saName string) (*KubeconfigRestricted, error)

func (*ServiceAccounts) MakeKubeConfig added in v0.0.8

func (s *ServiceAccounts) MakeKubeConfig(secret *corev1.Secret) (string, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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