-
Notifications
You must be signed in to change notification settings - Fork 0
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
base: feat/KDL6-183-improve-kdl-operators
Are you sure you want to change the base?
feat(app): [KDL6-185] improve user tools operator #1093
Conversation
* 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)
…e-project-operator
…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
189fe6d
to
c8279da
Compare
…-improve-user-tools-operator Signed-off-by: Iván Alejandro Marugán <[email protected]>
Quality Gate failed for 'kdl-server-app-api'Failed conditions See analysis details on SonarQube Cloud Catch issues before they fail your Quality Gate with our IDE extension SonarQube for IDE |
There was a problem hiding this 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" |
There was a problem hiding this comment.
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: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
watchout, commented code
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:
PR Type
What kind of change does this PR introduce?
What is the current behavior?
Closes #
What is the new behavior?
Does this PR introduce a breaking change?
Other information