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

feat(app): [KDL6-185] improve user tools operator #1093

Open
wants to merge 37 commits into
base: feat/KDL6-183-improve-kdl-operators
Choose a base branch
from

Conversation

igzjaviergil
Copy link
Contributor

Motivation and Context

Instead of loading User Tools CR from confi and environment variables, create from data in a ConfigMap
Standarization of KDL User Tools CR

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?

Closes #

What is the new behavior?

Does this PR introduce a breaking change?

  • Yes
  • No

Other information

ialejandro and others added 22 commits December 16, 2024 11:25
* ci(github): add docker packages on dependabot
* restructure templates directory by moving filebrowser and mlflow templates into dedicated subdirectories
* move shared helper templates to common _helpers.tpl
* create separate configmap, deployment, service and networkpolicy templates for each component
* remove duplicate chart files and templates
* add CI configuration files (ci-values.yaml)
* update documentation (README.md, NOTES.txt)
…com:konstellation-io/kdl-server into feat/KDL-6-186-improve-project-operator
Update KDL to Create UserTools from Configmap
Cleanup config struct with unsused en variables
Add test
…b.com:konstellation-io/kdl-server into feat/KDL6-185-improve-user-tools-operator
@igzjaviergil igzjaviergil changed the title Feat/kdl6 185 improve user tools operator feat(app): [KDL6-185] improve user tools operator Dec 23, 2024
@ialejandro ialejandro force-pushed the feat/KDL6-185-improve-user-tools-operator branch from 189fe6d to c8279da Compare December 24, 2024 08:39
Copy link

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

Failed conditions
1 New Code Smells (required ≤ 0)

See analysis details on SonarQube Cloud

Catch issues before they fail your Quality Gate with our IDE extension SonarQube for IDE

Copy link
Contributor

@alexrodfe alexrodfe left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great work! Awesome, I have a couple of tips :)

slugUsername := k.getSlugUsername(username)
resName := fmt.Sprintf("usertools-%s", slugUsername)
configMapKdlProjectName := k.cfg.ReleaseName + "-server-user-tools-template"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If the configmap naming is used in more places, it could be very useful if this chain is returned as in a builder function instead of having it here declared inside a variable: example, getConfigMapKdlProjectName(release name string) string

- name: filebrowser-database
mountPath: "/database.db"
subPath: "database.db"
# volumeMounts:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

watchout, commented code

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.

3 participants