Skip to content

Commit 219c711

Browse files
committed
internal/scaffold/crd.go: remove now-unnecessary link replacements
1 parent 1fd03d0 commit 219c711

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

internal/scaffold/crd.go

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515
package scaffold
1616

1717
import (
18-
"bytes"
1918
"fmt"
2019
"io"
2120
"os"
@@ -113,15 +112,6 @@ func (s *CRD) CustomRender() ([]byte, error) {
113112
}
114113
return nil, err
115114
}
116-
// Until we bump dependencies to Kubernetes v1.16, generated validation
117-
// descriptions for kind and apiVersion will contain an invalid link.
118-
// Manually replace them here.
119-
//
120-
// TODO(estroz): remove on k8s v1.16 bump.
121-
b = bytes.ReplaceAll(b,
122-
[]byte("https://git.k8s.io/community/contributors/devel/api-conventions.md"),
123-
[]byte("https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md"),
124-
)
125115
if err = yaml.Unmarshal(b, crd); err != nil {
126116
return nil, err
127117
}

0 commit comments

Comments
 (0)