-
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
TLS cert per cluster for lens-k8s-proxy #5081
Conversation
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.
@Nokel81 I think you missed updating src/main/catalog-sources/kubeconfig-sync-manager/kubeconfig-sync-manager.injectable.ts
?
ERROR in /Users/jimehrismann/git/lensapp/lens/src/main/catalog-sources/kubeconfig-sync-manager/kubeconfig-sync-manager.injectable.ts
13:49-16:3
[tsl] ERROR in /Users/jimehrismann/git/lensapp/lens/src/main/catalog-sources/kubeconfig-sync-manager/kubeconfig-sync-manager.injectable.ts(13,50)
TS2345: Argument of type '{ directoryForKubeConfigs: string; createCluster: (model: ClusterModel) => Cluster; }' is not assignable to parameter of type 'Dependencies'.
Property 'logger' is missing in type '{ directoryForKubeConfigs: string; createCluster: (model: ClusterModel) => Cluster; }' but required in type 'Dependencies'.
|
||
const certCache: Map<string, selfsigned.SelfSignedCert> = new Map(); | ||
|
||
export function getKubeAuthProxyCertificate(hostname: string, generate: SelfSignedGenerate, useCache = true): selfsigned.SelfSignedCert { |
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.
fromCache
might be better name since the cache is always used, in the sense that it is always updated (line 36) when generated (regardless of the value of useCache
)
I'm seeing "All checks have passed" but there are only 2 checks?? |
80b8ea8
to
4145428
Compare
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
Signed-off-by: Sebastian Malton <sebastian@malton.name>
dbe3178
to
011183a
Compare
Fixes #5042