Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to add annotation to jenkins service account via helm chart #1233

Open
domino-sbr1 opened this issue Nov 4, 2024 · 0 comments
Open
Labels
bug Something isn't working

Comments

@domino-sbr1
Copy link

domino-sbr1 commented Nov 4, 2024

Describe the bug

Below is a piece of values.yaml file with the yaml configuration responsible for creating a k8s service account. And although the account creation itself works fine, adding annotations does not. It looks like the service account template contains a reference to non-existent entries.

controller:
  serviceAccount:
    create: true
    name: test-jenkins
    annotations:
      test: "test-annotation"

Below is the output generated from the above configuration – the annotation section is missing.

---
# Source: jenkins/templates/service-account.yaml
apiVersion: v1
kind: ServiceAccount
metadata:
  name: test-jenkins
  namespace: test-jenkins
  labels:
    "app.kubernetes.io/name": 'jenkins'
    "helm.sh/chart": "jenkins-4.9.2"
    "app.kubernetes.io/managed-by": "Helm"
    "app.kubernetes.io/instance": "test-jenkins"
    "app.kubernetes.io/component": "jenkins-controller"
---

Version of Helm and Kubernetes

  • Helm: v3.6.1
  • Kubernetes: v1.30

Chart version

jenkins-4.9.2

What happened?

  1. Added annotation to service account definition under controller section in values.yaml file
  2. Noticed lack of annotation when executed below command:
    kubectl get sa test-jenkins -n test-jenkins -o yaml

What you expected to happen?

I want to be able to add annotations to the Jenkins service account

How to reproduce it

controller:
  serviceAccount:
    create: true
    name: test-jenkins
    annotations:
      test: "test-annotation"

Anything else we need to know?

N/A

@domino-sbr1 domino-sbr1 added the bug Something isn't working label Nov 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant