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

Since v1.11.0, <serviceAccount> configuration option has stopped working. ServiceAccount reference was removed from PodTemplateHandler in https://github.com/eclipse/jkube/pull/1969 #2187

Closed
manusa opened this issue May 31, 2023 · 0 comments · Fixed by #2190
Assignees
Labels
bug Something isn't working
Milestone

Comments

@manusa
Copy link
Member

manusa commented May 31, 2023

          Since v1.11.0, `<serviceAccount>` configuration option has stopped working. ServiceAccount reference was removed from PodTemplateHandler in https://github.com/eclipse/jkube/pull/1969

Before v1.11.0, it used to work for zero configuration mode but not when user provides a deployment fragment.

#1969

Originally posted by @rohanKanojia in #1758 (comment)

As a user I want to be able to specify the ServiceAccount to be used or referenced in my Pod serviceAccountName, more specifically I want my Controller Kubernetes Objects (such as Deployment, Job, ReplicaSet, and so on) to have a PodTemplate spec with this reference.

I want to be able to achieve this either by providing a PodTemplate fragment, or through configurations that I can override when executing the plugins (Maven or Gradle)

  • ✔️ Fragments are working
  • ✖️ Project/CLI/property configuration has stopped working
@manusa manusa added this to the 1.13.0 milestone May 31, 2023
@manusa manusa added the bug Something isn't working label May 31, 2023
rohanKanojia added a commit to rohanKanojia/jkube that referenced this issue May 31, 2023
… generated controller (eclipse-jkube#2187)

Signed-off-by: Rohan Kumar <rohaan@redhat.com>
rohanKanojia added a commit to rohanKanojia/jkube that referenced this issue May 31, 2023
… generated controller (eclipse-jkube#2187)

Signed-off-by: Rohan Kumar <rohaan@redhat.com>
manusa pushed a commit that referenced this issue May 31, 2023
… generated controller (#2187)

Signed-off-by: Rohan Kumar <rohaan@redhat.com>
@rohanKanojia rohanKanojia self-assigned this Jun 1, 2023
rohanKanojia added a commit to rohanKanojia/jkube that referenced this issue Jun 1, 2023
…ount` configuration option (eclipse-jkube#2187)

ServiceAccountEnricher used to only handle `serviceAccounts`
resource configuration option. `serviceAccount` used to be used by
PodTemplateHandler while generating opinionated controllers.

Add a case for handling `serviceAccount` in ServiceAccountEnricher

Signed-off-by: Rohan Kumar <rohaan@redhat.com>
rohanKanojia added a commit to rohanKanojia/jkube that referenced this issue Jun 1, 2023
…ount` configuration option (eclipse-jkube#2187)

ServiceAccountEnricher used to only handle `serviceAccounts`
resource configuration option. `serviceAccount` used to be used by
PodTemplateHandler while generating opinionated controllers.

Add a case for handling `serviceAccount` in ServiceAccountEnricher

Signed-off-by: Rohan Kumar <rohaan@redhat.com>
manusa pushed a commit that referenced this issue Jun 2, 2023
…ount` configuration option (#2187)

ServiceAccountEnricher used to only handle `serviceAccounts`
resource configuration option. `serviceAccount` used to be used by
PodTemplateHandler while generating opinionated controllers.

Add a case for handling `serviceAccount` in ServiceAccountEnricher

Signed-off-by: Rohan Kumar <rohaan@redhat.com>
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
2 participants