Skip to content
This repository has been archived by the owner on Jul 28, 2021. It is now read-only.

fix: description cannot be nil for new versions of helm #69

Open
wants to merge 1 commit into
base: development
Choose a base branch
from

Conversation

RafaAguilar
Copy link

RCA:

In the file helm/appidentityandaccessadapter/templates/ibmcloudappid.yaml in the line 9 description is set to nil causing the problem when generating the templates.

How get to issue:

  1. Generate templates and split them per resource:
helm install ./helm/appidentityandaccessadapter --generate-name

csplit -f resource_ -z .out /---/ '{*}'
  1. Apply each file independently, when reaching resource with the name The resource with the name resource_06` will fail with the following prompt
$ kubectl apply -f adapter_06

error: error validating "adapter_06": error validating data: unknown object type "nil" in adapter.spec.description; if you choose to ignore these errors, turn validation off with --validate=false
  1. While turning validation off would help, as the message says, the issue can be solved as well changing the description from nil to empty string (""), i.e.:

from:

---
...
apiVersion: "config.istio.io/v1alpha2"
kind: adapter
metadata:
  name: appidentityandaccessadapter
  namespace: istio-system
spec:
  description: 
...

to:


...
apiVersion: "config.istio.io/v1alpha2"
kind: adapter
metadata:
  name: appidentityandaccessadapter
  namespace: istio-system
spec:
  description: ""   # <---- Empty String
...

Solution:

Replace the description in the template helm/appidentityandaccessadapter/templates/ibmcloudappid.yaml from nil to "" to have a clean helm installation.

fixes #68

when installing the helm chart it would prompt
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Bug: Helm chart fails to install in latest Helm versions due to nil set at adapter Description
1 participant