From 99b411e40b23f70d4a1442d2bf8322660cdd0b25 Mon Sep 17 00:00:00 2001 From: Jon Edvald Date: Thu, 13 Jan 2022 18:04:54 +0100 Subject: [PATCH] fix(k8s): allow any style of path for kubeconfig field Fixes #2120 --- core/src/plugins/kubernetes/config.ts | 4 +--- docs/README.md | 5 +++-- docs/reference/providers/kubernetes.md | 10 +++++----- 3 files changed, 9 insertions(+), 10 deletions(-) diff --git a/core/src/plugins/kubernetes/config.ts b/core/src/plugins/kubernetes/config.ts index c8f26b18ce..94c9a390e8 100644 --- a/core/src/plugins/kubernetes/config.ts +++ b/core/src/plugins/kubernetes/config.ts @@ -724,9 +724,7 @@ export const configSchema = () => .number() .default(443) .description("The external HTTPS port of the cluster's ingress controller."), - kubeconfig: joi - .posixPath() - .description("Path to kubeconfig file to use instead of the system default. Must be a POSIX-style path."), + kubeconfig: joi.string().description("Path to kubeconfig file to use instead of the system default."), namespace: namespaceSchema(), setupIngressController: joi .string() diff --git a/docs/README.md b/docs/README.md index b2ab87e1d3..97d79f4d08 100644 --- a/docs/README.md +++ b/docs/README.md @@ -41,9 +41,10 @@ ## 🌺 Advanced -* [Remote Sources](./advanced/using-remote-sources.md) -* [Terraform](./advanced/terraform.md) * [cert-manager Integration](./advanced/cert-manager-integration.md) +* [Terraform](./advanced/terraform.md) +* [Using Remote Sources](./advanced/using-remote-sources.md) +* [Minimal RBAC Configuration for Development Clusters](./advanced/rbac-config.md) ## ☘️ Reference diff --git a/docs/reference/providers/kubernetes.md b/docs/reference/providers/kubernetes.md index 937113700f..9d5d57019b 100644 --- a/docs/reference/providers/kubernetes.md +++ b/docs/reference/providers/kubernetes.md @@ -377,7 +377,7 @@ providers: # The external HTTPS port of the cluster's ingress controller. ingressHttpsPort: 443 - # Path to kubeconfig file to use instead of the system default. Must be a POSIX-style path. + # Path to kubeconfig file to use instead of the system default. kubeconfig: # Specify which namespace to deploy services to, and optionally annotations/labels to apply to the namespace. @@ -2012,11 +2012,11 @@ The external HTTPS port of the cluster's ingress controller. [providers](#providers) > kubeconfig -Path to kubeconfig file to use instead of the system default. Must be a POSIX-style path. +Path to kubeconfig file to use instead of the system default. -| Type | Required | -| ----------- | -------- | -| `posixPath` | No | +| Type | Required | +| -------- | -------- | +| `string` | No | ### `providers[].namespace`