Commit Graph

224 Commits

Author SHA1 Message Date
Francesco Torchia 022cfe2c5a
Fix Ui crash in case of missing principal (#9762)
Signed-off-by: Francesco Torchia <francesco.torchia@suse.com>
2023-09-28 09:16:57 +01:00
Sean-McQ 718ffd6201
checks to see if membership editor is project and adds a project filter (#9761) 2023-09-27 13:37:54 -04:00
Mo Mesgin c453356ea1 fixed unit tests warnings 2023-09-20 15:49:53 -07:00
Nancy 371524f732
Reduce performance impact of LabeledSelect getOptionLabel (#9689)
* imrpove labeledSelect getOptionLabel performance when options are strings

* refactor labeledselect getOptionLabel and write test

* remove redundant if block in ls getOPtionLabel

* refactor getUpdatedOption
2023-09-12 12:58:02 -07:00
Shavindra b22e4d8315
Add Fleet gitrepo helmRepoUrlRegex support (#9622)
* Add Fleet gitrepo helmRepoUrlRegex support.
2023-09-06 10:57:22 +02:00
Francesco Torchia e458858c8e
Show page where commit it is in GitPicker commits table
Signed-off-by: Francesco Torchia <francesco.torchia@suse.com>
2023-09-04 10:49:10 +02:00
Shavindra d5c32a6621
Handle missing secret name. (#9624)
* Handle missing secret name.
2023-09-02 16:02:28 +02:00
Richard Cox 2808ffd061
Merge pull request #9570 from jonatan5524/fix-project-edit-ui-crash
Fix project edit UI crash
2023-08-30 15:18:03 +01:00
Richard Cox 5242a2a2b3 Improvement & bug fix
- Bring computed properties inline with where they're used
- Fix issue where limit object is deleted and cannot be set following save
  - on save the object used to store limit is removed if it's empty
  - this meant user could not enter new values within that limit
  - so split up input and output to `UnitInput` component
2023-08-29 17:33:20 +01:00
jonatan cb092fef80 refactor(ProjectRow): v-model to computed 2023-08-24 21:40:38 +03:00
Bastian Hofmann dcb8b2542b Fix tests
Signed-off-by: Bastian Hofmann <mail@bastianhofmann.de>
2023-08-24 13:58:29 +01:00
Alexandre Alves 5c17900425
Resource Quota up-and-down input doesn't update the value on the request quota object to be sent (#9577)
* add @change event to capture arrow presses on firefox

* address pr comments

---------

Co-authored-by: Alexandre Alves <aalves@Alexandres-MBP.lan>
2023-08-23 09:25:08 +01:00
jonatan 641dcd0b77 fix(ProjectRow.vue): add nullish operator fix ui crash
Signed-off-by: jonatan <jonatan5524@gmail.com>
2023-08-19 13:42:35 +03:00
Alexandre Alves e70abeb82c
UI says "Matches no existing clusters" when there is a null value for cluster selector in cluster groups (#9441)
* fix bug with matchexpression

* clear console logs

---------

Co-authored-by: Alexandre Alves <aalves@Alexandres-MBP.lan>
Co-authored-by: Alexandre Alves <aalves@Alexandres-MacBook-Pro.local>
2023-07-31 11:46:08 +01:00
Evgeniya Vashkevich ebfd4ccd51
Changed navlink page and improved error handling for FileImageUpload (#9411) 2023-07-27 14:03:43 -07:00
Alexandre Alves d3b802ab15
fix issue with Resources Select in globalRoles edit/create interface (#9210)
* fix issue with Resources Select in globalRoles edit/create interface

* address PR comments

* add missing check

* Minor improvement, add comments
- Did a deep dive on what this should actually be doing, added comments to explain
- We should prioritise methods to find a key via config before falling back on label and random string
- The opt.optionKey has been (previously) applied incorrectly. It should be the actual option key, rather than a key to find the option key
  - This is the root of the issue.
  - I don't think we should fix this here in case of breaking somewhere else
  - The changes in the PR are one's we should be doing anyway

---------

Co-authored-by: Alexandre Alves <aalves@Alexandres-MBP.lan>
Co-authored-by: Richard Cox <richard.cox@suse.com>
2023-07-17 13:23:02 +01:00
momesgin 7e77ec7d5e
remove error icon when the condition is Ready and Waiting (#9309)
* remove error icon when the condition is Ready and Waiting

* fixed importing clean tooltip directive

* change testing component name

* use replace instead of replaceAll to fix node version support issue on GH's unit test action

* added more unit tests

* import replaceAll polyfill and clean tooltip directive to jest setup

---------

Co-authored-by: Mo Mesgin <mmesgin@Mos-M2-MacBook-Pro.local>
2023-07-14 13:09:04 -07:00
Neil MacDougall c9e1a19396
Extension support for custom provisioning (#9246)
* Extension support for custom provisioning

* FIx lint issues

* Discovery / Tweaks
- fix issue where namespacesOverride was lost
- tidy up PROVIDER
- try to handle missing provider=type url param (could be missing extension-params)
- added a few comments to comments to come back to

* Names and typings
- change param --> customParam to make it clearer it's not url params
- add labels-annotations to shell types

* Wire in provider detailTabs
- as per original readme this should be made generic (extension point working directly with ResourceTabs)

* Update IClusterProvisioner & docs

* Improvements / Changes to support proving out DO extension
- cluster hooks optional
- buff up save hook (and pass in cluster when calling apply fn)
- move normalizeName into generic place
- bring back async create machine config
- hack for do extension (map example provider to do provider)

* updates, add optional saveCluster, add missing kube file
- saveCluster complements hooks, doesn't skip handling of addons, etc
- ensure register hooks take the `this` context in all worlds

* Adding docs

* Updates
- location config based changes
  - change customParams to context
  - add query param
- add new extention point to add tabs to cluster create cluster config section
- fixed some typing
- fixed issue where cluster was not passed to before / after hooks (only important if 'this' changes

* Changes following review, fix `t` in plugins

* Fix linting

* Docs updates, pass through more edit/view things

* Conditionally show the namespace grouping in the cluster list
- means users can differentiate between clusters with same name in different namespaces
- useful when clusters created via extension provisioner where ns can be selected

* docs tweaks, actually include the provisioning page in docs

---------

Co-authored-by: Richard Cox <richard.cox@suse.com>
2023-07-11 22:17:57 +01:00
Dai Yuzeng 71e73cb605
HARVESTER: only change priority by select component (#9266)
* HARVESTER: only change priority by select component

* apply weight input fix to node affinity and add unit tests

* fix node affinity unit test name

---------

Co-authored-by: Nancy Butler <42977925+mantis-toboggan-md@users.noreply.github.com>
2023-07-06 15:29:08 -07:00
Dai Yuzeng 98eed65344
HARVESTER: fix podAffinity can not update match expressions (#9238) 2023-06-30 10:43:49 -07:00
Francesco Torchia acb4e9e42e
Rename GitPicker data-testid
Signed-off-by: Francesco Torchia <francesco.torchia@suse.com>
2023-06-27 17:42:31 +02:00
Richard Cox f98df23e7c fix linting 2023-06-26 11:25:54 +01:00
Richard Cox 0245a8cb93 Merge remote-tracking branch 'upstream/master' into epinio/resolve-conflicts-with-master 2023-06-23 18:00:14 +01:00
Richard Cox dbb96deb12 Revert "Add additional permission check for cluster and project member admin (#9100)"
This reverts commit 1c6fc770d9.
2023-06-23 16:23:11 +01:00
Giuseppe Leo 01eeb0548f
Add recommended lint rules globally (#8997)
* Update configuration

* Create default config for eslint

* Restore plugin:vue/recommended

* Add exceptions and overrides

* Correct manually remaining issues

* Adding further picked exceptions groupped up

* Fix or disable specific cases manually and singularly

* Add naming linting exception

* Remove unused variable in component

* Move rules to default

* Autocorrect rancher/components linting issues

* Configure VSCode to use multiple files, to display linting for rancher components

* Disable jest lint hook restriction for string list component

* Autofix
2023-06-23 17:02:55 +02:00
Alexandre Alves f2160f62f7
Automation: Cluster and Project Members shows "loading..." next to principle name (#9069)
* add e2e tests

* address PR comments

* update PR

* working on navTo function

* finish address PR comments

---------

Co-authored-by: Alexandre Alves <aalves@Alexandres-MBP.lan>
2023-06-22 14:41:15 +01:00
Francesco Torchia b2bf86bb08
Merge remote-tracking branch 'upstream/master' into merge-master-to-epinio-dev 2023-06-22 12:58:57 +02:00
Richard Cox 487ffad91c Fix build of epinio as an extension 2023-06-21 15:02:10 +01:00
Francesco Torchia 2c06f537e3
Merge pull request #9102 from torchiaf/fix/245
Handle applications created by revision from CLI
2023-06-21 15:58:37 +02:00
Richard Cox 5c5eb87aa3
Merge pull request #9155 from torchiaf/fix/221
Add configurable debounce time in Git Picker form inputs
2023-06-21 13:26:29 +01:00
Richard Cox 0f0a6a9f24 Bring back validation of selected commit
- this may have been deleted since the app was previously deployed
2023-06-21 12:10:50 +01:00
Francesco Torchia 7d119e9a47
Clean up code
Signed-off-by: Francesco Torchia <francesco.torchia@suse.com>
2023-06-20 18:43:06 +02:00
Francesco Torchia 61e92b6c4b
Handle Applications created by revision from CLI
Signed-off-by: Francesco Torchia <francesco.torchia@suse.com>
2023-06-20 18:40:43 +02:00
richa e7fbf0dfcd
Onenter newline textarea (#9116)
* Added test for preventDefault

* Added test for prevent default event on keypress Enter in CruResource component

* Removed test console log

* Fixed lint

* Added data-testid to form

* Fixed lint

* Add new line on pressing enter

* Test enter new line

* Test textarea Enter button in CruResource form

Signed-off-by: Francesco Torchia <francesco.torchia@suse.com>

---------

Signed-off-by: Francesco Torchia <francesco.torchia@suse.com>
Co-authored-by: Francesco Torchia <francesco.torchia@suse.com>
2023-06-20 15:43:34 +02:00
Francesco Torchia 05ff7bd57e
Add configurable debounce time in Git Picker form inputs
Signed-off-by: Francesco Torchia <francesco.torchia@suse.com>
2023-06-20 13:39:19 +02:00
Francesco Torchia 55fd701fca
Fix Upload button position in case of scroll
Signed-off-by: Francesco Torchia <francesco.torchia@suse.com>
2023-06-20 10:18:36 +02:00
Francesco Torchia 55f023bb9c
Assign file name as key field when unddefined
Signed-off-by: Francesco Torchia <francesco.torchia@suse.com>
2023-06-20 10:18:36 +02:00
Francesco Torchia c5860f82e8
Make upload button always visible
Signed-off-by: Francesco Torchia <francesco.torchia@suse.com>
2023-06-20 10:18:35 +02:00
Francesco Torchia 9049a25f77
Fix upload label translation
Signed-off-by: Francesco Torchia <francesco.torchia@suse.com>
2023-06-20 10:18:35 +02:00
Francesco Torchia d3f8100ef9
Add upload button to values field of KeyValue component
Signed-off-by: Francesco Torchia <francesco.torchia@suse.com>
2023-06-20 10:18:35 +02:00
Sean-McQ 1c6fc770d9
Add additional permission check for cluster and project member admin (#9100)
* Add additional permission check for cluster and project member admin

* Fixes the projectMembership editor on the edit project page

* per-project filtering for managing project-members on cluster/project

* Fixed admin behavior, simplified PRTB mgmt check,

* Optimise code
- Exit from cluster part early if
  - we're not ready to calc it
  - we've already calc'd it
- Move back calc of per project current user permissions to original loop
- Exit from project part early if
  - existing checks
  - we've already approved the

---------

Co-authored-by: Richard Cox <richard.cox@suse.com>
2023-06-19 13:07:18 -04:00
Richard Cox 48f1114006 Merge remote-tracking branch 'upstream/master' into epinio-dev 2023-06-19 15:40:07 +01:00
Qingyang Nong ad875e3fb5
HARVESTER: Not support changing the ipam mode of the harvester load as have backend issue (#9118) 2023-06-14 10:12:54 -07:00
Richard Cox 304628bded Ensure cancel when creating a NS sets valid selected option
- In epinio world defaultNamespace isn't valid
- This would be undefined, which was probably handled as a falsy which matched the 'create a ns' option
- So fall back on something sensisble
2023-06-13 16:35:38 +01:00
Richard Cox 1094f51b22
Merge pull request #9035 from richard-cox/master-epinio-dev
Merge `master` into `epinio-dev`
2023-06-12 10:58:37 +01:00
Richard Cox 9eea1852c3 Merge remote-tracking branch 'upstream/master' into master-epinio-dev 2023-06-08 14:54:40 +01:00
Richard Cox 566a96d413 Fix for table overflow 2023-06-08 14:54:17 +01:00
Francesco Torchia 4874349e71
Fix application form behavior when the git account/organization is deleted
Signed-off-by: Francesco Torchia <francesco.torchia@suse.com>
2023-06-07 16:11:27 +02:00
Richard Cox 4ee014a0f3 Fix namespaceOverride & epinio namespace usage 2023-06-02 15:56:48 +01:00
Richard Cox a5d3b32322 Lint fixes 2023-06-02 14:43:29 +01:00