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

Create sub-directories in config for versions #2181

Draft
wants to merge 6 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 5 additions & 10 deletions chart/values.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -2256,27 +2256,22 @@
"PlatformAPIKey": {
"properties": {
"secretName": {
"type": "string",
"description": "SecretName is the name of the secret where the platform access key is stored. This defaults to vcluster-platform-api-key if undefined."
"type": "string"
},
"namespace": {
"type": "string",
"description": "Namespace defines the namespace where the access key secret should be retrieved from. If this is not equal to the namespace\nwhere the vCluster instance is deployed, you need to make sure vCluster has access to this other namespace."
"type": "string"
},
"createRBAC": {
"type": "boolean",
"description": "CreateRBAC will automatically create the necessary RBAC roles and role bindings to allow vCluster to read the secret specified\nin the above namespace, if specified.\nThis defaults to true."
"type": "boolean"
}
},
"additionalProperties": false,
"type": "object",
"description": "PlatformAPIKey defines where to find the platform access key."
"type": "object"
},
"PlatformConfig": {
"properties": {
"apiKey": {
"$ref": "#/$defs/PlatformAPIKey",
"description": "APIKey defines where to find the platform access key and host. By default, vCluster will search in the following locations in this precedence:\n* environment variable called LICENSE\n* secret specified under external.platform.apiKey.secretName\n* secret called \"vcluster-platform-api-key\" in the vCluster namespace"
"$ref": "#/$defs/PlatformAPIKey"
}
},
"type": "object",
Expand Down
2 changes: 1 addition & 1 deletion config/legacyconfig/config.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package legacyconfig

import (
"github.com/loft-sh/vcluster/config"
"github.com/loft-sh/vcluster/config/v0.21"
)

type LegacyK0sAndK3s struct {
Expand Down
2 changes: 1 addition & 1 deletion config/legacyconfig/migrate.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"strconv"
"strings"

"github.com/loft-sh/vcluster/config"
"github.com/loft-sh/vcluster/config/v0.21"
"sigs.k8s.io/yaml"
)

Expand Down
File renamed without changes.
Loading
Loading