mirror of
https://github.com/stefanprodan/podinfo.git
synced 2026-03-04 11:00:23 +00:00
- add podinfo CLI to Quay docker image - use podinfo CLI for health checks (Istio mTLS support)
22 lines
350 B
Go
22 lines
350 B
Go
package main
|
|
|
|
import (
|
|
"fmt"
|
|
|
|
"github.com/spf13/cobra"
|
|
"github.com/stefanprodan/k8s-podinfo/pkg/version"
|
|
)
|
|
|
|
func init() {
|
|
rootCmd.AddCommand(versionCmd)
|
|
}
|
|
|
|
var versionCmd = &cobra.Command{
|
|
Use: `version`,
|
|
Short: "Prints podcli version",
|
|
RunE: func(cmd *cobra.Command, args []string) error {
|
|
fmt.Println(version.VERSION)
|
|
return nil
|
|
},
|
|
}
|