Add version flag

This commit is contained in:
Manuel de Brito Fontes 2017-10-25 01:06:48 -03:00
parent 2f9d1443c6
commit 7cc42f2df8
3 changed files with 20 additions and 1 deletions

View file

@ -17,6 +17,7 @@ limitations under the License.
package ingress
import (
"fmt"
"time"
"github.com/spf13/pflag"
@ -130,6 +131,15 @@ type BackendInfo struct {
Repository string `json:"repository"`
}
func (bi BackendInfo) String() string {
return fmt.Sprintf(`
Name: %v
Release: %v
Build: %v
Repository: %v
`, bi.Name, bi.Release, bi.Build, bi.Repository)
}
// Configuration holds the definition of all the parts required to describe all
// ingresses reachable by the ingress controller (using a filter by namespace)
type Configuration struct {