Skip to content

Helm V3 support bug fix

Latest
Compare
Choose a tag to compare
@amelbakry amelbakry released this 31 May 12:49
· 22 commits to main since this release

Description

  • Helm v3 introduced some changes to the returned result.
    • the returned output from helm3 list --output yaml --all-namespaces is in list format, previously, in helm v2, it was in mapping format with the top-level mapping key Releases.
    • This means that the offset in helm v3 is the list index, and we need to figure it out, in helm v2 the offset was the next release name (string)
    • The keys in the returned output in helm v3 are in small letters and snake_case, in helm v2 it was in capital letters
    • The namespace is mandatory when getting the release, since the release is namespace scoped, in helm v2 it was unique and working on the cluster scope
Helm V2 vs Helm V3 output`
(⎈ |gke-dev-c3-iad1:wf-kdave)-> helm3 list --output yaml --all-namespaces --max 3
- app_version: 0.1.5
  chart: gitpod-0.6.0
  name: ccorbett-gitpod
  namespace: default
  revision: "1"
  status: failed
  updated: 2021-02-16 15:40:18.456288 -0500 -0500
- app_version: 1.16.0
  chart: sgdockerv2-0.1.0
  name: chart-1622757580
  namespace: sourcegraph
  revision: "1"
  status: deployed
  updated: 2021-06-03 15:59:44.407428211 -0600 -0600
- app_version: 1.16.0
  chart: sg-helm-0.1.0
  name: chart-1622788410
  namespace: default
  revision: "1"
  status: failed
  updated: 2021-06-04 00:33:35.186003671 -0600 -0600
(⎈ |gke-dev-c3-iad1:wf-kdave)-> helm list --output yaml --max 3
Next: cert-manager
Releases:
- AppVersion: "0.1"
  Chart: alertmgrfwd-0.7.0
  Name: alertmgrfwd
  Namespace: monitoring
  Revision: 36
  Status: DEPLOYED
  Updated: Wed Feb 23 18:03:08 2022
- AppVersion: "1.0"
  Chart: base-dotnetcore-api-0.14.0
  Name: api-name
  Namespace: api-name
  Revision: 1
  Status: DEPLOYED
  Updated: Wed Apr  7 09:24:48 2021
- AppVersion: "1.0"
  Chart: base-python-http-0.1.11
  Name: cd-reference-app
  Namespace: cd-reference-app
  Revision: 3
  Status: DEPLOYED
  Updated: Fri Feb  4 18:45:59 2022