Versions in this module Expand all Collapse all v0 v0.14.0 Mar 22, 2025 Changes in this version + const DefaultScriptOutputPrefix + var IgnoreVolatileTime = cmpopts.IgnoreTypes(apis.VolatileTime{}) + func AddReportEntriesAsYaml(name string, objs ...interface{}) + func AddReportEntryAsYaml(name string, obj interface{}) + func Case(caseName string) Labels + func ConditionIsReady(condition *apis.Condition) error + func ConvertTypeMetaToGroupVersionResource(typeMeta metav1.TypeMeta) schema.GroupVersionResource + func DefaultConvertRuntimeToClientobjectFunc(runtimeObj runtime.Object) (obj client.Object, err error) + func DeleteResources(file string, clt client.Client) (err error) + func DiffEqualTo(expected interface{}, diffCleanFuncs ...func(object interface{}) interface{}) gomega.OmegaMatcher + func ExpectDiff(actual interface{}, expected interface{}, ...) gomega.Assertion + func GetCaseNames(name string) []string + func GetDefaultEnv(key string, defaultValue string) string + func GetDefaultLogger() *uberzap.SugaredLogger + func InitGinkgoWithLogger() *uberzap.SugaredLogger + func InitializeGinkgoConfig() + func KubeObjectDiffClean(object interface{}) interface + func ListByGVK(gvk schema.GroupVersionKind) *unstructured.UnstructuredList + func LoadJSON(file string, obj interface{}) (err error) + func LoadKubeResources(file string, clt client.Client, ...) (err error) + func LoadKubeResourcesAsUnstructured(file string) (objs []unstructured.Unstructured, err error) + func LoadMultiYamlOrJsonFromBytes[T any](data []byte, list *[]T) (err error) + func LoadMultiYamlOrJson[T any](file string, list *[]T) (err error) + func LoadObjectOrDie(g *WithT, file string, obj metav1.Object, patches ...func(metav1.Object)) metav1.Object + func LoadObjectReferenceOrDie(g *WithT, file string, obj *corev1.ObjectReference, ...) *corev1.ObjectReference + func LoadResourceFromFile(scheme *runtime.Scheme, path string) (obj runtime.Object, err error) + func LoadResourcesFromFile(scheme *runtime.Scheme, path string) (objs []runtime.Object, err error) + func LoadYAML(file string, obj interface{}) (err error) + func MustLoadFileBytes(file string) []byte + func MustLoadFileString(file string, content *string) + func MustLoadJSON(file string, obj interface{}) + func MustLoadMultiYamlOrJson[T any](file string, list *[]T) + func MustLoadReturnObjectFromYAML(file string, obj interface{}) interface + func MustLoadYaml(file string, obj interface{}) + func NewGinkgoLogger() *uberzap.SugaredLogger + func PrintDiffWantGot(diff string) string + func ReflectName(obj interface{}) string + func RestoreDirectories(fs embed.FS, dirName string, targetDir string) + func RuntimeObjectFromUnstructured(scheme *runtime.Scheme, u *unstructured.Unstructured) (runtime.Object, error) + func SetName(name string) func(metav1.Object) + func SliceToInterfaceSlice[T any](s []T) []interface + func SliceToRuntimeOjbect[T any](s []T) []runtime.Object + func ToObjectList[T client.Object](list []T) []client.Object + func UnstructedToTyped(from unstructured.Unstructured, to interface{}) error + func WarningOnError(logger *zap.SugaredLogger, err error, message string) + type ConditionBuilder struct + func BuildCondition() *ConditionBuilder + func (c *ConditionBuilder) Done() *apis.Condition + func (c *ConditionBuilder) SetReasonMessage(reason, message string, formtKeyValues ...interface{}) *ConditionBuilder + func (c *ConditionBuilder) SetStatus(stat corev1.ConditionStatus) *ConditionBuilder + func (c *ConditionBuilder) SetType(ct apis.ConditionType) *ConditionBuilder + type ConvertRuntimeObjctToClientObjectFunc func(runtime.Object) (client.Object, error) + type ScriptResult struct + OutputDataPrefix string + func ExecBashScript(script string, params ...string) *ScriptResult + func ExecScript(name string, arg ...string) *ScriptResult + func (p *ScriptResult) Error() error + func (p *ScriptResult) ExitCode() int + func (p *ScriptResult) ExitMessage() string + func (p *ScriptResult) OutputData(dataPrefix string) string + func (p *ScriptResult) Stderr() string + func (p *ScriptResult) Stdout() string