-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Remove a lot of usages of legacy globals #6825
Merged
Merged
Changes from all commits
Commits
Show all changes
95 commits
Select commit
Hold shift + click to select a range
ade0775
Remove all usages of legacy global logger
Nokel81 a9fa8fa
Remove usages of legacy global storageClassApi
Nokel81 6b769cf
Remove usages of legacy global serviceApi
Nokel81 fea0875
Remove usages of legacy global secretApi
Nokel81 5849e09
Remove usages of legacy global resourceQuotaApi
Nokel81 e763df7
Remove usages of legacy global persistentVolumeClaimApi
Nokel81 25222be
Remove usages of legacy global nodeApi
Nokel81 bb6075e
Remove usages of legacy global networkPolicyApi
Nokel81 36c54fb
Fix formatting
Nokel81 888077d
Remove usages of legacy global configMapApi
Nokel81 80686bf
Remove usages of legacy global jobApi
Nokel81 41839a2
Remove usages of legacy global cronJobApi
Nokel81 4fdc92a
Remove usages of legacy global podApi
Nokel81 b098df6
Remove usages of legacy global roleApi
Nokel81 415cada
Remove exports of NonInjected components
Nokel81 5b15e4b
Remove usages of legacy global catalogEntityRegistry
Nokel81 4d532a4
Add lint against using legacy global works
Nokel81 76ed9ca
Fix lint in KubeObject file
Nokel81 12276af
Remove usages of legacy global catalogCategoryRegistry
Nokel81 501ce15
Remove usages of legacy global navigation
Nokel81 88a3938
Remove usages of legacy global navigate
Nokel81 0125f31
Remove unneeded index file
Nokel81 eb279f3
Remove usages of legacy global customResourceDefinitionStore
Nokel81 9d70be6
Remove usages of legacy global eventStore
Nokel81 1b4850e
Remove usages of legacy global podSecurityPolicyStore
Nokel81 8397e76
Remove usages of legacy global storageClassStore
Nokel81 d122e68
Remove usages of legacy global persistentVolumeStore
Nokel81 4a60a91
Remove usages of legacy global clusterRoleBindingStore
Nokel81 27cfff9
Remove usages of legacy global clusterRoleStore
Nokel81 2a46ffc
Remove usages of legacy global roleBindingStore
Nokel81 98f61f1
Move files around
Nokel81 1d955cd
Remove usages of legacy global roleStore
Nokel81 c201d13
Remove usages of legacy global serviceAccountStore
Nokel81 d16b111
Remove usages of legacy global podStore
Nokel81 6efb446
Remove final uses of asLegacyGlobalForExtensionApi in application code
Nokel81 ad09d15
Fix lint rule and start fixing lint errors
Nokel81 a449356
Make listHelmReleases injectable
Nokel81 c69eb16
Make installHelmChart injectable
Nokel81 468ca34
Make deleteHelmRelease injectable
Nokel81 52c93f3
Make getHelmReleaseValues injectable
Nokel81 23a7e79
Make getHelmReleaseHistory injectable
Nokel81 4cca41b
Make rollbackHelmRelease injectable
Nokel81 46b141e
Remove unnecessary overrides from getDiForUnitTesting
Nokel81 a7d214f
Add global override for logger
Nokel81 5725da7
Add global override for history
Nokel81 41d90ca
Cleanup typing around getting injectables within jest
Nokel81 50325d9
Move some more overrides to global if needed
Nokel81 1ef6fb4
Add global override for forcusWindow
Nokel81 7d74a9a
Fix lint in KubeApi
Nokel81 f145cb2
Fix lint in catalog/index.ts
Nokel81 b7b1e97
Remove last usages of legacy global getDetailsUrl
Nokel81 b15c6a4
Remove last usages of legacy global showDetails
Nokel81 2aa9fc9
Add functions back to extension API
Nokel81 b86eb3d
Remove all uses of legacy global Notification functions
Nokel81 ea4b725
Remove no longer existing export
Nokel81 94d0e11
Remove unnecessary overrides
Nokel81 7d9f1e0
Fix injecting side effects by using more injectables
Nokel81 809611a
Fix cluster role binding dialog
Nokel81 40a1b2e
Fix cluster role dialog
Nokel81 6a85358
Fix create service account dialog
Nokel81 1ef5677
Fix history override
Nokel81 1be1b44
Make KubeApi consume its dependencies while not breaking the extensio…
Nokel81 1e9fb90
Fix tests
Nokel81 6bb757c
Update snapshots
Nokel81 da23e44
Fix CephFs tests
Nokel81 a28f60d
Fix user store tests by using override of config
Nokel81 916101b
Remove use of mockFs in hotbar store tests
Nokel81 b4f02a7
Add direct devDep of memfs
Nokel81 4618c2f
Remove use of mockFs in cluster store tests
Nokel81 7ba61a5
Remove use of mockFs in router tests
Nokel81 2e85e56
Remove use of mockFs in kube auth proxy tests
Nokel81 873d9bb
Remove use of mockFs in log resource selector tests
Nokel81 bbcdd89
Remove use of mockFs in hotbar remove command tests
Nokel81 447243d
Remove use of mockFs in the select component tests
Nokel81 3b0fd91
Remove mock-fs as a dependency
Nokel81 e7654ae
Remove no longer necessary mocks
Nokel81 6b09ac9
Fix namespace select filter tests
Nokel81 79d14b5
Remove use of mockFs in the extension loader tests
Nokel81 93d5f73
Fixing edit-namespace-from-new-tab test
Nokel81 120e8ba
Fix app paths tests by making the tests run in "production" mode
Nokel81 84a9569
Remove last vestiges of isTestEnv and the is* globals
Nokel81 f52e79f
Fix delete-cluster-dialog tests
Nokel81 0a8df39
Fix install-helm-chart-from-previously-opened-tab tests
Nokel81 a8ac9b0
Remove unnecessary override of non side effect injectable
Nokel81 6b71560
Fix disable-kube-object-detail-items-when-cluster-is-not-relevant tests
Nokel81 dcc65a9
Fix reactively-hide-kube-object-detail-item tests
Nokel81 4e3060e
Fix lint
Nokel81 8603d44
Update snapshots
Nokel81 36caecb
Fix sidebar-and-tab-navigation-for-core tests
Nokel81 5b505e3
Remove need to override lensLocalStoragePath in tests
Nokel81 3063afe
Replace more overrides with global ones
Nokel81 7d25e93
Fix tests
Nokel81 25482dc
Fix typings
Nokel81 5482041
Remove no longer needed technical test
Nokel81 4ee417b
Update snapshots
Nokel81 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Love this.