env

package
v1.1.5 Latest Latest
Warning

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

Go to latest
Published: May 24, 2026 License: Apache-2.0 Imports: 63 Imported by: 0

README

github.com/mridang/wilhelm/env

Per-test environment plus typed resource getters and an assertion-dispatching AssertPartial method, on top of the assert package.

What you import

Symbol Purpose
Env Struct holding Ctx, Namespace, Client *kubernetes.Clientset, DynamicClient dynamic.Interface.
NewEnv(cfg, ns) Builds an Env from a *rest.Config.
NewEnvWithContext(ctx, cfg, ns) Same, with an explicit base context.
(*Env).Get<Resource>(t, name) Fetches one resource by name, failing the test on error. 138 of these are generated, one per resource in kubernetes.Interface.
(*Env).Get<Resource>E(t, name) Same, but returns error (use for not-found checks).
(*Env).AssertPartial(t, name, asn) Type-switches on the concrete assert.Assertable, fetches the matching resource, and runs assert.Partial.
(*Env).AssertNone(t, name, asn) Asserts the resource does not exist (API returns NotFound).

The 276 typed getters and the type switch live in zz_generated.go and are regenerated by envgen.

How a test uses it

import (
	"testing"

	"k8s.io/client-go/tools/clientcmd"

	"github.com/mridang/wilhelm/assert"
	"github.com/mridang/wilhelm/env"
)

func TestMyChart(t *testing.T) {
	cfg, err := clientcmd.BuildConfigFromFlags("", kubeconfigPath)
	if err != nil {
		t.Fatal(err)
	}
	e, err := env.NewEnv(cfg, "my-namespace")
	if err != nil {
		t.Fatal(err)
	}

	// Option A: fetch + assert in one call.
	e.AssertPartial(t, "my-release", assert.DeploymentAssertion{
		Spec: assert.DeploymentSpecAssertion{
			Replicas: assert.SomePtr(int32(3)),
		},
	})

	// Option B: fetch first, do something with it, then assert manually.
	dep := e.GetDeployment(t, "my-release")
	_ = dep // ... custom checks ...
}

What's deliberately not here

  • No terratest dependency. Wilhelm's only K8s deps are k8s.io/api, k8s.io/apimachinery, and k8s.io/client-go.
  • No cluster bootstrap. Tests bring their own cluster (kind, k3s via testcontainers, real cluster, kubeconfig file — whatever) and pass a *rest.Config.
  • No KubectlOptions, no Helm install helpers. Wilhelm asserts — it doesn't install.

Regenerating

go generate ./env/...

Re-runs envgen. It walks k8s.io/client-go/kubernetes.Interface to discover every available resource, so adding a new API version upstream picks up automatically on next generation.

Documentation

Overview

Package env provides the per-test wilhelm environment plus typed resource getters for every namespaced and cluster-scoped resource that the upstream kubernetes.Interface exposes, as well as dynamic-client getters for Gateway API and Prometheus Operator types.

Re-generate the getter catalogue (zz_generated.go) with:

go generate ./env/...

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Env

type Env struct {
	// Ctx is forwarded to every API call. Tests may set a per-test timeout
	// or cancellation context by replacing this field.
	Ctx context.Context

	// Namespace is the target namespace for every namespaced lookup.
	Namespace string

	// Client is the typed Kubernetes clientset.
	Client *kubernetes.Clientset

	// DynamicClient fetches arbitrary resources (CRDs and core types alike)
	// as unstructured.Unstructured values.
	DynamicClient dynamic.Interface
}

Env is the per-test environment passed to wilhelm's resource getters and AssertPartial dispatcher. It owns a Kubernetes typed client, a dynamic client (for CRDs that wilhelm does not have a typed clientset for), the target namespace, and a base context used by every API call.

func NewEnv

func NewEnv(cfg *rest.Config, namespace string) (*Env, error)

NewEnv builds an Env from a *rest.Config and a target namespace. Tests obtain the rest.Config however they like (in-cluster, kubeconfig file, custom transport) and pass it in.

func NewEnvWithContext

func NewEnvWithContext(ctx context.Context, cfg *rest.Config, namespace string) (*Env, error)

NewEnvWithContext is like NewEnv but accepts an explicit base context.

func (*Env) AssertNone

func (env *Env) AssertNone(t *testing.T, name string, assertion assert.Assertable)

AssertNone asserts that the K8s resource implied by the assertion type does not exist (the GET returns NotFound). The resource type is inferred from the concrete assertion struct via a type switch.

func (*Env) AssertPartial

func (env *Env) AssertPartial(t *testing.T, name string, assertion assert.Assertable)

AssertPartial fetches the K8s resource implied by the assertion type and runs a partial assertion. The resource type is inferred from the concrete assertion struct via a type switch.

func (*Env) GetAdmissionregistrationV1alpha1MutatingAdmissionPolicy

func (env *Env) GetAdmissionregistrationV1alpha1MutatingAdmissionPolicy(t *testing.T, name string) *v1alpha1.MutatingAdmissionPolicy

GetAdmissionregistrationV1alpha1MutatingAdmissionPolicy fetches a AdmissionregistrationV1alpha1MutatingAdmissionPolicy by name, failing the test on error.

func (*Env) GetAdmissionregistrationV1alpha1MutatingAdmissionPolicyBinding

func (env *Env) GetAdmissionregistrationV1alpha1MutatingAdmissionPolicyBinding(t *testing.T, name string) *v1alpha1.MutatingAdmissionPolicyBinding

GetAdmissionregistrationV1alpha1MutatingAdmissionPolicyBinding fetches a AdmissionregistrationV1alpha1MutatingAdmissionPolicyBinding by name, failing the test on error.

func (*Env) GetAdmissionregistrationV1alpha1MutatingAdmissionPolicyBindingE

func (env *Env) GetAdmissionregistrationV1alpha1MutatingAdmissionPolicyBindingE(t *testing.T, name string) (*v1alpha1.MutatingAdmissionPolicyBinding, error)

GetAdmissionregistrationV1alpha1MutatingAdmissionPolicyBindingE fetches a AdmissionregistrationV1alpha1MutatingAdmissionPolicyBinding by name, returning the error for non-existence checks.

func (*Env) GetAdmissionregistrationV1alpha1MutatingAdmissionPolicyE

func (env *Env) GetAdmissionregistrationV1alpha1MutatingAdmissionPolicyE(t *testing.T, name string) (*v1alpha1.MutatingAdmissionPolicy, error)

GetAdmissionregistrationV1alpha1MutatingAdmissionPolicyE fetches a AdmissionregistrationV1alpha1MutatingAdmissionPolicy by name, returning the error for non-existence checks.

func (*Env) GetAdmissionregistrationV1alpha1ValidatingAdmissionPolicy

func (env *Env) GetAdmissionregistrationV1alpha1ValidatingAdmissionPolicy(t *testing.T, name string) *v1alpha1.ValidatingAdmissionPolicy

GetAdmissionregistrationV1alpha1ValidatingAdmissionPolicy fetches a AdmissionregistrationV1alpha1ValidatingAdmissionPolicy by name, failing the test on error.

func (*Env) GetAdmissionregistrationV1alpha1ValidatingAdmissionPolicyBinding

func (env *Env) GetAdmissionregistrationV1alpha1ValidatingAdmissionPolicyBinding(t *testing.T, name string) *v1alpha1.ValidatingAdmissionPolicyBinding

GetAdmissionregistrationV1alpha1ValidatingAdmissionPolicyBinding fetches a AdmissionregistrationV1alpha1ValidatingAdmissionPolicyBinding by name, failing the test on error.

func (*Env) GetAdmissionregistrationV1alpha1ValidatingAdmissionPolicyBindingE

func (env *Env) GetAdmissionregistrationV1alpha1ValidatingAdmissionPolicyBindingE(t *testing.T, name string) (*v1alpha1.ValidatingAdmissionPolicyBinding, error)

GetAdmissionregistrationV1alpha1ValidatingAdmissionPolicyBindingE fetches a AdmissionregistrationV1alpha1ValidatingAdmissionPolicyBinding by name, returning the error for non-existence checks.

func (*Env) GetAdmissionregistrationV1alpha1ValidatingAdmissionPolicyE

func (env *Env) GetAdmissionregistrationV1alpha1ValidatingAdmissionPolicyE(t *testing.T, name string) (*v1alpha1.ValidatingAdmissionPolicy, error)

GetAdmissionregistrationV1alpha1ValidatingAdmissionPolicyE fetches a AdmissionregistrationV1alpha1ValidatingAdmissionPolicy by name, returning the error for non-existence checks.

func (*Env) GetAdmissionregistrationV1beta1MutatingAdmissionPolicy

func (env *Env) GetAdmissionregistrationV1beta1MutatingAdmissionPolicy(t *testing.T, name string) *v1beta1.MutatingAdmissionPolicy

GetAdmissionregistrationV1beta1MutatingAdmissionPolicy fetches a AdmissionregistrationV1beta1MutatingAdmissionPolicy by name, failing the test on error.

func (*Env) GetAdmissionregistrationV1beta1MutatingAdmissionPolicyBinding

func (env *Env) GetAdmissionregistrationV1beta1MutatingAdmissionPolicyBinding(t *testing.T, name string) *v1beta1.MutatingAdmissionPolicyBinding

GetAdmissionregistrationV1beta1MutatingAdmissionPolicyBinding fetches a AdmissionregistrationV1beta1MutatingAdmissionPolicyBinding by name, failing the test on error.

func (*Env) GetAdmissionregistrationV1beta1MutatingAdmissionPolicyBindingE

func (env *Env) GetAdmissionregistrationV1beta1MutatingAdmissionPolicyBindingE(t *testing.T, name string) (*v1beta1.MutatingAdmissionPolicyBinding, error)

GetAdmissionregistrationV1beta1MutatingAdmissionPolicyBindingE fetches a AdmissionregistrationV1beta1MutatingAdmissionPolicyBinding by name, returning the error for non-existence checks.

func (*Env) GetAdmissionregistrationV1beta1MutatingAdmissionPolicyE

func (env *Env) GetAdmissionregistrationV1beta1MutatingAdmissionPolicyE(t *testing.T, name string) (*v1beta1.MutatingAdmissionPolicy, error)

GetAdmissionregistrationV1beta1MutatingAdmissionPolicyE fetches a AdmissionregistrationV1beta1MutatingAdmissionPolicy by name, returning the error for non-existence checks.

func (*Env) GetAdmissionregistrationV1beta1MutatingWebhookConfiguration

func (env *Env) GetAdmissionregistrationV1beta1MutatingWebhookConfiguration(t *testing.T, name string) *v1beta1.MutatingWebhookConfiguration

GetAdmissionregistrationV1beta1MutatingWebhookConfiguration fetches a AdmissionregistrationV1beta1MutatingWebhookConfiguration by name, failing the test on error.

func (*Env) GetAdmissionregistrationV1beta1MutatingWebhookConfigurationE

func (env *Env) GetAdmissionregistrationV1beta1MutatingWebhookConfigurationE(t *testing.T, name string) (*v1beta1.MutatingWebhookConfiguration, error)

GetAdmissionregistrationV1beta1MutatingWebhookConfigurationE fetches a AdmissionregistrationV1beta1MutatingWebhookConfiguration by name, returning the error for non-existence checks.

func (*Env) GetAdmissionregistrationV1beta1ValidatingAdmissionPolicy

func (env *Env) GetAdmissionregistrationV1beta1ValidatingAdmissionPolicy(t *testing.T, name string) *v1beta1.ValidatingAdmissionPolicy

GetAdmissionregistrationV1beta1ValidatingAdmissionPolicy fetches a AdmissionregistrationV1beta1ValidatingAdmissionPolicy by name, failing the test on error.

func (*Env) GetAdmissionregistrationV1beta1ValidatingAdmissionPolicyBinding

func (env *Env) GetAdmissionregistrationV1beta1ValidatingAdmissionPolicyBinding(t *testing.T, name string) *v1beta1.ValidatingAdmissionPolicyBinding

GetAdmissionregistrationV1beta1ValidatingAdmissionPolicyBinding fetches a AdmissionregistrationV1beta1ValidatingAdmissionPolicyBinding by name, failing the test on error.

func (*Env) GetAdmissionregistrationV1beta1ValidatingAdmissionPolicyBindingE

func (env *Env) GetAdmissionregistrationV1beta1ValidatingAdmissionPolicyBindingE(t *testing.T, name string) (*v1beta1.ValidatingAdmissionPolicyBinding, error)

GetAdmissionregistrationV1beta1ValidatingAdmissionPolicyBindingE fetches a AdmissionregistrationV1beta1ValidatingAdmissionPolicyBinding by name, returning the error for non-existence checks.

func (*Env) GetAdmissionregistrationV1beta1ValidatingAdmissionPolicyE

func (env *Env) GetAdmissionregistrationV1beta1ValidatingAdmissionPolicyE(t *testing.T, name string) (*v1beta1.ValidatingAdmissionPolicy, error)

GetAdmissionregistrationV1beta1ValidatingAdmissionPolicyE fetches a AdmissionregistrationV1beta1ValidatingAdmissionPolicy by name, returning the error for non-existence checks.

func (*Env) GetAdmissionregistrationV1beta1ValidatingWebhookConfiguration

func (env *Env) GetAdmissionregistrationV1beta1ValidatingWebhookConfiguration(t *testing.T, name string) *v1beta1.ValidatingWebhookConfiguration

GetAdmissionregistrationV1beta1ValidatingWebhookConfiguration fetches a AdmissionregistrationV1beta1ValidatingWebhookConfiguration by name, failing the test on error.

func (*Env) GetAdmissionregistrationV1beta1ValidatingWebhookConfigurationE

func (env *Env) GetAdmissionregistrationV1beta1ValidatingWebhookConfigurationE(t *testing.T, name string) (*v1beta1.ValidatingWebhookConfiguration, error)

GetAdmissionregistrationV1beta1ValidatingWebhookConfigurationE fetches a AdmissionregistrationV1beta1ValidatingWebhookConfiguration by name, returning the error for non-existence checks.

func (*Env) GetAlertmanager added in v1.1.0

func (env *Env) GetAlertmanager(t *testing.T, name string) *v119.Alertmanager

GetAlertmanager fetches a Alertmanager by name via the dynamic client, failing the test on error.

func (*Env) GetAlertmanagerE added in v1.1.0

func (env *Env) GetAlertmanagerE(t *testing.T, name string) (*v119.Alertmanager, error)

GetAlertmanagerE fetches a Alertmanager by name via the dynamic client, returning the error for non-existence checks.

func (*Env) GetAppsV1beta1ControllerRevision

func (env *Env) GetAppsV1beta1ControllerRevision(t *testing.T, name string) *v1beta11.ControllerRevision

GetAppsV1beta1ControllerRevision fetches a AppsV1beta1ControllerRevision by name, failing the test on error.

func (*Env) GetAppsV1beta1ControllerRevisionE

func (env *Env) GetAppsV1beta1ControllerRevisionE(t *testing.T, name string) (*v1beta11.ControllerRevision, error)

GetAppsV1beta1ControllerRevisionE fetches a AppsV1beta1ControllerRevision by name, returning the error for non-existence checks.

func (*Env) GetAppsV1beta1Deployment

func (env *Env) GetAppsV1beta1Deployment(t *testing.T, name string) *v1beta11.Deployment

GetAppsV1beta1Deployment fetches a AppsV1beta1Deployment by name, failing the test on error.

func (*Env) GetAppsV1beta1DeploymentE

func (env *Env) GetAppsV1beta1DeploymentE(t *testing.T, name string) (*v1beta11.Deployment, error)

GetAppsV1beta1DeploymentE fetches a AppsV1beta1Deployment by name, returning the error for non-existence checks.

func (*Env) GetAppsV1beta1StatefulSet

func (env *Env) GetAppsV1beta1StatefulSet(t *testing.T, name string) *v1beta11.StatefulSet

GetAppsV1beta1StatefulSet fetches a AppsV1beta1StatefulSet by name, failing the test on error.

func (*Env) GetAppsV1beta1StatefulSetE

func (env *Env) GetAppsV1beta1StatefulSetE(t *testing.T, name string) (*v1beta11.StatefulSet, error)

GetAppsV1beta1StatefulSetE fetches a AppsV1beta1StatefulSet by name, returning the error for non-existence checks.

func (*Env) GetAppsV1beta2ControllerRevision

func (env *Env) GetAppsV1beta2ControllerRevision(t *testing.T, name string) *v1beta2.ControllerRevision

GetAppsV1beta2ControllerRevision fetches a AppsV1beta2ControllerRevision by name, failing the test on error.

func (*Env) GetAppsV1beta2ControllerRevisionE

func (env *Env) GetAppsV1beta2ControllerRevisionE(t *testing.T, name string) (*v1beta2.ControllerRevision, error)

GetAppsV1beta2ControllerRevisionE fetches a AppsV1beta2ControllerRevision by name, returning the error for non-existence checks.

func (*Env) GetAppsV1beta2DaemonSet

func (env *Env) GetAppsV1beta2DaemonSet(t *testing.T, name string) *v1beta2.DaemonSet

GetAppsV1beta2DaemonSet fetches a AppsV1beta2DaemonSet by name, failing the test on error.

func (*Env) GetAppsV1beta2DaemonSetE

func (env *Env) GetAppsV1beta2DaemonSetE(t *testing.T, name string) (*v1beta2.DaemonSet, error)

GetAppsV1beta2DaemonSetE fetches a AppsV1beta2DaemonSet by name, returning the error for non-existence checks.

func (*Env) GetAppsV1beta2Deployment

func (env *Env) GetAppsV1beta2Deployment(t *testing.T, name string) *v1beta2.Deployment

GetAppsV1beta2Deployment fetches a AppsV1beta2Deployment by name, failing the test on error.

func (*Env) GetAppsV1beta2DeploymentE

func (env *Env) GetAppsV1beta2DeploymentE(t *testing.T, name string) (*v1beta2.Deployment, error)

GetAppsV1beta2DeploymentE fetches a AppsV1beta2Deployment by name, returning the error for non-existence checks.

func (*Env) GetAppsV1beta2ReplicaSet

func (env *Env) GetAppsV1beta2ReplicaSet(t *testing.T, name string) *v1beta2.ReplicaSet

GetAppsV1beta2ReplicaSet fetches a AppsV1beta2ReplicaSet by name, failing the test on error.

func (*Env) GetAppsV1beta2ReplicaSetE

func (env *Env) GetAppsV1beta2ReplicaSetE(t *testing.T, name string) (*v1beta2.ReplicaSet, error)

GetAppsV1beta2ReplicaSetE fetches a AppsV1beta2ReplicaSet by name, returning the error for non-existence checks.

func (*Env) GetAppsV1beta2StatefulSet

func (env *Env) GetAppsV1beta2StatefulSet(t *testing.T, name string) *v1beta2.StatefulSet

GetAppsV1beta2StatefulSet fetches a AppsV1beta2StatefulSet by name, failing the test on error.

func (*Env) GetAppsV1beta2StatefulSetE

func (env *Env) GetAppsV1beta2StatefulSetE(t *testing.T, name string) (*v1beta2.StatefulSet, error)

GetAppsV1beta2StatefulSetE fetches a AppsV1beta2StatefulSet by name, returning the error for non-existence checks.

func (*Env) GetAutoscalingV1HorizontalPodAutoscaler

func (env *Env) GetAutoscalingV1HorizontalPodAutoscaler(t *testing.T, name string) *v13.HorizontalPodAutoscaler

GetAutoscalingV1HorizontalPodAutoscaler fetches a AutoscalingV1HorizontalPodAutoscaler by name, failing the test on error.

func (*Env) GetAutoscalingV1HorizontalPodAutoscalerE

func (env *Env) GetAutoscalingV1HorizontalPodAutoscalerE(t *testing.T, name string) (*v13.HorizontalPodAutoscaler, error)

GetAutoscalingV1HorizontalPodAutoscalerE fetches a AutoscalingV1HorizontalPodAutoscaler by name, returning the error for non-existence checks.

func (*Env) GetBackendTLSPolicy added in v1.1.0

func (env *Env) GetBackendTLSPolicy(t *testing.T, name string) *v118.BackendTLSPolicy

GetBackendTLSPolicy fetches a BackendTLSPolicy by name via the dynamic client, failing the test on error.

func (*Env) GetBackendTLSPolicyE added in v1.1.0

func (env *Env) GetBackendTLSPolicyE(t *testing.T, name string) (*v118.BackendTLSPolicy, error)

GetBackendTLSPolicyE fetches a BackendTLSPolicy by name via the dynamic client, returning the error for non-existence checks.

func (*Env) GetBatchV1beta1CronJob

func (env *Env) GetBatchV1beta1CronJob(t *testing.T, name string) *v1beta12.CronJob

GetBatchV1beta1CronJob fetches a BatchV1beta1CronJob by name, failing the test on error.

func (*Env) GetBatchV1beta1CronJobE

func (env *Env) GetBatchV1beta1CronJobE(t *testing.T, name string) (*v1beta12.CronJob, error)

GetBatchV1beta1CronJobE fetches a BatchV1beta1CronJob by name, returning the error for non-existence checks.

func (*Env) GetCSIDriver

func (env *Env) GetCSIDriver(t *testing.T, name string) *v117.CSIDriver

GetCSIDriver fetches a CSIDriver by name, failing the test on error.

func (*Env) GetCSIDriverE

func (env *Env) GetCSIDriverE(t *testing.T, name string) (*v117.CSIDriver, error)

GetCSIDriverE fetches a CSIDriver by name, returning the error for non-existence checks.

func (*Env) GetCSINode

func (env *Env) GetCSINode(t *testing.T, name string) *v117.CSINode

GetCSINode fetches a CSINode by name, failing the test on error.

func (*Env) GetCSINodeE

func (env *Env) GetCSINodeE(t *testing.T, name string) (*v117.CSINode, error)

GetCSINodeE fetches a CSINode by name, returning the error for non-existence checks.

func (*Env) GetCSIStorageCapacity

func (env *Env) GetCSIStorageCapacity(t *testing.T, name string) *v117.CSIStorageCapacity

GetCSIStorageCapacity fetches a CSIStorageCapacity by name, failing the test on error.

func (*Env) GetCSIStorageCapacityE

func (env *Env) GetCSIStorageCapacityE(t *testing.T, name string) (*v117.CSIStorageCapacity, error)

GetCSIStorageCapacityE fetches a CSIStorageCapacity by name, returning the error for non-existence checks.

func (*Env) GetCertificateSigningRequest

func (env *Env) GetCertificateSigningRequest(t *testing.T, name string) *v15.CertificateSigningRequest

GetCertificateSigningRequest fetches a CertificateSigningRequest by name, failing the test on error.

func (*Env) GetCertificateSigningRequestE

func (env *Env) GetCertificateSigningRequestE(t *testing.T, name string) (*v15.CertificateSigningRequest, error)

GetCertificateSigningRequestE fetches a CertificateSigningRequest by name, returning the error for non-existence checks.

func (*Env) GetCertificatesV1alpha1ClusterTrustBundle

func (env *Env) GetCertificatesV1alpha1ClusterTrustBundle(t *testing.T, name string) *v1alpha11.ClusterTrustBundle

GetCertificatesV1alpha1ClusterTrustBundle fetches a CertificatesV1alpha1ClusterTrustBundle by name, failing the test on error.

func (*Env) GetCertificatesV1alpha1ClusterTrustBundleE

func (env *Env) GetCertificatesV1alpha1ClusterTrustBundleE(t *testing.T, name string) (*v1alpha11.ClusterTrustBundle, error)

GetCertificatesV1alpha1ClusterTrustBundleE fetches a CertificatesV1alpha1ClusterTrustBundle by name, returning the error for non-existence checks.

func (*Env) GetCertificatesV1beta1CertificateSigningRequest

func (env *Env) GetCertificatesV1beta1CertificateSigningRequest(t *testing.T, name string) *v1beta13.CertificateSigningRequest

GetCertificatesV1beta1CertificateSigningRequest fetches a CertificatesV1beta1CertificateSigningRequest by name, failing the test on error.

func (*Env) GetCertificatesV1beta1CertificateSigningRequestE

func (env *Env) GetCertificatesV1beta1CertificateSigningRequestE(t *testing.T, name string) (*v1beta13.CertificateSigningRequest, error)

GetCertificatesV1beta1CertificateSigningRequestE fetches a CertificatesV1beta1CertificateSigningRequest by name, returning the error for non-existence checks.

func (*Env) GetClusterRole

func (env *Env) GetClusterRole(t *testing.T, name string) *v114.ClusterRole

GetClusterRole fetches a ClusterRole by name, failing the test on error.

func (*Env) GetClusterRoleBinding

func (env *Env) GetClusterRoleBinding(t *testing.T, name string) *v114.ClusterRoleBinding

GetClusterRoleBinding fetches a ClusterRoleBinding by name, failing the test on error.

func (*Env) GetClusterRoleBindingE

func (env *Env) GetClusterRoleBindingE(t *testing.T, name string) (*v114.ClusterRoleBinding, error)

GetClusterRoleBindingE fetches a ClusterRoleBinding by name, returning the error for non-existence checks.

func (*Env) GetClusterRoleE

func (env *Env) GetClusterRoleE(t *testing.T, name string) (*v114.ClusterRole, error)

GetClusterRoleE fetches a ClusterRole by name, returning the error for non-existence checks.

func (*Env) GetClusterTrustBundle

func (env *Env) GetClusterTrustBundle(t *testing.T, name string) *v1beta13.ClusterTrustBundle

GetClusterTrustBundle fetches a ClusterTrustBundle by name, failing the test on error.

func (*Env) GetClusterTrustBundleE

func (env *Env) GetClusterTrustBundleE(t *testing.T, name string) (*v1beta13.ClusterTrustBundle, error)

GetClusterTrustBundleE fetches a ClusterTrustBundle by name, returning the error for non-existence checks.

func (*Env) GetComponentStatus

func (env *Env) GetComponentStatus(t *testing.T, name string) *v17.ComponentStatus

GetComponentStatus fetches a ComponentStatus by name, failing the test on error.

func (*Env) GetComponentStatusE

func (env *Env) GetComponentStatusE(t *testing.T, name string) (*v17.ComponentStatus, error)

GetComponentStatusE fetches a ComponentStatus by name, returning the error for non-existence checks.

func (*Env) GetConfigMap

func (env *Env) GetConfigMap(t *testing.T, name string) *v17.ConfigMap

GetConfigMap fetches a ConfigMap by name, failing the test on error.

func (*Env) GetConfigMapE

func (env *Env) GetConfigMapE(t *testing.T, name string) (*v17.ConfigMap, error)

GetConfigMapE fetches a ConfigMap by name, returning the error for non-existence checks.

func (*Env) GetControllerRevision

func (env *Env) GetControllerRevision(t *testing.T, name string) *v12.ControllerRevision

GetControllerRevision fetches a ControllerRevision by name, failing the test on error.

func (*Env) GetControllerRevisionE

func (env *Env) GetControllerRevisionE(t *testing.T, name string) (*v12.ControllerRevision, error)

GetControllerRevisionE fetches a ControllerRevision by name, returning the error for non-existence checks.

func (*Env) GetCoordinationV1alpha2LeaseCandidate

func (env *Env) GetCoordinationV1alpha2LeaseCandidate(t *testing.T, name string) *v1alpha2.LeaseCandidate

GetCoordinationV1alpha2LeaseCandidate fetches a CoordinationV1alpha2LeaseCandidate by name, failing the test on error.

func (*Env) GetCoordinationV1alpha2LeaseCandidateE

func (env *Env) GetCoordinationV1alpha2LeaseCandidateE(t *testing.T, name string) (*v1alpha2.LeaseCandidate, error)

GetCoordinationV1alpha2LeaseCandidateE fetches a CoordinationV1alpha2LeaseCandidate by name, returning the error for non-existence checks.

func (*Env) GetCoordinationV1beta1Lease

func (env *Env) GetCoordinationV1beta1Lease(t *testing.T, name string) *v1beta14.Lease

GetCoordinationV1beta1Lease fetches a CoordinationV1beta1Lease by name, failing the test on error.

func (*Env) GetCoordinationV1beta1LeaseE

func (env *Env) GetCoordinationV1beta1LeaseE(t *testing.T, name string) (*v1beta14.Lease, error)

GetCoordinationV1beta1LeaseE fetches a CoordinationV1beta1Lease by name, returning the error for non-existence checks.

func (*Env) GetCronJob

func (env *Env) GetCronJob(t *testing.T, name string) *v14.CronJob

GetCronJob fetches a CronJob by name, failing the test on error.

func (*Env) GetCronJobE

func (env *Env) GetCronJobE(t *testing.T, name string) (*v14.CronJob, error)

GetCronJobE fetches a CronJob by name, returning the error for non-existence checks.

func (*Env) GetDaemonSet

func (env *Env) GetDaemonSet(t *testing.T, name string) *v12.DaemonSet

GetDaemonSet fetches a DaemonSet by name, failing the test on error.

func (*Env) GetDaemonSetE

func (env *Env) GetDaemonSetE(t *testing.T, name string) (*v12.DaemonSet, error)

GetDaemonSetE fetches a DaemonSet by name, returning the error for non-existence checks.

func (*Env) GetDeployment

func (env *Env) GetDeployment(t *testing.T, name string) *v12.Deployment

GetDeployment fetches a Deployment by name, failing the test on error.

func (*Env) GetDeploymentE

func (env *Env) GetDeploymentE(t *testing.T, name string) (*v12.Deployment, error)

GetDeploymentE fetches a Deployment by name, returning the error for non-existence checks.

func (*Env) GetDeviceClass

func (env *Env) GetDeviceClass(t *testing.T, name string) *v115.DeviceClass

GetDeviceClass fetches a DeviceClass by name, failing the test on error.

func (*Env) GetDeviceClassE

func (env *Env) GetDeviceClassE(t *testing.T, name string) (*v115.DeviceClass, error)

GetDeviceClassE fetches a DeviceClass by name, returning the error for non-existence checks.

func (*Env) GetDeviceTaintRule

func (env *Env) GetDeviceTaintRule(t *testing.T, name string) *v1beta22.DeviceTaintRule

GetDeviceTaintRule fetches a DeviceTaintRule by name, failing the test on error.

func (*Env) GetDeviceTaintRuleE

func (env *Env) GetDeviceTaintRuleE(t *testing.T, name string) (*v1beta22.DeviceTaintRule, error)

GetDeviceTaintRuleE fetches a DeviceTaintRule by name, returning the error for non-existence checks.

func (*Env) GetDiscoveryV1beta1EndpointSlice

func (env *Env) GetDiscoveryV1beta1EndpointSlice(t *testing.T, name string) *v1beta15.EndpointSlice

GetDiscoveryV1beta1EndpointSlice fetches a DiscoveryV1beta1EndpointSlice by name, failing the test on error.

func (*Env) GetDiscoveryV1beta1EndpointSliceE

func (env *Env) GetDiscoveryV1beta1EndpointSliceE(t *testing.T, name string) (*v1beta15.EndpointSlice, error)

GetDiscoveryV1beta1EndpointSliceE fetches a DiscoveryV1beta1EndpointSlice by name, returning the error for non-existence checks.

func (*Env) GetEndpointSlice

func (env *Env) GetEndpointSlice(t *testing.T, name string) *v18.EndpointSlice

GetEndpointSlice fetches a EndpointSlice by name, failing the test on error.

func (*Env) GetEndpointSliceE

func (env *Env) GetEndpointSliceE(t *testing.T, name string) (*v18.EndpointSlice, error)

GetEndpointSliceE fetches a EndpointSlice by name, returning the error for non-existence checks.

func (*Env) GetEndpoints

func (env *Env) GetEndpoints(t *testing.T, name string) *v17.Endpoints

GetEndpoints fetches a Endpoints by name, failing the test on error.

func (*Env) GetEndpointsE

func (env *Env) GetEndpointsE(t *testing.T, name string) (*v17.Endpoints, error)

GetEndpointsE fetches a Endpoints by name, returning the error for non-existence checks.

func (*Env) GetEvent

func (env *Env) GetEvent(t *testing.T, name string) *v17.Event

GetEvent fetches a Event by name, failing the test on error.

func (*Env) GetEventE

func (env *Env) GetEventE(t *testing.T, name string) (*v17.Event, error)

GetEventE fetches a Event by name, returning the error for non-existence checks.

func (*Env) GetEventsV1Event

func (env *Env) GetEventsV1Event(t *testing.T, name string) *v19.Event

GetEventsV1Event fetches a EventsV1Event by name, failing the test on error.

func (*Env) GetEventsV1EventE

func (env *Env) GetEventsV1EventE(t *testing.T, name string) (*v19.Event, error)

GetEventsV1EventE fetches a EventsV1Event by name, returning the error for non-existence checks.

func (*Env) GetEventsV1beta1Event

func (env *Env) GetEventsV1beta1Event(t *testing.T, name string) *v1beta16.Event

GetEventsV1beta1Event fetches a EventsV1beta1Event by name, failing the test on error.

func (*Env) GetEventsV1beta1EventE

func (env *Env) GetEventsV1beta1EventE(t *testing.T, name string) (*v1beta16.Event, error)

GetEventsV1beta1EventE fetches a EventsV1beta1Event by name, returning the error for non-existence checks.

func (*Env) GetExtensionsV1beta1DaemonSet

func (env *Env) GetExtensionsV1beta1DaemonSet(t *testing.T, name string) *v1beta17.DaemonSet

GetExtensionsV1beta1DaemonSet fetches a ExtensionsV1beta1DaemonSet by name, failing the test on error.

func (*Env) GetExtensionsV1beta1DaemonSetE

func (env *Env) GetExtensionsV1beta1DaemonSetE(t *testing.T, name string) (*v1beta17.DaemonSet, error)

GetExtensionsV1beta1DaemonSetE fetches a ExtensionsV1beta1DaemonSet by name, returning the error for non-existence checks.

func (*Env) GetExtensionsV1beta1Deployment

func (env *Env) GetExtensionsV1beta1Deployment(t *testing.T, name string) *v1beta17.Deployment

GetExtensionsV1beta1Deployment fetches a ExtensionsV1beta1Deployment by name, failing the test on error.

func (*Env) GetExtensionsV1beta1DeploymentE

func (env *Env) GetExtensionsV1beta1DeploymentE(t *testing.T, name string) (*v1beta17.Deployment, error)

GetExtensionsV1beta1DeploymentE fetches a ExtensionsV1beta1Deployment by name, returning the error for non-existence checks.

func (*Env) GetExtensionsV1beta1Ingress

func (env *Env) GetExtensionsV1beta1Ingress(t *testing.T, name string) *v1beta17.Ingress

GetExtensionsV1beta1Ingress fetches a ExtensionsV1beta1Ingress by name, failing the test on error.

func (*Env) GetExtensionsV1beta1IngressE

func (env *Env) GetExtensionsV1beta1IngressE(t *testing.T, name string) (*v1beta17.Ingress, error)

GetExtensionsV1beta1IngressE fetches a ExtensionsV1beta1Ingress by name, returning the error for non-existence checks.

func (*Env) GetExtensionsV1beta1NetworkPolicy

func (env *Env) GetExtensionsV1beta1NetworkPolicy(t *testing.T, name string) *v1beta17.NetworkPolicy

GetExtensionsV1beta1NetworkPolicy fetches a ExtensionsV1beta1NetworkPolicy by name, failing the test on error.

func (*Env) GetExtensionsV1beta1NetworkPolicyE

func (env *Env) GetExtensionsV1beta1NetworkPolicyE(t *testing.T, name string) (*v1beta17.NetworkPolicy, error)

GetExtensionsV1beta1NetworkPolicyE fetches a ExtensionsV1beta1NetworkPolicy by name, returning the error for non-existence checks.

func (*Env) GetExtensionsV1beta1ReplicaSet

func (env *Env) GetExtensionsV1beta1ReplicaSet(t *testing.T, name string) *v1beta17.ReplicaSet

GetExtensionsV1beta1ReplicaSet fetches a ExtensionsV1beta1ReplicaSet by name, failing the test on error.

func (*Env) GetExtensionsV1beta1ReplicaSetE

func (env *Env) GetExtensionsV1beta1ReplicaSetE(t *testing.T, name string) (*v1beta17.ReplicaSet, error)

GetExtensionsV1beta1ReplicaSetE fetches a ExtensionsV1beta1ReplicaSet by name, returning the error for non-existence checks.

func (*Env) GetFlowSchema

func (env *Env) GetFlowSchema(t *testing.T, name string) *v110.FlowSchema

GetFlowSchema fetches a FlowSchema by name, failing the test on error.

func (*Env) GetFlowSchemaE

func (env *Env) GetFlowSchemaE(t *testing.T, name string) (*v110.FlowSchema, error)

GetFlowSchemaE fetches a FlowSchema by name, returning the error for non-existence checks.

func (*Env) GetFlowcontrolV1beta1FlowSchema

func (env *Env) GetFlowcontrolV1beta1FlowSchema(t *testing.T, name string) *v1beta18.FlowSchema

GetFlowcontrolV1beta1FlowSchema fetches a FlowcontrolV1beta1FlowSchema by name, failing the test on error.

func (*Env) GetFlowcontrolV1beta1FlowSchemaE

func (env *Env) GetFlowcontrolV1beta1FlowSchemaE(t *testing.T, name string) (*v1beta18.FlowSchema, error)

GetFlowcontrolV1beta1FlowSchemaE fetches a FlowcontrolV1beta1FlowSchema by name, returning the error for non-existence checks.

func (*Env) GetFlowcontrolV1beta1PriorityLevelConfiguration

func (env *Env) GetFlowcontrolV1beta1PriorityLevelConfiguration(t *testing.T, name string) *v1beta18.PriorityLevelConfiguration

GetFlowcontrolV1beta1PriorityLevelConfiguration fetches a FlowcontrolV1beta1PriorityLevelConfiguration by name, failing the test on error.

func (*Env) GetFlowcontrolV1beta1PriorityLevelConfigurationE

func (env *Env) GetFlowcontrolV1beta1PriorityLevelConfigurationE(t *testing.T, name string) (*v1beta18.PriorityLevelConfiguration, error)

GetFlowcontrolV1beta1PriorityLevelConfigurationE fetches a FlowcontrolV1beta1PriorityLevelConfiguration by name, returning the error for non-existence checks.

func (*Env) GetFlowcontrolV1beta2FlowSchema

func (env *Env) GetFlowcontrolV1beta2FlowSchema(t *testing.T, name string) *v1beta21.FlowSchema

GetFlowcontrolV1beta2FlowSchema fetches a FlowcontrolV1beta2FlowSchema by name, failing the test on error.

func (*Env) GetFlowcontrolV1beta2FlowSchemaE

func (env *Env) GetFlowcontrolV1beta2FlowSchemaE(t *testing.T, name string) (*v1beta21.FlowSchema, error)

GetFlowcontrolV1beta2FlowSchemaE fetches a FlowcontrolV1beta2FlowSchema by name, returning the error for non-existence checks.

func (*Env) GetFlowcontrolV1beta2PriorityLevelConfiguration

func (env *Env) GetFlowcontrolV1beta2PriorityLevelConfiguration(t *testing.T, name string) *v1beta21.PriorityLevelConfiguration

GetFlowcontrolV1beta2PriorityLevelConfiguration fetches a FlowcontrolV1beta2PriorityLevelConfiguration by name, failing the test on error.

func (*Env) GetFlowcontrolV1beta2PriorityLevelConfigurationE

func (env *Env) GetFlowcontrolV1beta2PriorityLevelConfigurationE(t *testing.T, name string) (*v1beta21.PriorityLevelConfiguration, error)

GetFlowcontrolV1beta2PriorityLevelConfigurationE fetches a FlowcontrolV1beta2PriorityLevelConfiguration by name, returning the error for non-existence checks.

func (*Env) GetFlowcontrolV1beta3FlowSchema

func (env *Env) GetFlowcontrolV1beta3FlowSchema(t *testing.T, name string) *v1beta3.FlowSchema

GetFlowcontrolV1beta3FlowSchema fetches a FlowcontrolV1beta3FlowSchema by name, failing the test on error.

func (*Env) GetFlowcontrolV1beta3FlowSchemaE

func (env *Env) GetFlowcontrolV1beta3FlowSchemaE(t *testing.T, name string) (*v1beta3.FlowSchema, error)

GetFlowcontrolV1beta3FlowSchemaE fetches a FlowcontrolV1beta3FlowSchema by name, returning the error for non-existence checks.

func (*Env) GetFlowcontrolV1beta3PriorityLevelConfiguration

func (env *Env) GetFlowcontrolV1beta3PriorityLevelConfiguration(t *testing.T, name string) *v1beta3.PriorityLevelConfiguration

GetFlowcontrolV1beta3PriorityLevelConfiguration fetches a FlowcontrolV1beta3PriorityLevelConfiguration by name, failing the test on error.

func (*Env) GetFlowcontrolV1beta3PriorityLevelConfigurationE

func (env *Env) GetFlowcontrolV1beta3PriorityLevelConfigurationE(t *testing.T, name string) (*v1beta3.PriorityLevelConfiguration, error)

GetFlowcontrolV1beta3PriorityLevelConfigurationE fetches a FlowcontrolV1beta3PriorityLevelConfiguration by name, returning the error for non-existence checks.

func (*Env) GetGRPCRoute added in v1.1.0

func (env *Env) GetGRPCRoute(t *testing.T, name string) *v118.GRPCRoute

GetGRPCRoute fetches a GRPCRoute by name via the dynamic client, failing the test on error.

func (*Env) GetGRPCRouteE added in v1.1.0

func (env *Env) GetGRPCRouteE(t *testing.T, name string) (*v118.GRPCRoute, error)

GetGRPCRouteE fetches a GRPCRoute by name via the dynamic client, returning the error for non-existence checks.

func (*Env) GetGateway added in v1.1.0

func (env *Env) GetGateway(t *testing.T, name string) *v118.Gateway

GetGateway fetches a Gateway by name via the dynamic client, failing the test on error.

func (*Env) GetGatewayClass added in v1.1.0

func (env *Env) GetGatewayClass(t *testing.T, name string) *v118.GatewayClass

GetGatewayClass fetches a GatewayClass by name via the dynamic client, failing the test on error.

func (*Env) GetGatewayClassE added in v1.1.0

func (env *Env) GetGatewayClassE(t *testing.T, name string) (*v118.GatewayClass, error)

GetGatewayClassE fetches a GatewayClass by name via the dynamic client, returning the error for non-existence checks.

func (*Env) GetGatewayE added in v1.1.0

func (env *Env) GetGatewayE(t *testing.T, name string) (*v118.Gateway, error)

GetGatewayE fetches a Gateway by name via the dynamic client, returning the error for non-existence checks.

func (*Env) GetHTTPRoute added in v1.1.0

func (env *Env) GetHTTPRoute(t *testing.T, name string) *v118.HTTPRoute

GetHTTPRoute fetches a HTTPRoute by name via the dynamic client, failing the test on error.

func (*Env) GetHTTPRouteE added in v1.1.0

func (env *Env) GetHTTPRouteE(t *testing.T, name string) (*v118.HTTPRoute, error)

GetHTTPRouteE fetches a HTTPRoute by name via the dynamic client, returning the error for non-existence checks.

func (*Env) GetHorizontalPodAutoscaler

func (env *Env) GetHorizontalPodAutoscaler(t *testing.T, name string) *v2.HorizontalPodAutoscaler

GetHorizontalPodAutoscaler fetches a HorizontalPodAutoscaler by name, failing the test on error.

func (*Env) GetHorizontalPodAutoscalerE

func (env *Env) GetHorizontalPodAutoscalerE(t *testing.T, name string) (*v2.HorizontalPodAutoscaler, error)

GetHorizontalPodAutoscalerE fetches a HorizontalPodAutoscaler by name, returning the error for non-existence checks.

func (*Env) GetIPAddress

func (env *Env) GetIPAddress(t *testing.T, name string) *v111.IPAddress

GetIPAddress fetches a IPAddress by name, failing the test on error.

func (*Env) GetIPAddressE

func (env *Env) GetIPAddressE(t *testing.T, name string) (*v111.IPAddress, error)

GetIPAddressE fetches a IPAddress by name, returning the error for non-existence checks.

func (*Env) GetIngress

func (env *Env) GetIngress(t *testing.T, name string) *v111.Ingress

GetIngress fetches a Ingress by name, failing the test on error.

func (*Env) GetIngressClass

func (env *Env) GetIngressClass(t *testing.T, name string) *v111.IngressClass

GetIngressClass fetches a IngressClass by name, failing the test on error.

func (*Env) GetIngressClassE

func (env *Env) GetIngressClassE(t *testing.T, name string) (*v111.IngressClass, error)

GetIngressClassE fetches a IngressClass by name, returning the error for non-existence checks.

func (*Env) GetIngressE

func (env *Env) GetIngressE(t *testing.T, name string) (*v111.Ingress, error)

GetIngressE fetches a Ingress by name, returning the error for non-existence checks.

func (*Env) GetJob

func (env *Env) GetJob(t *testing.T, name string) *v14.Job

GetJob fetches a Job by name, failing the test on error.

func (*Env) GetJobE

func (env *Env) GetJobE(t *testing.T, name string) (*v14.Job, error)

GetJobE fetches a Job by name, returning the error for non-existence checks.

func (*Env) GetLease

func (env *Env) GetLease(t *testing.T, name string) *v16.Lease

GetLease fetches a Lease by name, failing the test on error.

func (*Env) GetLeaseCandidate

func (env *Env) GetLeaseCandidate(t *testing.T, name string) *v1beta14.LeaseCandidate

GetLeaseCandidate fetches a LeaseCandidate by name, failing the test on error.

func (*Env) GetLeaseCandidateE

func (env *Env) GetLeaseCandidateE(t *testing.T, name string) (*v1beta14.LeaseCandidate, error)

GetLeaseCandidateE fetches a LeaseCandidate by name, returning the error for non-existence checks.

func (*Env) GetLeaseE

func (env *Env) GetLeaseE(t *testing.T, name string) (*v16.Lease, error)

GetLeaseE fetches a Lease by name, returning the error for non-existence checks.

func (*Env) GetLimitRange

func (env *Env) GetLimitRange(t *testing.T, name string) *v17.LimitRange

GetLimitRange fetches a LimitRange by name, failing the test on error.

func (*Env) GetLimitRangeE

func (env *Env) GetLimitRangeE(t *testing.T, name string) (*v17.LimitRange, error)

GetLimitRangeE fetches a LimitRange by name, returning the error for non-existence checks.

func (*Env) GetListenerSet added in v1.1.0

func (env *Env) GetListenerSet(t *testing.T, name string) *v118.ListenerSet

GetListenerSet fetches a ListenerSet by name via the dynamic client, failing the test on error.

func (*Env) GetListenerSetE added in v1.1.0

func (env *Env) GetListenerSetE(t *testing.T, name string) (*v118.ListenerSet, error)

GetListenerSetE fetches a ListenerSet by name via the dynamic client, returning the error for non-existence checks.

func (*Env) GetMutatingAdmissionPolicy

func (env *Env) GetMutatingAdmissionPolicy(t *testing.T, name string) *v1.MutatingAdmissionPolicy

GetMutatingAdmissionPolicy fetches a MutatingAdmissionPolicy by name, failing the test on error.

func (*Env) GetMutatingAdmissionPolicyBinding

func (env *Env) GetMutatingAdmissionPolicyBinding(t *testing.T, name string) *v1.MutatingAdmissionPolicyBinding

GetMutatingAdmissionPolicyBinding fetches a MutatingAdmissionPolicyBinding by name, failing the test on error.

func (*Env) GetMutatingAdmissionPolicyBindingE

func (env *Env) GetMutatingAdmissionPolicyBindingE(t *testing.T, name string) (*v1.MutatingAdmissionPolicyBinding, error)

GetMutatingAdmissionPolicyBindingE fetches a MutatingAdmissionPolicyBinding by name, returning the error for non-existence checks.

func (*Env) GetMutatingAdmissionPolicyE

func (env *Env) GetMutatingAdmissionPolicyE(t *testing.T, name string) (*v1.MutatingAdmissionPolicy, error)

GetMutatingAdmissionPolicyE fetches a MutatingAdmissionPolicy by name, returning the error for non-existence checks.

func (*Env) GetMutatingWebhookConfiguration

func (env *Env) GetMutatingWebhookConfiguration(t *testing.T, name string) *v1.MutatingWebhookConfiguration

GetMutatingWebhookConfiguration fetches a MutatingWebhookConfiguration by name, failing the test on error.

func (*Env) GetMutatingWebhookConfigurationE

func (env *Env) GetMutatingWebhookConfigurationE(t *testing.T, name string) (*v1.MutatingWebhookConfiguration, error)

GetMutatingWebhookConfigurationE fetches a MutatingWebhookConfiguration by name, returning the error for non-existence checks.

func (*Env) GetNamespace

func (env *Env) GetNamespace(t *testing.T, name string) *v17.Namespace

GetNamespace fetches a Namespace by name, failing the test on error.

func (*Env) GetNamespaceE

func (env *Env) GetNamespaceE(t *testing.T, name string) (*v17.Namespace, error)

GetNamespaceE fetches a Namespace by name, returning the error for non-existence checks.

func (*Env) GetNetworkPolicy

func (env *Env) GetNetworkPolicy(t *testing.T, name string) *v111.NetworkPolicy

GetNetworkPolicy fetches a NetworkPolicy by name, failing the test on error.

func (*Env) GetNetworkPolicyE

func (env *Env) GetNetworkPolicyE(t *testing.T, name string) (*v111.NetworkPolicy, error)

GetNetworkPolicyE fetches a NetworkPolicy by name, returning the error for non-existence checks.

func (*Env) GetNetworkingV1beta1IPAddress

func (env *Env) GetNetworkingV1beta1IPAddress(t *testing.T, name string) *v1beta19.IPAddress

GetNetworkingV1beta1IPAddress fetches a NetworkingV1beta1IPAddress by name, failing the test on error.

func (*Env) GetNetworkingV1beta1IPAddressE

func (env *Env) GetNetworkingV1beta1IPAddressE(t *testing.T, name string) (*v1beta19.IPAddress, error)

GetNetworkingV1beta1IPAddressE fetches a NetworkingV1beta1IPAddress by name, returning the error for non-existence checks.

func (*Env) GetNetworkingV1beta1Ingress

func (env *Env) GetNetworkingV1beta1Ingress(t *testing.T, name string) *v1beta19.Ingress

GetNetworkingV1beta1Ingress fetches a NetworkingV1beta1Ingress by name, failing the test on error.

func (*Env) GetNetworkingV1beta1IngressClass

func (env *Env) GetNetworkingV1beta1IngressClass(t *testing.T, name string) *v1beta19.IngressClass

GetNetworkingV1beta1IngressClass fetches a NetworkingV1beta1IngressClass by name, failing the test on error.

func (*Env) GetNetworkingV1beta1IngressClassE

func (env *Env) GetNetworkingV1beta1IngressClassE(t *testing.T, name string) (*v1beta19.IngressClass, error)

GetNetworkingV1beta1IngressClassE fetches a NetworkingV1beta1IngressClass by name, returning the error for non-existence checks.

func (*Env) GetNetworkingV1beta1IngressE

func (env *Env) GetNetworkingV1beta1IngressE(t *testing.T, name string) (*v1beta19.Ingress, error)

GetNetworkingV1beta1IngressE fetches a NetworkingV1beta1Ingress by name, returning the error for non-existence checks.

func (*Env) GetNetworkingV1beta1ServiceCIDR

func (env *Env) GetNetworkingV1beta1ServiceCIDR(t *testing.T, name string) *v1beta19.ServiceCIDR

GetNetworkingV1beta1ServiceCIDR fetches a NetworkingV1beta1ServiceCIDR by name, failing the test on error.

func (*Env) GetNetworkingV1beta1ServiceCIDRE

func (env *Env) GetNetworkingV1beta1ServiceCIDRE(t *testing.T, name string) (*v1beta19.ServiceCIDR, error)

GetNetworkingV1beta1ServiceCIDRE fetches a NetworkingV1beta1ServiceCIDR by name, returning the error for non-existence checks.

func (*Env) GetNode

func (env *Env) GetNode(t *testing.T, name string) *v17.Node

GetNode fetches a Node by name, failing the test on error.

func (*Env) GetNodeE

func (env *Env) GetNodeE(t *testing.T, name string) (*v17.Node, error)

GetNodeE fetches a Node by name, returning the error for non-existence checks.

func (*Env) GetNodeV1alpha1RuntimeClass

func (env *Env) GetNodeV1alpha1RuntimeClass(t *testing.T, name string) *v1alpha13.RuntimeClass

GetNodeV1alpha1RuntimeClass fetches a NodeV1alpha1RuntimeClass by name, failing the test on error.

func (*Env) GetNodeV1alpha1RuntimeClassE

func (env *Env) GetNodeV1alpha1RuntimeClassE(t *testing.T, name string) (*v1alpha13.RuntimeClass, error)

GetNodeV1alpha1RuntimeClassE fetches a NodeV1alpha1RuntimeClass by name, returning the error for non-existence checks.

func (*Env) GetNodeV1beta1RuntimeClass

func (env *Env) GetNodeV1beta1RuntimeClass(t *testing.T, name string) *v1beta110.RuntimeClass

GetNodeV1beta1RuntimeClass fetches a NodeV1beta1RuntimeClass by name, failing the test on error.

func (*Env) GetNodeV1beta1RuntimeClassE

func (env *Env) GetNodeV1beta1RuntimeClassE(t *testing.T, name string) (*v1beta110.RuntimeClass, error)

GetNodeV1beta1RuntimeClassE fetches a NodeV1beta1RuntimeClass by name, returning the error for non-existence checks.

func (*Env) GetPersistentVolume

func (env *Env) GetPersistentVolume(t *testing.T, name string) *v17.PersistentVolume

GetPersistentVolume fetches a PersistentVolume by name, failing the test on error.

func (*Env) GetPersistentVolumeClaim

func (env *Env) GetPersistentVolumeClaim(t *testing.T, name string) *v17.PersistentVolumeClaim

GetPersistentVolumeClaim fetches a PersistentVolumeClaim by name, failing the test on error.

func (*Env) GetPersistentVolumeClaimE

func (env *Env) GetPersistentVolumeClaimE(t *testing.T, name string) (*v17.PersistentVolumeClaim, error)

GetPersistentVolumeClaimE fetches a PersistentVolumeClaim by name, returning the error for non-existence checks.

func (*Env) GetPersistentVolumeE

func (env *Env) GetPersistentVolumeE(t *testing.T, name string) (*v17.PersistentVolume, error)

GetPersistentVolumeE fetches a PersistentVolume by name, returning the error for non-existence checks.

func (*Env) GetPod

func (env *Env) GetPod(t *testing.T, name string) *v17.Pod

GetPod fetches a Pod by name, failing the test on error.

func (*Env) GetPodCertificateRequest

func (env *Env) GetPodCertificateRequest(t *testing.T, name string) *v1beta13.PodCertificateRequest

GetPodCertificateRequest fetches a PodCertificateRequest by name, failing the test on error.

func (*Env) GetPodCertificateRequestE

func (env *Env) GetPodCertificateRequestE(t *testing.T, name string) (*v1beta13.PodCertificateRequest, error)

GetPodCertificateRequestE fetches a PodCertificateRequest by name, returning the error for non-existence checks.

func (*Env) GetPodDisruptionBudget

func (env *Env) GetPodDisruptionBudget(t *testing.T, name string) *v113.PodDisruptionBudget

GetPodDisruptionBudget fetches a PodDisruptionBudget by name, failing the test on error.

func (*Env) GetPodDisruptionBudgetE

func (env *Env) GetPodDisruptionBudgetE(t *testing.T, name string) (*v113.PodDisruptionBudget, error)

GetPodDisruptionBudgetE fetches a PodDisruptionBudget by name, returning the error for non-existence checks.

func (*Env) GetPodE

func (env *Env) GetPodE(t *testing.T, name string) (*v17.Pod, error)

GetPodE fetches a Pod by name, returning the error for non-existence checks.

func (*Env) GetPodGroup

func (env *Env) GetPodGroup(t *testing.T, name string) *v1alpha21.PodGroup

GetPodGroup fetches a PodGroup by name, failing the test on error.

func (*Env) GetPodGroupE

func (env *Env) GetPodGroupE(t *testing.T, name string) (*v1alpha21.PodGroup, error)

GetPodGroupE fetches a PodGroup by name, returning the error for non-existence checks.

func (*Env) GetPodMonitor added in v1.1.0

func (env *Env) GetPodMonitor(t *testing.T, name string) *v119.PodMonitor

GetPodMonitor fetches a PodMonitor by name via the dynamic client, failing the test on error.

func (*Env) GetPodMonitorE added in v1.1.0

func (env *Env) GetPodMonitorE(t *testing.T, name string) (*v119.PodMonitor, error)

GetPodMonitorE fetches a PodMonitor by name via the dynamic client, returning the error for non-existence checks.

func (*Env) GetPodTemplate

func (env *Env) GetPodTemplate(t *testing.T, name string) *v17.PodTemplate

GetPodTemplate fetches a PodTemplate by name, failing the test on error.

func (*Env) GetPodTemplateE

func (env *Env) GetPodTemplateE(t *testing.T, name string) (*v17.PodTemplate, error)

GetPodTemplateE fetches a PodTemplate by name, returning the error for non-existence checks.

func (*Env) GetPolicyV1beta1PodDisruptionBudget

func (env *Env) GetPolicyV1beta1PodDisruptionBudget(t *testing.T, name string) *v1beta111.PodDisruptionBudget

GetPolicyV1beta1PodDisruptionBudget fetches a PolicyV1beta1PodDisruptionBudget by name, failing the test on error.

func (*Env) GetPolicyV1beta1PodDisruptionBudgetE

func (env *Env) GetPolicyV1beta1PodDisruptionBudgetE(t *testing.T, name string) (*v1beta111.PodDisruptionBudget, error)

GetPolicyV1beta1PodDisruptionBudgetE fetches a PolicyV1beta1PodDisruptionBudget by name, returning the error for non-existence checks.

func (*Env) GetPriorityClass

func (env *Env) GetPriorityClass(t *testing.T, name string) *v116.PriorityClass

GetPriorityClass fetches a PriorityClass by name, failing the test on error.

func (*Env) GetPriorityClassE

func (env *Env) GetPriorityClassE(t *testing.T, name string) (*v116.PriorityClass, error)

GetPriorityClassE fetches a PriorityClass by name, returning the error for non-existence checks.

func (*Env) GetPriorityLevelConfiguration

func (env *Env) GetPriorityLevelConfiguration(t *testing.T, name string) *v110.PriorityLevelConfiguration

GetPriorityLevelConfiguration fetches a PriorityLevelConfiguration by name, failing the test on error.

func (*Env) GetPriorityLevelConfigurationE

func (env *Env) GetPriorityLevelConfigurationE(t *testing.T, name string) (*v110.PriorityLevelConfiguration, error)

GetPriorityLevelConfigurationE fetches a PriorityLevelConfiguration by name, returning the error for non-existence checks.

func (*Env) GetProbe added in v1.1.0

func (env *Env) GetProbe(t *testing.T, name string) *v119.Probe

GetProbe fetches a Probe by name via the dynamic client, failing the test on error.

func (*Env) GetProbeE added in v1.1.0

func (env *Env) GetProbeE(t *testing.T, name string) (*v119.Probe, error)

GetProbeE fetches a Probe by name via the dynamic client, returning the error for non-existence checks.

func (*Env) GetPrometheus added in v1.1.0

func (env *Env) GetPrometheus(t *testing.T, name string) *v119.Prometheus

GetPrometheus fetches a Prometheus by name via the dynamic client, failing the test on error.

func (*Env) GetPrometheusE added in v1.1.0

func (env *Env) GetPrometheusE(t *testing.T, name string) (*v119.Prometheus, error)

GetPrometheusE fetches a Prometheus by name via the dynamic client, returning the error for non-existence checks.

func (*Env) GetPrometheusRule added in v1.1.0

func (env *Env) GetPrometheusRule(t *testing.T, name string) *v119.PrometheusRule

GetPrometheusRule fetches a PrometheusRule by name via the dynamic client, failing the test on error.

func (*Env) GetPrometheusRuleE added in v1.1.0

func (env *Env) GetPrometheusRuleE(t *testing.T, name string) (*v119.PrometheusRule, error)

GetPrometheusRuleE fetches a PrometheusRule by name via the dynamic client, returning the error for non-existence checks.

func (*Env) GetRbacV1alpha1ClusterRole

func (env *Env) GetRbacV1alpha1ClusterRole(t *testing.T, name string) *v1alpha14.ClusterRole

GetRbacV1alpha1ClusterRole fetches a RbacV1alpha1ClusterRole by name, failing the test on error.

func (*Env) GetRbacV1alpha1ClusterRoleBinding

func (env *Env) GetRbacV1alpha1ClusterRoleBinding(t *testing.T, name string) *v1alpha14.ClusterRoleBinding

GetRbacV1alpha1ClusterRoleBinding fetches a RbacV1alpha1ClusterRoleBinding by name, failing the test on error.

func (*Env) GetRbacV1alpha1ClusterRoleBindingE

func (env *Env) GetRbacV1alpha1ClusterRoleBindingE(t *testing.T, name string) (*v1alpha14.ClusterRoleBinding, error)

GetRbacV1alpha1ClusterRoleBindingE fetches a RbacV1alpha1ClusterRoleBinding by name, returning the error for non-existence checks.

func (*Env) GetRbacV1alpha1ClusterRoleE

func (env *Env) GetRbacV1alpha1ClusterRoleE(t *testing.T, name string) (*v1alpha14.ClusterRole, error)

GetRbacV1alpha1ClusterRoleE fetches a RbacV1alpha1ClusterRole by name, returning the error for non-existence checks.

func (*Env) GetRbacV1alpha1Role

func (env *Env) GetRbacV1alpha1Role(t *testing.T, name string) *v1alpha14.Role

GetRbacV1alpha1Role fetches a RbacV1alpha1Role by name, failing the test on error.

func (*Env) GetRbacV1alpha1RoleBinding

func (env *Env) GetRbacV1alpha1RoleBinding(t *testing.T, name string) *v1alpha14.RoleBinding

GetRbacV1alpha1RoleBinding fetches a RbacV1alpha1RoleBinding by name, failing the test on error.

func (*Env) GetRbacV1alpha1RoleBindingE

func (env *Env) GetRbacV1alpha1RoleBindingE(t *testing.T, name string) (*v1alpha14.RoleBinding, error)

GetRbacV1alpha1RoleBindingE fetches a RbacV1alpha1RoleBinding by name, returning the error for non-existence checks.

func (*Env) GetRbacV1alpha1RoleE

func (env *Env) GetRbacV1alpha1RoleE(t *testing.T, name string) (*v1alpha14.Role, error)

GetRbacV1alpha1RoleE fetches a RbacV1alpha1Role by name, returning the error for non-existence checks.

func (*Env) GetRbacV1beta1ClusterRole

func (env *Env) GetRbacV1beta1ClusterRole(t *testing.T, name string) *v1beta112.ClusterRole

GetRbacV1beta1ClusterRole fetches a RbacV1beta1ClusterRole by name, failing the test on error.

func (*Env) GetRbacV1beta1ClusterRoleBinding

func (env *Env) GetRbacV1beta1ClusterRoleBinding(t *testing.T, name string) *v1beta112.ClusterRoleBinding

GetRbacV1beta1ClusterRoleBinding fetches a RbacV1beta1ClusterRoleBinding by name, failing the test on error.

func (*Env) GetRbacV1beta1ClusterRoleBindingE

func (env *Env) GetRbacV1beta1ClusterRoleBindingE(t *testing.T, name string) (*v1beta112.ClusterRoleBinding, error)

GetRbacV1beta1ClusterRoleBindingE fetches a RbacV1beta1ClusterRoleBinding by name, returning the error for non-existence checks.

func (*Env) GetRbacV1beta1ClusterRoleE

func (env *Env) GetRbacV1beta1ClusterRoleE(t *testing.T, name string) (*v1beta112.ClusterRole, error)

GetRbacV1beta1ClusterRoleE fetches a RbacV1beta1ClusterRole by name, returning the error for non-existence checks.

func (*Env) GetRbacV1beta1Role

func (env *Env) GetRbacV1beta1Role(t *testing.T, name string) *v1beta112.Role

GetRbacV1beta1Role fetches a RbacV1beta1Role by name, failing the test on error.

func (*Env) GetRbacV1beta1RoleBinding

func (env *Env) GetRbacV1beta1RoleBinding(t *testing.T, name string) *v1beta112.RoleBinding

GetRbacV1beta1RoleBinding fetches a RbacV1beta1RoleBinding by name, failing the test on error.

func (*Env) GetRbacV1beta1RoleBindingE

func (env *Env) GetRbacV1beta1RoleBindingE(t *testing.T, name string) (*v1beta112.RoleBinding, error)

GetRbacV1beta1RoleBindingE fetches a RbacV1beta1RoleBinding by name, returning the error for non-existence checks.

func (*Env) GetRbacV1beta1RoleE

func (env *Env) GetRbacV1beta1RoleE(t *testing.T, name string) (*v1beta112.Role, error)

GetRbacV1beta1RoleE fetches a RbacV1beta1Role by name, returning the error for non-existence checks.

func (*Env) GetReferenceGrant added in v1.1.0

func (env *Env) GetReferenceGrant(t *testing.T, name string) *v118.ReferenceGrant

GetReferenceGrant fetches a ReferenceGrant by name via the dynamic client, failing the test on error.

func (*Env) GetReferenceGrantE added in v1.1.0

func (env *Env) GetReferenceGrantE(t *testing.T, name string) (*v118.ReferenceGrant, error)

GetReferenceGrantE fetches a ReferenceGrant by name via the dynamic client, returning the error for non-existence checks.

func (*Env) GetReplicaSet

func (env *Env) GetReplicaSet(t *testing.T, name string) *v12.ReplicaSet

GetReplicaSet fetches a ReplicaSet by name, failing the test on error.

func (*Env) GetReplicaSetE

func (env *Env) GetReplicaSetE(t *testing.T, name string) (*v12.ReplicaSet, error)

GetReplicaSetE fetches a ReplicaSet by name, returning the error for non-existence checks.

func (*Env) GetReplicationController

func (env *Env) GetReplicationController(t *testing.T, name string) *v17.ReplicationController

GetReplicationController fetches a ReplicationController by name, failing the test on error.

func (*Env) GetReplicationControllerE

func (env *Env) GetReplicationControllerE(t *testing.T, name string) (*v17.ReplicationController, error)

GetReplicationControllerE fetches a ReplicationController by name, returning the error for non-existence checks.

func (*Env) GetResourceClaim

func (env *Env) GetResourceClaim(t *testing.T, name string) *v115.ResourceClaim

GetResourceClaim fetches a ResourceClaim by name, failing the test on error.

func (*Env) GetResourceClaimE

func (env *Env) GetResourceClaimE(t *testing.T, name string) (*v115.ResourceClaim, error)

GetResourceClaimE fetches a ResourceClaim by name, returning the error for non-existence checks.

func (*Env) GetResourceClaimTemplate

func (env *Env) GetResourceClaimTemplate(t *testing.T, name string) *v115.ResourceClaimTemplate

GetResourceClaimTemplate fetches a ResourceClaimTemplate by name, failing the test on error.

func (*Env) GetResourceClaimTemplateE

func (env *Env) GetResourceClaimTemplateE(t *testing.T, name string) (*v115.ResourceClaimTemplate, error)

GetResourceClaimTemplateE fetches a ResourceClaimTemplate by name, returning the error for non-existence checks.

func (*Env) GetResourcePoolStatusRequest

func (env *Env) GetResourcePoolStatusRequest(t *testing.T, name string) *v1alpha3.ResourcePoolStatusRequest

GetResourcePoolStatusRequest fetches a ResourcePoolStatusRequest by name, failing the test on error.

func (*Env) GetResourcePoolStatusRequestE

func (env *Env) GetResourcePoolStatusRequestE(t *testing.T, name string) (*v1alpha3.ResourcePoolStatusRequest, error)

GetResourcePoolStatusRequestE fetches a ResourcePoolStatusRequest by name, returning the error for non-existence checks.

func (*Env) GetResourceQuota

func (env *Env) GetResourceQuota(t *testing.T, name string) *v17.ResourceQuota

GetResourceQuota fetches a ResourceQuota by name, failing the test on error.

func (*Env) GetResourceQuotaE

func (env *Env) GetResourceQuotaE(t *testing.T, name string) (*v17.ResourceQuota, error)

GetResourceQuotaE fetches a ResourceQuota by name, returning the error for non-existence checks.

func (*Env) GetResourceSlice

func (env *Env) GetResourceSlice(t *testing.T, name string) *v115.ResourceSlice

GetResourceSlice fetches a ResourceSlice by name, failing the test on error.

func (*Env) GetResourceSliceE

func (env *Env) GetResourceSliceE(t *testing.T, name string) (*v115.ResourceSlice, error)

GetResourceSliceE fetches a ResourceSlice by name, returning the error for non-existence checks.

func (*Env) GetResourceV1alpha3DeviceTaintRule

func (env *Env) GetResourceV1alpha3DeviceTaintRule(t *testing.T, name string) *v1alpha3.DeviceTaintRule

GetResourceV1alpha3DeviceTaintRule fetches a ResourceV1alpha3DeviceTaintRule by name, failing the test on error.

func (*Env) GetResourceV1alpha3DeviceTaintRuleE

func (env *Env) GetResourceV1alpha3DeviceTaintRuleE(t *testing.T, name string) (*v1alpha3.DeviceTaintRule, error)

GetResourceV1alpha3DeviceTaintRuleE fetches a ResourceV1alpha3DeviceTaintRule by name, returning the error for non-existence checks.

func (*Env) GetResourceV1beta1DeviceClass

func (env *Env) GetResourceV1beta1DeviceClass(t *testing.T, name string) *v1beta113.DeviceClass

GetResourceV1beta1DeviceClass fetches a ResourceV1beta1DeviceClass by name, failing the test on error.

func (*Env) GetResourceV1beta1DeviceClassE

func (env *Env) GetResourceV1beta1DeviceClassE(t *testing.T, name string) (*v1beta113.DeviceClass, error)

GetResourceV1beta1DeviceClassE fetches a ResourceV1beta1DeviceClass by name, returning the error for non-existence checks.

func (*Env) GetResourceV1beta1ResourceClaim

func (env *Env) GetResourceV1beta1ResourceClaim(t *testing.T, name string) *v1beta113.ResourceClaim

GetResourceV1beta1ResourceClaim fetches a ResourceV1beta1ResourceClaim by name, failing the test on error.

func (*Env) GetResourceV1beta1ResourceClaimE

func (env *Env) GetResourceV1beta1ResourceClaimE(t *testing.T, name string) (*v1beta113.ResourceClaim, error)

GetResourceV1beta1ResourceClaimE fetches a ResourceV1beta1ResourceClaim by name, returning the error for non-existence checks.

func (*Env) GetResourceV1beta1ResourceClaimTemplate

func (env *Env) GetResourceV1beta1ResourceClaimTemplate(t *testing.T, name string) *v1beta113.ResourceClaimTemplate

GetResourceV1beta1ResourceClaimTemplate fetches a ResourceV1beta1ResourceClaimTemplate by name, failing the test on error.

func (*Env) GetResourceV1beta1ResourceClaimTemplateE

func (env *Env) GetResourceV1beta1ResourceClaimTemplateE(t *testing.T, name string) (*v1beta113.ResourceClaimTemplate, error)

GetResourceV1beta1ResourceClaimTemplateE fetches a ResourceV1beta1ResourceClaimTemplate by name, returning the error for non-existence checks.

func (*Env) GetResourceV1beta1ResourceSlice

func (env *Env) GetResourceV1beta1ResourceSlice(t *testing.T, name string) *v1beta113.ResourceSlice

GetResourceV1beta1ResourceSlice fetches a ResourceV1beta1ResourceSlice by name, failing the test on error.

func (*Env) GetResourceV1beta1ResourceSliceE

func (env *Env) GetResourceV1beta1ResourceSliceE(t *testing.T, name string) (*v1beta113.ResourceSlice, error)

GetResourceV1beta1ResourceSliceE fetches a ResourceV1beta1ResourceSlice by name, returning the error for non-existence checks.

func (*Env) GetResourceV1beta2DeviceClass

func (env *Env) GetResourceV1beta2DeviceClass(t *testing.T, name string) *v1beta22.DeviceClass

GetResourceV1beta2DeviceClass fetches a ResourceV1beta2DeviceClass by name, failing the test on error.

func (*Env) GetResourceV1beta2DeviceClassE

func (env *Env) GetResourceV1beta2DeviceClassE(t *testing.T, name string) (*v1beta22.DeviceClass, error)

GetResourceV1beta2DeviceClassE fetches a ResourceV1beta2DeviceClass by name, returning the error for non-existence checks.

func (*Env) GetResourceV1beta2ResourceClaim

func (env *Env) GetResourceV1beta2ResourceClaim(t *testing.T, name string) *v1beta22.ResourceClaim

GetResourceV1beta2ResourceClaim fetches a ResourceV1beta2ResourceClaim by name, failing the test on error.

func (*Env) GetResourceV1beta2ResourceClaimE

func (env *Env) GetResourceV1beta2ResourceClaimE(t *testing.T, name string) (*v1beta22.ResourceClaim, error)

GetResourceV1beta2ResourceClaimE fetches a ResourceV1beta2ResourceClaim by name, returning the error for non-existence checks.

func (*Env) GetResourceV1beta2ResourceClaimTemplate

func (env *Env) GetResourceV1beta2ResourceClaimTemplate(t *testing.T, name string) *v1beta22.ResourceClaimTemplate

GetResourceV1beta2ResourceClaimTemplate fetches a ResourceV1beta2ResourceClaimTemplate by name, failing the test on error.

func (*Env) GetResourceV1beta2ResourceClaimTemplateE

func (env *Env) GetResourceV1beta2ResourceClaimTemplateE(t *testing.T, name string) (*v1beta22.ResourceClaimTemplate, error)

GetResourceV1beta2ResourceClaimTemplateE fetches a ResourceV1beta2ResourceClaimTemplate by name, returning the error for non-existence checks.

func (*Env) GetResourceV1beta2ResourceSlice

func (env *Env) GetResourceV1beta2ResourceSlice(t *testing.T, name string) *v1beta22.ResourceSlice

GetResourceV1beta2ResourceSlice fetches a ResourceV1beta2ResourceSlice by name, failing the test on error.

func (*Env) GetResourceV1beta2ResourceSliceE

func (env *Env) GetResourceV1beta2ResourceSliceE(t *testing.T, name string) (*v1beta22.ResourceSlice, error)

GetResourceV1beta2ResourceSliceE fetches a ResourceV1beta2ResourceSlice by name, returning the error for non-existence checks.

func (*Env) GetRole

func (env *Env) GetRole(t *testing.T, name string) *v114.Role

GetRole fetches a Role by name, failing the test on error.

func (*Env) GetRoleBinding

func (env *Env) GetRoleBinding(t *testing.T, name string) *v114.RoleBinding

GetRoleBinding fetches a RoleBinding by name, failing the test on error.

func (*Env) GetRoleBindingE

func (env *Env) GetRoleBindingE(t *testing.T, name string) (*v114.RoleBinding, error)

GetRoleBindingE fetches a RoleBinding by name, returning the error for non-existence checks.

func (*Env) GetRoleE

func (env *Env) GetRoleE(t *testing.T, name string) (*v114.Role, error)

GetRoleE fetches a Role by name, returning the error for non-existence checks.

func (*Env) GetRuntimeClass

func (env *Env) GetRuntimeClass(t *testing.T, name string) *v112.RuntimeClass

GetRuntimeClass fetches a RuntimeClass by name, failing the test on error.

func (*Env) GetRuntimeClassE

func (env *Env) GetRuntimeClassE(t *testing.T, name string) (*v112.RuntimeClass, error)

GetRuntimeClassE fetches a RuntimeClass by name, returning the error for non-existence checks.

func (*Env) GetSchedulingV1beta1PriorityClass

func (env *Env) GetSchedulingV1beta1PriorityClass(t *testing.T, name string) *v1beta114.PriorityClass

GetSchedulingV1beta1PriorityClass fetches a SchedulingV1beta1PriorityClass by name, failing the test on error.

func (*Env) GetSchedulingV1beta1PriorityClassE

func (env *Env) GetSchedulingV1beta1PriorityClassE(t *testing.T, name string) (*v1beta114.PriorityClass, error)

GetSchedulingV1beta1PriorityClassE fetches a SchedulingV1beta1PriorityClass by name, returning the error for non-existence checks.

func (*Env) GetSecret

func (env *Env) GetSecret(t *testing.T, name string) *v17.Secret

GetSecret fetches a Secret by name, failing the test on error.

func (*Env) GetSecretE

func (env *Env) GetSecretE(t *testing.T, name string) (*v17.Secret, error)

GetSecretE fetches a Secret by name, returning the error for non-existence checks.

func (*Env) GetService

func (env *Env) GetService(t *testing.T, name string) *v17.Service

GetService fetches a Service by name, failing the test on error.

func (*Env) GetServiceAccount

func (env *Env) GetServiceAccount(t *testing.T, name string) *v17.ServiceAccount

GetServiceAccount fetches a ServiceAccount by name, failing the test on error.

func (*Env) GetServiceAccountE

func (env *Env) GetServiceAccountE(t *testing.T, name string) (*v17.ServiceAccount, error)

GetServiceAccountE fetches a ServiceAccount by name, returning the error for non-existence checks.

func (*Env) GetServiceCIDR

func (env *Env) GetServiceCIDR(t *testing.T, name string) *v111.ServiceCIDR

GetServiceCIDR fetches a ServiceCIDR by name, failing the test on error.

func (*Env) GetServiceCIDRE

func (env *Env) GetServiceCIDRE(t *testing.T, name string) (*v111.ServiceCIDR, error)

GetServiceCIDRE fetches a ServiceCIDR by name, returning the error for non-existence checks.

func (*Env) GetServiceE

func (env *Env) GetServiceE(t *testing.T, name string) (*v17.Service, error)

GetServiceE fetches a Service by name, returning the error for non-existence checks.

func (*Env) GetServiceMonitor added in v1.1.0

func (env *Env) GetServiceMonitor(t *testing.T, name string) *v119.ServiceMonitor

GetServiceMonitor fetches a ServiceMonitor by name via the dynamic client, failing the test on error.

func (*Env) GetServiceMonitorE added in v1.1.0

func (env *Env) GetServiceMonitorE(t *testing.T, name string) (*v119.ServiceMonitor, error)

GetServiceMonitorE fetches a ServiceMonitor by name via the dynamic client, returning the error for non-existence checks.

func (*Env) GetStatefulSet

func (env *Env) GetStatefulSet(t *testing.T, name string) *v12.StatefulSet

GetStatefulSet fetches a StatefulSet by name, failing the test on error.

func (*Env) GetStatefulSetE

func (env *Env) GetStatefulSetE(t *testing.T, name string) (*v12.StatefulSet, error)

GetStatefulSetE fetches a StatefulSet by name, returning the error for non-existence checks.

func (*Env) GetStorageClass

func (env *Env) GetStorageClass(t *testing.T, name string) *v117.StorageClass

GetStorageClass fetches a StorageClass by name, failing the test on error.

func (*Env) GetStorageClassE

func (env *Env) GetStorageClassE(t *testing.T, name string) (*v117.StorageClass, error)

GetStorageClassE fetches a StorageClass by name, returning the error for non-existence checks.

func (*Env) GetStorageV1alpha1CSIStorageCapacity

func (env *Env) GetStorageV1alpha1CSIStorageCapacity(t *testing.T, name string) *v1alpha15.CSIStorageCapacity

GetStorageV1alpha1CSIStorageCapacity fetches a StorageV1alpha1CSIStorageCapacity by name, failing the test on error.

func (*Env) GetStorageV1alpha1CSIStorageCapacityE

func (env *Env) GetStorageV1alpha1CSIStorageCapacityE(t *testing.T, name string) (*v1alpha15.CSIStorageCapacity, error)

GetStorageV1alpha1CSIStorageCapacityE fetches a StorageV1alpha1CSIStorageCapacity by name, returning the error for non-existence checks.

func (*Env) GetStorageV1alpha1VolumeAttachment

func (env *Env) GetStorageV1alpha1VolumeAttachment(t *testing.T, name string) *v1alpha15.VolumeAttachment

GetStorageV1alpha1VolumeAttachment fetches a StorageV1alpha1VolumeAttachment by name, failing the test on error.

func (*Env) GetStorageV1alpha1VolumeAttachmentE

func (env *Env) GetStorageV1alpha1VolumeAttachmentE(t *testing.T, name string) (*v1alpha15.VolumeAttachment, error)

GetStorageV1alpha1VolumeAttachmentE fetches a StorageV1alpha1VolumeAttachment by name, returning the error for non-existence checks.

func (*Env) GetStorageV1alpha1VolumeAttributesClass

func (env *Env) GetStorageV1alpha1VolumeAttributesClass(t *testing.T, name string) *v1alpha15.VolumeAttributesClass

GetStorageV1alpha1VolumeAttributesClass fetches a StorageV1alpha1VolumeAttributesClass by name, failing the test on error.

func (*Env) GetStorageV1alpha1VolumeAttributesClassE

func (env *Env) GetStorageV1alpha1VolumeAttributesClassE(t *testing.T, name string) (*v1alpha15.VolumeAttributesClass, error)

GetStorageV1alpha1VolumeAttributesClassE fetches a StorageV1alpha1VolumeAttributesClass by name, returning the error for non-existence checks.

func (*Env) GetStorageV1beta1CSIDriver

func (env *Env) GetStorageV1beta1CSIDriver(t *testing.T, name string) *v1beta115.CSIDriver

GetStorageV1beta1CSIDriver fetches a StorageV1beta1CSIDriver by name, failing the test on error.

func (*Env) GetStorageV1beta1CSIDriverE

func (env *Env) GetStorageV1beta1CSIDriverE(t *testing.T, name string) (*v1beta115.CSIDriver, error)

GetStorageV1beta1CSIDriverE fetches a StorageV1beta1CSIDriver by name, returning the error for non-existence checks.

func (*Env) GetStorageV1beta1CSINode

func (env *Env) GetStorageV1beta1CSINode(t *testing.T, name string) *v1beta115.CSINode

GetStorageV1beta1CSINode fetches a StorageV1beta1CSINode by name, failing the test on error.

func (*Env) GetStorageV1beta1CSINodeE

func (env *Env) GetStorageV1beta1CSINodeE(t *testing.T, name string) (*v1beta115.CSINode, error)

GetStorageV1beta1CSINodeE fetches a StorageV1beta1CSINode by name, returning the error for non-existence checks.

func (*Env) GetStorageV1beta1CSIStorageCapacity

func (env *Env) GetStorageV1beta1CSIStorageCapacity(t *testing.T, name string) *v1beta115.CSIStorageCapacity

GetStorageV1beta1CSIStorageCapacity fetches a StorageV1beta1CSIStorageCapacity by name, failing the test on error.

func (*Env) GetStorageV1beta1CSIStorageCapacityE

func (env *Env) GetStorageV1beta1CSIStorageCapacityE(t *testing.T, name string) (*v1beta115.CSIStorageCapacity, error)

GetStorageV1beta1CSIStorageCapacityE fetches a StorageV1beta1CSIStorageCapacity by name, returning the error for non-existence checks.

func (*Env) GetStorageV1beta1StorageClass

func (env *Env) GetStorageV1beta1StorageClass(t *testing.T, name string) *v1beta115.StorageClass

GetStorageV1beta1StorageClass fetches a StorageV1beta1StorageClass by name, failing the test on error.

func (*Env) GetStorageV1beta1StorageClassE

func (env *Env) GetStorageV1beta1StorageClassE(t *testing.T, name string) (*v1beta115.StorageClass, error)

GetStorageV1beta1StorageClassE fetches a StorageV1beta1StorageClass by name, returning the error for non-existence checks.

func (*Env) GetStorageV1beta1VolumeAttachment

func (env *Env) GetStorageV1beta1VolumeAttachment(t *testing.T, name string) *v1beta115.VolumeAttachment

GetStorageV1beta1VolumeAttachment fetches a StorageV1beta1VolumeAttachment by name, failing the test on error.

func (*Env) GetStorageV1beta1VolumeAttachmentE

func (env *Env) GetStorageV1beta1VolumeAttachmentE(t *testing.T, name string) (*v1beta115.VolumeAttachment, error)

GetStorageV1beta1VolumeAttachmentE fetches a StorageV1beta1VolumeAttachment by name, returning the error for non-existence checks.

func (*Env) GetStorageV1beta1VolumeAttributesClass

func (env *Env) GetStorageV1beta1VolumeAttributesClass(t *testing.T, name string) *v1beta115.VolumeAttributesClass

GetStorageV1beta1VolumeAttributesClass fetches a StorageV1beta1VolumeAttributesClass by name, failing the test on error.

func (*Env) GetStorageV1beta1VolumeAttributesClassE

func (env *Env) GetStorageV1beta1VolumeAttributesClassE(t *testing.T, name string) (*v1beta115.VolumeAttributesClass, error)

GetStorageV1beta1VolumeAttributesClassE fetches a StorageV1beta1VolumeAttributesClass by name, returning the error for non-existence checks.

func (*Env) GetStorageVersion

func (env *Env) GetStorageVersion(t *testing.T, name string) *v1alpha12.StorageVersion

GetStorageVersion fetches a StorageVersion by name, failing the test on error.

func (*Env) GetStorageVersionE

func (env *Env) GetStorageVersionE(t *testing.T, name string) (*v1alpha12.StorageVersion, error)

GetStorageVersionE fetches a StorageVersion by name, returning the error for non-existence checks.

func (*Env) GetStorageVersionMigration

func (env *Env) GetStorageVersionMigration(t *testing.T, name string) *v1beta116.StorageVersionMigration

GetStorageVersionMigration fetches a StorageVersionMigration by name, failing the test on error.

func (*Env) GetStorageVersionMigrationE

func (env *Env) GetStorageVersionMigrationE(t *testing.T, name string) (*v1beta116.StorageVersionMigration, error)

GetStorageVersionMigrationE fetches a StorageVersionMigration by name, returning the error for non-existence checks.

func (*Env) GetTLSRoute added in v1.1.0

func (env *Env) GetTLSRoute(t *testing.T, name string) *v118.TLSRoute

GetTLSRoute fetches a TLSRoute by name via the dynamic client, failing the test on error.

func (*Env) GetTLSRouteE added in v1.1.0

func (env *Env) GetTLSRouteE(t *testing.T, name string) (*v118.TLSRoute, error)

GetTLSRouteE fetches a TLSRoute by name via the dynamic client, returning the error for non-existence checks.

func (*Env) GetThanosRuler added in v1.1.0

func (env *Env) GetThanosRuler(t *testing.T, name string) *v119.ThanosRuler

GetThanosRuler fetches a ThanosRuler by name via the dynamic client, failing the test on error.

func (*Env) GetThanosRulerE added in v1.1.0

func (env *Env) GetThanosRulerE(t *testing.T, name string) (*v119.ThanosRuler, error)

GetThanosRulerE fetches a ThanosRuler by name via the dynamic client, returning the error for non-existence checks.

func (*Env) GetValidatingAdmissionPolicy

func (env *Env) GetValidatingAdmissionPolicy(t *testing.T, name string) *v1.ValidatingAdmissionPolicy

GetValidatingAdmissionPolicy fetches a ValidatingAdmissionPolicy by name, failing the test on error.

func (*Env) GetValidatingAdmissionPolicyBinding

func (env *Env) GetValidatingAdmissionPolicyBinding(t *testing.T, name string) *v1.ValidatingAdmissionPolicyBinding

GetValidatingAdmissionPolicyBinding fetches a ValidatingAdmissionPolicyBinding by name, failing the test on error.

func (*Env) GetValidatingAdmissionPolicyBindingE

func (env *Env) GetValidatingAdmissionPolicyBindingE(t *testing.T, name string) (*v1.ValidatingAdmissionPolicyBinding, error)

GetValidatingAdmissionPolicyBindingE fetches a ValidatingAdmissionPolicyBinding by name, returning the error for non-existence checks.

func (*Env) GetValidatingAdmissionPolicyE

func (env *Env) GetValidatingAdmissionPolicyE(t *testing.T, name string) (*v1.ValidatingAdmissionPolicy, error)

GetValidatingAdmissionPolicyE fetches a ValidatingAdmissionPolicy by name, returning the error for non-existence checks.

func (*Env) GetValidatingWebhookConfiguration

func (env *Env) GetValidatingWebhookConfiguration(t *testing.T, name string) *v1.ValidatingWebhookConfiguration

GetValidatingWebhookConfiguration fetches a ValidatingWebhookConfiguration by name, failing the test on error.

func (*Env) GetValidatingWebhookConfigurationE

func (env *Env) GetValidatingWebhookConfigurationE(t *testing.T, name string) (*v1.ValidatingWebhookConfiguration, error)

GetValidatingWebhookConfigurationE fetches a ValidatingWebhookConfiguration by name, returning the error for non-existence checks.

func (*Env) GetVolumeAttachment

func (env *Env) GetVolumeAttachment(t *testing.T, name string) *v117.VolumeAttachment

GetVolumeAttachment fetches a VolumeAttachment by name, failing the test on error.

func (*Env) GetVolumeAttachmentE

func (env *Env) GetVolumeAttachmentE(t *testing.T, name string) (*v117.VolumeAttachment, error)

GetVolumeAttachmentE fetches a VolumeAttachment by name, returning the error for non-existence checks.

func (*Env) GetVolumeAttributesClass

func (env *Env) GetVolumeAttributesClass(t *testing.T, name string) *v117.VolumeAttributesClass

GetVolumeAttributesClass fetches a VolumeAttributesClass by name, failing the test on error.

func (*Env) GetVolumeAttributesClassE

func (env *Env) GetVolumeAttributesClassE(t *testing.T, name string) (*v117.VolumeAttributesClass, error)

GetVolumeAttributesClassE fetches a VolumeAttributesClass by name, returning the error for non-existence checks.

func (*Env) GetWorkload

func (env *Env) GetWorkload(t *testing.T, name string) *v1alpha21.Workload

GetWorkload fetches a Workload by name, failing the test on error.

func (*Env) GetWorkloadE

func (env *Env) GetWorkloadE(t *testing.T, name string) (*v1alpha21.Workload, error)

GetWorkloadE fetches a Workload by name, returning the error for non-existence checks.

Jump to

Keyboard shortcuts

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