Skip to content

Adding status command for sylvactl

A dedicated subcommand for sylvactl to print the diagnosis summary of the resources at once. Below are the flag introduced to filter resources based on namespace:

  • Displays a summary of the resources : sylvactl status
  • Status of the specified resource : sylvactl status RESOURCE_NAME
  • Check Status in a Specific Namespace: sylvactl status --namespace NAMESPACE

Below are the outputs:

$ sylvactl status
Waiting for following resources to become ready:
    * Kustomization/sylva-system/pivot: HealthCheckFailed - health check failed after 47.908494ms: failed early due to stalled resources: [Job/kube-job/pivot-job-sylva-system status: 'Failed']
Error: Some resources are not ready
$ sylvactl status HelmChart/sylva-system/sylva-system-cert-manager
All Done: all resources are ready!

$ sylvactl status --namespace flux-system
All Done: all resources are ready!

$ sylvactl status --namespace sylva-system
Waiting for following resources to become ready:
    * Kustomization/pivot: HealthCheckFailed - health check failed after 44.858091ms: failed early due to stalled resources: [Job/kube-job/pivot-job-sylva-system status: 'Failed']
Error: Some resources are not ready

Closes sylva-projects/sylva-core#1396 (closed)

Edited by sakshi gupta

Merge request reports

Loading