Skip to content

Commit

Permalink
fix(k8s): allow any style of path for kubeconfig field
Browse files Browse the repository at this point in the history
Fixes #2120
  • Loading branch information
edvald committed Jan 13, 2022
1 parent 5d5ec96 commit 99b411e
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 10 deletions.
4 changes: 1 addition & 3 deletions core/src/plugins/kubernetes/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down
5 changes: 3 additions & 2 deletions docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
10 changes: 5 additions & 5 deletions docs/reference/providers/kubernetes.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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`

Expand Down

0 comments on commit 99b411e

Please sign in to comment.