mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
Bump ogre-tools and adapt to breaking changes (#6481)
Co-authored-by: Janne Savolainen <janne.savolainen@live.fi> Signed-off-by: Iku-turso <mikko.aspiala@gmail.com> Signed-off-by: Iku-turso <mikko.aspiala@gmail.com>
This commit is contained in:
1 parent
2403e6d0cb
commit
646e953d47
12 files changed
+133
-108
No files matched your search
@@ -18,16 +18,23 @@ const releasesInjectable = getInjectable({
|
||||
const requestHelmReleases = di.inject(requestHelmReleasesInjectable);
|
||||
const toHelmRelease = di.inject(toHelmReleaseInjectable);
|
||||
|
||||
return asyncComputed(async () => {
|
||||
void releaseSecrets.get();
|
||||
return asyncComputed({
|
||||
getValueFromObservedPromise: async () => {
|
||||
void releaseSecrets.get();
|
||||
|
||||
const releaseArrays = await (clusterContext.hasSelectedAll
|
||||
? requestHelmReleases()
|
||||
: Promise.all(clusterContext.contextNamespaces.map(namespace => requestHelmReleases(namespace)))
|
||||
);
|
||||
const releaseArrays = await (clusterContext.hasSelectedAll
|
||||
? requestHelmReleases()
|
||||
: Promise.all(
|
||||
clusterContext.contextNamespaces.map((namespace) =>
|
||||
requestHelmReleases(namespace),
|
||||
),
|
||||
));
|
||||
|
||||
return releaseArrays.flat().map(toHelmRelease);
|
||||
}, []);
|
||||
return releaseArrays.flat().map(toHelmRelease);
|
||||
},
|
||||
|
||||
valueWhenPending: [],
|
||||
});
|
||||
},
|
||||
});
|
||||
|
||||
|
||||
Reference in new issue
Block a user