Welcome to the Linux Foundation Forum!

I am seeing an error when running a command installing jenkins

I am running helm install --namespace ci --values jenkins.values.yaml jenkins jenkins/jenkins

I then see this error
Error: INSTALLATION FAILED: template: jenkins/templates/tests/test-config.yaml:1:14: executing "jenkins/templates/tests/test-config.yaml" at <.Values.controller.testEnabled>: nil pointer evaluating interface {}.testEnabled
and am not sure how to fix this

Welcome!

It looks like you're new here. Sign in or register to get started.
Sign In

Answers

  • Can anyone help with this as it is stopping me progressing the course?

  • Looks like there is a new value added by the Jenkins Chart now. It requires it and is failing now since our values file does not have it. You could read about a similar issue here https://stackoverflow.com/questions/65790905/nil-pointer-evaluating-interface-when-installing-a-helm-chart.

    @robsquire , I would suggest you to update jenkins.values.yaml to following,

    1. controller:
    2. serviceType: NodePort
    3. resources:
    4. requests:
    5. cpu: "400m"
    6. memory: "512Mi"
    7. limits:
    8. cpu: "2000m"
    9. memory: "4096Mi"
    10. testEnabled: true
    11.  

    notice the testEnabled: true which was missing earlier. Let us know if this solves this problem.

  • I have updated my jenkins.values.yaml file as shown but still see the same error Error: INSTALLATION FAILED: template: jenkins/templates/tests/test-config.yaml:1:14: executing "jenkins/templates/tests/test-config.yaml" at <.Values.controller.testEnabled>: nil pointer evaluating interface {}.testEnabled

  • @gouravshah said:
    Looks like there is a new value added by the Jenkins Chart now. It requires it and is failing now since our values file does not have it. You could read about a similar issue here https://stackoverflow.com/questions/65790905/nil-pointer-evaluating-interface-when-installing-a-helm-chart.

    @robsquire , I would suggest you to update jenkins.values.yaml to following,

    1. controller:
    2. serviceType: NodePort
    3. resources:
    4. requests:
    5. cpu: "400m"
    6. memory: "512Mi"
    7. limits:
    8. cpu: "2000m"
    9. memory: "4096Mi"
    10. testEnabled: true
    11.  

    notice the testEnabled: true which was missing earlier. Let us know if this solves this problem.

    this is not possible

  • It looks like your jenkins/jenkins.values.yaml file is not set up correctly. You need to check your .Values.controller.testEnabled property and make sure it is set to 'true'. If it is not set to true, then you can set the proper boolean value in the yaml file.

  • Posts: 368

    ^^^
    96.4% probability for AI

  • Posts: 139

    @robsquire would be useful if you could join the office hours session during mon/tue so that we could debug this live. I could reproduce the issue and adding testEnabled: true did solve me. There are possibly other environmental issues which we may be overlooking. Working with the exact environment where this issue happens is the quickest way to fix this.

Welcome!

It looks like you're new here. Sign in or register to get started.
Sign In

Welcome!

It looks like you're new here. Sign in or register to get started.
Sign In

Categories

Upcoming Training