Skip to content

Commit

Permalink
fix tls-verify
Browse files Browse the repository at this point in the history
  • Loading branch information
Flaque committed Nov 26, 2024
1 parent d6f4a01 commit 4e48d38
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/lib/clusters/kubeconfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ export interface Kubeconfig {
cluster: {
"certificate-authority-data"?: string;
server: string;
"insecure-skip-tls-verify"?: boolean;
};
}[];
contexts: {
Expand Down Expand Up @@ -57,11 +56,8 @@ export function createKubeconfig(props: {
clusters: clusters.map((cluster) => ({
name: cluster.name,
cluster: {
// "certificate-authority-data": cluster.certificateAuthorityData,
server: cluster.kubernetesApiUrl,

// TODO: Remove this once we have a proper TLS cert
"insecure-skip-tls-verify": true,
"certificate-authority-data": cluster.certificateAuthorityData,
},
})),
users: users.map((user) => ({
Expand Down

0 comments on commit 4e48d38

Please sign in to comment.