Remove GenericController and add tests

This commit is contained in:
Manuel de Brito Fontes
2017-11-05 17:51:05 -03:00
parent 1701bfc334
commit 86f39d9deb
39 changed files with 1131 additions and 1325 deletions
+13
View File
@@ -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)
}