util

package
v2.11.4 Latest Latest
Warning

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

Go to latest
Published: Oct 1, 2020 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateServiceAccountWithToken

func CreateServiceAccountWithToken(clientset kubernetes.Interface, namespace, name, tokenName string) (*corev1.ServiceAccount, error)

CreateServiceAccountWithToken creates a service account with a given name with a service account token. Need to use this function to simulate the actual behavior of Kubernetes API server with the fake client.

func MustMarshallJSON

func MustMarshallJSON(v interface{}) string

func MustUnmarshallJSON

func MustUnmarshallJSON(text string, v interface{})

func MustUnmarshallYAML

func MustUnmarshallYAML(text string, v interface{})

Types

This section is empty.

Jump to

Keyboard shortcuts

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