Commit Graph

208 Commits

Author SHA1 Message Date
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
Dai Yuzeng 27eb202105
HARVESTER: Implement pod affinity in harvester manager (#8331) 2023-06-01 12:38:32 -07:00
Richard Cox 8a05df2d31 Merge remote-tracking branch 'upstream/master' into merge-master-2 2023-06-01 17:37:47 +01:00
Nancy 786dc75822
Fix malformed pod affinity and node affinity terms (#9011)
* remove extra weight field from matchExpressions[].preference

* remove extra weight field from podAffinityTerm

* fix fleetAgentDeploymentCustomization payload data

* remove ui-only matching field from matchexpression and matchfield terms

* rm cypress numTestsKeptInMemory config change
2023-05-31 10:51:38 -07:00
Richard Cox d90ba881a6 Merge remote-tracking branch 'upstream/master' into merge-master-2 2023-05-25 16:51:00 +01:00
Neil MacDougall 3db04f1e9a
Changes to support custom node driver UI extensions (#8735)
* Changes to support custom node driver UI extensions

* Fix bad merge

* Fix merge

* Fix bad merge

* Revert changes that are more impactful for now

* Add mock for $plugin

* Fix lint issue

* Address PR feedback

* Fix bad rebase

* Fix merge issues

* Removed unused import

* Fix merge issue

* Add back in missing validation for roles

* Fix unit test
2023-05-25 15:37:16 +01:00
yonasberhe23 5e9824edfd
cypress UI automation: account and api keys tests (#8857)
* account and api keys tests

* account & api keys tests: updates made per review

* account and api keys tests: added checkRowCount fn and added step to make test deterministic

* account and api keys tests: removed unused import

* account and api keys tests: update assertion

* account and api keys tests: update navigation test

* account and api keys tests: move deleteButton function, update selector value

---------

Co-authored-by: Yonas Berhe <yberhe@Yonass-MacBook-Pro.local>
2023-05-23 07:34:38 -07:00
Francesco Torchia 0f0b8ca8d3
Fix flickering when selecting commit in Application edit/create form
Signed-off-by: Francesco Torchia <francesco.torchia@suse.com>
2023-05-23 12:56:54 +02:00
Qingyang Nong c0cdc2dbf3
HARVESTER: Cloud provider enhancement (#8935)
* HARVESTER: Cloud provider enhancement

* fix labels-annotations.js linting

* fix missing comma in labels.vue

* fix labels.vue missing bracket

---------

Co-authored-by: Nancy Butler <42977925+mantis-toboggan-md@users.noreply.github.com>
2023-05-22 16:49:19 -07:00
Richard Cox d12ecba8f3 Fix switching between github/gitlab manifests
- Make switching between github/gitlab in all scenarios simpler
- in git picker whenever the value changes ... we reset and reload
- in app source ensure the value only changes when there's been a required reload
  - this includes forcing one when type changes from any type to any type
- this does mean there will be more http requests to gitX when switching between types
2023-05-22 20:28:58 +01:00
Richard Cox 8c711b2750 Fix edit of gitlab sourced applications 2023-05-22 16:04:13 +01:00
Francesco Torchia 50bae1009b
Fix wrong commit selected in application edit
Signed-off-by: Francesco Torchia <francesco.torchia@suse.com>
2023-05-22 16:16:37 +02:00
Francesco Torchia ef8186f7ab
Fix GitPicker type value
Signed-off-by: Francesco Torchia <francesco.torchia@suse.com>
2023-05-22 13:07:17 +02:00
Francesco Torchia 8bc1a8534a
GitPicker, load source refactoring
Signed-off-by: Francesco Torchia <francesco.torchia@suse.com>
2023-05-22 12:47:49 +02:00
Francesco Torchia 995eccca18
GitPicker, remove initial ghType from persistent data; code refactoring 2023-05-22 12:42:40 +02:00
Francesco Torchia 9517887a87
GitPicker, reset OR restore source data in when editing Application source
Signed-off-by: Francesco Torchia <francesco.torchia@suse.com>
2023-05-22 12:39:23 +02:00
Francesco Torchia fcd632cca3
Manage new origin.git.provider type from Applications API response
Signed-off-by: Francesco Torchia <francesco.torchia@suse.com>
2023-05-22 10:10:24 +02:00