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

Automatically configure ServiceAccount in Deployment whenever a ServiceAccount Fragment is present #781

Open
rohanKanojia opened this issue Jul 21, 2021 · 0 comments
Labels
enhancement New feature or request

Comments

@rohanKanojia
Copy link
Member

rohanKanojia commented Jul 21, 2021

Description

This was observed by @lordofthejars, whenever we need to add a ServiceAccount using Eclipse JKube. We need to add the ServiceAccount fragment in src/main/jkube and then add XML configuration to set this ServiceAccount in Deployment:

     <plugin>
        <groupId>org.eclipse.jkube</groupId>
        <artifactId>kubernetes-maven-plugin</artifactId>
        <version>${jkube.version}</version>
        <configuration>
          <resources>
            <serviceAccount>rokumar</serviceAccount>
          </resources>
        </configuration>
      </plugin>

However, since Eclipse JKube does most of the stuff opinionated way. It would be nice if JKube could configure ServiceAccount automatically in generated Deployment when only one ServiceAccount fragment is detected.

Info

  • Eclipse JKube version : all versions

  • If it's a feature request, what is your use case : Autoconfigure Deployment .spec.template.spec.serviceAccountName whenever a ServiceAccount is present while processing resource fragments.

@manusa manusa added the enhancement New feature or request label Jul 21, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants