Documentation ¶
Index ¶
- func ConfigureSeedDefaults(configmaps corev1.ConfigMapInterface)
- func ConfigureSeedSecret(secrets corev1.SecretInterface)
- func CreateNamespaceOrDie(namespaces corev1.NamespaceInterface, stem string) string
- func DeleteNamespace(namespaces corev1.NamespaceInterface, namespace string)
- func DeleteObject(context rcontext.Context, obj runtime.Object, async bool)
- func EnsureNamespaceOrDie(namespaces corev1.NamespaceInterface, namespace string)
- func GetClientsetOrDie(restCfg *rest.Config) *kubernetes.Clientset
- func GetContextNamespaceOrDie() string
- func GetObject(context context.Context, obj runtime.Object) func() runtime.Object
- func GetState(context context.Context, obj runtime.Object) func() string
- func LoadBinding(filename string) v1alpha1.Binding
- func LoadObject(filename string, obj runtime.Object) runtime.Object
- func LoadService(filename string) v1alpha1.Service
- func PostInNs(context rcontext.Context, obj runtime.Object, async bool, delay time.Duration) runtime.Object
- func SetupKubeOrDie(restCfg *rest.Config, stem string) string
- func StartTestManager(mgr manager.Manager) chan struct{}
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConfigureSeedDefaults ¶
func ConfigureSeedDefaults(configmaps corev1.ConfigMapInterface)
ConfigureSeedDefaults sets config-ibm-cloud-operator
func ConfigureSeedSecret ¶
func ConfigureSeedSecret(secrets corev1.SecretInterface)
ConfigureSeedSecret sets secret-ibm-cloud-operator and secret-ibm-cloud-operator-tokens
func CreateNamespaceOrDie ¶
func CreateNamespaceOrDie(namespaces corev1.NamespaceInterface, stem string) string
CreateNamespaceOrDie creates a new unique namespace from stem
func DeleteNamespace ¶
func DeleteNamespace(namespaces corev1.NamespaceInterface, namespace string)
DeleteNamespace deletes a kube namespace. Wait for all resources to be really gone.
func DeleteObject ¶
DeleteObject deletes an object
func EnsureNamespaceOrDie ¶
func EnsureNamespaceOrDie(namespaces corev1.NamespaceInterface, namespace string)
EnsureNamespaceOrDie makes sure the given namespace exists.
func GetClientsetOrDie ¶
func GetClientsetOrDie(restCfg *rest.Config) *kubernetes.Clientset
GetClientsetOrDie gets a Kube clientset for KUBECONFIG
func GetContextNamespaceOrDie ¶
func GetContextNamespaceOrDie() string
GetContextNamespaceOrDie returns the current namespace context or "default"
func LoadBinding ¶
LoadBinding loads the YAML spec into obj
func LoadObject ¶
LoadObject loads the YAML spec into obj
func LoadService ¶
LoadService loads the YAML spec into obj
func PostInNs ¶
func PostInNs(context rcontext.Context, obj runtime.Object, async bool, delay time.Duration) runtime.Object
PostInNs the object
func SetupKubeOrDie ¶
SetupKubeOrDie setups Kube for testing
func StartTestManager ¶
StartTestManager starts the manager
Types ¶
This section is empty.