1
0
mirror of https://github.com/lensapp/lens.git synced 2025-05-20 05:10:56 +00:00

Remove dead code

Co-authored-by: Mikko Aspiala <mikko.aspiala@gmail.com>

Signed-off-by: Janne Savolainen <janne.savolainen@live.fi>
This commit is contained in:
Janne Savolainen 2022-01-20 11:44:35 +02:00
parent d81449b2a3
commit 68080dc2c4
No known key found for this signature in database
GPG Key ID: 8C6CFB2FFFE8F68A
2 changed files with 0 additions and 36 deletions

View File

@ -1,16 +0,0 @@
/**
* Copyright (c) OpenLens Authors. All rights reserved.
* Licensed under MIT License. See LICENSE in root directory for more information.
*/
import { getInjectable, lifecycleEnum } from "@ogre-tools/injectable";
import { getReleaseSecret } from "./get-release-secret";
import { secretsStore } from "../../+config-secrets/secrets.store";
const getReleaseSecretInjectable = getInjectable({
instantiate: () => getReleaseSecret({ secretsStore }),
lifecycle: lifecycleEnum.singleton,
});
export default getReleaseSecretInjectable;

View File

@ -1,20 +0,0 @@
/**
* Copyright (c) OpenLens Authors. All rights reserved.
* Licensed under MIT License. See LICENSE in root directory for more information.
*/
import type { HelmRelease } from "../../../../common/k8s-api/endpoints/helm-releases.api";
import type { SecretsStore } from "../../+config-secrets/secrets.store";
interface Dependencies {
secretsStore: SecretsStore;
}
export const getReleaseSecret =
({ secretsStore }: Dependencies) =>
(release: HelmRelease) =>
secretsStore
.getByLabel({
owner: "helm",
name: release.getName(),
})
.find((secret) => secret.getNs() == release.getNs());