@@ -70,8 +70,6 @@ func runGenerator(args ...string) {
70
70
crdRoot = args [2 ]
71
71
}
72
72
73
- log .Printf ("crdRoot: %s" , crdRoot )
74
-
75
73
roots , err := loader .LoadRoots (
76
74
"k8s.io/apimachinery/pkg/runtime/schema" , // Needed to parse generated register functions.
77
75
crdRoot ,
@@ -96,7 +94,6 @@ func runGenerator(args ...string) {
96
94
97
95
crd .AddKnownTypes (parser )
98
96
for _ , r := range roots {
99
- log .Printf ("Looking at package %v" , r )
100
97
parser .NeedPackage (r )
101
98
}
102
99
@@ -144,7 +141,6 @@ func runGenerator(args ...string) {
144
141
145
142
conv , err := crd .AsVersion (* channelCrd , apiextensionsv1 .SchemeGroupVersion )
146
143
if err != nil {
147
- log .Printf ("CRD: %v" , * channelCrd )
148
144
log .Fatalf ("failed to convert CRD: %s" , err )
149
145
}
150
146
@@ -174,8 +170,6 @@ func runGenerator(args ...string) {
174
170
out = append (breakLine , out ... )
175
171
}
176
172
177
- log .Printf ("writing %v bytes" , len (out ))
178
-
179
173
fileName := fmt .Sprintf ("%s/%s/%s_%s.yaml" , outputDir , channel , crdRaw .Spec .Group , crdRaw .Spec .Names .Plural )
180
174
err = os .WriteFile (fileName , out , 0o600 )
181
175
if err != nil {
@@ -216,8 +210,6 @@ func opconTweaks(channel string, name string, jsonProps apiextensionsv1.JSONSche
216
210
numExpressions := strings .Count (jsonProps .Description , validationPrefix )
217
211
numValid := 0
218
212
if numExpressions > 0 {
219
- log .Printf ("found validations" )
220
-
221
213
enumRe := regexp .MustCompile (validationPrefix + "Enum=([A-Za-z;]*)>" )
222
214
enumMatches := enumRe .FindAllStringSubmatch (jsonProps .Description , 64 )
223
215
for _ , enumMatch := range enumMatches {
@@ -248,7 +240,6 @@ func opconTweaks(channel string, name string, jsonProps apiextensionsv1.JSONSche
248
240
}
249
241
250
242
if numValid < numExpressions {
251
- fmt .Printf ("Description: %s\n " , jsonProps .Description )
252
243
log .Fatalf ("Found %d Opcon validation expressions, but only %d were valid" , numExpressions , numValid )
253
244
}
254
245
@@ -274,7 +265,6 @@ func formatDescription(description string, channel string, name string) string {
274
265
log .Fatalf ("Invalid <opcon:experimental:description> tag for %s" , name )
275
266
}
276
267
description = re .ReplaceAllString (description , "\n \n " )
277
- log .Printf ("found experimental:description" )
278
268
} else {
279
269
description = strings .ReplaceAll (description , startTag , "" )
280
270
description = strings .ReplaceAll (description , endTag , "" )
@@ -292,7 +282,6 @@ func formatDescription(description string, channel string, name string) string {
292
282
log .Fatalf ("Invalid <opcon:util:excludeFromCRD> tag for %s" , name )
293
283
}
294
284
description = re .ReplaceAllString (description , "\n \n \n " )
295
- log .Printf ("found excludeFromCRD" )
296
285
}
297
286
298
287
opconRe := regexp .MustCompile (`<opcon:.*>` )
0 commit comments