Commit Graph

1166 Commits

Author SHA1 Message Date
Catherine Luse 42bf373067
Merge pull request #7921 from catherineluse/az-order
Availability zones are in order
2023-01-19 12:37:20 -07:00
Catherine Luse 5635129a2e
Merge pull request #7922 from catherineluse/an-first
Show VMs that support AN first
2023-01-19 12:00:42 -07:00
Catherine Luse 71eab01346
Merge pull request #7962 from catherineluse/helm-chart-versions
Avoid saving duplicate Helm chart versions
2023-01-19 10:51:04 -07:00
richa eeb8fa1d86
Added scale down promt confirmation on RKE clusters (#7926)
* Added scale down promt confirmation on RKE clusters

* Removed extra test code

* Modify toggleScaleDownModal function

* Added promt to RKE cluster
2023-01-19 13:34:16 +01:00
Neil MacDougall e255361605
Ad comment for blank screen fix (#7960) 2023-01-19 12:29:15 +00:00
Richard Cox 26bf08868d
Merge pull request #7934 from PNAP/master
Fixed problem with saving cloud credentials for pnap node driver
2023-01-19 10:24:32 +00:00
Catherine Luse 87174680c5 Avoid saving duplicate Helm chart versions 2023-01-19 03:19:09 -07:00
Neil MacDougall 59507eee8d
Fix blank chart install page (#7952)
* Fix blank chart install page

* Fix debug code left in
2023-01-19 09:23:23 +00:00
Nancy 1ab3fc3856
re-add header tag global style to accommodate pre-existing extensions with classless header elements (#7948) 2023-01-18 15:46:29 -07:00
richa 14286fd7a8
Fixed code tab bug in all auth provider types pages (#7928) 2023-01-18 12:53:38 +01:00
Neil MacDougall 8c23970362
Remove the legacy docker secret type from creation screen (#7944) 2023-01-17 20:30:27 +00:00
Ilya Artamonov 0751474547
fix: Fixed typo (#7938) 2023-01-17 17:53:08 +00:00
Dai Yuzeng c19a07f01e
Use property forceYaml to create resources via yaml (#7857) 2023-01-17 09:32:10 -07:00
Catherine Luse 809e6b78b5
Merge pull request #7923 from catherineluse/project-bug
Allow more retries to finish project creation
2023-01-17 08:59:40 -07:00
pajuga b1078bd6c5 Merge branch 'master' of https://github.com/PNAP/dashboard 2023-01-16 23:20:09 +00:00
pajuga e1c4c7b304 Fixed problem with saving cloud credentials for pnap. 2023-01-16 22:33:13 +00:00
Qingyang Nong 51edce8789
HARVESTER: Fix `@pkg/harvester` (#7841) 2023-01-16 13:10:13 +00:00
Catherine Luse dcc4a73e49 Allow more retries to finish project creation 2023-01-13 18:04:32 -07:00
Catherine Luse 9859d92af0 Show VMs that support AN first 2023-01-13 14:50:46 -07:00
Catherine Luse e420a31a82 Availability zones are in order 2023-01-13 14:42:17 -07:00
Sean-McQ ca1b810c7b
Moves sockets into the advanced worker (#7760)
* Moves sockets into the advanced worker

* worker can die peacefully now, making switching between cluster work.

* Make waitFor generic, wire in to waitForTestFn

* General Changes
- Fixes for switching cluster
  - includes using common getPerformanceSetting
  - avoid new code to unsub before socket disconnect
- handle `watch` `stop` requests
- lots of TODO's (questions, work, checks, test, etc)
- use common

* Switch socket fixes
- isAdvancedWorker should only be true for cluster store
- advancedWorker to be wired in

* Fix socket id for cluster workers
- sockets use an incremented local var for id
- when we nuke the socket file within the worker this resets, so they all ahve id of 1
- work around this by applying the unix time

* Fix handling of new partical counts response
- seen in dex cluster explorer dashboard
- count cards would be removed when partial counts response received

* Make resourceWatcher the sole location for watch state
- getters canWatch, watchStarted now are worked around (they look at state in the UI thread)
  - we now don't call resource.stop or restart.start in subscription
- tidied up `forgetType`
- moved clearFromQueue from steve mutations into subscription mutations (better location)
- added and removed some TODOs
- fixed watch (stop handler should be higher up, include force watch handling)

* pushes the csrf value into worker and adds it to fetch request headers.

* refactors batchChanges to address ref concerns and be more performant

* Maintain schema reference whilst updating
- This change mutates input in a function, which is bad...
- but ensures the reference isn't broken, which is needed to maintain similar functionality as before

* Fix waitForTestFn
- Seen when creating or viewing clusters

* On unwatch ensure any pending watch requests are removed from the queue
- the probably would have been a problem if the worker wasn't nuked
- however as the codes there lets make it safe

Also added `trace` feature in advanced worker, will probably bring out to other places as well

* Fix navigation from cluster manager world to any cluster
- Ensure that we handle the case where the advanced worker was created but the resource watcher wasn't
- ... but fix case where this was happening (aka ensure that a blank cluster context is ignored)

* Tidy some TODOs

* Add perf settings page
- This will help test normal flow (when advanced worker is disabled)
- Note - setting is now in a bag. This may help us better support further settings (enable client side pagination, etc)
  ```
  advancedWorker: { enabled: false },
  ```

* FIX - Nav from cluster dashboard --> specific event --> cluster dashboard and events not re-subbed
- Ensure we block default handling of resource.start (keep state in resource watcher)

* Tidying up some TODOs

* Adds in a cache and uses it to validate SCHEMA messages before batching.

* Forgot to actually save CSRF to the resourceWatcher when instantiated.

* an empty resource in a batchChange to signal remove

* Move addSchemaIndexFields to and created removeSchemaIndexFields in new file
- this avoids bringing class files into the worker

* Fix disconnect/reconnect
- Remove `syncWatch` (do the watch/unwatch straight away)
- Test/Fix re-sub on reconnect
- Test/Fix growls on disconnect

* Tidying up some TODO's
- including clean of workerQueue on resource.stop (this is SUPER defensive)

* batchChanges will now handle aliases

* Fix pods list - WIP
- ensure podsByNamespace is updated on batchChange

TODO
- the final update to the pod is ignored
- removing a namespace cleans the cache correctly
- disabling advanced worker still works

* Fix pods list - fixes
- ensure podsByNamespace is updated on batchChange

Tested / Fixed
- the final update to the pod is ignored
- removing a namespace cleans the cache correctly
- disabling advanced worker still works

* Tidying TODOs

* Remove default same-origin header
- https://developer.mozilla.org/en-US/docs/Web/API/Request/credentials

* Fixed TODO description

* Refactor subscribe, make it clear which vuex feature relates to what

* Lots of Fixes
- batchChanges fixes
  - fix index is 0 issues (!/!!index)
  - only `set` if we have to
  - ensure we set the correct index after pushing to list
  - ensure map is updated after reducing list size with limit
- podsByNamespace fixes
  - ensure when ew replace... we don't use the same referenced object
- general service resource fixes
  - ensure service's pods list stays up to date with store

* Multiple improvements/fixes
- resourceCache - store the hash instead of the whole object. This means longer load time be reduces memory footprint
- resourceWatcher
  - don't re-sub on socket reconnect if watcher is in error
  - don't sub if watcher is in error
  - don't unwatch for 'failed to find schema' and 'too old' errors
    - this clears the error, we won't to keep it to ensure we don't watch
- Remove #5997 comments, follow on work #7917

* toggle debug, remap alias types, cleaned up comments and console

* Unit tests for batchChanges
Much more scope for some crazy content

* Logging tweaks
- disable logging by default
- initWorker comes in too late to affect initial trace, so just rely on the `debug` to toggle at runtime

Co-authored-by: Richard Cox <richard.cox@suse.com>
2023-01-13 16:03:00 -05:00
Qingyang Nong 17f784ccf0
HARVESTER: Add hideNamespaceLocation for product config (#7702) 2023-01-13 08:42:23 -07:00
Neil MacDougall 4ccb724b53
Fix description not working for user resources (#7885) 2023-01-13 13:09:33 +00:00
Neil MacDougall 9f3922424a
Add support for svg icons (#7769)
* Fix lint

* Fix bad merge

* Fix bad merge

* Fix issue with custom color
2023-01-13 12:59:59 +00:00
richa 38ad49d2f5
Fixed link alignment in home page whats new section (#7887)
* Fixed link alignment in home page whats new section

* Removed extra new added css properties
2023-01-13 11:53:50 +01:00
Neil MacDougall 25876b49ea
Fix stuck loading indicator (auth) (#7903) 2023-01-13 10:03:35 +00:00
LiuYan 8b559b1e97
fix(workload): fix duplicate add containers (#7400) 2023-01-13 09:52:38 +00:00
richa 45236c4a80
Fixed column-header tooltip postion (#7901)
* Fixed column-header tooltip postion

* Fixed tooltip position
2023-01-13 10:34:38 +01:00
Bastian Hofmann d6bbae46a6
Fix multi select styling (#7843)
* Fix multi select styling so that the form field expands if not all items fit into a single line anymore.

Fixes https://github.com/rancher/dashboard/issues/7842

Signed-off-by: Bastian Hofmann <mail@bastianhofmann.de>

* Remove duplication in _select.scss

* Fix select heights in ContainerLogs, ContainerShell, ApplicationLogs and ApplicationShell components

Signed-off-by: Bastian Hofmann <mail@bastianhofmann.de>

Signed-off-by: Bastian Hofmann <mail@bastianhofmann.de>
2023-01-12 23:01:07 +00:00
Neil MacDougall c48018fa60
Improve error messages when creating an Azure cloud credential (#7910) 2023-01-12 21:20:29 +00:00
Francesco Torchia a107afd915
Merge pull request #7893 from torchiaf/fix/7872
Events tab, set "Last Seen" column as default sort
2023-01-12 19:57:16 +01:00
Catherine Luse ff974034aa
Merge pull request #7847 from catherineluse/registry
Allow configuring system image registry only for charts that support it
2023-01-12 11:27:04 -07:00
Qingyang Nong 79d922afa7
HARVESTER: Label text change (#7889) 2023-01-12 09:59:49 -07:00
Francesco Torchia 441722ab8c
Events tab
- define header
- set "Last Seen" column as default sort

Signed-off-by: Francesco Torchia <francesco.torchia@suse.com>
2023-01-12 16:53:42 +01:00
Richard Cox f77798a935 Fix linting after merge of old PR
- the pnap PR is pretty old and was done prior to some lint changes
2023-01-12 11:55:20 +00:00
vickyhella a6066d79b1
Update Chinese translation and fix typo (#7825) 2023-01-12 12:26:08 +01:00
Richard Cox d72e78be10
Merge pull request #6569 from PNAP/master
pnap machine driver implementation
2023-01-12 10:10:02 +00:00
richa b89bcb595f
Prompt node pool (#7772)
* Added prompt in machinedeployment

* Save users promptConfirmation in cookies

* Changed pormpt size

* Added comments to the code, replace mounted function with create

* Fixed review comments

* Removed cookies added scale pool promt variable in prefs file

* Corrected pref variable name format and update comments

* Added confirmation prompt option in pref page
2023-01-11 15:51:47 +01:00
Neil MacDougall 7d54fa51e4
Workaround for backend issue where ws.error is sent as ws.resource.change (#7900) 2023-01-11 12:47:04 +00:00
Francesco Torchia 260b5ad048
Merge pull request #7870 from torchiaf/fix/7851
Cloud Provider, fix label for default value
2023-01-11 11:56:44 +01:00
Richard Cox d4b9840d28
Merge pull request #7207 from mantis-toboggan-md/plugins-harvester-manager
Create a Harvester Manager plugin
2023-01-11 10:19:57 +00:00
Nancy 14afb83a72
Revert "get docs base url version from getVersionInfo (#7436)" (#7863)
This reverts commit 129568d991.
2023-01-10 11:12:13 -07:00
Richard Cox 2a779a8873
Merge pull request #7797 from richard-cox/improve-ns-filter
Improve performance of NamespaceFilter when there are thousands of entries
2023-01-10 16:49:46 +00:00
Francesco Torchia fa2f01950b
Merge pull request #7821 from torchiaf/fix/7553
Edit Cluster, Implement warning message when migrating to k8s 1.25 an…
2023-01-10 11:22:52 +01:00
Volker Theile fe194fbd53
The inner of the loading spinner uses different color than body. (#7806)
Fixes: https://github.com/rancher/dashboard/issues/7805
Signed-off-by: Volker Theile <vtheile@suse.com>

Signed-off-by: Volker Theile <vtheile@suse.com>
Co-authored-by: Neil MacDougall <nwmac@users.noreply.github.com>
2023-01-10 08:57:35 +00:00
Nancy Butler 7500405cf5 fix cloud-credential and machine-config imports 2023-01-09 10:48:42 -07:00
Nancy Butler 700a21397b fix havester-mgr import statements 2023-01-09 10:48:42 -07:00
Nancy Butler d4a9bef75c move stuff again 2023-01-09 10:48:42 -07:00
Nancy Butler 53774ce38c move harvester-mgr stuff 2023-01-09 10:48:42 -07:00
Francesco Torchia faa6f7abb4
Merge pull request #7848 from torchiaf/fix/7048-2
ResourceTable, allow Enter event to be propagated
2023-01-09 15:18:43 +01:00