Skip to content

Meet 'NoneType' issue when install helm chart with empty entry of manifest #109

@xho22

Description

@xho22

When I'm installing istio chart by helm plugin, it returns 'NoneType' error. After debug, the cause if manifest of helm_status contains empty entry. And will run into issue from below:

api_version = resource.get('apiVersion')

Chart manifest:

#Result of command: helm status istio-base -n istio-system -o yaml
config:
  defaultRevision: default
info:
  deleted: ""
  description: Install complete
  first_deployed: "2024-08-29T03:18:10.688440447Z"
  last_deployed: "2024-08-29T03:18:10.688440447Z"
  notes: |
    Istio base successfully installed!

    To learn more about the release, try:
      $ helm status istio-base -n istio-system
      $ helm get all istio-base -n istio-system
  status: deployed
manifest: |
  ---
  # Source: base/templates/reader-serviceaccount.yaml
  # This service account aggregates reader permissions for the revisions in a given cluster
  # Should be used for remote secret creation.
  apiVersion: v1
  kind: ServiceAccount
  metadata:
    name: istio-reader-service-account
    namespace: istio-system
    labels:
      app: istio-reader
      release: istio-base
  ---
  # Source: base/templates/zzz_profile.yaml
  #  Flatten globals, if defined on a per-chart basis
  ---
  # Source: base/templates/default.yaml
  apiVersion: admissionregistration.k8s.io/v1
  kind: ValidatingWebhookConfiguration
  metadata:

Coverted
image

The zzz_profile.yaml is empty. From my side, we don't suppose each key of manifest is present as some special chart design.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions