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

fix(app): [KDL6-112] handle automount and secret for existing service account #1025

Open
wants to merge 6 commits into
base: main
Choose a base branch
from

Conversation

igzjaviergil
Copy link
Contributor

handle automount and secret for existing service account

Motivation and Context

Existing service account prior to upgrade to kubernetes 1.26 were created without automount.
It means, on start up syncronize service account must check if existing service account has automount. If not, set to true and create corresponding Secret Type ServiceAccountToken
https://intelygenz.atlassian.net/browse/KDL6-112

PR Checklist

Please check if your PR fulfills the following requirements:

  • I have created tests for my code changes, and the tests are passing.
  • I have executed the pre-commit hooks locally.
  • I have updated the documentation accordingly.
  • The commit message follows our guidelines: https://github.com/konstellation-io/kdl-server/blob/main/CONTRIBUTING.md
  • Tests for the changes have been added (for bug fixes / features)
  • My change requires a change to the documentation (create a new issue if the documentation has not been updated).

PR Type

What kind of change does this PR introduce?

  • Bugfix
  • Feature
  • Code style update (formatting, local variables)
  • Refactoring (no functional changes, no api changes)
  • Build related changes
  • CI related changes
  • Documentation content changes
  • Other... Please describe:

What is the current behavior?

Service accounts created prior to migration to kubernetes 1.26 dont have autmount set to true and corresponding Secret Type ServiceAccountToken. With this change, if service account doesn´t have autmount to true, service account will be updated and secret created.

Closes #

What is the new behavior?

Does this PR introduce a breaking change?

  • [] Yes
  • No

Other information

Copy link

sonarcloud bot commented Nov 15, 2024

Copy link

sonarcloud bot commented Nov 15, 2024

Copy link

sonarcloud bot commented Nov 15, 2024

Quality Gate Failed Quality Gate failed for 'kdl-server-app-api'

Failed conditions
0.0% Coverage on New Code (required ≥ 80%)
17.9% Duplication on New Code (required ≤ 3%)

See analysis details on SonarQube Cloud

Copy link

sonarcloud bot commented Nov 15, 2024

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant