1
0
Fork 0
mirror of https://github.com/kastenhq/kubestr.git synced 2024-12-14 11:57:56 +00:00
This commit is contained in:
Sirish Bathina 2020-10-15 15:09:13 -10:00
parent 58d1acd0dd
commit 2aea4f0646
3 changed files with 14 additions and 1 deletions

2
.gitignore vendored
View file

@ -1 +1 @@
kubestr
.gitignore

View file

@ -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)
}
}

View file

@ -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()