Helm 版本
helm version
印出客戶端版本資訊
概要
顯示 Helm 的版本。
這將印出 Helm 版本的表示方式。輸出看起來像這樣
version.BuildInfo{Version:"v3.2.1", GitCommit:"fe51cd1e31e6a202cba7dead9552a6d418ded79a", GitTreeState:"clean", GoVersion:"go1.13.10"}
- Version 是版本的語義版本。
- GitCommit 是建置此版本所使用的提交 SHA。
- 如果建置此二進位檔時沒有本機程式碼變更,GitTreeState 為「clean」,如果二進位檔是從本機修改的程式碼建置的,則為「dirty」。
- GoVersion 是用於編譯 Helm 的 Go 版本。
使用 --template 旗標時,範本中可以使用以下屬性
- .Version 包含 Helm 的語義版本
- .GitCommit 是 git 提交
- .GitTreeState 是建置 Helm 時 git 樹的狀態
- .GoVersion 包含編譯 Helm 所使用的 Go 版本
例如,--template='Version: {{.Version}}' 輸出 'Version: v3.2.1'。
helm version [flags]
選項
-h, --help help for version
--short print the version number
--template string template for version string format
從父命令繼承的選項
--burst-limit int client-side default throttling limit (default 100)
--debug enable verbose output
--kube-apiserver string the address and the port for the Kubernetes API server
--kube-as-group stringArray group to impersonate for the operation, this flag can be repeated to specify multiple groups.
--kube-as-user string username to impersonate for the operation
--kube-ca-file string the certificate authority file for the Kubernetes API server connection
--kube-context string name of the kubeconfig context to use
--kube-insecure-skip-tls-verify if true, the Kubernetes API server's certificate will not be checked for validity. This will make your HTTPS connections insecure
--kube-tls-server-name string server name to use for Kubernetes API server certificate validation. If it is not provided, the hostname used to contact the server is used
--kube-token string bearer token used for authentication
--kubeconfig string path to the kubeconfig file
-n, --namespace string namespace scope for this request
--qps float32 queries per second used when communicating with the Kubernetes API, not including bursting
--registry-config string path to the registry config file (default "~/.config/helm/registry/config.json")
--repository-cache string path to the file containing cached repository indexes (default "~/.cache/helm/repository")
--repository-config string path to the file containing repository names and URLs (default "~/.config/helm/repositories.yaml")
另請參閱
- helm - Kubernetes 的 Helm 套件管理器。