orange-cloudfoundry / orange-cf-bosh-cli

docker file for CF operations clients
12 stars 8 forks source link

check-k8s -namespace -kusto options #162

Closed gberche-orange closed 6 days ago

gberche-orange commented 1 month ago

Expected behavior

Observed behavior

$ check-k8s core-connectivity 

"core-connectivity" suspended/failed resources...

STATUS                           READY  POD                                                                                  
CrashLoopBackOff                 0/1    01-uaa/uaa-6bc5d469c7-4zgtt
Init:0/2                         0/1    fluxcd/shared-secrets-syncer-67b57769c4-57fsh

READY    SUSP.  KIND             NAMESPACE/NAME                                                                  
False    False  helmchart        fluxcd/01-harbor-container-webhook-harbor-container-webhook 
False    False  helmrelease      01-harbor-container-webhook/harbor-container-webhook 
False    False  helmrelease      fluxcd/shared-secrets-seeder-provisioning 
False    False  helmrelease      01-haproxy-ingress/haproxy 
False    False  kustomization    fluxcd/paas-k8s-gitops-kustomization 
False    False  kustomization    fluxcd/10-traefik-static-routes 
False    False  kustomization    fluxcd/01-coa-config 
False    False  kustomization    fluxcd/01-shared-secrets 

workaround

check-k8s core-connectivity | grep --color=never -e '[[:cntrl:]]' -e fluxcd
#> "core-connectivity" suspended/failed resources...
#> STATUS                           READY  POD                                                                                  
#> READY    SUSP.  KIND             NAMESPACE/NAME                                                                  
#> False    False  kustomization    fluxcd/01-coa-config 
[...]

See https://stackoverflow.com/a/65485196/1484823 and https://stackoverflow.com/questions/30092885/how-to-grep-ascii-control-character

gberche-orange commented 1 month ago

Updated to add need to specify a single kustomization

ogrand commented 6 days ago

Finally don't use check-k8s for goss tests