Modify airshipctl cluster status cmd
* This commits modifies airshipctl cluster status cmd to return not implemented error Change-Id: I7a9fea382217f4eb3d9903b6575f9df5d331255d Signed-off-by: bijayasharma <vetbijaya@gmail.com> Relates-To: #370 Closes: #370
This commit is contained in:
parent
4e296dacab
commit
ddf1641168
@ -17,9 +17,8 @@ package cluster
|
|||||||
import (
|
import (
|
||||||
"github.com/spf13/cobra"
|
"github.com/spf13/cobra"
|
||||||
|
|
||||||
"opendev.org/airship/airshipctl/pkg/cluster"
|
|
||||||
"opendev.org/airship/airshipctl/pkg/config"
|
"opendev.org/airship/airshipctl/pkg/config"
|
||||||
"opendev.org/airship/airshipctl/pkg/k8s/client"
|
"opendev.org/airship/airshipctl/pkg/errors"
|
||||||
)
|
)
|
||||||
|
|
||||||
// NewStatusCommand creates a command which reports the statuses of a cluster's deployed components.
|
// NewStatusCommand creates a command which reports the statuses of a cluster's deployed components.
|
||||||
@ -28,7 +27,7 @@ func NewStatusCommand(cfgFactory config.Factory) *cobra.Command {
|
|||||||
statusCmd := &cobra.Command{
|
statusCmd := &cobra.Command{
|
||||||
Use: "status",
|
Use: "status",
|
||||||
Short: "Retrieve statuses of deployed cluster components",
|
Short: "Retrieve statuses of deployed cluster components",
|
||||||
RunE: clusterStatusRunE(cfgFactory, kubeconfig),
|
RunE: clusterStatusRunE,
|
||||||
}
|
}
|
||||||
|
|
||||||
statusCmd.Flags().StringVar(
|
statusCmd.Flags().StringVar(
|
||||||
@ -40,8 +39,6 @@ func NewStatusCommand(cfgFactory config.Factory) *cobra.Command {
|
|||||||
return statusCmd
|
return statusCmd
|
||||||
}
|
}
|
||||||
|
|
||||||
func clusterStatusRunE(cfgFactory config.Factory, kubeconfig string) func(cmd *cobra.Command, args []string) error {
|
func clusterStatusRunE(cmd *cobra.Command, args []string) error {
|
||||||
return func(cmd *cobra.Command, args []string) error {
|
return errors.ErrNotImplemented{What: "Cluster Status"}
|
||||||
return cluster.StatusRunner(cluster.NewStatusOptions(cfgFactory, client.DefaultClient, kubeconfig), cmd.OutOrStdout())
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user