Documentation ¶
Index ¶
- func AssertDeepEqual(t *testing.T, actual, expected interface{})
- func AssertEqual(t *testing.T, actual, expected interface{})
- func DeepMatchWithPath(actual mf.Manifest, expectedManifestPath string) bool
- func MakeDaemonSet(name string, podSpec corev1.PodSpec) *appsv1.DaemonSet
- func MakeDeployment(name string, podSpec corev1.PodSpec) *appsv1.Deployment
- func MakeImage(name, image string) *caching.Image
- func MakeJob(name string, podSpec corev1.PodSpec) *batchv1.Job
- func MakeJobGenerated(name string, podSpec corev1.PodSpec) *batchv1.Job
- func MakeJobNameGeneratedName(name, genaredtedName string, podSpec corev1.PodSpec) *batchv1.Job
- func MakeStatefulSet(name string, podSpec corev1.PodSpec) *appsv1.StatefulSet
- func MakeUnstructured(t *testing.T, obj interface{}) unstructured.Unstructured
- func ResourceContainingWithPath(actual mf.Manifest, expectedManifestPath string) bool
- func ResourceMatchWithPath(actual mf.Manifest, expectedManifestPath string) bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AssertDeepEqual ¶
func AssertEqual ¶
func DeepMatchWithPath ¶ added in v0.22.0
DeepMatchWithPath returns true if the resources in the actual manifest match exactly the same resources in the expected manifest of the expected path. Two manifests are identical, in terms of every attribute. The number of the resources has to match.
func MakeDeployment ¶
func MakeDeployment(name string, podSpec corev1.PodSpec) *appsv1.Deployment
func MakeJobGenerated ¶ added in v0.38.11
func MakeJobNameGeneratedName ¶ added in v0.38.11
func MakeStatefulSet ¶ added in v0.38.11
func MakeStatefulSet(name string, podSpec corev1.PodSpec) *appsv1.StatefulSet
func MakeUnstructured ¶
func MakeUnstructured(t *testing.T, obj interface{}) unstructured.Unstructured
func ResourceContainingWithPath ¶ added in v0.22.0
ResourceContainingWithPath returns true if the resources in the actual manifest contains all the resources in the expected manifest of the expected path, but the number of resources is not necessarily the same. For the identical resources, they need to match in terms of every attribute.
func ResourceMatchWithPath ¶ added in v0.22.0
ResourceMatchWithPath returns true if the resources in the actual manifest match the same resources in the expected manifest of the expected path, in terms of name, namespace, group and kind. The number of resources does not necessarily have to match.
Types ¶
This section is empty.