mirror of
https://github.com/wahyd4/ingress-nginx.git
synced 2026-08-09 05:16:27 +10:00
Remove GenericController and add tests
This commit is contained in:
@@ -16,6 +16,8 @@ limitations under the License.
|
||||
|
||||
package version
|
||||
|
||||
import "fmt"
|
||||
|
||||
var (
|
||||
// RELEASE returns the release version
|
||||
RELEASE = "UNKNOWN"
|
||||
@@ -24,3 +26,14 @@ var (
|
||||
// COMMIT returns the short sha from git
|
||||
COMMIT = "UNKNOWN"
|
||||
)
|
||||
|
||||
// String returns information about the release.
|
||||
func String() string {
|
||||
return fmt.Sprintf(`-------------------------------------------------------------------------------
|
||||
NGINX Ingress controller
|
||||
Release: %v
|
||||
Build: %v
|
||||
Repository: %v
|
||||
-------------------------------------------------------------------------------
|
||||
`, RELEASE, COMMIT, REPO)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user