clustercmd

package
v1.0.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 14, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var GetConfigDataCmd = &cobra.Command{
	Use:   "getConfigData",
	Short: "config data for eks cluster",
	Long:  `config data for eks cluster`,
	Run: func(cmd *cobra.Command, args []string) {

		authFlag, clientAuth, err := authenticate.SubCommandAuth(cmd)
		if err != nil {
			cmd.Help()
			return
		}

		if authFlag {
			clusterName, _ := cmd.Flags().GetString("clusterName")
			if clusterName != "" {
				getClusterDetails(clusterName, *clientAuth)
			} else {
				log.Fatalln("cluster name not provided. program exit")
			}
		}
	},
}

getConfigDataCmd represents the getConfigData command

Functions

func GetCluster

func GetCluster(eksClient *eks.EKS, clusterName string) *eks.DescribeClusterOutput

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL