Add version flag
This commit is contained in:
parent
2f9d1443c6
commit
7cc42f2df8
3 changed files with 20 additions and 1 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue