Skip to content

Commit d7d8fd1

Browse files
committed
remove warning
1 parent 474f612 commit d7d8fd1

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

pkg/crd/gen.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,6 @@ func removeDescriptionFromMetadataProps(v *apiext.JSONSchemaProps) {
197197
if m, ok := v.Properties["metadata"]; ok {
198198
meta := &m
199199
if meta.Description != "" {
200-
fmt.Fprintf(os.Stderr, "Warning: metadata description unsupported. Removing description: %s\n", meta.Description)
201200
meta.Description = ""
202201
v.Properties["metadata"] = m
203202

@@ -220,7 +219,6 @@ func removeDescriptionFromMetadataPropsLegacy(v *apiextlegacy.JSONSchemaProps) {
220219
if m, ok := v.Properties["metadata"]; ok {
221220
meta := &m
222221
if meta.Description != "" {
223-
fmt.Fprintf(os.Stderr, "Warning: metadata description unsupported. Removing description: %s\n", meta.Description)
224222
meta.Description = ""
225223
v.Properties["metadata"] = m
226224

0 commit comments

Comments
 (0)