Skip to content
This repository has been archived by the owner on May 22, 2023. It is now read-only.

Commit

Permalink
feat: release new config features
Browse files Browse the repository at this point in the history
  • Loading branch information
Peter Mbanugo committed Apr 11, 2022
1 parent e0ef2ad commit 77f90c2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions source/k8s-client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ export async function getAuthorizedRequestOptions({
}: ClusterCredentialWithNamespace): Promise<OptionsWithUrl> {
const kc = initialiseKubeConfig(credential);
const baseUrl = credential.server ?? kc.getCurrentCluster()?.server;

if (!baseUrl)
throw new Error("Couldn't load the Kubernetes server value from config");

Expand Down

0 comments on commit 77f90c2

Please sign in to comment.