Git Product home page Git Product logo

Comments (2)

lopdan avatar lopdan commented on June 12, 2024

Hi Keshav,

I just faced the same issue as you. This occurs because the .Values tree is populated based on the input provided through values.yaml, --values, --set, etc. It is not populated based on how the templates consume the input. If a value is not set, .Values has no knowledge of this sub-tree, and therefore it is evaluated as a nil object when rendered through text/template.

As you can see if you look into orion/templates/test/orion-test.yaml, there is a value which is not found on orion/values.yaml, the one triggering your error: <.Values.test.enabled>. To solve this the maintainer should add the value into the chart, until that happens the workaround is to deploy orion broker with the helm sources locally, adding the value manually.

  1. Clone this repository, edit the file orion/values.yaml and add this at the end of the file (you can change it to false):
test:
  enabled: true
  1. Install the helm chart (from helm-charts/charts):
helm install orion-chart orion/ --values orion/values.yaml
  1. After this the orion broker should be deployed and running:
NAME                                     READY   STATUS    RESTARTS   AGE
pod/orion-chart-9f9c6b8f6-x6hz8          1/1     Running   0          2m22s
pod/orion-chart-mongo-5d46588547-wnz5q   1/1     Running   0          2m22s

NAME                        TYPE        CLUSTER-IP      EXTERNAL-IP   PORT(S)     AGE
service/kubernetes          ClusterIP   10.96.0.1       <none>        443/TCP     11m
service/orion-chart         ClusterIP   10.99.67.101    <none>        1026/TCP    2m22s
service/orion-chart-mongo   ClusterIP   10.100.71.166   <none>        27017/TCP   2m22s

NAME                                READY   UP-TO-DATE   AVAILABLE   AGE
deployment.apps/orion-chart         1/1     1            1           2m22s
deployment.apps/orion-chart-mongo   1/1     1            1           2m22s

NAME                                           DESIRED   CURRENT   READY   AGE
replicaset.apps/orion-chart-9f9c6b8f6          1         1         1       2m22s
replicaset.apps/orion-chart-mongo-5d46588547   1         1         1       2m22s

from helm-charts.

wistefan avatar wistefan commented on June 12, 2024

Hello,
sorry, I forgot to set the default-value. Its fixed in the new 1.0.10 chart. Thanks @lopdan for pointing out a solution.
Best

from helm-charts.

Related Issues (19)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.