Bump sigs.k8s.io/controller-tools from 0.6.2 to 0.11.1 (#5432)

This commit is contained in:
hongming
2022-12-28 10:12:00 +08:00
committed by GitHub
parent 1e2a8c1699
commit 06978f123d
52 changed files with 1335 additions and 964 deletions

View File

@@ -5,7 +5,7 @@ Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
@@ -23,8 +23,8 @@ import (
// Version returns the version of the main module
func Version() string {
info, ok := debug.ReadBuildInfo()
if !ok {
// binary has not been built with module support
if !ok || info == nil || info.Main.Version == "" {
// binary has not been built with module support or doesn't contain a version.
return "(unknown)"
}
return info.Main.Version
@@ -36,10 +36,10 @@ func Version() string {
//
// - "Version: v0.2.1" when the program has been compiled with:
//
// $ go get github.com/controller-tools/cmd/controller-gen@v0.2.1
// $ go get github.com/controller-tools/cmd/controller-gen@v0.2.1
//
// Note: go modules requires the usage of semver compatible tags starting with
// 'v' to have nice human-readable versions.
// Note: go modules requires the usage of semver compatible tags starting with
// 'v' to have nice human-readable versions.
//
// - "Version: (devel)" when the program is compiled from a local git checkout.
//