# Cannot set image/jenkins version when installing public jenkins helm chart

**URL:** <https://community.jenkins.io/t/cannot-set-image-jenkins-version-when-installing-public-jenkins-helm-chart/1665>\
**Category:** Using Jenkins\
**Created:** [March 1, 2022, 1:01am UTC](https://community.jenkins.io/t/cannot-set-image-jenkins-version-when-installing-public-jenkins-helm-chart/1665 "2022-03-01T01:01:05Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![dev-samples](https://dub1.discourse-cdn.com/flex013/user_avatar/community.jenkins.io/dev-samples/32/292_2.png) [@dev-samples](https://community.jenkins.io/u/dev-samples)\
**Post date:** [March 1, 2022, 1:01am UTC](https://community.jenkins.io/t/cannot-set-image-jenkins-version-when-installing-public-jenkins-helm-chart/1665/1 "2022-03-01T01:01:05Z")

</div>

I am using this chart to install jenkins:

> **[GitHub - jenkinsci/helm-charts: Jenkins community Helm charts](https://github.com/jenkinsci/helm-charts)**
>
> Jenkins community Helm charts. Contribute to jenkinsci/helm-charts development by creating an account on GitHub.

But when I try to set a specific version of jenkins to use in the values file its ignored:

```auto
  values:
    rbac:
      create: true
      readSecrets: true   
    controller:
      image: "jenkins/jenkins"
      tag: "2.319.1-jdk11"

```

```auto
$ helm list
NAME NAMESPACE	REVISION	UPDATED STATUS CHART APP VERSION
jenkins	jenkins 1 2022-03-01 00:44:32.678319869 +0000 UTC	deployed	jenkins-3.11.4	2.319.3

```

The deployed jenkins sts has:

```auto
kubectl get sts jenkins -oyaml | grep jenkins/jenkins
        image: jenkins/jenkins:2.319.3-jdk11
        image: jenkins/jenkins:2.319.3-jdk11

```

Based on the default values I would expect I could specify the jenkins version:

> <https://github.com/jenkinsci/helm-charts/blob/be9834322536e5e6593644292e075673a1bec8f8/charts/jenkins/values.yaml#L22>

What am I missing?

---

<div class="post-metadata">

**Author:** ![halkeye](https://dub1.discourse-cdn.com/flex013/user_avatar/community.jenkins.io/halkeye/32/8_2.png) [@halkeye](https://community.jenkins.io/u/halkeye)\
**Post date:** [March 1, 2022, 1:05am UTC](https://community.jenkins.io/t/cannot-set-image-jenkins-version-when-installing-public-jenkins-helm-chart/1665/2 "2022-03-01T01:05:39Z")

</div>

> [@dev-samples](#):
>
> ```auto
> values:
> rbac:
> create: true
> readSecrets: true   
> controller:
> image: "jenkins/jenkins"
> tag: "2.319.1-jdk11"
> 
> ```

that’s pretty suspicious indenting. Why is there values? Why is there one level before values?

---

<div class="post-metadata">

**Author:** ![dev-samples](https://dub1.discourse-cdn.com/flex013/user_avatar/community.jenkins.io/dev-samples/32/292_2.png) [@dev-samples](https://community.jenkins.io/u/dev-samples)\
**Post date:** [March 1, 2022, 1:11am UTC](https://community.jenkins.io/t/cannot-set-image-jenkins-version-when-installing-public-jenkins-helm-chart/1665/3 "2022-03-01T01:11:52Z")

</div>

I am installing jenkins through flux:

```auto
---
apiVersion: helm.toolkit.fluxcd.io/v2beta1
kind: HelmRelease
metadata:
  name: jenkins
  namespace: jenkins
  annotations:
    flux.weave.works/automated: "true"
spec:
  releaseName: jenkins
  interval: 5m
  chart:
    spec:
      chart: jenkins
      version: 3.11.4      
      sourceRef:
        kind: HelmRepository
        name: jenkins
        namespace: flux-system

  values:
    rbac:
      create: true
      readSecrets: true   
    controller:
      image: "jenkins/jenkins"
      tag: "2.319.1-jdk11"
      installPlugins:
        - kubernetes:1.29.4
        - git:4.7.1
        - configuration-as-code:1.51

```

Jenkins comes up fine and the listed plugins are installed but for some reason it keeps forcing version 2.319.3 of jenkins.

---

<div class="post-metadata">

**Author:** ![halkeye](https://dub1.discourse-cdn.com/flex013/user_avatar/community.jenkins.io/halkeye/32/8_2.png) [@halkeye](https://community.jenkins.io/u/halkeye)\
**Post date:** [March 1, 2022, 1:14am UTC](https://community.jenkins.io/t/cannot-set-image-jenkins-version-when-installing-public-jenkins-helm-chart/1665/4 "2022-03-01T01:14:58Z")

</div>

> <https://github.com/halkeye/helmfile/blob/2584362dfbff30bf9dc9098cfe0ab5227034fe9a/namespaces/jenkins/jenkins.yaml#L32-L33>

Its the same indenting i have, so I would recommend looking at flux logs or something.

---

<div class="post-metadata">

**Author:** ![dev-samples](https://dub1.discourse-cdn.com/flex013/user_avatar/community.jenkins.io/dev-samples/32/292_2.png) [@dev-samples](https://community.jenkins.io/u/dev-samples)\
**Post date:** [March 1, 2022, 1:36am UTC](https://community.jenkins.io/t/cannot-set-image-jenkins-version-when-installing-public-jenkins-helm-chart/1665/5 "2022-03-01T01:36:43Z")

</div>

Arg flux reconciler was failing after fixing that it works as expected sorry for wasting your time!
