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.
17
17
package cronjob
18
18
19
19
import (
20
+ "fmt"
20
21
"os/exec"
21
22
"path/filepath"
22
23
23
24
log "github.com/sirupsen/logrus"
24
25
"github.com/spf13/afero"
25
26
hackutils "sigs.k8s.io/kubebuilder/v4/hack/docs/utils"
26
27
pluginutil "sigs.k8s.io/kubebuilder/v4/pkg/plugin/util"
28
+ "sigs.k8s.io/kubebuilder/v4/pkg/plugins/golang/v4/scaffolds"
27
29
"sigs.k8s.io/kubebuilder/v4/test/e2e/utils"
28
30
)
29
31
@@ -288,7 +290,8 @@ func (sp *Sample) updateController() {
288
290
289
291
err = pluginutil .InsertCode (
290
292
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 )
292
295
hackutils .CheckError ("fixing cronjob_controller.go" , err )
293
296
294
297
err = pluginutil .ReplaceInFile (
You can’t perform that action at this time.
0 commit comments