mirror of
https://github.com/kastenhq/kubestr.git
synced 2024-12-14 11:57:56 +00:00
logo fun
This commit is contained in:
parent
58d1acd0dd
commit
2aea4f0646
3 changed files with 14 additions and 1 deletions
2
.gitignore
vendored
2
.gitignore
vendored
|
@ -1 +1 @@
|
|||
kubestr
|
||||
.gitignore
|
|
@ -71,6 +71,7 @@ func Baseline(ctx context.Context, output string) {
|
|||
fmt.Println(err.Error())
|
||||
return
|
||||
}
|
||||
fmt.Print(kubestr.Logo)
|
||||
result := p.KubernetesChecks()
|
||||
if output == "json" {
|
||||
jsonRes, _ := json.MarshalIndent(result, "", " ")
|
||||
|
@ -80,6 +81,7 @@ func Baseline(ctx context.Context, output string) {
|
|||
for _, retval := range result {
|
||||
retval.Print()
|
||||
fmt.Println()
|
||||
time.Sleep(500 * time.Millisecond)
|
||||
}
|
||||
|
||||
provisionerList, err := p.ValidateProvisioners(ctx)
|
||||
|
@ -97,6 +99,7 @@ func Baseline(ctx context.Context, output string) {
|
|||
for _, provisioner := range provisionerList {
|
||||
provisioner.Print()
|
||||
fmt.Println()
|
||||
time.Sleep(500 * time.Millisecond)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -18,6 +18,16 @@ type Kubestr struct {
|
|||
volumeSnapshotClassList *unstructured.UnstructuredList
|
||||
}
|
||||
|
||||
const Logo = `
|
||||
**************************************
|
||||
__ __ ______ _______ _______ ______
|
||||
| |/ | __ | __|_ _| __ \
|
||||
| <| __ |__ | | | | <
|
||||
|__|\__|______|_______| |___| |___|__|
|
||||
|
||||
**************************************
|
||||
`
|
||||
|
||||
// NewKubestr initializes a new kubestr object to run preflight tests
|
||||
func NewKubestr() (*Kubestr, error) {
|
||||
cli, err := kube.NewClient()
|
||||
|
|
Loading…
Reference in a new issue