mirror of https://github.com/helm/helm
The --show-source help claimed JSON/YAML output 'always includes' the source field, but releaseElement.Source is tagged json:"source,omitempty" so it is omitted when a release has no recorded source. Reword the help to state the flag affects only table output and that JSON/YAML emit source whenever a release has one. Also add cmd-level get metadata coverage for a release whose chart records meta.helm.sh/release-source, with table/JSON/YAML golden files, so the new SOURCE line and source field do not regress. Signed-off-by: Shaan Satsangi <shaansatsangi@gmail.com>pull/32250/head
parent
2cf9b05ced
commit
57667c932c
@ -0,0 +1 @@
|
||||
{"name":"thomas-guide","chart":"foo","version":"0.1.0-beta.1","appVersion":"1.0","source":"https://charts.example.com","annotations":{"category":"web-apps","meta.helm.sh/release-source":"https://charts.example.com","supported":"true"},"labels":{"key1":"value1"},"dependencies":[{"name":"cool-plugin","version":"1.0.0","repository":"https://coolplugin.io/charts","condition":"coolPlugin.enabled","enabled":true},{"name":"crds","version":"2.7.1","repository":"","condition":"crds.enabled"}],"namespace":"default","revision":1,"status":"deployed","deployedAt":"1977-09-02T22:04:05Z"}
|
||||
@ -0,0 +1,13 @@
|
||||
NAME: thomas-guide
|
||||
CHART: foo
|
||||
VERSION: 0.1.0-beta.1
|
||||
APP_VERSION: 1.0
|
||||
SOURCE: https://charts.example.com
|
||||
ANNOTATIONS: category=web-apps,meta.helm.sh/release-source=https://charts.example.com,supported=true
|
||||
LABELS: key1=value1
|
||||
DEPENDENCIES: cool-plugin,crds
|
||||
NAMESPACE: default
|
||||
REVISION: 1
|
||||
STATUS: deployed
|
||||
DEPLOYED_AT: 1977-09-02T22:04:05Z
|
||||
APPLY_METHOD: client-side apply (defaulted)
|
||||
@ -0,0 +1,25 @@
|
||||
annotations:
|
||||
category: web-apps
|
||||
meta.helm.sh/release-source: https://charts.example.com
|
||||
supported: "true"
|
||||
appVersion: "1.0"
|
||||
chart: foo
|
||||
dependencies:
|
||||
- condition: coolPlugin.enabled
|
||||
enabled: true
|
||||
name: cool-plugin
|
||||
repository: https://coolplugin.io/charts
|
||||
version: 1.0.0
|
||||
- condition: crds.enabled
|
||||
name: crds
|
||||
repository: ""
|
||||
version: 2.7.1
|
||||
deployedAt: "1977-09-02T22:04:05Z"
|
||||
labels:
|
||||
key1: value1
|
||||
name: thomas-guide
|
||||
namespace: default
|
||||
revision: 1
|
||||
source: https://charts.example.com
|
||||
status: deployed
|
||||
version: 0.1.0-beta.1
|
||||
Loading…
Reference in new issue