Skip to content

Commit

Permalink
Revert "Adds external.platform.(apiKey/autoSleep/autoDelete) docs (#194
Browse files Browse the repository at this point in the history
…)"

This reverts commit 7b94c6c.
  • Loading branch information
deniseschannon authored Jul 26, 2024
1 parent 7b94c6c commit 3980560
Show file tree
Hide file tree
Showing 28 changed files with 92 additions and 1,019 deletions.
71 changes: 0 additions & 71 deletions _partials/what-is-vcluster-yaml.mdx

This file was deleted.

2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ require (
github.com/invopop/jsonschema v0.12.1-0.20240219232115-a4467074499d
github.com/loft-sh/agentapi/v4 v4.0.0-alpha.16
github.com/loft-sh/api/v4 v4.0.0-alpha.16
github.com/loft-sh/vcluster-config v0.0.0-20240716135058-8f0c5cc020dd
github.com/loft-sh/vcluster-config v0.0.0-20240708084328-0260ef98d153
k8s.io/apimachinery v0.30.1
sigs.k8s.io/controller-runtime v0.18.4
)
Expand Down
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -118,8 +118,8 @@ github.com/loft-sh/apiserver v0.0.0-20240607231110-634aeeab2b36 h1:1euJ7mNHMI2MM
github.com/loft-sh/apiserver v0.0.0-20240607231110-634aeeab2b36/go.mod h1:XxI95azXiqXHiIDRiyDTpZcxdtXQlUqeU5VMMDz8INA=
github.com/loft-sh/jsonschema v0.0.0-20240411094214-6b88fd9d2a31 h1:fQOxqGdVGSkoaPe2H31eFmEC+0CzCXq7D5TqBJM0eXo=
github.com/loft-sh/jsonschema v0.0.0-20240411094214-6b88fd9d2a31/go.mod h1:ffZ5Km5SWWRAIN6wbDXItl95euhFz2uON45H2qjYt+0=
github.com/loft-sh/vcluster-config v0.0.0-20240716135058-8f0c5cc020dd h1:thFzgY7HZus0sLbbbX9U1CnDq+iCF8/R0/N/387OQVY=
github.com/loft-sh/vcluster-config v0.0.0-20240716135058-8f0c5cc020dd/go.mod h1:WOpmiPADZYvI3lzBd47KL/aTH4jSL8YQvI0kDy4YvFg=
github.com/loft-sh/vcluster-config v0.0.0-20240708084328-0260ef98d153 h1:w6qPVDYEgApfbK1lz5q6gkBnW970Z6yjE5c/XPYUYRA=
github.com/loft-sh/vcluster-config v0.0.0-20240708084328-0260ef98d153/go.mod h1:WOpmiPADZYvI3lzBd47KL/aTH4jSL8YQvI0kDy4YvFg=
github.com/mailru/easyjson v0.7.7 h1:UGYAvKxe3sBsEDzO8ZeWOSlIQfWFlxbzLZe7hwFURr0=
github.com/mailru/easyjson v0.7.7/go.mod h1:xzfreul335JAWq5oZzymOObrkdz5UnU4kGfJJLY9Nlc=
github.com/modern-go/concurrent v0.0.0-20180228061459-e0a39a4cb421/go.mod h1:6dJC0mAP4ikYIbvyc7fijjWJddQyLn8Ig3JB5CqoB9Q=
Expand Down
71 changes: 0 additions & 71 deletions hack/platform/partials/extconfig/config.go

This file was deleted.

15 changes: 0 additions & 15 deletions hack/platform/partials/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ import (
clusterv1 "github.com/loft-sh/agentapi/v4/pkg/apis/loft/cluster/v1"
managementv1 "github.com/loft-sh/api/v4/pkg/apis/management/v1"
storagev1 "github.com/loft-sh/api/v4/pkg/apis/storage/v1"
extconfig "github.com/loft-sh/vcluster-docs/hack/platform/partials/extconfig"
"github.com/loft-sh/vcluster-docs/hack/platform/util"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
)
Expand Down Expand Up @@ -894,18 +893,4 @@ spec:
},
Create: true,
})

util.DefaultRequire = false

paths := []string{
"external/platform/apiKey",
"external/platform/autoSleep",
"external/platform/autoDelete",
"external/platform",
"external",
}

for _, p := range paths {
util.GenerateFromPath(util.GenerateSchema(&extconfig.Config{}), util.BasePath+"/config", p)
}
}
12 changes: 0 additions & 12 deletions hack/platform/util/schema.go
Original file line number Diff line number Diff line change
Expand Up @@ -71,18 +71,6 @@ func generateSchema(configInstance interface{}) *jsonschema.Schema {
if commentMap == nil {
commentMap = map[string]string{}

runInDir("hack", func() {
localCommentsMap := map[string]string{}
err := jsonschema.ExtractGoComments("", "platform/partials/extconfig", localCommentsMap)
if err != nil {
panic(err)
}

for k, v := range localCommentsMap {
commentMap["github.com/loft-sh/vcluster-docs/hack/"+k] = v
}
})

runInDir("vendor", func() {
err := jsonschema.ExtractGoComments("", "github.com/loft-sh/vcluster-config/config", commentMap)
if err != nil {
Expand Down
Loading

0 comments on commit 3980560

Please sign in to comment.