File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed
hack/docs/internal/cronjob-tutorial Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -17,13 +17,15 @@ limitations under the License.
1717package cronjob
1818
1919import (
20+ "fmt"
2021 "os/exec"
2122 "path/filepath"
2223
2324 log "github.com/sirupsen/logrus"
2425 "github.com/spf13/afero"
2526 hackutils "sigs.k8s.io/kubebuilder/v4/hack/docs/utils"
2627 pluginutil "sigs.k8s.io/kubebuilder/v4/pkg/plugin/util"
28+ "sigs.k8s.io/kubebuilder/v4/pkg/plugins/golang/v4/scaffolds"
2729 "sigs.k8s.io/kubebuilder/v4/test/e2e/utils"
2830)
2931
@@ -288,7 +290,8 @@ func (sp *Sample) updateController() {
288290
289291 err = pluginutil .InsertCode (
290292 filepath .Join (sp .ctx .Dir , "internal/controller/cronjob_controller.go" ),
291- `// - https://pkg.go.dev/sigs.k8s.io/controller-runtime@v0.20.4/pkg/reconcile` , skipGoCycloLint )
293+ fmt .Sprintf (`// - https://pkg.go.dev/sigs.k8s.io/controller-runtime@%s/pkg/reconcile` ,
294+ scaffolds .ControllerRuntimeVersion ), skipGoCycloLint )
292295 hackutils .CheckError ("fixing cronjob_controller.go" , err )
293296
294297 err = pluginutil .ReplaceInFile (
You can’t perform that action at this time.
0 commit comments