Skip to content
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

Merged
merged 2 commits into from
Mar 28, 2022
Merged

Conversation

jakolehm
Copy link
Contributor

@jakolehm jakolehm commented Mar 23, 2022

Fixes #5042

@jakolehm jakolehm added the bug Something isn't working label Mar 23, 2022
@Nokel81 Nokel81 marked this pull request as ready for review March 23, 2022 15:24
@Nokel81 Nokel81 requested a review from a team as a code owner March 23, 2022 15:24
@Nokel81 Nokel81 requested review from Iku-turso and Nokel81 and removed request for a team March 23, 2022 15:24
Nokel81
Nokel81 previously approved these changes Mar 23, 2022
@Nokel81 Nokel81 added this to the 5.5.0 milestone Mar 23, 2022
Copy link
Contributor

@jim-docker jim-docker left a 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 {
Copy link
Contributor

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)

@jim-docker
Copy link
Contributor

I'm seeing "All checks have passed" but there are only 2 checks??

jakolehm and others added 2 commits March 24, 2022 08:47
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
Signed-off-by: Sebastian Malton <sebastian@malton.name>
@Nokel81 Nokel81 force-pushed the tls-cert-per-cluster branch from dbe3178 to 011183a Compare March 24, 2022 12:53
@Nokel81 Nokel81 merged commit b3574e1 into master Mar 28, 2022
@Nokel81 Nokel81 deleted the tls-cert-per-cluster branch March 28, 2022 12:39
@Nokel81 Nokel81 mentioned this pull request May 4, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Connecting to docker-desktop fails authentication
3 participants