@@ -70,8 +70,6 @@ func runGenerator(args ...string) {
7070 crdRoot = args [2 ]
7171 }
7272
73- log .Printf ("crdRoot: %s" , crdRoot )
74-
7573 roots , err := loader .LoadRoots (
7674 "k8s.io/apimachinery/pkg/runtime/schema" , // Needed to parse generated register functions.
7775 crdRoot ,
@@ -96,7 +94,6 @@ func runGenerator(args ...string) {
9694
9795 crd .AddKnownTypes (parser )
9896 for _ , r := range roots {
99- log .Printf ("Looking at package %v" , r )
10097 parser .NeedPackage (r )
10198 }
10299
@@ -144,7 +141,6 @@ func runGenerator(args ...string) {
144141
145142 conv , err := crd .AsVersion (* channelCrd , apiextensionsv1 .SchemeGroupVersion )
146143 if err != nil {
147- log .Printf ("CRD: %v" , * channelCrd )
148144 log .Fatalf ("failed to convert CRD: %s" , err )
149145 }
150146
@@ -174,8 +170,6 @@ func runGenerator(args ...string) {
174170 out = append (breakLine , out ... )
175171 }
176172
177- log .Printf ("writing %v bytes" , len (out ))
178-
179173 fileName := fmt .Sprintf ("%s/%s/%s_%s.yaml" , outputDir , channel , crdRaw .Spec .Group , crdRaw .Spec .Names .Plural )
180174 err = os .WriteFile (fileName , out , 0o600 )
181175 if err != nil {
@@ -216,8 +210,6 @@ func opconTweaks(channel string, name string, jsonProps apiextensionsv1.JSONSche
216210 numExpressions := strings .Count (jsonProps .Description , validationPrefix )
217211 numValid := 0
218212 if numExpressions > 0 {
219- log .Printf ("found validations" )
220-
221213 enumRe := regexp .MustCompile (validationPrefix + "Enum=([A-Za-z;]*)>" )
222214 enumMatches := enumRe .FindAllStringSubmatch (jsonProps .Description , 64 )
223215 for _ , enumMatch := range enumMatches {
@@ -248,7 +240,6 @@ func opconTweaks(channel string, name string, jsonProps apiextensionsv1.JSONSche
248240 }
249241
250242 if numValid < numExpressions {
251- fmt .Printf ("Description: %s\n " , jsonProps .Description )
252243 log .Fatalf ("Found %d Opcon validation expressions, but only %d were valid" , numExpressions , numValid )
253244 }
254245
@@ -274,7 +265,6 @@ func formatDescription(description string, channel string, name string) string {
274265 log .Fatalf ("Invalid <opcon:experimental:description> tag for %s" , name )
275266 }
276267 description = re .ReplaceAllString (description , "\n \n " )
277- log .Printf ("found experimental:description" )
278268 } else {
279269 description = strings .ReplaceAll (description , startTag , "" )
280270 description = strings .ReplaceAll (description , endTag , "" )
@@ -292,7 +282,6 @@ func formatDescription(description string, channel string, name string) string {
292282 log .Fatalf ("Invalid <opcon:util:excludeFromCRD> tag for %s" , name )
293283 }
294284 description = re .ReplaceAllString (description , "\n \n \n " )
295- log .Printf ("found excludeFromCRD" )
296285 }
297286
298287 opconRe := regexp .MustCompile (`<opcon:.*>` )
0 commit comments