Skip to content

Commit 010e3c5

Browse files
authored
Only log CRD name during installation
Logging the whole CRD resource is incredibly verbose as it includes every description of every field in the OpenAPI schema.
1 parent 4e3e16b commit 010e3c5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/envtest/crd.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ func CreateCRDs(config *rest.Config, crds []*apiextensionsv1beta1.CustomResource
189189

190190
// Create each CRD
191191
for _, crd := range crds {
192-
log.V(1).Info("installing CRD", "crd", crd)
192+
log.V(1).Info("installing CRD", "crd", crd.Name)
193193
if _, err := cs.ApiextensionsV1beta1().CustomResourceDefinitions().Create(crd); err != nil {
194194
return err
195195
}

0 commit comments

Comments
 (0)