diff --git a/.github/workflows/generate.yml b/.github/workflows/generate.yml new file mode 100644 index 0000000..1ce10d6 --- /dev/null +++ b/.github/workflows/generate.yml @@ -0,0 +1,30 @@ +name: Generate + +on: + push: + branches: [main] + pull_request: + +permissions: + contents: read + +jobs: + verify: + name: Verify Generated Code + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v6 + + - uses: actions/setup-go@v6 + with: + go-version-file: go.mod + + - name: Run generators + run: go run ./hack/generate.go + + - name: Check for uncommitted changes + run: | + if ! git diff --exit-code -- '*.go'; then + echo "::error::Generated code is out of date. Run 'go run ./hack/generate.go' and commit the changes." + exit 1 + fi diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index ce5cd35..d157796 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -11,8 +11,6 @@ jobs: name: Lint runs-on: ubuntu-latest steps: - - uses: jlumbroso/free-disk-space@v1.3.1 - - uses: actions/checkout@v6 - name: setup Go diff --git a/.github/workflows/workflow-approval.yml b/.github/workflows/workflow-approval.yml index 9fb5214..cd137e4 100644 --- a/.github/workflows/workflow-approval.yml +++ b/.github/workflows/workflow-approval.yml @@ -19,4 +19,4 @@ jobs: - uses: skevetter/automatic-approve-action@v2 with: token: ${{ steps.app-token.outputs.token }} - workflows: "commit.yml,lint.yml,pre-commit.yml" + workflows: "commit.yml,generate.yml,lint.yml,pre-commit.yml" diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..cb85861 --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +# Compiled binaries +generate diff --git a/.golangci.yaml b/.golangci.yaml index c993b15..c8431f6 100644 --- a/.golangci.yaml +++ b/.golangci.yaml @@ -15,6 +15,9 @@ linters: exclusions: paths: - example + rules: + - linters: [lll] + source: "// \\+(genclient:method|subresource:)" enable: - cyclop - decorder diff --git a/README.md b/README.md new file mode 100644 index 0000000..9a77222 --- /dev/null +++ b/README.md @@ -0,0 +1,62 @@ +# devsy-org/api + +API type definitions and generated clients for the Devsy platform. + +## Code Generation + +All generated code (`zz_generated.*`, `pkg/clientset/`, `pkg/listers/`, `pkg/informers/`, `pkg/openapi/`) is produced by `hack/generate.go`. + +### Prerequisites + +- Go 1.25+ +- [Task](https://taskfile.dev) (`go install github.com/go-task/task/v3/cmd/task@latest`) + +### Run all generators + +```sh +task generate +``` + +### Run individual generators + +```sh +task generate:register # API registration (zz_generated.api.register.go) +task generate:deepcopy # DeepCopy methods +task generate:defaults # Defaulter functions +task generate:conversion # Conversion functions +task generate:openapi # OpenAPI definitions +task generate:clients # Clientset, listers, informers +``` + +### Install tools only + +```sh +task generate:install +``` + +### Verify generation is up to date + +```sh +task verify +``` + +## Generator Architecture + +`hack/generate.go` is a Go program that orchestrates two categories of generators: + +1. **API Register Generator** — Uses `github.com/devsy-org/apiserver/pkg/generate` to scan all `+resource`-annotated types under `pkg/apis/...` and produces `zz_generated.api.register.go` files containing internal (hub) types, scheme registration, storage wiring, and registry interfaces. Includes a `GroupConverter` hook that deduplicates import aliases when multiple modules expose packages with the same trailing path segments. + +2. **k8s.io/code-generator tools** — Standard Kubernetes code generators invoked as subprocesses: + - `deepcopy-gen` — `DeepCopyInto` / `DeepCopyObject` methods + - `defaulter-gen` — `SetDefaults_*` functions + - `conversion-gen` — `Convert_*` functions between versioned and internal types + - `client-gen` — Typed clientset + - `lister-gen` — Listers for informer caches + - `informer-gen` — SharedInformerFactory and informers + - `openapi-gen` — OpenAPI v2 schema definitions (from `k8s.io/kube-openapi`) + +### Import Alias Fix + +The upstream register generator builds import aliases by joining the last two path segments of a Go package (e.g. `storage` + `v1` → `storagev1`). When two different modules expose a package with identical trailing segments — such as `github.com/devsy-org/agentapi/.../storage/v1` and `github.com/devsy-org/api/.../storage/v1` — it produces duplicate aliases. + +`hack/generate.go` fixes this via a `GroupConverter` callback that runs after type parsing. It detects duplicate aliases and rewrites the secondary one to include a distinguishing prefix (e.g. `agentstoragev1`), matching the convention already used in hand-written source files. diff --git a/Taskfile.yml b/Taskfile.yml new file mode 100644 index 0000000..5ccd984 --- /dev/null +++ b/Taskfile.yml @@ -0,0 +1,56 @@ +version: "3" + +vars: + GENERATE: go run ./hack/generate.go + +tasks: + generate: + desc: Run all code generators + cmds: + - "{{.GENERATE}} all" + + generate:install: + desc: Install code-generator tools + cmds: + - "{{.GENERATE}} install" + + generate:register: + desc: Generate API registration code (zz_generated.api.register.go) + cmds: + - "{{.GENERATE}} register" + + generate:deepcopy: + desc: Generate DeepCopy methods (zz_generated.deepcopy.go) + cmds: + - "{{.GENERATE}} deepcopy" + + generate:defaults: + desc: Generate Defaulter functions (zz_generated.defaults.go) + cmds: + - "{{.GENERATE}} defaults" + + generate:conversion: + desc: Generate Conversion functions (zz_generated.conversion.go) + cmds: + - "{{.GENERATE}} conversion" + + generate:openapi: + desc: Generate OpenAPI definitions (zz_generated.openapi.go) + cmds: + - "{{.GENERATE}} openapi" + + generate:clients: + desc: Generate clientset, listers, and informers + cmds: + - "{{.GENERATE}} clients" + + build: + desc: Build all packages + cmds: + - go build ./... + + verify: + desc: Run generate and verify no diff + cmds: + - task: generate + - git diff --exit-code -- '*.go' diff --git a/go.mod b/go.mod index dff41fb..53ab4fa 100644 --- a/go.mod +++ b/go.mod @@ -5,14 +5,16 @@ go 1.25.0 require ( github.com/devsy-org/admin-apis v1.0.0 github.com/devsy-org/agentapi v1.0.1 - github.com/devsy-org/apiserver v1.0.0 + github.com/devsy-org/apiserver v1.2.1-0.20260418221832-0adfff4957ac github.com/ghodss/yaml v1.0.0 + github.com/urfave/cli/v3 v3.8.0 google.golang.org/grpc v1.78.0 google.golang.org/protobuf v1.36.11 k8s.io/api v0.35.3 k8s.io/apimachinery v0.35.3 k8s.io/apiserver v0.35.0 k8s.io/client-go v0.35.3 + k8s.io/code-generator v0.35.3 k8s.io/klog/v2 v2.130.1 k8s.io/kube-openapi v0.0.0-20260330154417-16be699c7b31 k8s.io/metrics v0.33.1 @@ -112,6 +114,7 @@ require ( gopkg.in/yaml.v2 v2.4.0 // indirect k8s.io/apiextensions-apiserver v0.35.0 // indirect k8s.io/component-base v0.35.3 // indirect + k8s.io/gengo/v2 v2.0.0-20250922181213-ec3ebc5fd46b // indirect k8s.io/utils v0.0.0-20251002143259-bc988d571ff4 // indirect sigs.k8s.io/apiserver-network-proxy/konnectivity-client v0.31.2 // indirect sigs.k8s.io/json v0.0.0-20250730193827-2d320260d730 // indirect diff --git a/go.sum b/go.sum index 26bc09e..62d5565 100644 --- a/go.sum +++ b/go.sum @@ -27,8 +27,8 @@ github.com/devsy-org/admin-apis v1.0.0 h1:PXEIyhecYMBxXF1Si6Q35m4aMmzybQ6WffePar github.com/devsy-org/admin-apis v1.0.0/go.mod h1:N2PrbYDtigY4By1yE1c6gfsWE5bIb6zwY9rUGK/9RWI= github.com/devsy-org/agentapi v1.0.1 h1:qdSs162AWvtGwsXrYcM0hJqQ79M0t/HTrZ+/KFeTxCs= github.com/devsy-org/agentapi v1.0.1/go.mod h1:VmUPw3OdIJ27ONFInfUrHliTyokhQtGmoiGWtmBzDrU= -github.com/devsy-org/apiserver v1.0.0 h1:HBOwk6DeZKQzuDzUTnQ03YkOewYiBfE9r7qn/AcyRU4= -github.com/devsy-org/apiserver v1.0.0/go.mod h1:2jKuqy8XdH/g4bIjmkj3efQgshN/NjMzm17SkvvSR88= +github.com/devsy-org/apiserver v1.2.1-0.20260418221832-0adfff4957ac h1:aI0Rn483d+sDEx4ZPxOlC1FocG4cb9hIXhQwDOzJJPU= +github.com/devsy-org/apiserver v1.2.1-0.20260418221832-0adfff4957ac/go.mod h1:2jKuqy8XdH/g4bIjmkj3efQgshN/NjMzm17SkvvSR88= github.com/dustin/go-humanize v1.0.1 h1:GzkhY7T5VNhEkwH0PVJgjz+fX1rhBrR7pRT3mDkpeCY= github.com/dustin/go-humanize v1.0.1/go.mod h1:Mu1zIs6XwVuF/gI1OepvI0qD18qycQx+mFykh5fBlto= github.com/emicklei/go-restful/v3 v3.13.0 h1:C4Bl2xDndpU6nJ4bc1jXd+uTmYPVUwkD6bFY/oTyCes= @@ -190,6 +190,8 @@ github.com/stretchr/testify v1.11.1 h1:7s2iGBzp5EwR7/aIZr8ao5+dra3wiQyKjjFuvgVKu github.com/stretchr/testify v1.11.1/go.mod h1:wZwfW3scLgRK+23gO65QZefKpKQRnfz6sD981Nm4B6U= github.com/tmc/grpc-websocket-proxy v0.0.0-20220101234140-673ab2c3ae75 h1:6fotK7otjonDflCTK0BCfls4SPy3NcCVb5dqqmbRknE= github.com/tmc/grpc-websocket-proxy v0.0.0-20220101234140-673ab2c3ae75/go.mod h1:KO6IkyS8Y3j8OdNO85qEYBsRPuteD+YciPomcXdrMnk= +github.com/urfave/cli/v3 v3.8.0 h1:XqKPrm0q4P0q5JpoclYoCAv0/MIvH/jZ2umzuf8pNTI= +github.com/urfave/cli/v3 v3.8.0/go.mod h1:ysVLtOEmg2tOy6PknnYVhDoouyC/6N42TMeoMzskhso= github.com/x448/float16 v0.8.4 h1:qLwI1I70+NjRFUR3zs1JPUCgaCXSh3SW62uAKT1mSBM= github.com/x448/float16 v0.8.4/go.mod h1:14CWIYCyZA/cWjXOioeEpHeN/83MdbZDRQHoFcYsOfg= github.com/xiang90/probing v0.0.0-20221125231312-a49e3df8f510 h1:S2dVYn90KE98chqDkyE9Z4N61UnQd+KOfgp5Iu53llk= @@ -285,8 +287,8 @@ golang.org/x/tools v0.0.0-20200619180055-7c47624df98f/go.mod h1:EkVYQZoAsY45+roY golang.org/x/tools v0.0.0-20210106214847-113979e3529a/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA= golang.org/x/tools v0.40.0 h1:yLkxfA+Qnul4cs9QA3KnlFu0lVmd8JJfoq+E41uSutA= golang.org/x/tools v0.40.0/go.mod h1:Ik/tzLRlbscWpqqMRjyWYDisX8bG13FrdXp3o4Sr9lc= -golang.org/x/tools/go/expect v0.1.0-deprecated h1:jY2C5HGYR5lqex3gEniOQL0r7Dq5+VGVgY1nudX5lXY= -golang.org/x/tools/go/expect v0.1.0-deprecated/go.mod h1:eihoPOH+FgIqa3FpoTwguz/bVUSGBlGQU67vpBeOrBY= +golang.org/x/tools/go/expect v0.1.1-deprecated h1:jpBZDwmgPhXsKZC6WhL20P4b/wmnpsEAGHaNy0n/rJM= +golang.org/x/tools/go/expect v0.1.1-deprecated/go.mod h1:eihoPOH+FgIqa3FpoTwguz/bVUSGBlGQU67vpBeOrBY= golang.org/x/tools/go/packages/packagestest v0.1.1-deprecated h1:1h2MnaIAIXISqTFKdENegdpAgUXz6NrPEsbIeWaBRvM= golang.org/x/tools/go/packages/packagestest v0.1.1-deprecated/go.mod h1:RVAQXBGNv1ib0J382/DPCRS/BPnsGebyM1Gj5VSDpG8= golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= @@ -331,8 +333,12 @@ k8s.io/apiserver v0.35.0 h1:CUGo5o+7hW9GcAEF3x3usT3fX4f9r8xmgQeCBDaOgX4= k8s.io/apiserver v0.35.0/go.mod h1:QUy1U4+PrzbJaM3XGu2tQ7U9A4udRRo5cyxkFX0GEds= k8s.io/client-go v0.35.3 h1:s1lZbpN4uI6IxeTM2cpdtrwHcSOBML1ODNTCCfsP1pg= k8s.io/client-go v0.35.3/go.mod h1:RzoXkc0mzpWIDvBrRnD+VlfXP+lRzqQjCmKtiwZ8Q9c= +k8s.io/code-generator v0.35.3 h1:NDGCLkEm6Ho65wTdSe2EgErmmtsrezOPwwOchlNc6FQ= +k8s.io/code-generator v0.35.3/go.mod h1:LAVriRGXQusHQ0Ns64SE1ublSswm1KrK7cXn0GuQETg= k8s.io/component-base v0.35.3 h1:mbKbzoIMy7JDWS/wqZobYW1JDVRn/RKRaoMQHP9c4P0= k8s.io/component-base v0.35.3/go.mod h1:IZ8LEG30kPN4Et5NeC7vjNv5aU73ku5MS15iZyvyMYk= +k8s.io/gengo/v2 v2.0.0-20250922181213-ec3ebc5fd46b h1:gMplByicHV/TJBizHd9aVEsTYoJBnnUAT5MHlTkbjhQ= +k8s.io/gengo/v2 v2.0.0-20250922181213-ec3ebc5fd46b/go.mod h1:CgujABENc3KuTrcsdpGmrrASjtQsWCT7R99mEV4U/fM= k8s.io/klog/v2 v2.130.1 h1:n9Xl7H1Xvksem4KFG4PYbdQCQxqc/tTUyrgXaOhHSzk= k8s.io/klog/v2 v2.130.1/go.mod h1:3Jpz1GvMt720eyJH1ckRHK1EDfpxISzJ7I9OYgaDtPE= k8s.io/kube-openapi v0.0.0-20260330154417-16be699c7b31 h1:V+sn9a/1fEYDGwnllCmqXBk8x7obZ+hl869Q3Abumkg= diff --git a/hack/boilerplate.go.txt b/hack/boilerplate.go.txt new file mode 100644 index 0000000..e69de29 diff --git a/hack/generate.go b/hack/generate.go new file mode 100644 index 0000000..d3a8379 --- /dev/null +++ b/hack/generate.go @@ -0,0 +1,318 @@ +// hack/generate.go orchestrates all code generation for the devsy-org/api module. +// +// Usage: +// +// go run ./hack/generate.go # Run all generators +// go run ./hack/generate.go register # Run only API register generation +// go run ./hack/generate.go --help # Show all commands +package main + +import ( + "context" + "os" + "os/exec" + "path/filepath" + "runtime" + "strings" + + "github.com/devsy-org/apiserver/pkg/generate" + "github.com/urfave/cli/v3" + "k8s.io/klog/v2" +) + +const module = "github.com/devsy-org/api" + +var ( + boilerplate = filepath.Join(repoRoot(), "hack", "boilerplate.go.txt") + + apiPackages = []string{ + module + "/pkg/apis/audit/v1", + module + "/pkg/apis/management", + module + "/pkg/apis/management/v1", + module + "/pkg/apis/storage/v1", + module + "/pkg/apis/ui", + module + "/pkg/apis/ui/v1", + module + "/pkg/apis/virtualcluster", + module + "/pkg/apis/virtualcluster/v1", + } + + clientInputDirs = "management/v1,storage/v1,virtualcluster/v1" + + // versionedPackages are the versioned API packages (no hub packages). + // Used by lister-gen and informer-gen which require versioned input only. + versionedPackages = []string{ + module + "/pkg/apis/audit/v1", + module + "/pkg/apis/management/v1", + module + "/pkg/apis/storage/v1", + module + "/pkg/apis/ui/v1", + module + "/pkg/apis/virtualcluster/v1", + } + + conversionPackages = []string{ + module + "/pkg/apis/management/v1", + module + "/pkg/apis/virtualcluster/v1", + } + + openapiExtra = []string{ + "k8s.io/apimachinery/pkg/apis/meta/v1", + "k8s.io/apimachinery/pkg/api/resource", + "k8s.io/apimachinery/pkg/version", + "k8s.io/apimachinery/pkg/runtime", + "k8s.io/apimachinery/pkg/util/intstr", + "k8s.io/api/core/v1", + "k8s.io/api/rbac/v1", + "k8s.io/api/apps/v1", + "k8s.io/api/networking/v1", + "k8s.io/api/storage/v1", + "k8s.io/api/batch/v1", + } +) + +func repoRoot() string { + _, filename, _, _ := runtime.Caller(0) + return filepath.Dir(filepath.Dir(filename)) +} + +func main() { + if len(os.Getenv("GOMAXPROCS")) == 0 { + runtime.GOMAXPROCS(runtime.NumCPU()) + } + if err := os.Chdir(repoRoot()); err != nil { + klog.Fatalf("chdir failed: %v", err) + } + + app := &cli.Command{ + Name: "generate", + Usage: "Code generation for devsy-org/api", + Action: func(ctx context.Context, cmd *cli.Command) error { + return runAll() + }, + Commands: buildCommands(), + } + + if err := app.Run(context.Background(), os.Args); err != nil { + klog.Fatalf("Error: %v", err) + } +} + +func buildCommands() []*cli.Command { //nolint:funlen // declarative command list + return []*cli.Command{ + { + Name: "all", + Usage: "Run all generators (default)", + Action: func(ctx context.Context, cmd *cli.Command) error { + return runAll() + }, + }, + { + Name: "install", + Usage: "Install code-generator tool binaries", + Action: func(ctx context.Context, cmd *cli.Command) error { + installTools() + return nil + }, + }, + { + Name: "register", + Usage: "Generate API registration (zz_generated.api.register.go)", + Action: func(ctx context.Context, cmd *cli.Command) error { + runRegister() + return nil + }, + }, + { + Name: "deepcopy", + Usage: "Generate DeepCopy methods (zz_generated.deepcopy.go)", + Action: func(ctx context.Context, cmd *cli.Command) error { + runGenerator( + "deepcopy-gen", + "--go-header-file", + boilerplate, + "--output-file", + "zz_generated.deepcopy.go", + ) + return nil + }, + }, + { + Name: "defaults", + Usage: "Generate Defaulter functions (zz_generated.defaults.go)", + Action: func(ctx context.Context, cmd *cli.Command) error { + runGenerator( + "defaulter-gen", + "--go-header-file", + boilerplate, + "--output-file", + "zz_generated.defaults.go", + ) + return nil + }, + }, + { + Name: "conversion", + Usage: "Generate Conversion functions (zz_generated.conversion.go)", + Action: func(ctx context.Context, cmd *cli.Command) error { + runConversion() + return nil + }, + }, + { + Name: "openapi", + Usage: "Generate OpenAPI definitions (zz_generated.openapi.go)", + Action: func(ctx context.Context, cmd *cli.Command) error { + runOpenAPI() + return nil + }, + }, + { + Name: "clients", + Usage: "Generate clientset, listers, and informers", + Action: func(ctx context.Context, cmd *cli.Command) error { + runClients() + return nil + }, + }, + } +} + +func runAll() error { + installTools() + runRegister() + runGenerator( + "deepcopy-gen", + "--go-header-file", + boilerplate, + "--output-file", + "zz_generated.deepcopy.go", + ) + runGenerator( + "defaulter-gen", + "--go-header-file", + boilerplate, + "--output-file", + "zz_generated.defaults.go", + ) + runConversion() + runOpenAPI() + runClients() + klog.Info("==> Done.") + return nil +} + +// installTools installs the k8s.io/code-generator binaries. +func installTools() { + klog.Info("==> Installing code-generator tools...") + tools := []string{ + "k8s.io/code-generator/cmd/deepcopy-gen", + "k8s.io/code-generator/cmd/defaulter-gen", + "k8s.io/code-generator/cmd/conversion-gen", + "k8s.io/code-generator/cmd/client-gen", + "k8s.io/code-generator/cmd/lister-gen", + "k8s.io/code-generator/cmd/informer-gen", + "k8s.io/kube-openapi/cmd/openapi-gen", + } + for _, tool := range tools { + run("go", "install", tool) + } +} + +func runRegister() { + klog.Info("==> Generating API register...") + + g := generate.Gen{} + if err := g.Execute("zz_generated.api.register.go", module+"/pkg/apis/..."); err != nil { + klog.Fatalf("register generation failed: %v", err) + } +} + +func runGenerator(tool string, baseArgs ...string) { + klog.Infof("==> Generating %s...", tool) + args := append([]string{}, baseArgs...) + args = append(args, apiPackages...) + run(tool, args...) +} + +func runConversion() { + klog.Info("==> Generating conversion...") + args := []string{ + "--go-header-file", boilerplate, + "--output-file", "zz_generated.conversion.go", + } + args = append(args, conversionPackages...) + run("conversion-gen", args...) +} + +func runOpenAPI() { + klog.Info("==> Generating openapi...") + allPkgs := append(append([]string{}, apiPackages...), openapiExtra...) + args := []string{ + "--go-header-file", boilerplate, + "--output-pkg", module + "/pkg/openapi", + "--output-file", "zz_generated.openapi.go", + "--output-dir", "pkg/openapi", + "--report-filename", "/dev/null", + } + args = append(args, allPkgs...) + run("openapi-gen", args...) +} + +func runClients() { + klog.Info("==> Generating clientset...") + run("client-gen", + "--go-header-file", boilerplate, + "--input-base", module+"/pkg/apis", + "--input", clientInputDirs, + "--output-pkg", module+"/pkg/clientset", + "--clientset-name", "versioned", + "--output-dir", "pkg/clientset", + ) + + klog.Info("==> Generating listers...") + args := []string{ + "--go-header-file", boilerplate, + "--output-pkg", module + "/pkg/listers", + "--output-dir", "pkg/listers", + } + args = append(args, versionedPackages...) + run("lister-gen", args...) + + klog.Info("==> Generating informers...") + args = []string{ + "--go-header-file", boilerplate, + "--output-pkg", module + "/pkg/informers", + "--output-dir", "pkg/informers", + "--versioned-clientset-package", module + "/pkg/clientset/versioned", + "--listers-package", module + "/pkg/listers", + } + args = append(args, versionedPackages...) + run("informer-gen", args...) +} + +// gobin returns the GOBIN directory (where `go install` places binaries). +func gobin() string { + if b := os.Getenv("GOBIN"); b != "" { + return b + } + out, _ := exec.Command("go", "env", "GOPATH").Output() + return filepath.Join(strings.TrimSpace(string(out)), "bin") +} + +// run executes a command, forwarding stdout/stderr. Exits on failure. +// It resolves the executable from GOBIN first, then falls back to PATH. +func run(name string, args ...string) { + bin := name + if p := filepath.Join(gobin(), name); fileExists(p) { + bin = p + } + cmd := exec.Command(bin, args...) //nolint:gosec + cmd.Stdout = os.Stdout + cmd.Stderr = os.Stderr + if err := cmd.Run(); err != nil { + klog.Fatalf("%s failed: %v", name, err) + } +} + +func fileExists(path string) bool { + _, err := os.Stat(path) + return err == nil +} diff --git a/hack/tools/tools.go b/hack/tools/tools.go new file mode 100644 index 0000000..90417ca --- /dev/null +++ b/hack/tools/tools.go @@ -0,0 +1,13 @@ +//go:build tools + +package tools + +import ( + _ "k8s.io/code-generator/cmd/client-gen" + _ "k8s.io/code-generator/cmd/conversion-gen" + _ "k8s.io/code-generator/cmd/deepcopy-gen" + _ "k8s.io/code-generator/cmd/defaulter-gen" + _ "k8s.io/code-generator/cmd/informer-gen" + _ "k8s.io/code-generator/cmd/lister-gen" + _ "k8s.io/kube-openapi/cmd/openapi-gen" +) diff --git a/pkg/apis/management/install/install.go b/pkg/apis/management/install/install.go index 3c68b05..e8ae059 100644 --- a/pkg/apis/management/install/install.go +++ b/pkg/apis/management/install/install.go @@ -27,9 +27,9 @@ func addKnownOptionsTypes(scheme *runtime.Scheme) error { &management.UserSpacesOptions{}, &management.UserVirtualClustersOptions{}, &management.UserQuotasOptions{}, - &management.DevPodWorkspaceInstanceLogOptions{}, - &management.DevPodWorkspaceInstanceTasksOptions{}, - &management.DevPodWorkspaceInstanceDownloadOptions{}, + &management.DevsyWorkspaceInstanceLogOptions{}, + &management.DevsyWorkspaceInstanceTasksOptions{}, + &management.DevsyWorkspaceInstanceDownloadOptions{}, ) return nil } diff --git a/pkg/apis/management/install/zz_generated.api.register.go b/pkg/apis/management/install/zz_generated.api.register.go index a15a248..c869eeb 100644 --- a/pkg/apis/management/install/zz_generated.api.register.go +++ b/pkg/apis/management/install/zz_generated.api.register.go @@ -1,4 +1,4 @@ -// Code generated by generator. DO NOT EDIT. +// Code generated by generate. DO NOT EDIT. package install @@ -51,21 +51,23 @@ func addKnownTypes(scheme *runtime.Scheme) error { &management.ConvertVirtualClusterConfigList{}, &management.DatabaseConnector{}, &management.DatabaseConnectorList{}, - &management.DevPodEnvironmentTemplate{}, - &management.DevPodEnvironmentTemplateList{}, - &management.DevPodWorkspaceInstance{}, - &management.DevPodWorkspaceInstanceList{}, - &management.DevPodWorkspaceInstanceCancel{}, - &management.DevPodWorkspaceInstanceDownload{}, - &management.DevPodWorkspaceInstanceLog{}, - &management.DevPodWorkspaceInstanceStop{}, - &management.DevPodWorkspaceInstanceTasks{}, - &management.DevPodWorkspaceInstanceTroubleshoot{}, - &management.DevPodWorkspaceInstanceUp{}, - &management.DevPodWorkspacePreset{}, - &management.DevPodWorkspacePresetList{}, - &management.DevPodWorkspaceTemplate{}, - &management.DevPodWorkspaceTemplateList{}, + &management.DevsyEnvironmentTemplate{}, + &management.DevsyEnvironmentTemplateList{}, + &management.DevsyUpgrade{}, + &management.DevsyUpgradeList{}, + &management.DevsyWorkspaceInstance{}, + &management.DevsyWorkspaceInstanceList{}, + &management.DevsyWorkspaceInstanceCancel{}, + &management.DevsyWorkspaceInstanceDownload{}, + &management.DevsyWorkspaceInstanceLog{}, + &management.DevsyWorkspaceInstanceStop{}, + &management.DevsyWorkspaceInstanceTasks{}, + &management.DevsyWorkspaceInstanceTroubleshoot{}, + &management.DevsyWorkspaceInstanceUp{}, + &management.DevsyWorkspacePreset{}, + &management.DevsyWorkspacePresetList{}, + &management.DevsyWorkspaceTemplate{}, + &management.DevsyWorkspaceTemplateList{}, &management.DirectClusterEndpointToken{}, &management.DirectClusterEndpointTokenList{}, &management.Event{}, @@ -81,8 +83,6 @@ func addKnownTypes(scheme *runtime.Scheme) error { &management.LicenseRequest{}, &management.LicenseToken{}, &management.LicenseTokenList{}, - &management.DevsyUpgrade{}, - &management.DevsyUpgradeList{}, &management.NodeClaim{}, &management.NodeClaimList{}, &management.NodeEnvironment{}, diff --git a/pkg/apis/management/types.go b/pkg/apis/management/types.go index 6167c8f..75ddfe9 100644 --- a/pkg/apis/management/types.go +++ b/pkg/apis/management/types.go @@ -131,7 +131,7 @@ type UserQuotasOptions struct { // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object -type DevPodWorkspaceInstanceLogOptions struct { +type DevsyWorkspaceInstanceLogOptions struct { metav1.TypeMeta `json:",inline"` // TaskID is the id of the task that is running @@ -145,7 +145,7 @@ type DevPodWorkspaceInstanceLogOptions struct { // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object -type DevPodWorkspaceInstanceTasksOptions struct { +type DevsyWorkspaceInstanceTasksOptions struct { metav1.TypeMeta `json:",inline"` // TaskID is the id of the task that is running @@ -155,7 +155,7 @@ type DevPodWorkspaceInstanceTasksOptions struct { // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object -type DevPodWorkspaceInstanceDownloadOptions struct { +type DevsyWorkspaceInstanceDownloadOptions struct { metav1.TypeMeta `json:",inline"` // Path is the path to download diff --git a/pkg/apis/management/v1/agentauditevent_types.go b/pkg/apis/management/v1/agentauditevent_types.go index 2b1364b..c09e01f 100644 --- a/pkg/apis/management/v1/agentauditevent_types.go +++ b/pkg/apis/management/v1/agentauditevent_types.go @@ -20,12 +20,12 @@ type AgentAuditEvent struct { Status AgentAuditEventStatus `json:"status,omitempty"` } -// AgentAuditEventSpec holds the specification +// AgentAuditEventSpec holds the specification. type AgentAuditEventSpec struct { // Events are the events the agent has recorded // +optional Events []*auditv1.Event `json:"events,omitempty"` } -// AgentAuditEventStatus holds the status +// AgentAuditEventStatus holds the status. type AgentAuditEventStatus struct{} diff --git a/pkg/apis/management/v1/app_types.go b/pkg/apis/management/v1/app_types.go index a150003..8d23369 100644 --- a/pkg/apis/management/v1/app_types.go +++ b/pkg/apis/management/v1/app_types.go @@ -7,7 +7,7 @@ import ( // +genclient // +genclient:nonNamespaced -// +genclient:method=GetCredentials,verb=get,subresource=credentials,result=github.com/devsy-org/api/pkg/apis/management/v1.AppCredentials //nolint:lll +// +genclient:method=GetCredentials,verb=get,subresource=credentials,result=github.com/devsy-org/api/pkg/apis/management/v1.AppCredentials // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object // App holds the information @@ -22,12 +22,12 @@ type App struct { Status AppStatus `json:"status,omitempty"` } -// AppSpec holds the specification +// AppSpec holds the specification. type AppSpec struct { storagev1.AppSpec `json:",inline"` } -// AppStatus holds the status +// AppStatus holds the status. type AppStatus struct { storagev1.AppStatus `json:",inline"` } diff --git a/pkg/apis/management/v1/backup_types.go b/pkg/apis/management/v1/backup_types.go index 1666c1c..c5f89ad 100644 --- a/pkg/apis/management/v1/backup_types.go +++ b/pkg/apis/management/v1/backup_types.go @@ -23,7 +23,7 @@ type Backup struct { // BackupSpec holds the spec type BackupSpec struct{} -// BackupStatus holds the status +// BackupStatus holds the status. type BackupStatus struct { RawBackup string `json:"rawBackup,omitempty"` } diff --git a/pkg/apis/management/v1/cluster_accesskey_types.go b/pkg/apis/management/v1/cluster_accesskey_types.go index 8f3ef5d..4069467 100644 --- a/pkg/apis/management/v1/cluster_accesskey_types.go +++ b/pkg/apis/management/v1/cluster_accesskey_types.go @@ -16,9 +16,9 @@ type ClusterAccessKey struct { // +optional AccessKey string `json:"accessKey,omitempty"` - // LoftHost is the devsy host used by the agent + // DevsyHost is the devsy host used by the agent // +optional - LoftHost string `json:"loftHost,omitempty"` + DevsyHost string `json:"loftHost,omitempty"` // Insecure signals if the devsy host is insecure // +optional diff --git a/pkg/apis/management/v1/cluster_agentconfig_types.go b/pkg/apis/management/v1/cluster_agentconfig_types.go index 3e799a0..569cb58 100644 --- a/pkg/apis/management/v1/cluster_agentconfig_types.go +++ b/pkg/apis/management/v1/cluster_agentconfig_types.go @@ -33,17 +33,17 @@ type ClusterAgentConfigCommon struct { // +optional TokenCaCert []byte `json:"tokenCaCert,omitempty"` - // LoftHost defines the host for the agent's devsy instance + // DevsyHost defines the host for the agent's devsy instance // +optional - LoftHost string `json:"loftHost,omitempty"` + DevsyHost string `json:"loftHost,omitempty"` // ProjectNamespacePrefix holds the prefix for devsy project namespaces // +optional ProjectNamespacePrefix string `json:"projectNamespacePrefix,omitempty"` - // LoftInstanceID defines the instance id from the devsy instance + // DevsyInstanceID defines the instance id from the devsy instance // +optional - LoftInstanceID string `json:"loftInstanceID,omitempty"` + DevsyInstanceID string `json:"loftInstanceID,omitempty"` // AnalyticsSpec holds info needed for the agent to send analytics data to the analytics backend. AnalyticsSpec AgentAnalyticsSpec `json:"analyticsSpec"` diff --git a/pkg/apis/management/v1/cluster_types.go b/pkg/apis/management/v1/cluster_types.go index 2165a74..e1a6d91 100644 --- a/pkg/apis/management/v1/cluster_types.go +++ b/pkg/apis/management/v1/cluster_types.go @@ -8,13 +8,13 @@ import ( // +genclient // +genclient:nonNamespaced -// +genclient:method=ListAccess,verb=get,subresource=memberaccess,result=github.com/devsy-org/api/pkg/apis/management/v1.ClusterMemberAccess //nolint:lll -// +genclient:method=ListMembers,verb=get,subresource=members,result=github.com/devsy-org/api/pkg/apis/management/v1.ClusterMembers //nolint:lll -// +genclient:method=GetAgentConfig,verb=get,subresource=agentconfig,result=github.com/devsy-org/api/pkg/apis/management/v1.ClusterAgentConfig //nolint:lll -// +genclient:method=GetAccessKey,verb=get,subresource=accesskey,result=github.com/devsy-org/api/pkg/apis/management/v1.ClusterAccessKey //nolint:lll +// +genclient:method=ListAccess,verb=get,subresource=memberaccess,result=github.com/devsy-org/api/pkg/apis/management/v1.ClusterMemberAccess +// +genclient:method=ListMembers,verb=get,subresource=members,result=github.com/devsy-org/api/pkg/apis/management/v1.ClusterMembers +// +genclient:method=GetAgentConfig,verb=get,subresource=agentconfig,result=github.com/devsy-org/api/pkg/apis/management/v1.ClusterAgentConfig +// +genclient:method=GetAccessKey,verb=get,subresource=accesskey,result=github.com/devsy-org/api/pkg/apis/management/v1.ClusterAccessKey // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object -// Cluster holds the cluster information +// Cluster holds the cluster information. // +k8s:openapi-gen=true // +resource:path=clusters,rest=ClusterREST,statusRest=ClusterStatusREST // +subresource:request=ClusterMemberAccess,path=memberaccess,kind=ClusterMemberAccess,rest=ClusterMemberAccessREST @@ -32,12 +32,12 @@ type Cluster struct { Status ClusterStatus `json:"status,omitempty"` } -// ClusterSpec holds the specification +// ClusterSpec holds the specification. type ClusterSpec struct { storagev1.ClusterSpec `json:",inline"` } -// ClusterStatus holds the status +// ClusterStatus holds the status. type ClusterStatus struct { storagev1.ClusterStatus `json:",inline"` diff --git a/pkg/apis/management/v1/clusteraccess_types.go b/pkg/apis/management/v1/clusteraccess_types.go index 9d70e32..aa727d7 100644 --- a/pkg/apis/management/v1/clusteraccess_types.go +++ b/pkg/apis/management/v1/clusteraccess_types.go @@ -20,12 +20,12 @@ type ClusterAccess struct { Status ClusterAccessStatus `json:"status,omitempty"` } -// ClusterAccessSpec holds the specification +// ClusterAccessSpec holds the specification. type ClusterAccessSpec struct { storagev1.ClusterAccessSpec `json:",inline"` } -// ClusterAccessStatus holds the status +// ClusterAccessStatus holds the status. type ClusterAccessStatus struct { storagev1.ClusterAccessStatus `json:",inline"` diff --git a/pkg/apis/management/v1/clusterroletemplate_types.go b/pkg/apis/management/v1/clusterroletemplate_types.go index 4d9e5f3..31a4b9b 100644 --- a/pkg/apis/management/v1/clusterroletemplate_types.go +++ b/pkg/apis/management/v1/clusterroletemplate_types.go @@ -20,12 +20,12 @@ type ClusterRoleTemplate struct { Status ClusterRoleTemplateStatus `json:"status,omitempty"` } -// ClusterRoleTemplateSpec holds the specification +// ClusterRoleTemplateSpec holds the specification. type ClusterRoleTemplateSpec struct { storagev1.ClusterRoleTemplateSpec `json:",inline"` } -// ClusterRoleTemplateStatus holds the status +// ClusterRoleTemplateStatus holds the status. type ClusterRoleTemplateStatus struct { storagev1.ClusterRoleTemplateStatus `json:",inline"` diff --git a/pkg/apis/management/v1/config_types.go b/pkg/apis/management/v1/config_types.go index 24c586a..626164c 100644 --- a/pkg/apis/management/v1/config_types.go +++ b/pkg/apis/management/v1/config_types.go @@ -12,7 +12,7 @@ import ( // +genclient:nonNamespaced // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object -// Config holds the devsy configuration +// Config holds the devsy configuration. // +k8s:openapi-gen=true // +resource:path=configs,rest=ConfigREST type Config struct { @@ -23,9 +23,9 @@ type Config struct { Status ConfigStatus `json:"status,omitempty"` } -// ConfigSpec holds the specification +// ConfigSpec holds the specification. type ConfigSpec struct { - // Raw holds the raw config + // Raw holds the raw config. // +optional Raw []byte `json:"raw,omitempty"` } @@ -36,7 +36,9 @@ type ConfigStatus struct { // +optional Authentication Authentication `json:"auth,omitempty"` - // DEPRECATED: Configure the OIDC clients using either the OIDC Client UI or a secret. By default, vCluster Platform as an OIDC Provider is enabled but does not function without OIDC clients. + // Deprecated: Configure the OIDC clients using either the OIDC Client UI + // or a secret. By default, Devsy Platform as an OIDC Provider is enabled + // but does not function without OIDC clients. // +optional OIDC *OIDC `json:"oidc,omitempty"` @@ -48,17 +50,18 @@ type ConfigStatus struct { // +optional Audit *Audit `json:"audit,omitempty"` - // LoftHost holds the domain where the devsy instance is hosted. This should not include https or http. E.g. devsy.my-domain.com + // DevsyHost holds the domain where the devsy instance is hosted. + // This should not include https or http. E.g. devsy.my-domain.com // +optional - LoftHost string `json:"loftHost,omitempty"` + DevsyHost string `json:"loftHost,omitempty"` // ProjectNamespacePrefix holds the prefix for devsy project namespaces. Omitted defaults to "p-" // +optional ProjectNamespacePrefix *string `json:"projectNamespacePrefix,omitempty"` - // DevPodSubDomain holds a subdomain in the following form *.workspace.my-domain.com + // DevsySubDomain holds a subdomain in the following form *.workspace.my-domain.com // +optional - DevPodSubDomain string `json:"devPodSubDomain,omitempty"` + DevsySubDomain string `json:"devPodSubDomain,omitempty"` // UISettings holds the settings for modifying the Devsy user interface // +optional @@ -663,9 +666,9 @@ type AuthenticationOIDC struct { // +optional PreferredUsernameClaim string `json:"preferredUsername,omitempty"` - // LoftUsernameClaim is the JWT field to use as the user's username. + // DevsyUsernameClaim is the JWT field to use as the user's username. // +optional - LoftUsernameClaim string `json:"loftUsernameClaim,omitempty"` + DevsyUsernameClaim string `json:"loftUsernameClaim,omitempty"` // UsernameClaim is the JWT field to use as the user's id. // +optional diff --git a/pkg/apis/management/v1/database_connector_types.go b/pkg/apis/management/v1/database_connector_types.go index 84fd4d7..45c6392 100644 --- a/pkg/apis/management/v1/database_connector_types.go +++ b/pkg/apis/management/v1/database_connector_types.go @@ -20,12 +20,12 @@ type DatabaseConnector struct { Status DatabaseConnectorStatus `json:"status,omitempty"` } -// DatabaseConnectorSpec holds the specification +// DatabaseConnectorSpec holds the specification. type DatabaseConnectorSpec struct { // The client id of the client Type string `json:"type,omitempty"` DisplayName string `json:"displayName,omitempty"` } -// DatabaseConnectorStatus holds the status +// DatabaseConnectorStatus holds the status. type DatabaseConnectorStatus struct{} diff --git a/pkg/apis/management/v1/devpodenvironmenttemplate_types.go b/pkg/apis/management/v1/devpodenvironmenttemplate_types.go deleted file mode 100644 index 45a35e2..0000000 --- a/pkg/apis/management/v1/devpodenvironmenttemplate_types.go +++ /dev/null @@ -1,56 +0,0 @@ -package v1 - -import ( - storagev1 "github.com/devsy-org/api/pkg/apis/storage/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -// +genclient -// +genclient:nonNamespaced -// +genclient:noStatus -// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object - -// DevPodEnvironmentTemplate holds the DevPodEnvironmentTemplate information -// +k8s:openapi-gen=true -// +resource:path=devpodenvironmenttemplates,rest=DevPodEnvironmentTemplateREST -type DevPodEnvironmentTemplate struct { - metav1.TypeMeta `json:",inline"` - metav1.ObjectMeta `json:"metadata,omitempty"` - - Spec DevPodEnvironmentTemplateSpec `json:"spec,omitempty"` - Status DevPodEnvironmentTemplateStatus `json:"status,omitempty"` -} - -// DevPodEnvironmentTemplateSpec holds the specification -type DevPodEnvironmentTemplateSpec struct { - storagev1.DevPodEnvironmentTemplateSpec `json:",inline"` -} - -// DevPodEnvironmentTemplateStatus holds the status -type DevPodEnvironmentTemplateStatus struct{} - -func (a *DevPodEnvironmentTemplate) GetVersions() []storagev1.VersionAccessor { - var retVersions []storagev1.VersionAccessor - for _, v := range a.Spec.Versions { - b := v - retVersions = append(retVersions, &b) - } - - return retVersions -} - -func (a *DevPodEnvironmentTemplate) GetOwner() *storagev1.UserOrTeam { - return a.Spec.Owner -} - -func (a *DevPodEnvironmentTemplate) SetOwner(userOrTeam *storagev1.UserOrTeam) { - a.Spec.Owner = userOrTeam -} - -func (a *DevPodEnvironmentTemplate) GetAccess() []storagev1.Access { - return a.Spec.Access -} - -func (a *DevPodEnvironmentTemplate) SetAccess(access []storagev1.Access) { - a.Spec.Access = access -} diff --git a/pkg/apis/management/v1/devpodworkspaceinstance_types.go b/pkg/apis/management/v1/devpodworkspaceinstance_types.go deleted file mode 100644 index c3d694a..0000000 --- a/pkg/apis/management/v1/devpodworkspaceinstance_types.go +++ /dev/null @@ -1,73 +0,0 @@ -package v1 - -import ( - clusterv1 "github.com/devsy-org/agentapi/pkg/apis/devsy/cluster/v1" - agentstoragev1 "github.com/devsy-org/agentapi/pkg/apis/devsy/storage/v1" - storagev1 "github.com/devsy-org/api/pkg/apis/storage/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -// +genclient -// +genclient:noStatus -// +genclient:method=Up,verb=create,subresource=up,input=github.com/devsy-org/api/pkg/apis/management/v1.DevPodWorkspaceInstanceUp,result=github.com/devsy-org/api/pkg/apis/management/v1.DevPodWorkspaceInstanceUp //nolint:lll -// +genclient:method=Stop,verb=create,subresource=stop,input=github.com/devsy-org/api/pkg/apis/management/v1.DevPodWorkspaceInstanceStop,result=github.com/devsy-org/api/pkg/apis/management/v1.DevPodWorkspaceInstanceStop //nolint:lll -// +genclient:method=Troubleshoot,verb=get,subresource=troubleshoot,result=github.com/devsy-org/api/pkg/apis/management/v1.DevPodWorkspaceInstanceTroubleshoot //nolint:lll -// +genclient:method=Cancel,verb=create,subresource=cancel,input=github.com/devsy-org/api/pkg/apis/management/v1.DevPodWorkspaceInstanceCancel,result=github.com/devsy-org/api/pkg/apis/management/v1.DevPodWorkspaceInstanceCancel //nolint:lll -// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object - -// DevPodWorkspaceInstance holds the DevPodWorkspaceInstance information -// +k8s:openapi-gen=true -// +resource:path=devpodworkspaceinstances,rest=DevPodWorkspaceInstanceREST -// +subresource:request=DevPodWorkspaceInstanceUp,path=up,kind=DevPodWorkspaceInstanceUp,rest=DevPodWorkspaceInstanceUpREST -// +subresource:request=DevPodWorkspaceInstanceStop,path=stop,kind=DevPodWorkspaceInstanceStop,rest=DevPodWorkspaceInstanceStopREST -// +subresource:request=DevPodWorkspaceInstanceTroubleshoot,path=troubleshoot,kind=DevPodWorkspaceInstanceTroubleshoot,rest=DevPodWorkspaceInstanceTroubleshootREST -// +subresource:request=DevPodWorkspaceInstanceLog,path=log,kind=DevPodWorkspaceInstanceLog,rest=DevPodWorkspaceInstanceLogREST -// +subresource:request=DevPodWorkspaceInstanceTasks,path=tasks,kind=DevPodWorkspaceInstanceTasks,rest=DevPodWorkspaceInstanceTasksREST -// +subresource:request=DevPodWorkspaceInstanceCancel,path=cancel,kind=DevPodWorkspaceInstanceCancel,rest=DevPodWorkspaceInstanceCancelREST -// +subresource:request=DevPodWorkspaceInstanceDownload,path=download,kind=DevPodWorkspaceInstanceDownload,rest=DevPodWorkspaceInstanceDownloadREST -type DevPodWorkspaceInstance struct { - metav1.TypeMeta `json:",inline"` - metav1.ObjectMeta `json:"metadata,omitempty"` - - Spec DevPodWorkspaceInstanceSpec `json:"spec,omitempty"` - Status DevPodWorkspaceInstanceStatus `json:"status,omitempty"` -} - -// DevPodWorkspaceInstanceSpec holds the specification -type DevPodWorkspaceInstanceSpec struct { - storagev1.DevPodWorkspaceInstanceSpec `json:",inline"` -} - -// DevPodWorkspaceInstanceStatus holds the status -type DevPodWorkspaceInstanceStatus struct { - storagev1.DevPodWorkspaceInstanceStatus `json:",inline"` - - // SleepModeConfig is the sleep mode config of the workspace. This will only be shown - // in the front end. - // +optional - SleepModeConfig *clusterv1.SleepModeConfig `json:"sleepModeConfig,omitempty"` -} - -func (a *DevPodWorkspaceInstance) GetConditions() agentstoragev1.Conditions { - return a.Status.Conditions -} - -func (a *DevPodWorkspaceInstance) SetConditions(conditions agentstoragev1.Conditions) { - a.Status.Conditions = conditions -} - -func (a *DevPodWorkspaceInstance) GetOwner() *storagev1.UserOrTeam { - return a.Spec.Owner -} - -func (a *DevPodWorkspaceInstance) SetOwner(userOrTeam *storagev1.UserOrTeam) { - a.Spec.Owner = userOrTeam -} - -func (a *DevPodWorkspaceInstance) GetAccess() []storagev1.Access { - return a.Spec.Access -} - -func (a *DevPodWorkspaceInstance) SetAccess(access []storagev1.Access) { - a.Spec.Access = access -} diff --git a/pkg/apis/management/v1/devpodworkspacepreset_types.go b/pkg/apis/management/v1/devpodworkspacepreset_types.go deleted file mode 100644 index 82b52e6..0000000 --- a/pkg/apis/management/v1/devpodworkspacepreset_types.go +++ /dev/null @@ -1,51 +0,0 @@ -package v1 - -import ( - storagev1 "github.com/devsy-org/api/pkg/apis/storage/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -// +genclient -// +genclient:nonNamespaced -// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object - -// DevPodWorkspacePreset -// +k8s:openapi-gen=true -// +resource:path=devpodworkspacepresets,rest=DevPodWorkspacePresetREST -type DevPodWorkspacePreset struct { - metav1.TypeMeta `json:",inline"` - metav1.ObjectMeta `json:"metadata,omitempty"` - - Spec DevPodWorkspacePresetSpec `json:"spec,omitempty"` - Status DevPodWorkspacePresetStatus `json:"status,omitempty"` -} - -// DevPodWorkspacePresetSpec holds the specification -type DevPodWorkspacePresetSpec struct { - storagev1.DevPodWorkspacePresetSpec `json:",inline"` -} - -// DevPodWorkspacePresetSource -// +k8s:openapi-gen=true -type DevPodWorkspacePresetSource struct { - storagev1.DevPodWorkspacePresetSource `json:",inline"` -} - -func (a *DevPodWorkspacePreset) GetOwner() *storagev1.UserOrTeam { - return a.Spec.Owner -} - -func (a *DevPodWorkspacePreset) SetOwner(userOrTeam *storagev1.UserOrTeam) { - a.Spec.Owner = userOrTeam -} - -func (a *DevPodWorkspacePreset) GetAccess() []storagev1.Access { - return a.Spec.Access -} - -func (a *DevPodWorkspacePreset) SetAccess(access []storagev1.Access) { - a.Spec.Access = access -} - -// DevPodWorkspacePresetStatus holds the status -type DevPodWorkspacePresetStatus struct{} diff --git a/pkg/apis/management/v1/devpodworkspacetemplate_types.go b/pkg/apis/management/v1/devpodworkspacetemplate_types.go deleted file mode 100644 index 4be0003..0000000 --- a/pkg/apis/management/v1/devpodworkspacetemplate_types.go +++ /dev/null @@ -1,57 +0,0 @@ -package v1 - -import ( - storagev1 "github.com/devsy-org/api/pkg/apis/storage/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -// +genclient -// +genclient:nonNamespaced -// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object - -// DevPodWorkspaceTemplate holds the information -// +k8s:openapi-gen=true -// +resource:path=devpodworkspacetemplates,rest=DevPodWorkspaceTemplateREST -type DevPodWorkspaceTemplate struct { - metav1.TypeMeta `json:",inline"` - metav1.ObjectMeta `json:"metadata,omitempty"` - - Spec DevPodWorkspaceTemplateSpec `json:"spec,omitempty"` - Status DevPodWorkspaceTemplateStatus `json:"status,omitempty"` -} - -// DevPodWorkspaceTemplateSpec holds the specification -type DevPodWorkspaceTemplateSpec struct { - storagev1.DevPodWorkspaceTemplateSpec `json:",inline"` -} - -// DevPodWorkspaceTemplateStatus holds the status -type DevPodWorkspaceTemplateStatus struct { - storagev1.DevPodWorkspaceTemplateStatus `json:",inline"` -} - -func (a *DevPodWorkspaceTemplate) GetVersions() []storagev1.VersionAccessor { - var retVersions []storagev1.VersionAccessor - for _, v := range a.Spec.Versions { - b := v - retVersions = append(retVersions, &b) - } - - return retVersions -} - -func (a *DevPodWorkspaceTemplate) GetOwner() *storagev1.UserOrTeam { - return a.Spec.Owner -} - -func (a *DevPodWorkspaceTemplate) SetOwner(userOrTeam *storagev1.UserOrTeam) { - a.Spec.Owner = userOrTeam -} - -func (a *DevPodWorkspaceTemplate) GetAccess() []storagev1.Access { - return a.Spec.Access -} - -func (a *DevPodWorkspaceTemplate) SetAccess(access []storagev1.Access) { - a.Spec.Access = access -} diff --git a/pkg/apis/management/v1/devsyenvironmenttemplate_types.go b/pkg/apis/management/v1/devsyenvironmenttemplate_types.go new file mode 100644 index 0000000..3f5a4ca --- /dev/null +++ b/pkg/apis/management/v1/devsyenvironmenttemplate_types.go @@ -0,0 +1,56 @@ +package v1 + +import ( + storagev1 "github.com/devsy-org/api/pkg/apis/storage/v1" + metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" +) + +// +genclient +// +genclient:nonNamespaced +// +genclient:noStatus +// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object + +// DevsyEnvironmentTemplate holds the DevsyEnvironmentTemplate information +// +k8s:openapi-gen=true +// +resource:path=devpodenvironmenttemplates,rest=DevsyEnvironmentTemplateREST +type DevsyEnvironmentTemplate struct { + metav1.TypeMeta `json:",inline"` + metav1.ObjectMeta `json:"metadata,omitempty"` + + Spec DevsyEnvironmentTemplateSpec `json:"spec,omitempty"` + Status DevsyEnvironmentTemplateStatus `json:"status,omitempty"` +} + +// DevsyEnvironmentTemplateSpec holds the specification. +type DevsyEnvironmentTemplateSpec struct { + storagev1.DevsyEnvironmentTemplateSpec `json:",inline"` +} + +// DevsyEnvironmentTemplateStatus holds the status. +type DevsyEnvironmentTemplateStatus struct{} + +func (a *DevsyEnvironmentTemplate) GetVersions() []storagev1.VersionAccessor { + var retVersions []storagev1.VersionAccessor + for _, v := range a.Spec.Versions { + b := v + retVersions = append(retVersions, &b) + } + + return retVersions +} + +func (a *DevsyEnvironmentTemplate) GetOwner() *storagev1.UserOrTeam { + return a.Spec.Owner +} + +func (a *DevsyEnvironmentTemplate) SetOwner(userOrTeam *storagev1.UserOrTeam) { + a.Spec.Owner = userOrTeam +} + +func (a *DevsyEnvironmentTemplate) GetAccess() []storagev1.Access { + return a.Spec.Access +} + +func (a *DevsyEnvironmentTemplate) SetAccess(access []storagev1.Access) { + a.Spec.Access = access +} diff --git a/pkg/apis/management/v1/devpodworkspaceinstance_cancel_types.go b/pkg/apis/management/v1/devsyworkspaceinstance_cancel_types.go similarity index 89% rename from pkg/apis/management/v1/devpodworkspaceinstance_cancel_types.go rename to pkg/apis/management/v1/devsyworkspaceinstance_cancel_types.go index ed1a916..9f2db15 100644 --- a/pkg/apis/management/v1/devpodworkspaceinstance_cancel_types.go +++ b/pkg/apis/management/v1/devsyworkspaceinstance_cancel_types.go @@ -7,7 +7,7 @@ import ( // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object // +subresource-request -type DevPodWorkspaceInstanceCancel struct { +type DevsyWorkspaceInstanceCancel struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` diff --git a/pkg/apis/management/v1/devpodworkspaceinstance_download_types.go b/pkg/apis/management/v1/devsyworkspaceinstance_download_types.go similarity index 84% rename from pkg/apis/management/v1/devpodworkspaceinstance_download_types.go rename to pkg/apis/management/v1/devsyworkspaceinstance_download_types.go index 9bef551..8906b53 100644 --- a/pkg/apis/management/v1/devpodworkspaceinstance_download_types.go +++ b/pkg/apis/management/v1/devsyworkspaceinstance_download_types.go @@ -7,7 +7,7 @@ import ( // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object // +subresource-request -type DevPodWorkspaceInstanceDownload struct { +type DevsyWorkspaceInstanceDownload struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` } diff --git a/pkg/apis/management/v1/devpodworkspaceinstance_log_types.go b/pkg/apis/management/v1/devsyworkspaceinstance_log_types.go similarity index 86% rename from pkg/apis/management/v1/devpodworkspaceinstance_log_types.go rename to pkg/apis/management/v1/devsyworkspaceinstance_log_types.go index e9020e3..f851b33 100644 --- a/pkg/apis/management/v1/devpodworkspaceinstance_log_types.go +++ b/pkg/apis/management/v1/devsyworkspaceinstance_log_types.go @@ -7,7 +7,7 @@ import ( // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object // +subresource-request -type DevPodWorkspaceInstanceLog struct { +type DevsyWorkspaceInstanceLog struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` } diff --git a/pkg/apis/management/v1/devpodworkspaceinstance_stop_types.go b/pkg/apis/management/v1/devsyworkspaceinstance_stop_types.go similarity index 62% rename from pkg/apis/management/v1/devpodworkspaceinstance_stop_types.go rename to pkg/apis/management/v1/devsyworkspaceinstance_stop_types.go index 6485f63..2a45d3a 100644 --- a/pkg/apis/management/v1/devpodworkspaceinstance_stop_types.go +++ b/pkg/apis/management/v1/devsyworkspaceinstance_stop_types.go @@ -7,21 +7,21 @@ import ( // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object // +subresource-request -type DevPodWorkspaceInstanceStop struct { +type DevsyWorkspaceInstanceStop struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` - Spec DevPodWorkspaceInstanceStopSpec `json:"spec,omitempty"` - Status DevPodWorkspaceInstanceStopStatus `json:"status,omitempty"` + Spec DevsyWorkspaceInstanceStopSpec `json:"spec,omitempty"` + Status DevsyWorkspaceInstanceStopStatus `json:"status,omitempty"` } -type DevPodWorkspaceInstanceStopSpec struct { +type DevsyWorkspaceInstanceStopSpec struct { // Options are the options to pass. // +optional Options string `json:"options,omitempty"` } -type DevPodWorkspaceInstanceStopStatus struct { +type DevsyWorkspaceInstanceStopStatus struct { // TaskID is the id of the task that is running // +optional TaskID string `json:"taskId,omitempty"` diff --git a/pkg/apis/management/v1/devpodworkspaceinstance_tasks_types.go b/pkg/apis/management/v1/devsyworkspaceinstance_tasks_types.go similarity index 83% rename from pkg/apis/management/v1/devpodworkspaceinstance_tasks_types.go rename to pkg/apis/management/v1/devsyworkspaceinstance_tasks_types.go index 60eeb8c..c420131 100644 --- a/pkg/apis/management/v1/devpodworkspaceinstance_tasks_types.go +++ b/pkg/apis/management/v1/devsyworkspaceinstance_tasks_types.go @@ -7,14 +7,14 @@ import ( // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object // +subresource-request -type DevPodWorkspaceInstanceTasks struct { +type DevsyWorkspaceInstanceTasks struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` - Tasks []DevPodWorkspaceInstanceTask `json:"tasks,omitempty"` + Tasks []DevsyWorkspaceInstanceTask `json:"tasks,omitempty"` } -type DevPodWorkspaceInstanceTask struct { +type DevsyWorkspaceInstanceTask struct { // ID is the id of the task ID string `json:"id,omitempty"` diff --git a/pkg/apis/management/v1/devpodworkspaceinstance_troubleshoot_types.go b/pkg/apis/management/v1/devsyworkspaceinstance_troubleshoot_types.go similarity index 82% rename from pkg/apis/management/v1/devpodworkspaceinstance_troubleshoot_types.go rename to pkg/apis/management/v1/devsyworkspaceinstance_troubleshoot_types.go index d38015f..a283323 100644 --- a/pkg/apis/management/v1/devpodworkspaceinstance_troubleshoot_types.go +++ b/pkg/apis/management/v1/devsyworkspaceinstance_troubleshoot_types.go @@ -9,22 +9,22 @@ import ( // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object // +subresource-request -type DevPodWorkspaceInstanceTroubleshoot struct { +type DevsyWorkspaceInstanceTroubleshoot struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` - // State holds the workspaces state as given by 'devpod export' + // State holds the workspaces state as given by 'devsy export' // +optional State string `json:"state,omitempty"` // Workspace holds the workspace's instance object data // +optional - Workspace *DevPodWorkspaceInstance `json:"workspace,omitempty"` + Workspace *DevsyWorkspaceInstance `json:"workspace,omitempty"` // Template holds the workspace instance's template used to create it. // This is the raw template, not the rendered one. // +optional - Template *storagev1.DevPodWorkspaceTemplate `json:"template,omitempty"` + Template *storagev1.DevsyWorkspaceTemplate `json:"template,omitempty"` // Pods is a list of pod objects that are linked to the workspace. // +optional diff --git a/pkg/apis/management/v1/devsyworkspaceinstance_types.go b/pkg/apis/management/v1/devsyworkspaceinstance_types.go new file mode 100644 index 0000000..4eb58a3 --- /dev/null +++ b/pkg/apis/management/v1/devsyworkspaceinstance_types.go @@ -0,0 +1,73 @@ +package v1 + +import ( + clusterv1 "github.com/devsy-org/agentapi/pkg/apis/devsy/cluster/v1" + agentstoragev1 "github.com/devsy-org/agentapi/pkg/apis/devsy/storage/v1" + storagev1 "github.com/devsy-org/api/pkg/apis/storage/v1" + metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" +) + +// +genclient +// +genclient:noStatus +// +genclient:method=Up,verb=create,subresource=up,input=github.com/devsy-org/api/pkg/apis/management/v1.DevsyWorkspaceInstanceUp,result=github.com/devsy-org/api/pkg/apis/management/v1.DevsyWorkspaceInstanceUp +// +genclient:method=Stop,verb=create,subresource=stop,input=github.com/devsy-org/api/pkg/apis/management/v1.DevsyWorkspaceInstanceStop,result=github.com/devsy-org/api/pkg/apis/management/v1.DevsyWorkspaceInstanceStop +// +genclient:method=Troubleshoot,verb=get,subresource=troubleshoot,result=github.com/devsy-org/api/pkg/apis/management/v1.DevsyWorkspaceInstanceTroubleshoot +// +genclient:method=Cancel,verb=create,subresource=cancel,input=github.com/devsy-org/api/pkg/apis/management/v1.DevsyWorkspaceInstanceCancel,result=github.com/devsy-org/api/pkg/apis/management/v1.DevsyWorkspaceInstanceCancel +// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object + +// DevsyWorkspaceInstance holds the DevsyWorkspaceInstance information +// +k8s:openapi-gen=true +// +resource:path=devpodworkspaceinstances,rest=DevsyWorkspaceInstanceREST +// +subresource:request=DevsyWorkspaceInstanceUp,path=up,kind=DevsyWorkspaceInstanceUp,rest=DevsyWorkspaceInstanceUpREST +// +subresource:request=DevsyWorkspaceInstanceStop,path=stop,kind=DevsyWorkspaceInstanceStop,rest=DevsyWorkspaceInstanceStopREST +// +subresource:request=DevsyWorkspaceInstanceTroubleshoot,path=troubleshoot,kind=DevsyWorkspaceInstanceTroubleshoot,rest=DevsyWorkspaceInstanceTroubleshootREST +// +subresource:request=DevsyWorkspaceInstanceLog,path=log,kind=DevsyWorkspaceInstanceLog,rest=DevsyWorkspaceInstanceLogREST +// +subresource:request=DevsyWorkspaceInstanceTasks,path=tasks,kind=DevsyWorkspaceInstanceTasks,rest=DevsyWorkspaceInstanceTasksREST +// +subresource:request=DevsyWorkspaceInstanceCancel,path=cancel,kind=DevsyWorkspaceInstanceCancel,rest=DevsyWorkspaceInstanceCancelREST +// +subresource:request=DevsyWorkspaceInstanceDownload,path=download,kind=DevsyWorkspaceInstanceDownload,rest=DevsyWorkspaceInstanceDownloadREST +type DevsyWorkspaceInstance struct { + metav1.TypeMeta `json:",inline"` + metav1.ObjectMeta `json:"metadata,omitempty"` + + Spec DevsyWorkspaceInstanceSpec `json:"spec,omitempty"` + Status DevsyWorkspaceInstanceStatus `json:"status,omitempty"` +} + +// DevsyWorkspaceInstanceSpec holds the specification. +type DevsyWorkspaceInstanceSpec struct { + storagev1.DevsyWorkspaceInstanceSpec `json:",inline"` +} + +// DevsyWorkspaceInstanceStatus holds the status. +type DevsyWorkspaceInstanceStatus struct { + storagev1.DevsyWorkspaceInstanceStatus `json:",inline"` + + // SleepModeConfig is the sleep mode config of the workspace. This will only be shown + // in the front end. + // +optional + SleepModeConfig *clusterv1.SleepModeConfig `json:"sleepModeConfig,omitempty"` +} + +func (a *DevsyWorkspaceInstance) GetConditions() agentstoragev1.Conditions { + return a.Status.Conditions +} + +func (a *DevsyWorkspaceInstance) SetConditions(conditions agentstoragev1.Conditions) { + a.Status.Conditions = conditions +} + +func (a *DevsyWorkspaceInstance) GetOwner() *storagev1.UserOrTeam { + return a.Spec.Owner +} + +func (a *DevsyWorkspaceInstance) SetOwner(userOrTeam *storagev1.UserOrTeam) { + a.Spec.Owner = userOrTeam +} + +func (a *DevsyWorkspaceInstance) GetAccess() []storagev1.Access { + return a.Spec.Access +} + +func (a *DevsyWorkspaceInstance) SetAccess(access []storagev1.Access) { + a.Spec.Access = access +} diff --git a/pkg/apis/management/v1/devpodworkspaceinstance_up_types.go b/pkg/apis/management/v1/devsyworkspaceinstance_up_types.go similarity index 67% rename from pkg/apis/management/v1/devpodworkspaceinstance_up_types.go rename to pkg/apis/management/v1/devsyworkspaceinstance_up_types.go index 5227261..34fb781 100644 --- a/pkg/apis/management/v1/devpodworkspaceinstance_up_types.go +++ b/pkg/apis/management/v1/devsyworkspaceinstance_up_types.go @@ -7,15 +7,15 @@ import ( // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object // +subresource-request -type DevPodWorkspaceInstanceUp struct { +type DevsyWorkspaceInstanceUp struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` - Spec DevPodWorkspaceInstanceUpSpec `json:"spec,omitempty"` - Status DevPodWorkspaceInstanceUpStatus `json:"status,omitempty"` + Spec DevsyWorkspaceInstanceUpSpec `json:"spec,omitempty"` + Status DevsyWorkspaceInstanceUpStatus `json:"status,omitempty"` } -type DevPodWorkspaceInstanceUpSpec struct { +type DevsyWorkspaceInstanceUpSpec struct { // Debug includes debug logs. // +optional Debug bool `json:"debug,omitempty"` @@ -25,7 +25,7 @@ type DevPodWorkspaceInstanceUpSpec struct { Options string `json:"options,omitempty"` } -type DevPodWorkspaceInstanceUpStatus struct { +type DevsyWorkspaceInstanceUpStatus struct { // TaskID is the id of the task that is running // +optional TaskID string `json:"taskId,omitempty"` diff --git a/pkg/apis/management/v1/devsyworkspacepreset_types.go b/pkg/apis/management/v1/devsyworkspacepreset_types.go new file mode 100644 index 0000000..1878b59 --- /dev/null +++ b/pkg/apis/management/v1/devsyworkspacepreset_types.go @@ -0,0 +1,51 @@ +package v1 + +import ( + storagev1 "github.com/devsy-org/api/pkg/apis/storage/v1" + metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" +) + +// +genclient +// +genclient:nonNamespaced +// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object + +// DevsyWorkspacePreset +// +k8s:openapi-gen=true +// +resource:path=devpodworkspacepresets,rest=DevsyWorkspacePresetREST +type DevsyWorkspacePreset struct { + metav1.TypeMeta `json:",inline"` + metav1.ObjectMeta `json:"metadata,omitempty"` + + Spec DevsyWorkspacePresetSpec `json:"spec,omitempty"` + Status DevsyWorkspacePresetStatus `json:"status,omitempty"` +} + +// DevsyWorkspacePresetSpec holds the specification. +type DevsyWorkspacePresetSpec struct { + storagev1.DevsyWorkspacePresetSpec `json:",inline"` +} + +// DevsyWorkspacePresetSource +// +k8s:openapi-gen=true +type DevsyWorkspacePresetSource struct { + storagev1.DevsyWorkspacePresetSource `json:",inline"` +} + +func (a *DevsyWorkspacePreset) GetOwner() *storagev1.UserOrTeam { + return a.Spec.Owner +} + +func (a *DevsyWorkspacePreset) SetOwner(userOrTeam *storagev1.UserOrTeam) { + a.Spec.Owner = userOrTeam +} + +func (a *DevsyWorkspacePreset) GetAccess() []storagev1.Access { + return a.Spec.Access +} + +func (a *DevsyWorkspacePreset) SetAccess(access []storagev1.Access) { + a.Spec.Access = access +} + +// DevsyWorkspacePresetStatus holds the status. +type DevsyWorkspacePresetStatus struct{} diff --git a/pkg/apis/management/v1/devsyworkspacetemplate_types.go b/pkg/apis/management/v1/devsyworkspacetemplate_types.go new file mode 100644 index 0000000..bd898c7 --- /dev/null +++ b/pkg/apis/management/v1/devsyworkspacetemplate_types.go @@ -0,0 +1,57 @@ +package v1 + +import ( + storagev1 "github.com/devsy-org/api/pkg/apis/storage/v1" + metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" +) + +// +genclient +// +genclient:nonNamespaced +// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object + +// DevsyWorkspaceTemplate holds the information +// +k8s:openapi-gen=true +// +resource:path=devpodworkspacetemplates,rest=DevsyWorkspaceTemplateREST +type DevsyWorkspaceTemplate struct { + metav1.TypeMeta `json:",inline"` + metav1.ObjectMeta `json:"metadata,omitempty"` + + Spec DevsyWorkspaceTemplateSpec `json:"spec,omitempty"` + Status DevsyWorkspaceTemplateStatus `json:"status,omitempty"` +} + +// DevsyWorkspaceTemplateSpec holds the specification. +type DevsyWorkspaceTemplateSpec struct { + storagev1.DevsyWorkspaceTemplateSpec `json:",inline"` +} + +// DevsyWorkspaceTemplateStatus holds the status. +type DevsyWorkspaceTemplateStatus struct { + storagev1.DevsyWorkspaceTemplateStatus `json:",inline"` +} + +func (a *DevsyWorkspaceTemplate) GetVersions() []storagev1.VersionAccessor { + var retVersions []storagev1.VersionAccessor + for _, v := range a.Spec.Versions { + b := v + retVersions = append(retVersions, &b) + } + + return retVersions +} + +func (a *DevsyWorkspaceTemplate) GetOwner() *storagev1.UserOrTeam { + return a.Spec.Owner +} + +func (a *DevsyWorkspaceTemplate) SetOwner(userOrTeam *storagev1.UserOrTeam) { + a.Spec.Owner = userOrTeam +} + +func (a *DevsyWorkspaceTemplate) GetAccess() []storagev1.Access { + return a.Spec.Access +} + +func (a *DevsyWorkspaceTemplate) SetAccess(access []storagev1.Access) { + a.Spec.Access = access +} diff --git a/pkg/apis/management/v1/event_types.go b/pkg/apis/management/v1/event_types.go index f1c8f74..191c768 100644 --- a/pkg/apis/management/v1/event_types.go +++ b/pkg/apis/management/v1/event_types.go @@ -20,7 +20,7 @@ type Event struct { Status EventStatus `json:"status,omitempty"` } -// EventSpec holds the specification +// EventSpec holds the specification. type EventSpec struct{} // EventStatus holds the status, which is the parsed raw config diff --git a/pkg/apis/management/v1/feature_types.go b/pkg/apis/management/v1/feature_types.go index d33072d..109645a 100644 --- a/pkg/apis/management/v1/feature_types.go +++ b/pkg/apis/management/v1/feature_types.go @@ -20,10 +20,10 @@ type Feature struct { Status FeatureStatus `json:"status,omitempty"` } -// FeatureSpec holds the specification +// FeatureSpec holds the specification. type FeatureSpec struct{} -// FeatureStatus holds the status +// FeatureStatus holds the status. type FeatureStatus struct { // Feature contains all feature details (as typically returned by license service) licenseapi.Feature `json:",inline"` diff --git a/pkg/apis/management/v1/license_types.go b/pkg/apis/management/v1/license_types.go index c65575d..c8d9d4b 100644 --- a/pkg/apis/management/v1/license_types.go +++ b/pkg/apis/management/v1/license_types.go @@ -7,10 +7,10 @@ import ( // +genclient // +genclient:nonNamespaced -// +genclient:method=LicenseRequest,verb=create,subresource=request,input=github.com/devsy-org/api/pkg/apis/management/v1.LicenseRequest,result=github.com/devsy-org/api/pkg/apis/management/v1.LicenseRequest //nolint:lll +// +genclient:method=LicenseRequest,verb=create,subresource=request,input=github.com/devsy-org/api/pkg/apis/management/v1.LicenseRequest,result=github.com/devsy-org/api/pkg/apis/management/v1.LicenseRequest // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object -// License holds the license information +// License holds the license information. // +k8s:openapi-gen=true // +resource:path=licenses,rest=LicenseREST // +subresource:request=LicenseRequest,path=request,kind=LicenseRequest,rest=LicenseRequestREST diff --git a/pkg/apis/management/v1/oidc_client_types.go b/pkg/apis/management/v1/oidc_client_types.go index 839cd12..1899900 100644 --- a/pkg/apis/management/v1/oidc_client_types.go +++ b/pkg/apis/management/v1/oidc_client_types.go @@ -19,7 +19,7 @@ type OIDCClient struct { Status OIDCClientStatus `json:"status,omitempty"` } -// OIDCClientSpec holds the specification +// OIDCClientSpec holds the specification. type OIDCClientSpec struct { // The client name Name string `json:"name,omitempty"` @@ -35,5 +35,5 @@ type OIDCClientSpec struct { RedirectURIs []string `json:"redirectURIs"` } -// OIDCClientStatus holds the status +// OIDCClientStatus holds the status. type OIDCClientStatus struct{} diff --git a/pkg/apis/management/v1/options.go b/pkg/apis/management/v1/options.go index 11692ea..df200cd 100644 --- a/pkg/apis/management/v1/options.go +++ b/pkg/apis/management/v1/options.go @@ -147,7 +147,7 @@ type BackupApplyOptions struct { // +k8s:conversion-gen:explicit-from=net/url.Values // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object -type DevPodWorkspaceInstanceLogOptions struct { +type DevsyWorkspaceInstanceLogOptions struct { metav1.TypeMeta `json:",inline"` // TaskID is the id of the task that is running @@ -162,7 +162,7 @@ type DevPodWorkspaceInstanceLogOptions struct { // +k8s:conversion-gen:explicit-from=net/url.Values // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object -type DevPodWorkspaceInstanceTasksOptions struct { +type DevsyWorkspaceInstanceTasksOptions struct { metav1.TypeMeta `json:",inline"` // TaskID is the id of the task that is running @@ -173,7 +173,7 @@ type DevPodWorkspaceInstanceTasksOptions struct { // +k8s:conversion-gen:explicit-from=net/url.Values // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object -type DevPodWorkspaceInstanceDownloadOptions struct { +type DevsyWorkspaceInstanceDownloadOptions struct { metav1.TypeMeta `json:",inline"` // Path is the path to download @@ -195,9 +195,9 @@ func addKnownOptionsTypes(scheme *runtime.Scheme) error { &UserVirtualClustersOptions{}, &UserQuotasOptions{}, &BackupApplyOptions{}, - &DevPodWorkspaceInstanceLogOptions{}, - &DevPodWorkspaceInstanceTasksOptions{}, - &DevPodWorkspaceInstanceDownloadOptions{}, + &DevsyWorkspaceInstanceLogOptions{}, + &DevsyWorkspaceInstanceTasksOptions{}, + &DevsyWorkspaceInstanceDownloadOptions{}, ) return nil } diff --git a/pkg/apis/management/v1/project_secret_types.go b/pkg/apis/management/v1/project_secret_types.go index 6f8e210..e4e77f6 100644 --- a/pkg/apis/management/v1/project_secret_types.go +++ b/pkg/apis/management/v1/project_secret_types.go @@ -7,13 +7,13 @@ import ( ) const ( - LoftProjectSecret = "devsy.sh/project-secret" - LoftProjectSecretNameLabel = "devsy.sh/project-secret-name" - LoftProjectSecretDescription = "devsy.sh/project-secret-description" - LoftProjectSecretDisplayName = "devsy.sh/project-secret-displayname" - LoftProjectSecretOwner = "devsy.sh/project-secret-owner" - LoftProjectSecretAccess = "devsy.sh/project-secret-access" - LoftProjectSecretStatusConditionsAnnotation = "devsy.sh/project-secret-status-conditions" + DevsyProjectSecret = "devsy.sh/project-secret" //nolint:gosec + DevsyProjectSecretNameLabel = "devsy.sh/project-secret-name" //nolint:gosec + DevsyProjectSecretDescription = "devsy.sh/project-secret-description" //nolint:gosec + DevsyProjectSecretDisplayName = "devsy.sh/project-secret-displayname" //nolint:gosec + DevsyProjectSecretOwner = "devsy.sh/project-secret-owner" //nolint:gosec + DevsyProjectSecretAccess = "devsy.sh/project-secret-access" //nolint:gosec + DevsyProjectSecretStatusConditionsAnnotation = "devsy.sh/project-secret-status-conditions" //nolint:gosec ) // +genclient @@ -47,7 +47,7 @@ func (a *ProjectSecret) SetAccess(access []storagev1.Access) { a.Spec.Access = access } -// ProjectSecretSpec holds the specification +// ProjectSecretSpec holds the specification. type ProjectSecretSpec struct { // DisplayName is the name that should be displayed in the UI // +optional @@ -73,7 +73,7 @@ type ProjectSecretSpec struct { Access []storagev1.Access `json:"access,omitempty"` } -// ProjectSecretStatus holds the status +// ProjectSecretStatus holds the status. type ProjectSecretStatus struct { // Conditions holds several conditions the project might be in // +optional diff --git a/pkg/apis/management/v1/project_templates_types.go b/pkg/apis/management/v1/project_templates_types.go index 6ea1539..3ce1e51 100644 --- a/pkg/apis/management/v1/project_templates_types.go +++ b/pkg/apis/management/v1/project_templates_types.go @@ -23,18 +23,18 @@ type ProjectTemplates struct { // SpaceTemplates holds all the allowed space templates SpaceTemplates []SpaceTemplate `json:"spaceTemplates,omitempty"` - // DefaultDevPodWorkspaceTemplate - DefaultDevPodWorkspaceTemplate string `json:"defaultDevPodWorkspaceTemplate,omitempty"` + // DefaultDevsyWorkspaceTemplate + DefaultDevsyWorkspaceTemplate string `json:"defaultDevPodWorkspaceTemplate,omitempty"` - // DevPodWorkspaceTemplates holds all the allowed space templates - DevPodWorkspaceTemplates []DevPodWorkspaceTemplate `json:"devPodWorkspaceTemplates,omitempty"` + // DevsyWorkspaceTemplates holds all the allowed space templates + DevsyWorkspaceTemplates []DevsyWorkspaceTemplate `json:"devPodWorkspaceTemplates,omitempty"` - // DevPodEnvironmentTemplates holds all the allowed environment templates - DevPodEnvironmentTemplates []DevPodEnvironmentTemplate `json:"devPodEnvironmentTemplates,omitempty"` + // DevsyEnvironmentTemplates holds all the allowed environment templates + DevsyEnvironmentTemplates []DevsyEnvironmentTemplate `json:"devPodEnvironmentTemplates,omitempty"` - // DevPodWorkspacePresets holds all the allowed workspace presets - DevPodWorkspacePresets []DevPodWorkspacePreset `json:"devPodWorkspacePresets,omitempty"` + // DevsyWorkspacePresets holds all the allowed workspace presets + DevsyWorkspacePresets []DevsyWorkspacePreset `json:"devPodWorkspacePresets,omitempty"` - // DefaultDevPodEnvironmentTemplate - DefaultDevPodEnvironmentTemplate string `json:"defaultDevPodEnvironmentTemplate,omitempty"` + // DefaultDevsyEnvironmentTemplate + DefaultDevsyEnvironmentTemplate string `json:"defaultDevPodEnvironmentTemplate,omitempty"` } diff --git a/pkg/apis/management/v1/project_types.go b/pkg/apis/management/v1/project_types.go index 138642a..74e95af 100644 --- a/pkg/apis/management/v1/project_types.go +++ b/pkg/apis/management/v1/project_types.go @@ -7,12 +7,12 @@ import ( // +genclient // +genclient:nonNamespaced -// +genclient:method=ListMembers,verb=get,subresource=members,result=github.com/devsy-org/api/pkg/apis/management/v1.ProjectMembers //nolint:lll -// +genclient:method=ListTemplates,verb=get,subresource=templates,result=github.com/devsy-org/api/pkg/apis/management/v1.ProjectTemplates //nolint:lll -// +genclient:method=ListClusters,verb=get,subresource=clusters,result=github.com/devsy-org/api/pkg/apis/management/v1.ProjectClusters //nolint:lll -// +genclient:method=MigrateVirtualClusterInstance,verb=create,subresource=migratevirtualclusterinstance,input=github.com/devsy-org/api/pkg/apis/management/v1.ProjectMigrateVirtualClusterInstance,result=github.com/devsy-org/api/pkg/apis/management/v1.ProjectMigrateVirtualClusterInstance //nolint:lll -// +genclient:method=ImportSpace,verb=create,subresource=importspace,input=github.com/devsy-org/api/pkg/apis/management/v1.ProjectImportSpace,result=github.com/devsy-org/api/pkg/apis/management/v1.ProjectImportSpace //nolint:lll -// +genclient:method=MigrateSpaceInstance,verb=create,subresource=migratespaceinstance,input=github.com/devsy-org/api/pkg/apis/management/v1.ProjectMigrateSpaceInstance,result=github.com/devsy-org/api/pkg/apis/management/v1.ProjectMigrateSpaceInstance //nolint:lll +// +genclient:method=ListMembers,verb=get,subresource=members,result=github.com/devsy-org/api/pkg/apis/management/v1.ProjectMembers +// +genclient:method=ListTemplates,verb=get,subresource=templates,result=github.com/devsy-org/api/pkg/apis/management/v1.ProjectTemplates +// +genclient:method=ListClusters,verb=get,subresource=clusters,result=github.com/devsy-org/api/pkg/apis/management/v1.ProjectClusters +// +genclient:method=MigrateVirtualClusterInstance,verb=create,subresource=migratevirtualclusterinstance,input=github.com/devsy-org/api/pkg/apis/management/v1.ProjectMigrateVirtualClusterInstance,result=github.com/devsy-org/api/pkg/apis/management/v1.ProjectMigrateVirtualClusterInstance +// +genclient:method=ImportSpace,verb=create,subresource=importspace,input=github.com/devsy-org/api/pkg/apis/management/v1.ProjectImportSpace,result=github.com/devsy-org/api/pkg/apis/management/v1.ProjectImportSpace +// +genclient:method=MigrateSpaceInstance,verb=create,subresource=migratespaceinstance,input=github.com/devsy-org/api/pkg/apis/management/v1.ProjectMigrateSpaceInstance,result=github.com/devsy-org/api/pkg/apis/management/v1.ProjectMigrateSpaceInstance // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object // Project holds the Project information @@ -35,12 +35,12 @@ type Project struct { Status ProjectStatus `json:"status,omitempty"` } -// ProjectSpec holds the specification +// ProjectSpec holds the specification. type ProjectSpec struct { storagev1.ProjectSpec `json:",inline"` } -// ProjectStatus holds the status +// ProjectStatus holds the status. type ProjectStatus struct { storagev1.ProjectStatus `json:",inline"` } diff --git a/pkg/apis/management/v1/self_types.go b/pkg/apis/management/v1/self_types.go index d0076ae..56b05e2 100644 --- a/pkg/apis/management/v1/self_types.go +++ b/pkg/apis/management/v1/self_types.go @@ -67,9 +67,9 @@ type SelfStatus struct { // +optional InstanceID string `json:"instanceID,omitempty"` - // LoftHost is the host of the devsy instance + // DevsyHost is the host of the devsy instance // +optional - LoftHost string `json:"loftHost,omitempty"` + DevsyHost string `json:"loftHost,omitempty"` // ProjectNamespacePrefix is the prefix used to name project namespaces after defaulting has been applied // +optional diff --git a/pkg/apis/management/v1/sharedsecret_types.go b/pkg/apis/management/v1/sharedsecret_types.go index e74e236..1ee6905 100644 --- a/pkg/apis/management/v1/sharedsecret_types.go +++ b/pkg/apis/management/v1/sharedsecret_types.go @@ -19,12 +19,12 @@ type SharedSecret struct { Status SharedSecretStatus `json:"status,omitempty"` } -// SharedSecretSpec holds the specification +// SharedSecretSpec holds the specification. type SharedSecretSpec struct { storagev1.SharedSecretSpec `json:",inline"` } -// SharedSecretStatus holds the status +// SharedSecretStatus holds the status. type SharedSecretStatus struct { storagev1.SharedSecretStatus `json:",inline"` } diff --git a/pkg/apis/management/v1/spaceinstance_types.go b/pkg/apis/management/v1/spaceinstance_types.go index 94ab3fe..5fee7ca 100644 --- a/pkg/apis/management/v1/spaceinstance_types.go +++ b/pkg/apis/management/v1/spaceinstance_types.go @@ -22,12 +22,12 @@ type SpaceInstance struct { Status SpaceInstanceStatus `json:"status,omitempty"` } -// SpaceInstanceSpec holds the specification +// SpaceInstanceSpec holds the specification. type SpaceInstanceSpec struct { storagev1.SpaceInstanceSpec `json:",inline"` } -// SpaceInstanceStatus holds the status +// SpaceInstanceStatus holds the status. type SpaceInstanceStatus struct { storagev1.SpaceInstanceStatus `json:",inline"` diff --git a/pkg/apis/management/v1/spacetemplate_types.go b/pkg/apis/management/v1/spacetemplate_types.go index 33b4410..7180edc 100644 --- a/pkg/apis/management/v1/spacetemplate_types.go +++ b/pkg/apis/management/v1/spacetemplate_types.go @@ -20,12 +20,12 @@ type SpaceTemplate struct { Status SpaceTemplateStatus `json:"status,omitempty"` } -// SpaceTemplateSpec holds the specification +// SpaceTemplateSpec holds the specification. type SpaceTemplateSpec struct { storagev1.SpaceTemplateSpec `json:",inline"` } -// SpaceTemplateStatus holds the status +// SpaceTemplateStatus holds the status. type SpaceTemplateStatus struct { storagev1.SpaceTemplateStatus `json:",inline"` diff --git a/pkg/apis/management/v1/task_types.go b/pkg/apis/management/v1/task_types.go index d5e4366..e6e32bf 100644 --- a/pkg/apis/management/v1/task_types.go +++ b/pkg/apis/management/v1/task_types.go @@ -21,12 +21,12 @@ type Task struct { Status TaskStatus `json:"status,omitempty"` } -// TaskSpec holds the specification +// TaskSpec holds the specification. type TaskSpec struct { storagev1.TaskSpec `json:",inline"` } -// TaskStatus holds the status +// TaskStatus holds the status. type TaskStatus struct { storagev1.TaskStatus `json:",inline"` diff --git a/pkg/apis/management/v1/team_types.go b/pkg/apis/management/v1/team_types.go index 66ec895..3ccb197 100644 --- a/pkg/apis/management/v1/team_types.go +++ b/pkg/apis/management/v1/team_types.go @@ -7,11 +7,11 @@ import ( // +genclient // +genclient:nonNamespaced -// +genclient:method=ListClusters,verb=get,subresource=clusters,result=github.com/devsy-org/api/pkg/apis/management/v1.TeamClusters //nolint:lll -// +genclient:method=ListAccessKeys,verb=get,subresource=accesskeys,result=github.com/devsy-org/api/pkg/apis/management/v1.TeamAccessKeys //nolint:lll +// +genclient:method=ListClusters,verb=get,subresource=clusters,result=github.com/devsy-org/api/pkg/apis/management/v1.TeamClusters +// +genclient:method=ListAccessKeys,verb=get,subresource=accesskeys,result=github.com/devsy-org/api/pkg/apis/management/v1.TeamAccessKeys // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object -// Team holds the team information +// Team holds the team information. // +k8s:openapi-gen=true // +resource:path=teams,rest=TeamREST // +subresource:request=TeamClusters,path=clusters,kind=TeamClusters,rest=TeamClustersREST diff --git a/pkg/apis/management/v1/translateresourcename_types.go b/pkg/apis/management/v1/translateresourcename_types.go index b849db1..340cec4 100644 --- a/pkg/apis/management/v1/translateresourcename_types.go +++ b/pkg/apis/management/v1/translateresourcename_types.go @@ -19,7 +19,7 @@ type TranslateDevsyResourceName struct { Status TranslateDevsyResourceNameStatus `json:"status,omitempty"` } -// TranslateDevsyResourceNameSpec holds the specification +// TranslateDevsyResourceNameSpec holds the specification. type TranslateDevsyResourceNameSpec struct { // Name is the name of resource we want to rename Name string `json:"name"` @@ -31,7 +31,7 @@ type TranslateDevsyResourceNameSpec struct { DevsyName string `json:"devsyName"` } -// TranslateDevsyResourceNameStatus holds the status +// TranslateDevsyResourceNameStatus holds the status. type TranslateDevsyResourceNameStatus struct { // Name is the converted name of resource // +optional diff --git a/pkg/apis/management/v1/user_types.go b/pkg/apis/management/v1/user_types.go index f8569e1..4150283 100644 --- a/pkg/apis/management/v1/user_types.go +++ b/pkg/apis/management/v1/user_types.go @@ -7,13 +7,13 @@ import ( // +genclient // +genclient:nonNamespaced -// +genclient:method=GetProfile,verb=get,subresource=profile,result=github.com/devsy-org/api/pkg/apis/management/v1.UserProfile //nolint:lll -// +genclient:method=UpdateProfile,verb=create,subresource=profile,input=github.com/devsy-org/api/pkg/apis/management/v1.UserProfile,result=github.com/devsy-org/api/pkg/apis/management/v1.UserProfile //nolint:lll -// +genclient:method=ListClusters,verb=get,subresource=clusters,result=github.com/devsy-org/api/pkg/apis/management/v1.UserClusters //nolint:lll -// +genclient:method=ListAccessKeys,verb=get,subresource=accesskeys,result=github.com/devsy-org/api/pkg/apis/management/v1.UserAccessKeys //nolint:lll +// +genclient:method=GetProfile,verb=get,subresource=profile,result=github.com/devsy-org/api/pkg/apis/management/v1.UserProfile +// +genclient:method=UpdateProfile,verb=create,subresource=profile,input=github.com/devsy-org/api/pkg/apis/management/v1.UserProfile,result=github.com/devsy-org/api/pkg/apis/management/v1.UserProfile +// +genclient:method=ListClusters,verb=get,subresource=clusters,result=github.com/devsy-org/api/pkg/apis/management/v1.UserClusters +// +genclient:method=ListAccessKeys,verb=get,subresource=accesskeys,result=github.com/devsy-org/api/pkg/apis/management/v1.UserAccessKeys // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object -// User holds the user information +// User holds the user information. // +k8s:openapi-gen=true // +resource:path=users,rest=UserREST // +subresource:request=UserClusters,path=clusters,kind=UserClusters,rest=UserClustersREST diff --git a/pkg/apis/management/v1/virtualcluster_convertconfig_types.go b/pkg/apis/management/v1/virtualcluster_convertconfig_types.go index 50bcb1b..85cc391 100644 --- a/pkg/apis/management/v1/virtualcluster_convertconfig_types.go +++ b/pkg/apis/management/v1/virtualcluster_convertconfig_types.go @@ -19,7 +19,7 @@ type ConvertVirtualClusterConfig struct { Status ConvertVirtualClusterConfigStatus `json:"status,omitempty"` } -// ConvertVirtualClusterConfigSpec holds the specification +// ConvertVirtualClusterConfigSpec holds the specification. type ConvertVirtualClusterConfigSpec struct { // Annotations are annotations on the virtual cluster // +optional @@ -34,7 +34,7 @@ type ConvertVirtualClusterConfigSpec struct { Values string `json:"values,omitempty"` } -// ConvertVirtualClusterConfigStatus holds the status +// ConvertVirtualClusterConfigStatus holds the status. type ConvertVirtualClusterConfigStatus struct { // Values are the converted config values for the virtual cluster // +optional diff --git a/pkg/apis/management/v1/virtualcluster_register_types.go b/pkg/apis/management/v1/virtualcluster_register_types.go index 7b4af79..6b40c44 100644 --- a/pkg/apis/management/v1/virtualcluster_register_types.go +++ b/pkg/apis/management/v1/virtualcluster_register_types.go @@ -19,7 +19,7 @@ type RegisterVirtualCluster struct { Status RegisterVirtualClusterStatus `json:"status,omitempty"` } -// RegisterVirtualClusterSpec holds the specification +// RegisterVirtualClusterSpec holds the specification. type RegisterVirtualClusterSpec struct { // ServiceUID uniquely identifies the virtual cluster based on the service uid. // +optional @@ -51,7 +51,7 @@ type RegisterVirtualClusterSpec struct { Values string `json:"values,omitempty"` } -// RegisterVirtualClusterStatus holds the status +// RegisterVirtualClusterStatus holds the status. type RegisterVirtualClusterStatus struct { // Name is the actual name of the virtual cluster instance. // +optional diff --git a/pkg/apis/management/v1/virtualclusterinstance_types.go b/pkg/apis/management/v1/virtualclusterinstance_types.go index efa9fc1..9c2859a 100644 --- a/pkg/apis/management/v1/virtualclusterinstance_types.go +++ b/pkg/apis/management/v1/virtualclusterinstance_types.go @@ -9,11 +9,11 @@ import ( // +genclient // +genclient:noStatus -// +genclient:method=GetKubeConfig,verb=create,subresource=kubeconfig,input=github.com/devsy-org/api/pkg/apis/management/v1.VirtualClusterInstanceKubeConfig,result=github.com/devsy-org/api/pkg/apis/management/v1.VirtualClusterInstanceKubeConfig //nolint:lll -// +genclient:method=GetAccessKey,verb=get,subresource=accesskey,result=github.com/devsy-org/api/pkg/apis/management/v1.VirtualClusterAccessKey //nolint:lll -// +genclient:method=GetExternalDatabase,verb=create,subresource=externaldatabase,input=github.com/devsy-org/api/pkg/apis/management/v1.VirtualClusterExternalDatabase,result=github.com/devsy-org/api/pkg/apis/management/v1.VirtualClusterExternalDatabase //nolint:lll -// +genclient:method=GetNodeAccessKey,verb=create,subresource=nodeaccesskey,input=github.com/devsy-org/api/pkg/apis/management/v1.VirtualClusterNodeAccessKey,result=github.com/devsy-org/api/pkg/apis/management/v1.VirtualClusterNodeAccessKey //nolint:lll -// +genclient:method=GetStandaloneETCDPeers,verb=create,subresource=standalone,input=github.com/devsy-org/api/pkg/apis/management/v1.VirtualClusterStandalone,result=github.com/devsy-org/api/pkg/apis/management/v1.VirtualClusterStandalone //nolint:lll +// +genclient:method=GetKubeConfig,verb=create,subresource=kubeconfig,input=github.com/devsy-org/api/pkg/apis/management/v1.VirtualClusterInstanceKubeConfig,result=github.com/devsy-org/api/pkg/apis/management/v1.VirtualClusterInstanceKubeConfig +// +genclient:method=GetAccessKey,verb=get,subresource=accesskey,result=github.com/devsy-org/api/pkg/apis/management/v1.VirtualClusterAccessKey +// +genclient:method=GetExternalDatabase,verb=create,subresource=externaldatabase,input=github.com/devsy-org/api/pkg/apis/management/v1.VirtualClusterExternalDatabase,result=github.com/devsy-org/api/pkg/apis/management/v1.VirtualClusterExternalDatabase +// +genclient:method=GetNodeAccessKey,verb=create,subresource=nodeaccesskey,input=github.com/devsy-org/api/pkg/apis/management/v1.VirtualClusterNodeAccessKey,result=github.com/devsy-org/api/pkg/apis/management/v1.VirtualClusterNodeAccessKey +// +genclient:method=GetStandaloneETCDPeers,verb=create,subresource=standalone,input=github.com/devsy-org/api/pkg/apis/management/v1.VirtualClusterStandalone,result=github.com/devsy-org/api/pkg/apis/management/v1.VirtualClusterStandalone // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object // VirtualClusterInstance holds the VirtualClusterInstance information @@ -34,12 +34,12 @@ type VirtualClusterInstance struct { Status VirtualClusterInstanceStatus `json:"status,omitempty"` } -// VirtualClusterInstanceSpec holds the specification +// VirtualClusterInstanceSpec holds the specification. type VirtualClusterInstanceSpec struct { storagev1.VirtualClusterInstanceSpec `json:",inline"` } -// VirtualClusterInstanceStatus holds the status +// VirtualClusterInstanceStatus holds the status. type VirtualClusterInstanceStatus struct { storagev1.VirtualClusterInstanceStatus `json:",inline"` diff --git a/pkg/apis/management/v1/virtualclustertemplate_types.go b/pkg/apis/management/v1/virtualclustertemplate_types.go index 4efebd4..d302cce 100644 --- a/pkg/apis/management/v1/virtualclustertemplate_types.go +++ b/pkg/apis/management/v1/virtualclustertemplate_types.go @@ -20,12 +20,12 @@ type VirtualClusterTemplate struct { Status VirtualClusterTemplateStatus `json:"status,omitempty"` } -// VirtualClusterTemplateSpec holds the specification +// VirtualClusterTemplateSpec holds the specification. type VirtualClusterTemplateSpec struct { storagev1.VirtualClusterTemplateSpec `json:",inline"` } -// VirtualClusterTemplateStatus holds the status +// VirtualClusterTemplateStatus holds the status. type VirtualClusterTemplateStatus struct { storagev1.VirtualClusterTemplateStatus `json:",inline"` diff --git a/pkg/apis/management/v1/zz_generated.api.register.go b/pkg/apis/management/v1/zz_generated.api.register.go index 0f08ba4..0c96b38 100644 --- a/pkg/apis/management/v1/zz_generated.api.register.go +++ b/pkg/apis/management/v1/zz_generated.api.register.go @@ -1,4 +1,4 @@ -// Code generated by generator. DO NOT EDIT. +// Code generated by generate. DO NOT EDIT. package v1 @@ -42,21 +42,23 @@ func addKnownTypes(scheme *runtime.Scheme) error { &ConvertVirtualClusterConfigList{}, &DatabaseConnector{}, &DatabaseConnectorList{}, - &DevPodEnvironmentTemplate{}, - &DevPodEnvironmentTemplateList{}, - &DevPodWorkspaceInstance{}, - &DevPodWorkspaceInstanceList{}, - &DevPodWorkspaceInstanceCancel{}, - &DevPodWorkspaceInstanceDownload{}, - &DevPodWorkspaceInstanceLog{}, - &DevPodWorkspaceInstanceStop{}, - &DevPodWorkspaceInstanceTasks{}, - &DevPodWorkspaceInstanceTroubleshoot{}, - &DevPodWorkspaceInstanceUp{}, - &DevPodWorkspacePreset{}, - &DevPodWorkspacePresetList{}, - &DevPodWorkspaceTemplate{}, - &DevPodWorkspaceTemplateList{}, + &DevsyEnvironmentTemplate{}, + &DevsyEnvironmentTemplateList{}, + &DevsyUpgrade{}, + &DevsyUpgradeList{}, + &DevsyWorkspaceInstance{}, + &DevsyWorkspaceInstanceList{}, + &DevsyWorkspaceInstanceCancel{}, + &DevsyWorkspaceInstanceDownload{}, + &DevsyWorkspaceInstanceLog{}, + &DevsyWorkspaceInstanceStop{}, + &DevsyWorkspaceInstanceTasks{}, + &DevsyWorkspaceInstanceTroubleshoot{}, + &DevsyWorkspaceInstanceUp{}, + &DevsyWorkspacePreset{}, + &DevsyWorkspacePresetList{}, + &DevsyWorkspaceTemplate{}, + &DevsyWorkspaceTemplateList{}, &DirectClusterEndpointToken{}, &DirectClusterEndpointTokenList{}, &Event{}, @@ -72,8 +74,6 @@ func addKnownTypes(scheme *runtime.Scheme) error { &LicenseRequest{}, &LicenseToken{}, &LicenseTokenList{}, - &DevsyUpgrade{}, - &DevsyUpgradeList{}, &NodeClaim{}, &NodeClaimList{}, &NodeEnvironment{}, @@ -226,52 +226,53 @@ var ( management.ManagementConfigStorage, management.ManagementConvertVirtualClusterConfigStorage, management.ManagementDatabaseConnectorStorage, - management.ManagementDevPodEnvironmentTemplateStorage, - management.ManagementDevPodWorkspaceInstanceStorage, + management.ManagementDevsyEnvironmentTemplateStorage, + management.ManagementDevsyUpgradeStorage, + management.ManagementDevsyWorkspaceInstanceStorage, builders.NewApiResourceWithStorage( - management.InternalDevPodWorkspaceInstanceCancelREST, - func() runtime.Object { return &DevPodWorkspaceInstanceCancel{} }, // Register versioned resource + management.InternalDevsyWorkspaceInstanceCancelREST, + func() runtime.Object { return &DevsyWorkspaceInstanceCancel{} }, // Register versioned resource nil, - management.NewDevPodWorkspaceInstanceCancelREST, + management.NewDevsyWorkspaceInstanceCancelREST, ), builders.NewApiResourceWithStorage( - management.InternalDevPodWorkspaceInstanceDownloadREST, - func() runtime.Object { return &DevPodWorkspaceInstanceDownload{} }, // Register versioned resource + management.InternalDevsyWorkspaceInstanceDownloadREST, + func() runtime.Object { return &DevsyWorkspaceInstanceDownload{} }, // Register versioned resource nil, - management.NewDevPodWorkspaceInstanceDownloadREST, + management.NewDevsyWorkspaceInstanceDownloadREST, ), builders.NewApiResourceWithStorage( - management.InternalDevPodWorkspaceInstanceLogREST, - func() runtime.Object { return &DevPodWorkspaceInstanceLog{} }, // Register versioned resource + management.InternalDevsyWorkspaceInstanceLogREST, + func() runtime.Object { return &DevsyWorkspaceInstanceLog{} }, // Register versioned resource nil, - management.NewDevPodWorkspaceInstanceLogREST, + management.NewDevsyWorkspaceInstanceLogREST, ), builders.NewApiResourceWithStorage( - management.InternalDevPodWorkspaceInstanceStopREST, - func() runtime.Object { return &DevPodWorkspaceInstanceStop{} }, // Register versioned resource + management.InternalDevsyWorkspaceInstanceStopREST, + func() runtime.Object { return &DevsyWorkspaceInstanceStop{} }, // Register versioned resource nil, - management.NewDevPodWorkspaceInstanceStopREST, + management.NewDevsyWorkspaceInstanceStopREST, ), builders.NewApiResourceWithStorage( - management.InternalDevPodWorkspaceInstanceTasksREST, - func() runtime.Object { return &DevPodWorkspaceInstanceTasks{} }, // Register versioned resource + management.InternalDevsyWorkspaceInstanceTasksREST, + func() runtime.Object { return &DevsyWorkspaceInstanceTasks{} }, // Register versioned resource nil, - management.NewDevPodWorkspaceInstanceTasksREST, + management.NewDevsyWorkspaceInstanceTasksREST, ), builders.NewApiResourceWithStorage( - management.InternalDevPodWorkspaceInstanceTroubleshootREST, - func() runtime.Object { return &DevPodWorkspaceInstanceTroubleshoot{} }, // Register versioned resource + management.InternalDevsyWorkspaceInstanceTroubleshootREST, + func() runtime.Object { return &DevsyWorkspaceInstanceTroubleshoot{} }, // Register versioned resource nil, - management.NewDevPodWorkspaceInstanceTroubleshootREST, + management.NewDevsyWorkspaceInstanceTroubleshootREST, ), builders.NewApiResourceWithStorage( - management.InternalDevPodWorkspaceInstanceUpREST, - func() runtime.Object { return &DevPodWorkspaceInstanceUp{} }, // Register versioned resource + management.InternalDevsyWorkspaceInstanceUpREST, + func() runtime.Object { return &DevsyWorkspaceInstanceUp{} }, // Register versioned resource nil, - management.NewDevPodWorkspaceInstanceUpREST, + management.NewDevsyWorkspaceInstanceUpREST, ), - management.ManagementDevPodWorkspacePresetStorage, - management.ManagementDevPodWorkspaceTemplateStorage, + management.ManagementDevsyWorkspacePresetStorage, + management.ManagementDevsyWorkspaceTemplateStorage, management.ManagementDirectClusterEndpointTokenStorage, management.ManagementEventStorage, management.ManagementFeatureStorage, @@ -290,7 +291,6 @@ var ( management.NewLicenseRequestREST, ), management.ManagementLicenseTokenStorage, - management.ManagementDevsyUpgradeStorage, management.ManagementNodeClaimStorage, builders.NewApiResourceWithStorage( management.InternalNodeClaimStatus, @@ -688,90 +688,98 @@ type DatabaseConnectorList struct { // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object -type DevPodEnvironmentTemplateList struct { +type DevsyEnvironmentTemplateList struct { + metav1.TypeMeta `json:",inline"` + metav1.ListMeta `json:"metadata,omitempty"` + Items []DevsyEnvironmentTemplate `json:"items"` +} + +// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object + +type DevsyUpgradeList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` - Items []DevPodEnvironmentTemplate `json:"items"` + Items []DevsyUpgrade `json:"items"` } // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object -type DevPodWorkspaceInstanceList struct { +type DevsyWorkspaceInstanceList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` - Items []DevPodWorkspaceInstance `json:"items"` + Items []DevsyWorkspaceInstance `json:"items"` } // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object -type DevPodWorkspaceInstanceCancelList struct { +type DevsyWorkspaceInstanceCancelList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` - Items []DevPodWorkspaceInstanceCancel `json:"items"` + Items []DevsyWorkspaceInstanceCancel `json:"items"` } // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object -type DevPodWorkspaceInstanceDownloadList struct { +type DevsyWorkspaceInstanceDownloadList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` - Items []DevPodWorkspaceInstanceDownload `json:"items"` + Items []DevsyWorkspaceInstanceDownload `json:"items"` } // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object -type DevPodWorkspaceInstanceLogList struct { +type DevsyWorkspaceInstanceLogList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` - Items []DevPodWorkspaceInstanceLog `json:"items"` + Items []DevsyWorkspaceInstanceLog `json:"items"` } // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object -type DevPodWorkspaceInstanceStopList struct { +type DevsyWorkspaceInstanceStopList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` - Items []DevPodWorkspaceInstanceStop `json:"items"` + Items []DevsyWorkspaceInstanceStop `json:"items"` } // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object -type DevPodWorkspaceInstanceTasksList struct { +type DevsyWorkspaceInstanceTasksList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` - Items []DevPodWorkspaceInstanceTasks `json:"items"` + Items []DevsyWorkspaceInstanceTasks `json:"items"` } // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object -type DevPodWorkspaceInstanceTroubleshootList struct { +type DevsyWorkspaceInstanceTroubleshootList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` - Items []DevPodWorkspaceInstanceTroubleshoot `json:"items"` + Items []DevsyWorkspaceInstanceTroubleshoot `json:"items"` } // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object -type DevPodWorkspaceInstanceUpList struct { +type DevsyWorkspaceInstanceUpList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` - Items []DevPodWorkspaceInstanceUp `json:"items"` + Items []DevsyWorkspaceInstanceUp `json:"items"` } // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object -type DevPodWorkspacePresetList struct { +type DevsyWorkspacePresetList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` - Items []DevPodWorkspacePreset `json:"items"` + Items []DevsyWorkspacePreset `json:"items"` } // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object -type DevPodWorkspaceTemplateList struct { +type DevsyWorkspaceTemplateList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` - Items []DevPodWorkspaceTemplate `json:"items"` + Items []DevsyWorkspaceTemplate `json:"items"` } // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object @@ -840,14 +848,6 @@ type LicenseTokenList struct { // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object -type DevsyUpgradeList struct { - metav1.TypeMeta `json:",inline"` - metav1.ListMeta `json:"metadata,omitempty"` - Items []DevsyUpgrade `json:"items"` -} - -// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object - type NodeClaimList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` diff --git a/pkg/apis/management/v1/zz_generated.conversion.go b/pkg/apis/management/v1/zz_generated.conversion.go index 7055f5c..1414c0e 100644 --- a/pkg/apis/management/v1/zz_generated.conversion.go +++ b/pkg/apis/management/v1/zz_generated.conversion.go @@ -11,7 +11,7 @@ import ( licenseapi "github.com/devsy-org/admin-apis/pkg/licenseapi" clusterv1 "github.com/devsy-org/agentapi/pkg/apis/devsy/cluster/v1" - loftstoragev1 "github.com/devsy-org/agentapi/pkg/apis/devsy/storage/v1" + devsystoragev1 "github.com/devsy-org/agentapi/pkg/apis/devsy/storage/v1" auditv1 "github.com/devsy-org/api/pkg/apis/audit/v1" management "github.com/devsy-org/api/pkg/apis/management" storagev1 "github.com/devsy-org/api/pkg/apis/storage/v1" @@ -930,383 +930,423 @@ func RegisterConversions(s *runtime.Scheme) error { }); err != nil { return err } - if err := s.AddGeneratedConversionFunc((*DevPodEnvironmentTemplate)(nil), (*management.DevPodEnvironmentTemplate)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_v1_DevPodEnvironmentTemplate_To_management_DevPodEnvironmentTemplate(a.(*DevPodEnvironmentTemplate), b.(*management.DevPodEnvironmentTemplate), scope) + if err := s.AddGeneratedConversionFunc((*DevsyEnvironmentTemplate)(nil), (*management.DevsyEnvironmentTemplate)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_v1_DevsyEnvironmentTemplate_To_management_DevsyEnvironmentTemplate(a.(*DevsyEnvironmentTemplate), b.(*management.DevsyEnvironmentTemplate), scope) }); err != nil { return err } - if err := s.AddGeneratedConversionFunc((*management.DevPodEnvironmentTemplate)(nil), (*DevPodEnvironmentTemplate)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_management_DevPodEnvironmentTemplate_To_v1_DevPodEnvironmentTemplate(a.(*management.DevPodEnvironmentTemplate), b.(*DevPodEnvironmentTemplate), scope) + if err := s.AddGeneratedConversionFunc((*management.DevsyEnvironmentTemplate)(nil), (*DevsyEnvironmentTemplate)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_management_DevsyEnvironmentTemplate_To_v1_DevsyEnvironmentTemplate(a.(*management.DevsyEnvironmentTemplate), b.(*DevsyEnvironmentTemplate), scope) }); err != nil { return err } - if err := s.AddGeneratedConversionFunc((*DevPodEnvironmentTemplateList)(nil), (*management.DevPodEnvironmentTemplateList)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_v1_DevPodEnvironmentTemplateList_To_management_DevPodEnvironmentTemplateList(a.(*DevPodEnvironmentTemplateList), b.(*management.DevPodEnvironmentTemplateList), scope) + if err := s.AddGeneratedConversionFunc((*DevsyEnvironmentTemplateList)(nil), (*management.DevsyEnvironmentTemplateList)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_v1_DevsyEnvironmentTemplateList_To_management_DevsyEnvironmentTemplateList(a.(*DevsyEnvironmentTemplateList), b.(*management.DevsyEnvironmentTemplateList), scope) }); err != nil { return err } - if err := s.AddGeneratedConversionFunc((*management.DevPodEnvironmentTemplateList)(nil), (*DevPodEnvironmentTemplateList)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_management_DevPodEnvironmentTemplateList_To_v1_DevPodEnvironmentTemplateList(a.(*management.DevPodEnvironmentTemplateList), b.(*DevPodEnvironmentTemplateList), scope) + if err := s.AddGeneratedConversionFunc((*management.DevsyEnvironmentTemplateList)(nil), (*DevsyEnvironmentTemplateList)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_management_DevsyEnvironmentTemplateList_To_v1_DevsyEnvironmentTemplateList(a.(*management.DevsyEnvironmentTemplateList), b.(*DevsyEnvironmentTemplateList), scope) }); err != nil { return err } - if err := s.AddGeneratedConversionFunc((*DevPodEnvironmentTemplateSpec)(nil), (*management.DevPodEnvironmentTemplateSpec)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_v1_DevPodEnvironmentTemplateSpec_To_management_DevPodEnvironmentTemplateSpec(a.(*DevPodEnvironmentTemplateSpec), b.(*management.DevPodEnvironmentTemplateSpec), scope) + if err := s.AddGeneratedConversionFunc((*DevsyEnvironmentTemplateSpec)(nil), (*management.DevsyEnvironmentTemplateSpec)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_v1_DevsyEnvironmentTemplateSpec_To_management_DevsyEnvironmentTemplateSpec(a.(*DevsyEnvironmentTemplateSpec), b.(*management.DevsyEnvironmentTemplateSpec), scope) }); err != nil { return err } - if err := s.AddGeneratedConversionFunc((*management.DevPodEnvironmentTemplateSpec)(nil), (*DevPodEnvironmentTemplateSpec)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_management_DevPodEnvironmentTemplateSpec_To_v1_DevPodEnvironmentTemplateSpec(a.(*management.DevPodEnvironmentTemplateSpec), b.(*DevPodEnvironmentTemplateSpec), scope) + if err := s.AddGeneratedConversionFunc((*management.DevsyEnvironmentTemplateSpec)(nil), (*DevsyEnvironmentTemplateSpec)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_management_DevsyEnvironmentTemplateSpec_To_v1_DevsyEnvironmentTemplateSpec(a.(*management.DevsyEnvironmentTemplateSpec), b.(*DevsyEnvironmentTemplateSpec), scope) }); err != nil { return err } - if err := s.AddGeneratedConversionFunc((*DevPodEnvironmentTemplateStatus)(nil), (*management.DevPodEnvironmentTemplateStatus)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_v1_DevPodEnvironmentTemplateStatus_To_management_DevPodEnvironmentTemplateStatus(a.(*DevPodEnvironmentTemplateStatus), b.(*management.DevPodEnvironmentTemplateStatus), scope) + if err := s.AddGeneratedConversionFunc((*DevsyEnvironmentTemplateStatus)(nil), (*management.DevsyEnvironmentTemplateStatus)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_v1_DevsyEnvironmentTemplateStatus_To_management_DevsyEnvironmentTemplateStatus(a.(*DevsyEnvironmentTemplateStatus), b.(*management.DevsyEnvironmentTemplateStatus), scope) }); err != nil { return err } - if err := s.AddGeneratedConversionFunc((*management.DevPodEnvironmentTemplateStatus)(nil), (*DevPodEnvironmentTemplateStatus)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_management_DevPodEnvironmentTemplateStatus_To_v1_DevPodEnvironmentTemplateStatus(a.(*management.DevPodEnvironmentTemplateStatus), b.(*DevPodEnvironmentTemplateStatus), scope) + if err := s.AddGeneratedConversionFunc((*management.DevsyEnvironmentTemplateStatus)(nil), (*DevsyEnvironmentTemplateStatus)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_management_DevsyEnvironmentTemplateStatus_To_v1_DevsyEnvironmentTemplateStatus(a.(*management.DevsyEnvironmentTemplateStatus), b.(*DevsyEnvironmentTemplateStatus), scope) }); err != nil { return err } - if err := s.AddGeneratedConversionFunc((*DevPodWorkspaceInstance)(nil), (*management.DevPodWorkspaceInstance)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_v1_DevPodWorkspaceInstance_To_management_DevPodWorkspaceInstance(a.(*DevPodWorkspaceInstance), b.(*management.DevPodWorkspaceInstance), scope) + if err := s.AddGeneratedConversionFunc((*DevsyUpgrade)(nil), (*management.DevsyUpgrade)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_v1_DevsyUpgrade_To_management_DevsyUpgrade(a.(*DevsyUpgrade), b.(*management.DevsyUpgrade), scope) + }); err != nil { + return err + } + if err := s.AddGeneratedConversionFunc((*management.DevsyUpgrade)(nil), (*DevsyUpgrade)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_management_DevsyUpgrade_To_v1_DevsyUpgrade(a.(*management.DevsyUpgrade), b.(*DevsyUpgrade), scope) + }); err != nil { + return err + } + if err := s.AddGeneratedConversionFunc((*DevsyUpgradeList)(nil), (*management.DevsyUpgradeList)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_v1_DevsyUpgradeList_To_management_DevsyUpgradeList(a.(*DevsyUpgradeList), b.(*management.DevsyUpgradeList), scope) + }); err != nil { + return err + } + if err := s.AddGeneratedConversionFunc((*management.DevsyUpgradeList)(nil), (*DevsyUpgradeList)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_management_DevsyUpgradeList_To_v1_DevsyUpgradeList(a.(*management.DevsyUpgradeList), b.(*DevsyUpgradeList), scope) + }); err != nil { + return err + } + if err := s.AddGeneratedConversionFunc((*DevsyUpgradeSpec)(nil), (*management.DevsyUpgradeSpec)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_v1_DevsyUpgradeSpec_To_management_DevsyUpgradeSpec(a.(*DevsyUpgradeSpec), b.(*management.DevsyUpgradeSpec), scope) + }); err != nil { + return err + } + if err := s.AddGeneratedConversionFunc((*management.DevsyUpgradeSpec)(nil), (*DevsyUpgradeSpec)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_management_DevsyUpgradeSpec_To_v1_DevsyUpgradeSpec(a.(*management.DevsyUpgradeSpec), b.(*DevsyUpgradeSpec), scope) + }); err != nil { + return err + } + if err := s.AddGeneratedConversionFunc((*DevsyUpgradeStatus)(nil), (*management.DevsyUpgradeStatus)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_v1_DevsyUpgradeStatus_To_management_DevsyUpgradeStatus(a.(*DevsyUpgradeStatus), b.(*management.DevsyUpgradeStatus), scope) + }); err != nil { + return err + } + if err := s.AddGeneratedConversionFunc((*management.DevsyUpgradeStatus)(nil), (*DevsyUpgradeStatus)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_management_DevsyUpgradeStatus_To_v1_DevsyUpgradeStatus(a.(*management.DevsyUpgradeStatus), b.(*DevsyUpgradeStatus), scope) }); err != nil { return err } - if err := s.AddGeneratedConversionFunc((*management.DevPodWorkspaceInstance)(nil), (*DevPodWorkspaceInstance)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_management_DevPodWorkspaceInstance_To_v1_DevPodWorkspaceInstance(a.(*management.DevPodWorkspaceInstance), b.(*DevPodWorkspaceInstance), scope) + if err := s.AddGeneratedConversionFunc((*DevsyWorkspaceInstance)(nil), (*management.DevsyWorkspaceInstance)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_v1_DevsyWorkspaceInstance_To_management_DevsyWorkspaceInstance(a.(*DevsyWorkspaceInstance), b.(*management.DevsyWorkspaceInstance), scope) }); err != nil { return err } - if err := s.AddGeneratedConversionFunc((*DevPodWorkspaceInstanceCancel)(nil), (*management.DevPodWorkspaceInstanceCancel)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_v1_DevPodWorkspaceInstanceCancel_To_management_DevPodWorkspaceInstanceCancel(a.(*DevPodWorkspaceInstanceCancel), b.(*management.DevPodWorkspaceInstanceCancel), scope) + if err := s.AddGeneratedConversionFunc((*management.DevsyWorkspaceInstance)(nil), (*DevsyWorkspaceInstance)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_management_DevsyWorkspaceInstance_To_v1_DevsyWorkspaceInstance(a.(*management.DevsyWorkspaceInstance), b.(*DevsyWorkspaceInstance), scope) }); err != nil { return err } - if err := s.AddGeneratedConversionFunc((*management.DevPodWorkspaceInstanceCancel)(nil), (*DevPodWorkspaceInstanceCancel)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_management_DevPodWorkspaceInstanceCancel_To_v1_DevPodWorkspaceInstanceCancel(a.(*management.DevPodWorkspaceInstanceCancel), b.(*DevPodWorkspaceInstanceCancel), scope) + if err := s.AddGeneratedConversionFunc((*DevsyWorkspaceInstanceCancel)(nil), (*management.DevsyWorkspaceInstanceCancel)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_v1_DevsyWorkspaceInstanceCancel_To_management_DevsyWorkspaceInstanceCancel(a.(*DevsyWorkspaceInstanceCancel), b.(*management.DevsyWorkspaceInstanceCancel), scope) }); err != nil { return err } - if err := s.AddGeneratedConversionFunc((*DevPodWorkspaceInstanceCancelList)(nil), (*management.DevPodWorkspaceInstanceCancelList)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_v1_DevPodWorkspaceInstanceCancelList_To_management_DevPodWorkspaceInstanceCancelList(a.(*DevPodWorkspaceInstanceCancelList), b.(*management.DevPodWorkspaceInstanceCancelList), scope) + if err := s.AddGeneratedConversionFunc((*management.DevsyWorkspaceInstanceCancel)(nil), (*DevsyWorkspaceInstanceCancel)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_management_DevsyWorkspaceInstanceCancel_To_v1_DevsyWorkspaceInstanceCancel(a.(*management.DevsyWorkspaceInstanceCancel), b.(*DevsyWorkspaceInstanceCancel), scope) }); err != nil { return err } - if err := s.AddGeneratedConversionFunc((*management.DevPodWorkspaceInstanceCancelList)(nil), (*DevPodWorkspaceInstanceCancelList)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_management_DevPodWorkspaceInstanceCancelList_To_v1_DevPodWorkspaceInstanceCancelList(a.(*management.DevPodWorkspaceInstanceCancelList), b.(*DevPodWorkspaceInstanceCancelList), scope) + if err := s.AddGeneratedConversionFunc((*DevsyWorkspaceInstanceCancelList)(nil), (*management.DevsyWorkspaceInstanceCancelList)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_v1_DevsyWorkspaceInstanceCancelList_To_management_DevsyWorkspaceInstanceCancelList(a.(*DevsyWorkspaceInstanceCancelList), b.(*management.DevsyWorkspaceInstanceCancelList), scope) }); err != nil { return err } - if err := s.AddGeneratedConversionFunc((*DevPodWorkspaceInstanceDownload)(nil), (*management.DevPodWorkspaceInstanceDownload)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_v1_DevPodWorkspaceInstanceDownload_To_management_DevPodWorkspaceInstanceDownload(a.(*DevPodWorkspaceInstanceDownload), b.(*management.DevPodWorkspaceInstanceDownload), scope) + if err := s.AddGeneratedConversionFunc((*management.DevsyWorkspaceInstanceCancelList)(nil), (*DevsyWorkspaceInstanceCancelList)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_management_DevsyWorkspaceInstanceCancelList_To_v1_DevsyWorkspaceInstanceCancelList(a.(*management.DevsyWorkspaceInstanceCancelList), b.(*DevsyWorkspaceInstanceCancelList), scope) }); err != nil { return err } - if err := s.AddGeneratedConversionFunc((*management.DevPodWorkspaceInstanceDownload)(nil), (*DevPodWorkspaceInstanceDownload)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_management_DevPodWorkspaceInstanceDownload_To_v1_DevPodWorkspaceInstanceDownload(a.(*management.DevPodWorkspaceInstanceDownload), b.(*DevPodWorkspaceInstanceDownload), scope) + if err := s.AddGeneratedConversionFunc((*DevsyWorkspaceInstanceDownload)(nil), (*management.DevsyWorkspaceInstanceDownload)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_v1_DevsyWorkspaceInstanceDownload_To_management_DevsyWorkspaceInstanceDownload(a.(*DevsyWorkspaceInstanceDownload), b.(*management.DevsyWorkspaceInstanceDownload), scope) }); err != nil { return err } - if err := s.AddGeneratedConversionFunc((*DevPodWorkspaceInstanceDownloadList)(nil), (*management.DevPodWorkspaceInstanceDownloadList)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_v1_DevPodWorkspaceInstanceDownloadList_To_management_DevPodWorkspaceInstanceDownloadList(a.(*DevPodWorkspaceInstanceDownloadList), b.(*management.DevPodWorkspaceInstanceDownloadList), scope) + if err := s.AddGeneratedConversionFunc((*management.DevsyWorkspaceInstanceDownload)(nil), (*DevsyWorkspaceInstanceDownload)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_management_DevsyWorkspaceInstanceDownload_To_v1_DevsyWorkspaceInstanceDownload(a.(*management.DevsyWorkspaceInstanceDownload), b.(*DevsyWorkspaceInstanceDownload), scope) }); err != nil { return err } - if err := s.AddGeneratedConversionFunc((*management.DevPodWorkspaceInstanceDownloadList)(nil), (*DevPodWorkspaceInstanceDownloadList)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_management_DevPodWorkspaceInstanceDownloadList_To_v1_DevPodWorkspaceInstanceDownloadList(a.(*management.DevPodWorkspaceInstanceDownloadList), b.(*DevPodWorkspaceInstanceDownloadList), scope) + if err := s.AddGeneratedConversionFunc((*DevsyWorkspaceInstanceDownloadList)(nil), (*management.DevsyWorkspaceInstanceDownloadList)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_v1_DevsyWorkspaceInstanceDownloadList_To_management_DevsyWorkspaceInstanceDownloadList(a.(*DevsyWorkspaceInstanceDownloadList), b.(*management.DevsyWorkspaceInstanceDownloadList), scope) }); err != nil { return err } - if err := s.AddGeneratedConversionFunc((*DevPodWorkspaceInstanceDownloadOptions)(nil), (*management.DevPodWorkspaceInstanceDownloadOptions)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_v1_DevPodWorkspaceInstanceDownloadOptions_To_management_DevPodWorkspaceInstanceDownloadOptions(a.(*DevPodWorkspaceInstanceDownloadOptions), b.(*management.DevPodWorkspaceInstanceDownloadOptions), scope) + if err := s.AddGeneratedConversionFunc((*management.DevsyWorkspaceInstanceDownloadList)(nil), (*DevsyWorkspaceInstanceDownloadList)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_management_DevsyWorkspaceInstanceDownloadList_To_v1_DevsyWorkspaceInstanceDownloadList(a.(*management.DevsyWorkspaceInstanceDownloadList), b.(*DevsyWorkspaceInstanceDownloadList), scope) }); err != nil { return err } - if err := s.AddGeneratedConversionFunc((*management.DevPodWorkspaceInstanceDownloadOptions)(nil), (*DevPodWorkspaceInstanceDownloadOptions)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_management_DevPodWorkspaceInstanceDownloadOptions_To_v1_DevPodWorkspaceInstanceDownloadOptions(a.(*management.DevPodWorkspaceInstanceDownloadOptions), b.(*DevPodWorkspaceInstanceDownloadOptions), scope) + if err := s.AddGeneratedConversionFunc((*DevsyWorkspaceInstanceDownloadOptions)(nil), (*management.DevsyWorkspaceInstanceDownloadOptions)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_v1_DevsyWorkspaceInstanceDownloadOptions_To_management_DevsyWorkspaceInstanceDownloadOptions(a.(*DevsyWorkspaceInstanceDownloadOptions), b.(*management.DevsyWorkspaceInstanceDownloadOptions), scope) }); err != nil { return err } - if err := s.AddGeneratedConversionFunc((*DevPodWorkspaceInstanceList)(nil), (*management.DevPodWorkspaceInstanceList)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_v1_DevPodWorkspaceInstanceList_To_management_DevPodWorkspaceInstanceList(a.(*DevPodWorkspaceInstanceList), b.(*management.DevPodWorkspaceInstanceList), scope) + if err := s.AddGeneratedConversionFunc((*management.DevsyWorkspaceInstanceDownloadOptions)(nil), (*DevsyWorkspaceInstanceDownloadOptions)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_management_DevsyWorkspaceInstanceDownloadOptions_To_v1_DevsyWorkspaceInstanceDownloadOptions(a.(*management.DevsyWorkspaceInstanceDownloadOptions), b.(*DevsyWorkspaceInstanceDownloadOptions), scope) }); err != nil { return err } - if err := s.AddGeneratedConversionFunc((*management.DevPodWorkspaceInstanceList)(nil), (*DevPodWorkspaceInstanceList)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_management_DevPodWorkspaceInstanceList_To_v1_DevPodWorkspaceInstanceList(a.(*management.DevPodWorkspaceInstanceList), b.(*DevPodWorkspaceInstanceList), scope) + if err := s.AddGeneratedConversionFunc((*DevsyWorkspaceInstanceList)(nil), (*management.DevsyWorkspaceInstanceList)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_v1_DevsyWorkspaceInstanceList_To_management_DevsyWorkspaceInstanceList(a.(*DevsyWorkspaceInstanceList), b.(*management.DevsyWorkspaceInstanceList), scope) }); err != nil { return err } - if err := s.AddGeneratedConversionFunc((*DevPodWorkspaceInstanceLog)(nil), (*management.DevPodWorkspaceInstanceLog)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_v1_DevPodWorkspaceInstanceLog_To_management_DevPodWorkspaceInstanceLog(a.(*DevPodWorkspaceInstanceLog), b.(*management.DevPodWorkspaceInstanceLog), scope) + if err := s.AddGeneratedConversionFunc((*management.DevsyWorkspaceInstanceList)(nil), (*DevsyWorkspaceInstanceList)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_management_DevsyWorkspaceInstanceList_To_v1_DevsyWorkspaceInstanceList(a.(*management.DevsyWorkspaceInstanceList), b.(*DevsyWorkspaceInstanceList), scope) }); err != nil { return err } - if err := s.AddGeneratedConversionFunc((*management.DevPodWorkspaceInstanceLog)(nil), (*DevPodWorkspaceInstanceLog)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_management_DevPodWorkspaceInstanceLog_To_v1_DevPodWorkspaceInstanceLog(a.(*management.DevPodWorkspaceInstanceLog), b.(*DevPodWorkspaceInstanceLog), scope) + if err := s.AddGeneratedConversionFunc((*DevsyWorkspaceInstanceLog)(nil), (*management.DevsyWorkspaceInstanceLog)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_v1_DevsyWorkspaceInstanceLog_To_management_DevsyWorkspaceInstanceLog(a.(*DevsyWorkspaceInstanceLog), b.(*management.DevsyWorkspaceInstanceLog), scope) }); err != nil { return err } - if err := s.AddGeneratedConversionFunc((*DevPodWorkspaceInstanceLogList)(nil), (*management.DevPodWorkspaceInstanceLogList)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_v1_DevPodWorkspaceInstanceLogList_To_management_DevPodWorkspaceInstanceLogList(a.(*DevPodWorkspaceInstanceLogList), b.(*management.DevPodWorkspaceInstanceLogList), scope) + if err := s.AddGeneratedConversionFunc((*management.DevsyWorkspaceInstanceLog)(nil), (*DevsyWorkspaceInstanceLog)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_management_DevsyWorkspaceInstanceLog_To_v1_DevsyWorkspaceInstanceLog(a.(*management.DevsyWorkspaceInstanceLog), b.(*DevsyWorkspaceInstanceLog), scope) }); err != nil { return err } - if err := s.AddGeneratedConversionFunc((*management.DevPodWorkspaceInstanceLogList)(nil), (*DevPodWorkspaceInstanceLogList)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_management_DevPodWorkspaceInstanceLogList_To_v1_DevPodWorkspaceInstanceLogList(a.(*management.DevPodWorkspaceInstanceLogList), b.(*DevPodWorkspaceInstanceLogList), scope) + if err := s.AddGeneratedConversionFunc((*DevsyWorkspaceInstanceLogList)(nil), (*management.DevsyWorkspaceInstanceLogList)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_v1_DevsyWorkspaceInstanceLogList_To_management_DevsyWorkspaceInstanceLogList(a.(*DevsyWorkspaceInstanceLogList), b.(*management.DevsyWorkspaceInstanceLogList), scope) }); err != nil { return err } - if err := s.AddGeneratedConversionFunc((*DevPodWorkspaceInstanceLogOptions)(nil), (*management.DevPodWorkspaceInstanceLogOptions)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_v1_DevPodWorkspaceInstanceLogOptions_To_management_DevPodWorkspaceInstanceLogOptions(a.(*DevPodWorkspaceInstanceLogOptions), b.(*management.DevPodWorkspaceInstanceLogOptions), scope) + if err := s.AddGeneratedConversionFunc((*management.DevsyWorkspaceInstanceLogList)(nil), (*DevsyWorkspaceInstanceLogList)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_management_DevsyWorkspaceInstanceLogList_To_v1_DevsyWorkspaceInstanceLogList(a.(*management.DevsyWorkspaceInstanceLogList), b.(*DevsyWorkspaceInstanceLogList), scope) }); err != nil { return err } - if err := s.AddGeneratedConversionFunc((*management.DevPodWorkspaceInstanceLogOptions)(nil), (*DevPodWorkspaceInstanceLogOptions)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_management_DevPodWorkspaceInstanceLogOptions_To_v1_DevPodWorkspaceInstanceLogOptions(a.(*management.DevPodWorkspaceInstanceLogOptions), b.(*DevPodWorkspaceInstanceLogOptions), scope) + if err := s.AddGeneratedConversionFunc((*DevsyWorkspaceInstanceLogOptions)(nil), (*management.DevsyWorkspaceInstanceLogOptions)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_v1_DevsyWorkspaceInstanceLogOptions_To_management_DevsyWorkspaceInstanceLogOptions(a.(*DevsyWorkspaceInstanceLogOptions), b.(*management.DevsyWorkspaceInstanceLogOptions), scope) }); err != nil { return err } - if err := s.AddGeneratedConversionFunc((*DevPodWorkspaceInstanceSpec)(nil), (*management.DevPodWorkspaceInstanceSpec)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_v1_DevPodWorkspaceInstanceSpec_To_management_DevPodWorkspaceInstanceSpec(a.(*DevPodWorkspaceInstanceSpec), b.(*management.DevPodWorkspaceInstanceSpec), scope) + if err := s.AddGeneratedConversionFunc((*management.DevsyWorkspaceInstanceLogOptions)(nil), (*DevsyWorkspaceInstanceLogOptions)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_management_DevsyWorkspaceInstanceLogOptions_To_v1_DevsyWorkspaceInstanceLogOptions(a.(*management.DevsyWorkspaceInstanceLogOptions), b.(*DevsyWorkspaceInstanceLogOptions), scope) }); err != nil { return err } - if err := s.AddGeneratedConversionFunc((*management.DevPodWorkspaceInstanceSpec)(nil), (*DevPodWorkspaceInstanceSpec)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_management_DevPodWorkspaceInstanceSpec_To_v1_DevPodWorkspaceInstanceSpec(a.(*management.DevPodWorkspaceInstanceSpec), b.(*DevPodWorkspaceInstanceSpec), scope) + if err := s.AddGeneratedConversionFunc((*DevsyWorkspaceInstanceSpec)(nil), (*management.DevsyWorkspaceInstanceSpec)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_v1_DevsyWorkspaceInstanceSpec_To_management_DevsyWorkspaceInstanceSpec(a.(*DevsyWorkspaceInstanceSpec), b.(*management.DevsyWorkspaceInstanceSpec), scope) }); err != nil { return err } - if err := s.AddGeneratedConversionFunc((*DevPodWorkspaceInstanceStatus)(nil), (*management.DevPodWorkspaceInstanceStatus)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_v1_DevPodWorkspaceInstanceStatus_To_management_DevPodWorkspaceInstanceStatus(a.(*DevPodWorkspaceInstanceStatus), b.(*management.DevPodWorkspaceInstanceStatus), scope) + if err := s.AddGeneratedConversionFunc((*management.DevsyWorkspaceInstanceSpec)(nil), (*DevsyWorkspaceInstanceSpec)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_management_DevsyWorkspaceInstanceSpec_To_v1_DevsyWorkspaceInstanceSpec(a.(*management.DevsyWorkspaceInstanceSpec), b.(*DevsyWorkspaceInstanceSpec), scope) }); err != nil { return err } - if err := s.AddGeneratedConversionFunc((*management.DevPodWorkspaceInstanceStatus)(nil), (*DevPodWorkspaceInstanceStatus)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_management_DevPodWorkspaceInstanceStatus_To_v1_DevPodWorkspaceInstanceStatus(a.(*management.DevPodWorkspaceInstanceStatus), b.(*DevPodWorkspaceInstanceStatus), scope) + if err := s.AddGeneratedConversionFunc((*DevsyWorkspaceInstanceStatus)(nil), (*management.DevsyWorkspaceInstanceStatus)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_v1_DevsyWorkspaceInstanceStatus_To_management_DevsyWorkspaceInstanceStatus(a.(*DevsyWorkspaceInstanceStatus), b.(*management.DevsyWorkspaceInstanceStatus), scope) }); err != nil { return err } - if err := s.AddGeneratedConversionFunc((*DevPodWorkspaceInstanceStop)(nil), (*management.DevPodWorkspaceInstanceStop)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_v1_DevPodWorkspaceInstanceStop_To_management_DevPodWorkspaceInstanceStop(a.(*DevPodWorkspaceInstanceStop), b.(*management.DevPodWorkspaceInstanceStop), scope) + if err := s.AddGeneratedConversionFunc((*management.DevsyWorkspaceInstanceStatus)(nil), (*DevsyWorkspaceInstanceStatus)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_management_DevsyWorkspaceInstanceStatus_To_v1_DevsyWorkspaceInstanceStatus(a.(*management.DevsyWorkspaceInstanceStatus), b.(*DevsyWorkspaceInstanceStatus), scope) }); err != nil { return err } - if err := s.AddGeneratedConversionFunc((*management.DevPodWorkspaceInstanceStop)(nil), (*DevPodWorkspaceInstanceStop)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_management_DevPodWorkspaceInstanceStop_To_v1_DevPodWorkspaceInstanceStop(a.(*management.DevPodWorkspaceInstanceStop), b.(*DevPodWorkspaceInstanceStop), scope) + if err := s.AddGeneratedConversionFunc((*DevsyWorkspaceInstanceStop)(nil), (*management.DevsyWorkspaceInstanceStop)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_v1_DevsyWorkspaceInstanceStop_To_management_DevsyWorkspaceInstanceStop(a.(*DevsyWorkspaceInstanceStop), b.(*management.DevsyWorkspaceInstanceStop), scope) }); err != nil { return err } - if err := s.AddGeneratedConversionFunc((*DevPodWorkspaceInstanceStopList)(nil), (*management.DevPodWorkspaceInstanceStopList)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_v1_DevPodWorkspaceInstanceStopList_To_management_DevPodWorkspaceInstanceStopList(a.(*DevPodWorkspaceInstanceStopList), b.(*management.DevPodWorkspaceInstanceStopList), scope) + if err := s.AddGeneratedConversionFunc((*management.DevsyWorkspaceInstanceStop)(nil), (*DevsyWorkspaceInstanceStop)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_management_DevsyWorkspaceInstanceStop_To_v1_DevsyWorkspaceInstanceStop(a.(*management.DevsyWorkspaceInstanceStop), b.(*DevsyWorkspaceInstanceStop), scope) }); err != nil { return err } - if err := s.AddGeneratedConversionFunc((*management.DevPodWorkspaceInstanceStopList)(nil), (*DevPodWorkspaceInstanceStopList)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_management_DevPodWorkspaceInstanceStopList_To_v1_DevPodWorkspaceInstanceStopList(a.(*management.DevPodWorkspaceInstanceStopList), b.(*DevPodWorkspaceInstanceStopList), scope) + if err := s.AddGeneratedConversionFunc((*DevsyWorkspaceInstanceStopList)(nil), (*management.DevsyWorkspaceInstanceStopList)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_v1_DevsyWorkspaceInstanceStopList_To_management_DevsyWorkspaceInstanceStopList(a.(*DevsyWorkspaceInstanceStopList), b.(*management.DevsyWorkspaceInstanceStopList), scope) }); err != nil { return err } - if err := s.AddGeneratedConversionFunc((*DevPodWorkspaceInstanceStopSpec)(nil), (*management.DevPodWorkspaceInstanceStopSpec)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_v1_DevPodWorkspaceInstanceStopSpec_To_management_DevPodWorkspaceInstanceStopSpec(a.(*DevPodWorkspaceInstanceStopSpec), b.(*management.DevPodWorkspaceInstanceStopSpec), scope) + if err := s.AddGeneratedConversionFunc((*management.DevsyWorkspaceInstanceStopList)(nil), (*DevsyWorkspaceInstanceStopList)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_management_DevsyWorkspaceInstanceStopList_To_v1_DevsyWorkspaceInstanceStopList(a.(*management.DevsyWorkspaceInstanceStopList), b.(*DevsyWorkspaceInstanceStopList), scope) }); err != nil { return err } - if err := s.AddGeneratedConversionFunc((*management.DevPodWorkspaceInstanceStopSpec)(nil), (*DevPodWorkspaceInstanceStopSpec)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_management_DevPodWorkspaceInstanceStopSpec_To_v1_DevPodWorkspaceInstanceStopSpec(a.(*management.DevPodWorkspaceInstanceStopSpec), b.(*DevPodWorkspaceInstanceStopSpec), scope) + if err := s.AddGeneratedConversionFunc((*DevsyWorkspaceInstanceStopSpec)(nil), (*management.DevsyWorkspaceInstanceStopSpec)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_v1_DevsyWorkspaceInstanceStopSpec_To_management_DevsyWorkspaceInstanceStopSpec(a.(*DevsyWorkspaceInstanceStopSpec), b.(*management.DevsyWorkspaceInstanceStopSpec), scope) }); err != nil { return err } - if err := s.AddGeneratedConversionFunc((*DevPodWorkspaceInstanceStopStatus)(nil), (*management.DevPodWorkspaceInstanceStopStatus)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_v1_DevPodWorkspaceInstanceStopStatus_To_management_DevPodWorkspaceInstanceStopStatus(a.(*DevPodWorkspaceInstanceStopStatus), b.(*management.DevPodWorkspaceInstanceStopStatus), scope) + if err := s.AddGeneratedConversionFunc((*management.DevsyWorkspaceInstanceStopSpec)(nil), (*DevsyWorkspaceInstanceStopSpec)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_management_DevsyWorkspaceInstanceStopSpec_To_v1_DevsyWorkspaceInstanceStopSpec(a.(*management.DevsyWorkspaceInstanceStopSpec), b.(*DevsyWorkspaceInstanceStopSpec), scope) }); err != nil { return err } - if err := s.AddGeneratedConversionFunc((*management.DevPodWorkspaceInstanceStopStatus)(nil), (*DevPodWorkspaceInstanceStopStatus)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_management_DevPodWorkspaceInstanceStopStatus_To_v1_DevPodWorkspaceInstanceStopStatus(a.(*management.DevPodWorkspaceInstanceStopStatus), b.(*DevPodWorkspaceInstanceStopStatus), scope) + if err := s.AddGeneratedConversionFunc((*DevsyWorkspaceInstanceStopStatus)(nil), (*management.DevsyWorkspaceInstanceStopStatus)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_v1_DevsyWorkspaceInstanceStopStatus_To_management_DevsyWorkspaceInstanceStopStatus(a.(*DevsyWorkspaceInstanceStopStatus), b.(*management.DevsyWorkspaceInstanceStopStatus), scope) }); err != nil { return err } - if err := s.AddGeneratedConversionFunc((*DevPodWorkspaceInstanceTask)(nil), (*management.DevPodWorkspaceInstanceTask)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_v1_DevPodWorkspaceInstanceTask_To_management_DevPodWorkspaceInstanceTask(a.(*DevPodWorkspaceInstanceTask), b.(*management.DevPodWorkspaceInstanceTask), scope) + if err := s.AddGeneratedConversionFunc((*management.DevsyWorkspaceInstanceStopStatus)(nil), (*DevsyWorkspaceInstanceStopStatus)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_management_DevsyWorkspaceInstanceStopStatus_To_v1_DevsyWorkspaceInstanceStopStatus(a.(*management.DevsyWorkspaceInstanceStopStatus), b.(*DevsyWorkspaceInstanceStopStatus), scope) }); err != nil { return err } - if err := s.AddGeneratedConversionFunc((*management.DevPodWorkspaceInstanceTask)(nil), (*DevPodWorkspaceInstanceTask)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_management_DevPodWorkspaceInstanceTask_To_v1_DevPodWorkspaceInstanceTask(a.(*management.DevPodWorkspaceInstanceTask), b.(*DevPodWorkspaceInstanceTask), scope) + if err := s.AddGeneratedConversionFunc((*DevsyWorkspaceInstanceTask)(nil), (*management.DevsyWorkspaceInstanceTask)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_v1_DevsyWorkspaceInstanceTask_To_management_DevsyWorkspaceInstanceTask(a.(*DevsyWorkspaceInstanceTask), b.(*management.DevsyWorkspaceInstanceTask), scope) }); err != nil { return err } - if err := s.AddGeneratedConversionFunc((*DevPodWorkspaceInstanceTasks)(nil), (*management.DevPodWorkspaceInstanceTasks)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_v1_DevPodWorkspaceInstanceTasks_To_management_DevPodWorkspaceInstanceTasks(a.(*DevPodWorkspaceInstanceTasks), b.(*management.DevPodWorkspaceInstanceTasks), scope) + if err := s.AddGeneratedConversionFunc((*management.DevsyWorkspaceInstanceTask)(nil), (*DevsyWorkspaceInstanceTask)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_management_DevsyWorkspaceInstanceTask_To_v1_DevsyWorkspaceInstanceTask(a.(*management.DevsyWorkspaceInstanceTask), b.(*DevsyWorkspaceInstanceTask), scope) }); err != nil { return err } - if err := s.AddGeneratedConversionFunc((*management.DevPodWorkspaceInstanceTasks)(nil), (*DevPodWorkspaceInstanceTasks)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_management_DevPodWorkspaceInstanceTasks_To_v1_DevPodWorkspaceInstanceTasks(a.(*management.DevPodWorkspaceInstanceTasks), b.(*DevPodWorkspaceInstanceTasks), scope) + if err := s.AddGeneratedConversionFunc((*DevsyWorkspaceInstanceTasks)(nil), (*management.DevsyWorkspaceInstanceTasks)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_v1_DevsyWorkspaceInstanceTasks_To_management_DevsyWorkspaceInstanceTasks(a.(*DevsyWorkspaceInstanceTasks), b.(*management.DevsyWorkspaceInstanceTasks), scope) }); err != nil { return err } - if err := s.AddGeneratedConversionFunc((*DevPodWorkspaceInstanceTasksList)(nil), (*management.DevPodWorkspaceInstanceTasksList)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_v1_DevPodWorkspaceInstanceTasksList_To_management_DevPodWorkspaceInstanceTasksList(a.(*DevPodWorkspaceInstanceTasksList), b.(*management.DevPodWorkspaceInstanceTasksList), scope) + if err := s.AddGeneratedConversionFunc((*management.DevsyWorkspaceInstanceTasks)(nil), (*DevsyWorkspaceInstanceTasks)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_management_DevsyWorkspaceInstanceTasks_To_v1_DevsyWorkspaceInstanceTasks(a.(*management.DevsyWorkspaceInstanceTasks), b.(*DevsyWorkspaceInstanceTasks), scope) }); err != nil { return err } - if err := s.AddGeneratedConversionFunc((*management.DevPodWorkspaceInstanceTasksList)(nil), (*DevPodWorkspaceInstanceTasksList)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_management_DevPodWorkspaceInstanceTasksList_To_v1_DevPodWorkspaceInstanceTasksList(a.(*management.DevPodWorkspaceInstanceTasksList), b.(*DevPodWorkspaceInstanceTasksList), scope) + if err := s.AddGeneratedConversionFunc((*DevsyWorkspaceInstanceTasksList)(nil), (*management.DevsyWorkspaceInstanceTasksList)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_v1_DevsyWorkspaceInstanceTasksList_To_management_DevsyWorkspaceInstanceTasksList(a.(*DevsyWorkspaceInstanceTasksList), b.(*management.DevsyWorkspaceInstanceTasksList), scope) }); err != nil { return err } - if err := s.AddGeneratedConversionFunc((*DevPodWorkspaceInstanceTasksOptions)(nil), (*management.DevPodWorkspaceInstanceTasksOptions)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_v1_DevPodWorkspaceInstanceTasksOptions_To_management_DevPodWorkspaceInstanceTasksOptions(a.(*DevPodWorkspaceInstanceTasksOptions), b.(*management.DevPodWorkspaceInstanceTasksOptions), scope) + if err := s.AddGeneratedConversionFunc((*management.DevsyWorkspaceInstanceTasksList)(nil), (*DevsyWorkspaceInstanceTasksList)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_management_DevsyWorkspaceInstanceTasksList_To_v1_DevsyWorkspaceInstanceTasksList(a.(*management.DevsyWorkspaceInstanceTasksList), b.(*DevsyWorkspaceInstanceTasksList), scope) }); err != nil { return err } - if err := s.AddGeneratedConversionFunc((*management.DevPodWorkspaceInstanceTasksOptions)(nil), (*DevPodWorkspaceInstanceTasksOptions)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_management_DevPodWorkspaceInstanceTasksOptions_To_v1_DevPodWorkspaceInstanceTasksOptions(a.(*management.DevPodWorkspaceInstanceTasksOptions), b.(*DevPodWorkspaceInstanceTasksOptions), scope) + if err := s.AddGeneratedConversionFunc((*DevsyWorkspaceInstanceTasksOptions)(nil), (*management.DevsyWorkspaceInstanceTasksOptions)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_v1_DevsyWorkspaceInstanceTasksOptions_To_management_DevsyWorkspaceInstanceTasksOptions(a.(*DevsyWorkspaceInstanceTasksOptions), b.(*management.DevsyWorkspaceInstanceTasksOptions), scope) }); err != nil { return err } - if err := s.AddGeneratedConversionFunc((*DevPodWorkspaceInstanceTroubleshoot)(nil), (*management.DevPodWorkspaceInstanceTroubleshoot)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_v1_DevPodWorkspaceInstanceTroubleshoot_To_management_DevPodWorkspaceInstanceTroubleshoot(a.(*DevPodWorkspaceInstanceTroubleshoot), b.(*management.DevPodWorkspaceInstanceTroubleshoot), scope) + if err := s.AddGeneratedConversionFunc((*management.DevsyWorkspaceInstanceTasksOptions)(nil), (*DevsyWorkspaceInstanceTasksOptions)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_management_DevsyWorkspaceInstanceTasksOptions_To_v1_DevsyWorkspaceInstanceTasksOptions(a.(*management.DevsyWorkspaceInstanceTasksOptions), b.(*DevsyWorkspaceInstanceTasksOptions), scope) }); err != nil { return err } - if err := s.AddGeneratedConversionFunc((*management.DevPodWorkspaceInstanceTroubleshoot)(nil), (*DevPodWorkspaceInstanceTroubleshoot)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_management_DevPodWorkspaceInstanceTroubleshoot_To_v1_DevPodWorkspaceInstanceTroubleshoot(a.(*management.DevPodWorkspaceInstanceTroubleshoot), b.(*DevPodWorkspaceInstanceTroubleshoot), scope) + if err := s.AddGeneratedConversionFunc((*DevsyWorkspaceInstanceTroubleshoot)(nil), (*management.DevsyWorkspaceInstanceTroubleshoot)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_v1_DevsyWorkspaceInstanceTroubleshoot_To_management_DevsyWorkspaceInstanceTroubleshoot(a.(*DevsyWorkspaceInstanceTroubleshoot), b.(*management.DevsyWorkspaceInstanceTroubleshoot), scope) }); err != nil { return err } - if err := s.AddGeneratedConversionFunc((*DevPodWorkspaceInstanceTroubleshootList)(nil), (*management.DevPodWorkspaceInstanceTroubleshootList)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_v1_DevPodWorkspaceInstanceTroubleshootList_To_management_DevPodWorkspaceInstanceTroubleshootList(a.(*DevPodWorkspaceInstanceTroubleshootList), b.(*management.DevPodWorkspaceInstanceTroubleshootList), scope) + if err := s.AddGeneratedConversionFunc((*management.DevsyWorkspaceInstanceTroubleshoot)(nil), (*DevsyWorkspaceInstanceTroubleshoot)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_management_DevsyWorkspaceInstanceTroubleshoot_To_v1_DevsyWorkspaceInstanceTroubleshoot(a.(*management.DevsyWorkspaceInstanceTroubleshoot), b.(*DevsyWorkspaceInstanceTroubleshoot), scope) }); err != nil { return err } - if err := s.AddGeneratedConversionFunc((*management.DevPodWorkspaceInstanceTroubleshootList)(nil), (*DevPodWorkspaceInstanceTroubleshootList)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_management_DevPodWorkspaceInstanceTroubleshootList_To_v1_DevPodWorkspaceInstanceTroubleshootList(a.(*management.DevPodWorkspaceInstanceTroubleshootList), b.(*DevPodWorkspaceInstanceTroubleshootList), scope) + if err := s.AddGeneratedConversionFunc((*DevsyWorkspaceInstanceTroubleshootList)(nil), (*management.DevsyWorkspaceInstanceTroubleshootList)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_v1_DevsyWorkspaceInstanceTroubleshootList_To_management_DevsyWorkspaceInstanceTroubleshootList(a.(*DevsyWorkspaceInstanceTroubleshootList), b.(*management.DevsyWorkspaceInstanceTroubleshootList), scope) }); err != nil { return err } - if err := s.AddGeneratedConversionFunc((*DevPodWorkspaceInstanceUp)(nil), (*management.DevPodWorkspaceInstanceUp)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_v1_DevPodWorkspaceInstanceUp_To_management_DevPodWorkspaceInstanceUp(a.(*DevPodWorkspaceInstanceUp), b.(*management.DevPodWorkspaceInstanceUp), scope) + if err := s.AddGeneratedConversionFunc((*management.DevsyWorkspaceInstanceTroubleshootList)(nil), (*DevsyWorkspaceInstanceTroubleshootList)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_management_DevsyWorkspaceInstanceTroubleshootList_To_v1_DevsyWorkspaceInstanceTroubleshootList(a.(*management.DevsyWorkspaceInstanceTroubleshootList), b.(*DevsyWorkspaceInstanceTroubleshootList), scope) }); err != nil { return err } - if err := s.AddGeneratedConversionFunc((*management.DevPodWorkspaceInstanceUp)(nil), (*DevPodWorkspaceInstanceUp)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_management_DevPodWorkspaceInstanceUp_To_v1_DevPodWorkspaceInstanceUp(a.(*management.DevPodWorkspaceInstanceUp), b.(*DevPodWorkspaceInstanceUp), scope) + if err := s.AddGeneratedConversionFunc((*DevsyWorkspaceInstanceUp)(nil), (*management.DevsyWorkspaceInstanceUp)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_v1_DevsyWorkspaceInstanceUp_To_management_DevsyWorkspaceInstanceUp(a.(*DevsyWorkspaceInstanceUp), b.(*management.DevsyWorkspaceInstanceUp), scope) }); err != nil { return err } - if err := s.AddGeneratedConversionFunc((*DevPodWorkspaceInstanceUpList)(nil), (*management.DevPodWorkspaceInstanceUpList)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_v1_DevPodWorkspaceInstanceUpList_To_management_DevPodWorkspaceInstanceUpList(a.(*DevPodWorkspaceInstanceUpList), b.(*management.DevPodWorkspaceInstanceUpList), scope) + if err := s.AddGeneratedConversionFunc((*management.DevsyWorkspaceInstanceUp)(nil), (*DevsyWorkspaceInstanceUp)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_management_DevsyWorkspaceInstanceUp_To_v1_DevsyWorkspaceInstanceUp(a.(*management.DevsyWorkspaceInstanceUp), b.(*DevsyWorkspaceInstanceUp), scope) }); err != nil { return err } - if err := s.AddGeneratedConversionFunc((*management.DevPodWorkspaceInstanceUpList)(nil), (*DevPodWorkspaceInstanceUpList)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_management_DevPodWorkspaceInstanceUpList_To_v1_DevPodWorkspaceInstanceUpList(a.(*management.DevPodWorkspaceInstanceUpList), b.(*DevPodWorkspaceInstanceUpList), scope) + if err := s.AddGeneratedConversionFunc((*DevsyWorkspaceInstanceUpList)(nil), (*management.DevsyWorkspaceInstanceUpList)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_v1_DevsyWorkspaceInstanceUpList_To_management_DevsyWorkspaceInstanceUpList(a.(*DevsyWorkspaceInstanceUpList), b.(*management.DevsyWorkspaceInstanceUpList), scope) }); err != nil { return err } - if err := s.AddGeneratedConversionFunc((*DevPodWorkspaceInstanceUpSpec)(nil), (*management.DevPodWorkspaceInstanceUpSpec)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_v1_DevPodWorkspaceInstanceUpSpec_To_management_DevPodWorkspaceInstanceUpSpec(a.(*DevPodWorkspaceInstanceUpSpec), b.(*management.DevPodWorkspaceInstanceUpSpec), scope) + if err := s.AddGeneratedConversionFunc((*management.DevsyWorkspaceInstanceUpList)(nil), (*DevsyWorkspaceInstanceUpList)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_management_DevsyWorkspaceInstanceUpList_To_v1_DevsyWorkspaceInstanceUpList(a.(*management.DevsyWorkspaceInstanceUpList), b.(*DevsyWorkspaceInstanceUpList), scope) }); err != nil { return err } - if err := s.AddGeneratedConversionFunc((*management.DevPodWorkspaceInstanceUpSpec)(nil), (*DevPodWorkspaceInstanceUpSpec)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_management_DevPodWorkspaceInstanceUpSpec_To_v1_DevPodWorkspaceInstanceUpSpec(a.(*management.DevPodWorkspaceInstanceUpSpec), b.(*DevPodWorkspaceInstanceUpSpec), scope) + if err := s.AddGeneratedConversionFunc((*DevsyWorkspaceInstanceUpSpec)(nil), (*management.DevsyWorkspaceInstanceUpSpec)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_v1_DevsyWorkspaceInstanceUpSpec_To_management_DevsyWorkspaceInstanceUpSpec(a.(*DevsyWorkspaceInstanceUpSpec), b.(*management.DevsyWorkspaceInstanceUpSpec), scope) }); err != nil { return err } - if err := s.AddGeneratedConversionFunc((*DevPodWorkspaceInstanceUpStatus)(nil), (*management.DevPodWorkspaceInstanceUpStatus)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_v1_DevPodWorkspaceInstanceUpStatus_To_management_DevPodWorkspaceInstanceUpStatus(a.(*DevPodWorkspaceInstanceUpStatus), b.(*management.DevPodWorkspaceInstanceUpStatus), scope) + if err := s.AddGeneratedConversionFunc((*management.DevsyWorkspaceInstanceUpSpec)(nil), (*DevsyWorkspaceInstanceUpSpec)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_management_DevsyWorkspaceInstanceUpSpec_To_v1_DevsyWorkspaceInstanceUpSpec(a.(*management.DevsyWorkspaceInstanceUpSpec), b.(*DevsyWorkspaceInstanceUpSpec), scope) }); err != nil { return err } - if err := s.AddGeneratedConversionFunc((*management.DevPodWorkspaceInstanceUpStatus)(nil), (*DevPodWorkspaceInstanceUpStatus)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_management_DevPodWorkspaceInstanceUpStatus_To_v1_DevPodWorkspaceInstanceUpStatus(a.(*management.DevPodWorkspaceInstanceUpStatus), b.(*DevPodWorkspaceInstanceUpStatus), scope) + if err := s.AddGeneratedConversionFunc((*DevsyWorkspaceInstanceUpStatus)(nil), (*management.DevsyWorkspaceInstanceUpStatus)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_v1_DevsyWorkspaceInstanceUpStatus_To_management_DevsyWorkspaceInstanceUpStatus(a.(*DevsyWorkspaceInstanceUpStatus), b.(*management.DevsyWorkspaceInstanceUpStatus), scope) }); err != nil { return err } - if err := s.AddGeneratedConversionFunc((*DevPodWorkspacePreset)(nil), (*management.DevPodWorkspacePreset)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_v1_DevPodWorkspacePreset_To_management_DevPodWorkspacePreset(a.(*DevPodWorkspacePreset), b.(*management.DevPodWorkspacePreset), scope) + if err := s.AddGeneratedConversionFunc((*management.DevsyWorkspaceInstanceUpStatus)(nil), (*DevsyWorkspaceInstanceUpStatus)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_management_DevsyWorkspaceInstanceUpStatus_To_v1_DevsyWorkspaceInstanceUpStatus(a.(*management.DevsyWorkspaceInstanceUpStatus), b.(*DevsyWorkspaceInstanceUpStatus), scope) }); err != nil { return err } - if err := s.AddGeneratedConversionFunc((*management.DevPodWorkspacePreset)(nil), (*DevPodWorkspacePreset)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_management_DevPodWorkspacePreset_To_v1_DevPodWorkspacePreset(a.(*management.DevPodWorkspacePreset), b.(*DevPodWorkspacePreset), scope) + if err := s.AddGeneratedConversionFunc((*DevsyWorkspacePreset)(nil), (*management.DevsyWorkspacePreset)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_v1_DevsyWorkspacePreset_To_management_DevsyWorkspacePreset(a.(*DevsyWorkspacePreset), b.(*management.DevsyWorkspacePreset), scope) }); err != nil { return err } - if err := s.AddGeneratedConversionFunc((*DevPodWorkspacePresetList)(nil), (*management.DevPodWorkspacePresetList)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_v1_DevPodWorkspacePresetList_To_management_DevPodWorkspacePresetList(a.(*DevPodWorkspacePresetList), b.(*management.DevPodWorkspacePresetList), scope) + if err := s.AddGeneratedConversionFunc((*management.DevsyWorkspacePreset)(nil), (*DevsyWorkspacePreset)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_management_DevsyWorkspacePreset_To_v1_DevsyWorkspacePreset(a.(*management.DevsyWorkspacePreset), b.(*DevsyWorkspacePreset), scope) }); err != nil { return err } - if err := s.AddGeneratedConversionFunc((*management.DevPodWorkspacePresetList)(nil), (*DevPodWorkspacePresetList)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_management_DevPodWorkspacePresetList_To_v1_DevPodWorkspacePresetList(a.(*management.DevPodWorkspacePresetList), b.(*DevPodWorkspacePresetList), scope) + if err := s.AddGeneratedConversionFunc((*DevsyWorkspacePresetList)(nil), (*management.DevsyWorkspacePresetList)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_v1_DevsyWorkspacePresetList_To_management_DevsyWorkspacePresetList(a.(*DevsyWorkspacePresetList), b.(*management.DevsyWorkspacePresetList), scope) }); err != nil { return err } - if err := s.AddGeneratedConversionFunc((*DevPodWorkspacePresetSpec)(nil), (*management.DevPodWorkspacePresetSpec)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_v1_DevPodWorkspacePresetSpec_To_management_DevPodWorkspacePresetSpec(a.(*DevPodWorkspacePresetSpec), b.(*management.DevPodWorkspacePresetSpec), scope) + if err := s.AddGeneratedConversionFunc((*management.DevsyWorkspacePresetList)(nil), (*DevsyWorkspacePresetList)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_management_DevsyWorkspacePresetList_To_v1_DevsyWorkspacePresetList(a.(*management.DevsyWorkspacePresetList), b.(*DevsyWorkspacePresetList), scope) }); err != nil { return err } - if err := s.AddGeneratedConversionFunc((*management.DevPodWorkspacePresetSpec)(nil), (*DevPodWorkspacePresetSpec)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_management_DevPodWorkspacePresetSpec_To_v1_DevPodWorkspacePresetSpec(a.(*management.DevPodWorkspacePresetSpec), b.(*DevPodWorkspacePresetSpec), scope) + if err := s.AddGeneratedConversionFunc((*DevsyWorkspacePresetSpec)(nil), (*management.DevsyWorkspacePresetSpec)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_v1_DevsyWorkspacePresetSpec_To_management_DevsyWorkspacePresetSpec(a.(*DevsyWorkspacePresetSpec), b.(*management.DevsyWorkspacePresetSpec), scope) }); err != nil { return err } - if err := s.AddGeneratedConversionFunc((*DevPodWorkspacePresetStatus)(nil), (*management.DevPodWorkspacePresetStatus)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_v1_DevPodWorkspacePresetStatus_To_management_DevPodWorkspacePresetStatus(a.(*DevPodWorkspacePresetStatus), b.(*management.DevPodWorkspacePresetStatus), scope) + if err := s.AddGeneratedConversionFunc((*management.DevsyWorkspacePresetSpec)(nil), (*DevsyWorkspacePresetSpec)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_management_DevsyWorkspacePresetSpec_To_v1_DevsyWorkspacePresetSpec(a.(*management.DevsyWorkspacePresetSpec), b.(*DevsyWorkspacePresetSpec), scope) }); err != nil { return err } - if err := s.AddGeneratedConversionFunc((*management.DevPodWorkspacePresetStatus)(nil), (*DevPodWorkspacePresetStatus)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_management_DevPodWorkspacePresetStatus_To_v1_DevPodWorkspacePresetStatus(a.(*management.DevPodWorkspacePresetStatus), b.(*DevPodWorkspacePresetStatus), scope) + if err := s.AddGeneratedConversionFunc((*DevsyWorkspacePresetStatus)(nil), (*management.DevsyWorkspacePresetStatus)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_v1_DevsyWorkspacePresetStatus_To_management_DevsyWorkspacePresetStatus(a.(*DevsyWorkspacePresetStatus), b.(*management.DevsyWorkspacePresetStatus), scope) }); err != nil { return err } - if err := s.AddGeneratedConversionFunc((*DevPodWorkspaceTemplate)(nil), (*management.DevPodWorkspaceTemplate)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_v1_DevPodWorkspaceTemplate_To_management_DevPodWorkspaceTemplate(a.(*DevPodWorkspaceTemplate), b.(*management.DevPodWorkspaceTemplate), scope) + if err := s.AddGeneratedConversionFunc((*management.DevsyWorkspacePresetStatus)(nil), (*DevsyWorkspacePresetStatus)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_management_DevsyWorkspacePresetStatus_To_v1_DevsyWorkspacePresetStatus(a.(*management.DevsyWorkspacePresetStatus), b.(*DevsyWorkspacePresetStatus), scope) }); err != nil { return err } - if err := s.AddGeneratedConversionFunc((*management.DevPodWorkspaceTemplate)(nil), (*DevPodWorkspaceTemplate)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_management_DevPodWorkspaceTemplate_To_v1_DevPodWorkspaceTemplate(a.(*management.DevPodWorkspaceTemplate), b.(*DevPodWorkspaceTemplate), scope) + if err := s.AddGeneratedConversionFunc((*DevsyWorkspaceTemplate)(nil), (*management.DevsyWorkspaceTemplate)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_v1_DevsyWorkspaceTemplate_To_management_DevsyWorkspaceTemplate(a.(*DevsyWorkspaceTemplate), b.(*management.DevsyWorkspaceTemplate), scope) }); err != nil { return err } - if err := s.AddGeneratedConversionFunc((*DevPodWorkspaceTemplateList)(nil), (*management.DevPodWorkspaceTemplateList)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_v1_DevPodWorkspaceTemplateList_To_management_DevPodWorkspaceTemplateList(a.(*DevPodWorkspaceTemplateList), b.(*management.DevPodWorkspaceTemplateList), scope) + if err := s.AddGeneratedConversionFunc((*management.DevsyWorkspaceTemplate)(nil), (*DevsyWorkspaceTemplate)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_management_DevsyWorkspaceTemplate_To_v1_DevsyWorkspaceTemplate(a.(*management.DevsyWorkspaceTemplate), b.(*DevsyWorkspaceTemplate), scope) }); err != nil { return err } - if err := s.AddGeneratedConversionFunc((*management.DevPodWorkspaceTemplateList)(nil), (*DevPodWorkspaceTemplateList)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_management_DevPodWorkspaceTemplateList_To_v1_DevPodWorkspaceTemplateList(a.(*management.DevPodWorkspaceTemplateList), b.(*DevPodWorkspaceTemplateList), scope) + if err := s.AddGeneratedConversionFunc((*DevsyWorkspaceTemplateList)(nil), (*management.DevsyWorkspaceTemplateList)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_v1_DevsyWorkspaceTemplateList_To_management_DevsyWorkspaceTemplateList(a.(*DevsyWorkspaceTemplateList), b.(*management.DevsyWorkspaceTemplateList), scope) }); err != nil { return err } - if err := s.AddGeneratedConversionFunc((*DevPodWorkspaceTemplateSpec)(nil), (*management.DevPodWorkspaceTemplateSpec)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_v1_DevPodWorkspaceTemplateSpec_To_management_DevPodWorkspaceTemplateSpec(a.(*DevPodWorkspaceTemplateSpec), b.(*management.DevPodWorkspaceTemplateSpec), scope) + if err := s.AddGeneratedConversionFunc((*management.DevsyWorkspaceTemplateList)(nil), (*DevsyWorkspaceTemplateList)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_management_DevsyWorkspaceTemplateList_To_v1_DevsyWorkspaceTemplateList(a.(*management.DevsyWorkspaceTemplateList), b.(*DevsyWorkspaceTemplateList), scope) }); err != nil { return err } - if err := s.AddGeneratedConversionFunc((*management.DevPodWorkspaceTemplateSpec)(nil), (*DevPodWorkspaceTemplateSpec)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_management_DevPodWorkspaceTemplateSpec_To_v1_DevPodWorkspaceTemplateSpec(a.(*management.DevPodWorkspaceTemplateSpec), b.(*DevPodWorkspaceTemplateSpec), scope) + if err := s.AddGeneratedConversionFunc((*DevsyWorkspaceTemplateSpec)(nil), (*management.DevsyWorkspaceTemplateSpec)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_v1_DevsyWorkspaceTemplateSpec_To_management_DevsyWorkspaceTemplateSpec(a.(*DevsyWorkspaceTemplateSpec), b.(*management.DevsyWorkspaceTemplateSpec), scope) }); err != nil { return err } - if err := s.AddGeneratedConversionFunc((*DevPodWorkspaceTemplateStatus)(nil), (*management.DevPodWorkspaceTemplateStatus)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_v1_DevPodWorkspaceTemplateStatus_To_management_DevPodWorkspaceTemplateStatus(a.(*DevPodWorkspaceTemplateStatus), b.(*management.DevPodWorkspaceTemplateStatus), scope) + if err := s.AddGeneratedConversionFunc((*management.DevsyWorkspaceTemplateSpec)(nil), (*DevsyWorkspaceTemplateSpec)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_management_DevsyWorkspaceTemplateSpec_To_v1_DevsyWorkspaceTemplateSpec(a.(*management.DevsyWorkspaceTemplateSpec), b.(*DevsyWorkspaceTemplateSpec), scope) }); err != nil { return err } - if err := s.AddGeneratedConversionFunc((*management.DevPodWorkspaceTemplateStatus)(nil), (*DevPodWorkspaceTemplateStatus)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_management_DevPodWorkspaceTemplateStatus_To_v1_DevPodWorkspaceTemplateStatus(a.(*management.DevPodWorkspaceTemplateStatus), b.(*DevPodWorkspaceTemplateStatus), scope) + if err := s.AddGeneratedConversionFunc((*DevsyWorkspaceTemplateStatus)(nil), (*management.DevsyWorkspaceTemplateStatus)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_v1_DevsyWorkspaceTemplateStatus_To_management_DevsyWorkspaceTemplateStatus(a.(*DevsyWorkspaceTemplateStatus), b.(*management.DevsyWorkspaceTemplateStatus), scope) + }); err != nil { + return err + } + if err := s.AddGeneratedConversionFunc((*management.DevsyWorkspaceTemplateStatus)(nil), (*DevsyWorkspaceTemplateStatus)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_management_DevsyWorkspaceTemplateStatus_To_v1_DevsyWorkspaceTemplateStatus(a.(*management.DevsyWorkspaceTemplateStatus), b.(*DevsyWorkspaceTemplateStatus), scope) }); err != nil { return err } @@ -1650,46 +1690,6 @@ func RegisterConversions(s *runtime.Scheme) error { }); err != nil { return err } - if err := s.AddGeneratedConversionFunc((*DevsyUpgrade)(nil), (*management.DevsyUpgrade)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_v1_DevsyUpgrade_To_management_DevsyUpgrade(a.(*DevsyUpgrade), b.(*management.DevsyUpgrade), scope) - }); err != nil { - return err - } - if err := s.AddGeneratedConversionFunc((*management.DevsyUpgrade)(nil), (*DevsyUpgrade)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_management_DevsyUpgrade_To_v1_DevsyUpgrade(a.(*management.DevsyUpgrade), b.(*DevsyUpgrade), scope) - }); err != nil { - return err - } - if err := s.AddGeneratedConversionFunc((*DevsyUpgradeList)(nil), (*management.DevsyUpgradeList)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_v1_DevsyUpgradeList_To_management_DevsyUpgradeList(a.(*DevsyUpgradeList), b.(*management.DevsyUpgradeList), scope) - }); err != nil { - return err - } - if err := s.AddGeneratedConversionFunc((*management.DevsyUpgradeList)(nil), (*DevsyUpgradeList)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_management_DevsyUpgradeList_To_v1_DevsyUpgradeList(a.(*management.DevsyUpgradeList), b.(*DevsyUpgradeList), scope) - }); err != nil { - return err - } - if err := s.AddGeneratedConversionFunc((*DevsyUpgradeSpec)(nil), (*management.DevsyUpgradeSpec)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_v1_DevsyUpgradeSpec_To_management_DevsyUpgradeSpec(a.(*DevsyUpgradeSpec), b.(*management.DevsyUpgradeSpec), scope) - }); err != nil { - return err - } - if err := s.AddGeneratedConversionFunc((*management.DevsyUpgradeSpec)(nil), (*DevsyUpgradeSpec)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_management_DevsyUpgradeSpec_To_v1_DevsyUpgradeSpec(a.(*management.DevsyUpgradeSpec), b.(*DevsyUpgradeSpec), scope) - }); err != nil { - return err - } - if err := s.AddGeneratedConversionFunc((*DevsyUpgradeStatus)(nil), (*management.DevsyUpgradeStatus)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_v1_DevsyUpgradeStatus_To_management_DevsyUpgradeStatus(a.(*DevsyUpgradeStatus), b.(*management.DevsyUpgradeStatus), scope) - }); err != nil { - return err - } - if err := s.AddGeneratedConversionFunc((*management.DevsyUpgradeStatus)(nil), (*DevsyUpgradeStatus)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_management_DevsyUpgradeStatus_To_v1_DevsyUpgradeStatus(a.(*management.DevsyUpgradeStatus), b.(*DevsyUpgradeStatus), scope) - }); err != nil { - return err - } if err := s.AddGeneratedConversionFunc((*MaintenanceWindow)(nil), (*management.MaintenanceWindow)(nil), func(a, b interface{}, scope conversion.Scope) error { return Convert_v1_MaintenanceWindow_To_management_MaintenanceWindow(a.(*MaintenanceWindow), b.(*management.MaintenanceWindow), scope) }); err != nil { @@ -3725,18 +3725,18 @@ func RegisterConversions(s *runtime.Scheme) error { }); err != nil { return err } - if err := s.AddGeneratedConversionFunc((*url.Values)(nil), (*DevPodWorkspaceInstanceDownloadOptions)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_url_Values_To_v1_DevPodWorkspaceInstanceDownloadOptions(a.(*url.Values), b.(*DevPodWorkspaceInstanceDownloadOptions), scope) + if err := s.AddGeneratedConversionFunc((*url.Values)(nil), (*DevsyWorkspaceInstanceDownloadOptions)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_url_Values_To_v1_DevsyWorkspaceInstanceDownloadOptions(a.(*url.Values), b.(*DevsyWorkspaceInstanceDownloadOptions), scope) }); err != nil { return err } - if err := s.AddGeneratedConversionFunc((*url.Values)(nil), (*DevPodWorkspaceInstanceLogOptions)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_url_Values_To_v1_DevPodWorkspaceInstanceLogOptions(a.(*url.Values), b.(*DevPodWorkspaceInstanceLogOptions), scope) + if err := s.AddGeneratedConversionFunc((*url.Values)(nil), (*DevsyWorkspaceInstanceLogOptions)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_url_Values_To_v1_DevsyWorkspaceInstanceLogOptions(a.(*url.Values), b.(*DevsyWorkspaceInstanceLogOptions), scope) }); err != nil { return err } - if err := s.AddGeneratedConversionFunc((*url.Values)(nil), (*DevPodWorkspaceInstanceTasksOptions)(nil), func(a, b interface{}, scope conversion.Scope) error { - return Convert_url_Values_To_v1_DevPodWorkspaceInstanceTasksOptions(a.(*url.Values), b.(*DevPodWorkspaceInstanceTasksOptions), scope) + if err := s.AddGeneratedConversionFunc((*url.Values)(nil), (*DevsyWorkspaceInstanceTasksOptions)(nil), func(a, b interface{}, scope conversion.Scope) error { + return Convert_url_Values_To_v1_DevsyWorkspaceInstanceTasksOptions(a.(*url.Values), b.(*DevsyWorkspaceInstanceTasksOptions), scope) }); err != nil { return err } @@ -4529,7 +4529,7 @@ func autoConvert_v1_AuthenticationOIDC_To_management_AuthenticationOIDC(in *Auth out.CAFile = in.CAFile out.InsecureCA = in.InsecureCA out.PreferredUsernameClaim = in.PreferredUsernameClaim - out.LoftUsernameClaim = in.LoftUsernameClaim + out.DevsyUsernameClaim = in.DevsyUsernameClaim out.UsernameClaim = in.UsernameClaim out.EmailClaim = in.EmailClaim out.AllowedExtraClaims = *(*[]string)(unsafe.Pointer(&in.AllowedExtraClaims)) @@ -4557,7 +4557,7 @@ func autoConvert_management_AuthenticationOIDC_To_v1_AuthenticationOIDC(in *mana out.CAFile = in.CAFile out.InsecureCA = in.InsecureCA out.PreferredUsernameClaim = in.PreferredUsernameClaim - out.LoftUsernameClaim = in.LoftUsernameClaim + out.DevsyUsernameClaim = in.DevsyUsernameClaim out.UsernameClaim = in.UsernameClaim out.EmailClaim = in.EmailClaim out.AllowedExtraClaims = *(*[]string)(unsafe.Pointer(&in.AllowedExtraClaims)) @@ -4930,7 +4930,7 @@ func Convert_management_ClusterAccess_To_v1_ClusterAccess(in *management.Cluster func autoConvert_v1_ClusterAccessKey_To_management_ClusterAccessKey(in *ClusterAccessKey, out *management.ClusterAccessKey, s conversion.Scope) error { out.ObjectMeta = in.ObjectMeta out.AccessKey = in.AccessKey - out.LoftHost = in.LoftHost + out.DevsyHost = in.DevsyHost out.Insecure = in.Insecure out.CaCert = in.CaCert return nil @@ -4944,7 +4944,7 @@ func Convert_v1_ClusterAccessKey_To_management_ClusterAccessKey(in *ClusterAcces func autoConvert_management_ClusterAccessKey_To_v1_ClusterAccessKey(in *management.ClusterAccessKey, out *ClusterAccessKey, s conversion.Scope) error { out.ObjectMeta = in.ObjectMeta out.AccessKey = in.AccessKey - out.LoftHost = in.LoftHost + out.DevsyHost = in.DevsyHost out.Insecure = in.Insecure out.CaCert = in.CaCert return nil @@ -5130,9 +5130,9 @@ func autoConvert_v1_ClusterAgentConfigCommon_To_management_ClusterAgentConfigCom out.Audit = (*management.AgentAuditConfig)(unsafe.Pointer(in.Audit)) out.DefaultImageRegistry = in.DefaultImageRegistry out.TokenCaCert = *(*[]byte)(unsafe.Pointer(&in.TokenCaCert)) - out.LoftHost = in.LoftHost + out.DevsyHost = in.DevsyHost out.ProjectNamespacePrefix = in.ProjectNamespacePrefix - out.LoftInstanceID = in.LoftInstanceID + out.DevsyInstanceID = in.DevsyInstanceID if err := Convert_v1_AgentAnalyticsSpec_To_management_AgentAnalyticsSpec(&in.AnalyticsSpec, &out.AnalyticsSpec, s); err != nil { return err } @@ -5151,9 +5151,9 @@ func autoConvert_management_ClusterAgentConfigCommon_To_v1_ClusterAgentConfigCom out.Audit = (*AgentAuditConfig)(unsafe.Pointer(in.Audit)) out.DefaultImageRegistry = in.DefaultImageRegistry out.TokenCaCert = *(*[]byte)(unsafe.Pointer(&in.TokenCaCert)) - out.LoftHost = in.LoftHost + out.DevsyHost = in.DevsyHost out.ProjectNamespacePrefix = in.ProjectNamespacePrefix - out.LoftInstanceID = in.LoftInstanceID + out.DevsyInstanceID = in.DevsyInstanceID if err := Convert_management_AgentAnalyticsSpec_To_v1_AgentAnalyticsSpec(&in.AnalyticsSpec, &out.AnalyticsSpec, s); err != nil { return err } @@ -5680,9 +5680,9 @@ func autoConvert_v1_ConfigStatus_To_management_ConfigStatus(in *ConfigStatus, ou out.OIDC = (*management.OIDC)(unsafe.Pointer(in.OIDC)) out.Apps = (*management.Apps)(unsafe.Pointer(in.Apps)) out.Audit = (*management.Audit)(unsafe.Pointer(in.Audit)) - out.LoftHost = in.LoftHost + out.DevsyHost = in.DevsyHost out.ProjectNamespacePrefix = (*string)(unsafe.Pointer(in.ProjectNamespacePrefix)) - out.DevPodSubDomain = in.DevPodSubDomain + out.DevsySubDomain = in.DevsySubDomain out.UISettings = (*uiv1.UISettingsConfig)(unsafe.Pointer(in.UISettings)) out.VaultIntegration = (*storagev1.VaultIntegrationSpec)(unsafe.Pointer(in.VaultIntegration)) out.DisableConfigEndpoint = in.DisableConfigEndpoint @@ -5706,9 +5706,9 @@ func autoConvert_management_ConfigStatus_To_v1_ConfigStatus(in *management.Confi out.OIDC = (*OIDC)(unsafe.Pointer(in.OIDC)) out.Apps = (*Apps)(unsafe.Pointer(in.Apps)) out.Audit = (*Audit)(unsafe.Pointer(in.Audit)) - out.LoftHost = in.LoftHost + out.DevsyHost = in.DevsyHost out.ProjectNamespacePrefix = (*string)(unsafe.Pointer(in.ProjectNamespacePrefix)) - out.DevPodSubDomain = in.DevPodSubDomain + out.DevsySubDomain = in.DevsySubDomain out.UISettings = (*uiv1.UISettingsConfig)(unsafe.Pointer(in.UISettings)) out.VaultIntegration = (*storagev1.VaultIntegrationSpec)(unsafe.Pointer(in.VaultIntegration)) out.DisableConfigEndpoint = in.DisableConfigEndpoint @@ -6125,237 +6125,333 @@ func Convert_management_DatabaseConnectorStatus_To_v1_DatabaseConnectorStatus(in return autoConvert_management_DatabaseConnectorStatus_To_v1_DatabaseConnectorStatus(in, out, s) } -func autoConvert_v1_DevPodEnvironmentTemplate_To_management_DevPodEnvironmentTemplate(in *DevPodEnvironmentTemplate, out *management.DevPodEnvironmentTemplate, s conversion.Scope) error { +func autoConvert_v1_DevsyEnvironmentTemplate_To_management_DevsyEnvironmentTemplate(in *DevsyEnvironmentTemplate, out *management.DevsyEnvironmentTemplate, s conversion.Scope) error { + out.ObjectMeta = in.ObjectMeta + if err := Convert_v1_DevsyEnvironmentTemplateSpec_To_management_DevsyEnvironmentTemplateSpec(&in.Spec, &out.Spec, s); err != nil { + return err + } + if err := Convert_v1_DevsyEnvironmentTemplateStatus_To_management_DevsyEnvironmentTemplateStatus(&in.Status, &out.Status, s); err != nil { + return err + } + return nil +} + +// Convert_v1_DevsyEnvironmentTemplate_To_management_DevsyEnvironmentTemplate is an autogenerated conversion function. +func Convert_v1_DevsyEnvironmentTemplate_To_management_DevsyEnvironmentTemplate(in *DevsyEnvironmentTemplate, out *management.DevsyEnvironmentTemplate, s conversion.Scope) error { + return autoConvert_v1_DevsyEnvironmentTemplate_To_management_DevsyEnvironmentTemplate(in, out, s) +} + +func autoConvert_management_DevsyEnvironmentTemplate_To_v1_DevsyEnvironmentTemplate(in *management.DevsyEnvironmentTemplate, out *DevsyEnvironmentTemplate, s conversion.Scope) error { + out.ObjectMeta = in.ObjectMeta + if err := Convert_management_DevsyEnvironmentTemplateSpec_To_v1_DevsyEnvironmentTemplateSpec(&in.Spec, &out.Spec, s); err != nil { + return err + } + if err := Convert_management_DevsyEnvironmentTemplateStatus_To_v1_DevsyEnvironmentTemplateStatus(&in.Status, &out.Status, s); err != nil { + return err + } + return nil +} + +// Convert_management_DevsyEnvironmentTemplate_To_v1_DevsyEnvironmentTemplate is an autogenerated conversion function. +func Convert_management_DevsyEnvironmentTemplate_To_v1_DevsyEnvironmentTemplate(in *management.DevsyEnvironmentTemplate, out *DevsyEnvironmentTemplate, s conversion.Scope) error { + return autoConvert_management_DevsyEnvironmentTemplate_To_v1_DevsyEnvironmentTemplate(in, out, s) +} + +func autoConvert_v1_DevsyEnvironmentTemplateList_To_management_DevsyEnvironmentTemplateList(in *DevsyEnvironmentTemplateList, out *management.DevsyEnvironmentTemplateList, s conversion.Scope) error { + out.ListMeta = in.ListMeta + out.Items = *(*[]management.DevsyEnvironmentTemplate)(unsafe.Pointer(&in.Items)) + return nil +} + +// Convert_v1_DevsyEnvironmentTemplateList_To_management_DevsyEnvironmentTemplateList is an autogenerated conversion function. +func Convert_v1_DevsyEnvironmentTemplateList_To_management_DevsyEnvironmentTemplateList(in *DevsyEnvironmentTemplateList, out *management.DevsyEnvironmentTemplateList, s conversion.Scope) error { + return autoConvert_v1_DevsyEnvironmentTemplateList_To_management_DevsyEnvironmentTemplateList(in, out, s) +} + +func autoConvert_management_DevsyEnvironmentTemplateList_To_v1_DevsyEnvironmentTemplateList(in *management.DevsyEnvironmentTemplateList, out *DevsyEnvironmentTemplateList, s conversion.Scope) error { + out.ListMeta = in.ListMeta + out.Items = *(*[]DevsyEnvironmentTemplate)(unsafe.Pointer(&in.Items)) + return nil +} + +// Convert_management_DevsyEnvironmentTemplateList_To_v1_DevsyEnvironmentTemplateList is an autogenerated conversion function. +func Convert_management_DevsyEnvironmentTemplateList_To_v1_DevsyEnvironmentTemplateList(in *management.DevsyEnvironmentTemplateList, out *DevsyEnvironmentTemplateList, s conversion.Scope) error { + return autoConvert_management_DevsyEnvironmentTemplateList_To_v1_DevsyEnvironmentTemplateList(in, out, s) +} + +func autoConvert_v1_DevsyEnvironmentTemplateSpec_To_management_DevsyEnvironmentTemplateSpec(in *DevsyEnvironmentTemplateSpec, out *management.DevsyEnvironmentTemplateSpec, s conversion.Scope) error { + out.DevsyEnvironmentTemplateSpec = in.DevsyEnvironmentTemplateSpec + return nil +} + +// Convert_v1_DevsyEnvironmentTemplateSpec_To_management_DevsyEnvironmentTemplateSpec is an autogenerated conversion function. +func Convert_v1_DevsyEnvironmentTemplateSpec_To_management_DevsyEnvironmentTemplateSpec(in *DevsyEnvironmentTemplateSpec, out *management.DevsyEnvironmentTemplateSpec, s conversion.Scope) error { + return autoConvert_v1_DevsyEnvironmentTemplateSpec_To_management_DevsyEnvironmentTemplateSpec(in, out, s) +} + +func autoConvert_management_DevsyEnvironmentTemplateSpec_To_v1_DevsyEnvironmentTemplateSpec(in *management.DevsyEnvironmentTemplateSpec, out *DevsyEnvironmentTemplateSpec, s conversion.Scope) error { + out.DevsyEnvironmentTemplateSpec = in.DevsyEnvironmentTemplateSpec + return nil +} + +// Convert_management_DevsyEnvironmentTemplateSpec_To_v1_DevsyEnvironmentTemplateSpec is an autogenerated conversion function. +func Convert_management_DevsyEnvironmentTemplateSpec_To_v1_DevsyEnvironmentTemplateSpec(in *management.DevsyEnvironmentTemplateSpec, out *DevsyEnvironmentTemplateSpec, s conversion.Scope) error { + return autoConvert_management_DevsyEnvironmentTemplateSpec_To_v1_DevsyEnvironmentTemplateSpec(in, out, s) +} + +func autoConvert_v1_DevsyEnvironmentTemplateStatus_To_management_DevsyEnvironmentTemplateStatus(in *DevsyEnvironmentTemplateStatus, out *management.DevsyEnvironmentTemplateStatus, s conversion.Scope) error { + return nil +} + +// Convert_v1_DevsyEnvironmentTemplateStatus_To_management_DevsyEnvironmentTemplateStatus is an autogenerated conversion function. +func Convert_v1_DevsyEnvironmentTemplateStatus_To_management_DevsyEnvironmentTemplateStatus(in *DevsyEnvironmentTemplateStatus, out *management.DevsyEnvironmentTemplateStatus, s conversion.Scope) error { + return autoConvert_v1_DevsyEnvironmentTemplateStatus_To_management_DevsyEnvironmentTemplateStatus(in, out, s) +} + +func autoConvert_management_DevsyEnvironmentTemplateStatus_To_v1_DevsyEnvironmentTemplateStatus(in *management.DevsyEnvironmentTemplateStatus, out *DevsyEnvironmentTemplateStatus, s conversion.Scope) error { + return nil +} + +// Convert_management_DevsyEnvironmentTemplateStatus_To_v1_DevsyEnvironmentTemplateStatus is an autogenerated conversion function. +func Convert_management_DevsyEnvironmentTemplateStatus_To_v1_DevsyEnvironmentTemplateStatus(in *management.DevsyEnvironmentTemplateStatus, out *DevsyEnvironmentTemplateStatus, s conversion.Scope) error { + return autoConvert_management_DevsyEnvironmentTemplateStatus_To_v1_DevsyEnvironmentTemplateStatus(in, out, s) +} + +func autoConvert_v1_DevsyUpgrade_To_management_DevsyUpgrade(in *DevsyUpgrade, out *management.DevsyUpgrade, s conversion.Scope) error { out.ObjectMeta = in.ObjectMeta - if err := Convert_v1_DevPodEnvironmentTemplateSpec_To_management_DevPodEnvironmentTemplateSpec(&in.Spec, &out.Spec, s); err != nil { + if err := Convert_v1_DevsyUpgradeSpec_To_management_DevsyUpgradeSpec(&in.Spec, &out.Spec, s); err != nil { return err } - if err := Convert_v1_DevPodEnvironmentTemplateStatus_To_management_DevPodEnvironmentTemplateStatus(&in.Status, &out.Status, s); err != nil { + if err := Convert_v1_DevsyUpgradeStatus_To_management_DevsyUpgradeStatus(&in.Status, &out.Status, s); err != nil { return err } return nil } -// Convert_v1_DevPodEnvironmentTemplate_To_management_DevPodEnvironmentTemplate is an autogenerated conversion function. -func Convert_v1_DevPodEnvironmentTemplate_To_management_DevPodEnvironmentTemplate(in *DevPodEnvironmentTemplate, out *management.DevPodEnvironmentTemplate, s conversion.Scope) error { - return autoConvert_v1_DevPodEnvironmentTemplate_To_management_DevPodEnvironmentTemplate(in, out, s) +// Convert_v1_DevsyUpgrade_To_management_DevsyUpgrade is an autogenerated conversion function. +func Convert_v1_DevsyUpgrade_To_management_DevsyUpgrade(in *DevsyUpgrade, out *management.DevsyUpgrade, s conversion.Scope) error { + return autoConvert_v1_DevsyUpgrade_To_management_DevsyUpgrade(in, out, s) } -func autoConvert_management_DevPodEnvironmentTemplate_To_v1_DevPodEnvironmentTemplate(in *management.DevPodEnvironmentTemplate, out *DevPodEnvironmentTemplate, s conversion.Scope) error { +func autoConvert_management_DevsyUpgrade_To_v1_DevsyUpgrade(in *management.DevsyUpgrade, out *DevsyUpgrade, s conversion.Scope) error { out.ObjectMeta = in.ObjectMeta - if err := Convert_management_DevPodEnvironmentTemplateSpec_To_v1_DevPodEnvironmentTemplateSpec(&in.Spec, &out.Spec, s); err != nil { + if err := Convert_management_DevsyUpgradeSpec_To_v1_DevsyUpgradeSpec(&in.Spec, &out.Spec, s); err != nil { return err } - if err := Convert_management_DevPodEnvironmentTemplateStatus_To_v1_DevPodEnvironmentTemplateStatus(&in.Status, &out.Status, s); err != nil { + if err := Convert_management_DevsyUpgradeStatus_To_v1_DevsyUpgradeStatus(&in.Status, &out.Status, s); err != nil { return err } return nil } -// Convert_management_DevPodEnvironmentTemplate_To_v1_DevPodEnvironmentTemplate is an autogenerated conversion function. -func Convert_management_DevPodEnvironmentTemplate_To_v1_DevPodEnvironmentTemplate(in *management.DevPodEnvironmentTemplate, out *DevPodEnvironmentTemplate, s conversion.Scope) error { - return autoConvert_management_DevPodEnvironmentTemplate_To_v1_DevPodEnvironmentTemplate(in, out, s) +// Convert_management_DevsyUpgrade_To_v1_DevsyUpgrade is an autogenerated conversion function. +func Convert_management_DevsyUpgrade_To_v1_DevsyUpgrade(in *management.DevsyUpgrade, out *DevsyUpgrade, s conversion.Scope) error { + return autoConvert_management_DevsyUpgrade_To_v1_DevsyUpgrade(in, out, s) } -func autoConvert_v1_DevPodEnvironmentTemplateList_To_management_DevPodEnvironmentTemplateList(in *DevPodEnvironmentTemplateList, out *management.DevPodEnvironmentTemplateList, s conversion.Scope) error { +func autoConvert_v1_DevsyUpgradeList_To_management_DevsyUpgradeList(in *DevsyUpgradeList, out *management.DevsyUpgradeList, s conversion.Scope) error { out.ListMeta = in.ListMeta - out.Items = *(*[]management.DevPodEnvironmentTemplate)(unsafe.Pointer(&in.Items)) + out.Items = *(*[]management.DevsyUpgrade)(unsafe.Pointer(&in.Items)) return nil } -// Convert_v1_DevPodEnvironmentTemplateList_To_management_DevPodEnvironmentTemplateList is an autogenerated conversion function. -func Convert_v1_DevPodEnvironmentTemplateList_To_management_DevPodEnvironmentTemplateList(in *DevPodEnvironmentTemplateList, out *management.DevPodEnvironmentTemplateList, s conversion.Scope) error { - return autoConvert_v1_DevPodEnvironmentTemplateList_To_management_DevPodEnvironmentTemplateList(in, out, s) +// Convert_v1_DevsyUpgradeList_To_management_DevsyUpgradeList is an autogenerated conversion function. +func Convert_v1_DevsyUpgradeList_To_management_DevsyUpgradeList(in *DevsyUpgradeList, out *management.DevsyUpgradeList, s conversion.Scope) error { + return autoConvert_v1_DevsyUpgradeList_To_management_DevsyUpgradeList(in, out, s) } -func autoConvert_management_DevPodEnvironmentTemplateList_To_v1_DevPodEnvironmentTemplateList(in *management.DevPodEnvironmentTemplateList, out *DevPodEnvironmentTemplateList, s conversion.Scope) error { +func autoConvert_management_DevsyUpgradeList_To_v1_DevsyUpgradeList(in *management.DevsyUpgradeList, out *DevsyUpgradeList, s conversion.Scope) error { out.ListMeta = in.ListMeta - out.Items = *(*[]DevPodEnvironmentTemplate)(unsafe.Pointer(&in.Items)) + out.Items = *(*[]DevsyUpgrade)(unsafe.Pointer(&in.Items)) return nil } -// Convert_management_DevPodEnvironmentTemplateList_To_v1_DevPodEnvironmentTemplateList is an autogenerated conversion function. -func Convert_management_DevPodEnvironmentTemplateList_To_v1_DevPodEnvironmentTemplateList(in *management.DevPodEnvironmentTemplateList, out *DevPodEnvironmentTemplateList, s conversion.Scope) error { - return autoConvert_management_DevPodEnvironmentTemplateList_To_v1_DevPodEnvironmentTemplateList(in, out, s) +// Convert_management_DevsyUpgradeList_To_v1_DevsyUpgradeList is an autogenerated conversion function. +func Convert_management_DevsyUpgradeList_To_v1_DevsyUpgradeList(in *management.DevsyUpgradeList, out *DevsyUpgradeList, s conversion.Scope) error { + return autoConvert_management_DevsyUpgradeList_To_v1_DevsyUpgradeList(in, out, s) } -func autoConvert_v1_DevPodEnvironmentTemplateSpec_To_management_DevPodEnvironmentTemplateSpec(in *DevPodEnvironmentTemplateSpec, out *management.DevPodEnvironmentTemplateSpec, s conversion.Scope) error { - out.DevPodEnvironmentTemplateSpec = in.DevPodEnvironmentTemplateSpec +func autoConvert_v1_DevsyUpgradeSpec_To_management_DevsyUpgradeSpec(in *DevsyUpgradeSpec, out *management.DevsyUpgradeSpec, s conversion.Scope) error { + out.Namespace = in.Namespace + out.Release = in.Release + out.Version = in.Version return nil } -// Convert_v1_DevPodEnvironmentTemplateSpec_To_management_DevPodEnvironmentTemplateSpec is an autogenerated conversion function. -func Convert_v1_DevPodEnvironmentTemplateSpec_To_management_DevPodEnvironmentTemplateSpec(in *DevPodEnvironmentTemplateSpec, out *management.DevPodEnvironmentTemplateSpec, s conversion.Scope) error { - return autoConvert_v1_DevPodEnvironmentTemplateSpec_To_management_DevPodEnvironmentTemplateSpec(in, out, s) +// Convert_v1_DevsyUpgradeSpec_To_management_DevsyUpgradeSpec is an autogenerated conversion function. +func Convert_v1_DevsyUpgradeSpec_To_management_DevsyUpgradeSpec(in *DevsyUpgradeSpec, out *management.DevsyUpgradeSpec, s conversion.Scope) error { + return autoConvert_v1_DevsyUpgradeSpec_To_management_DevsyUpgradeSpec(in, out, s) } -func autoConvert_management_DevPodEnvironmentTemplateSpec_To_v1_DevPodEnvironmentTemplateSpec(in *management.DevPodEnvironmentTemplateSpec, out *DevPodEnvironmentTemplateSpec, s conversion.Scope) error { - out.DevPodEnvironmentTemplateSpec = in.DevPodEnvironmentTemplateSpec +func autoConvert_management_DevsyUpgradeSpec_To_v1_DevsyUpgradeSpec(in *management.DevsyUpgradeSpec, out *DevsyUpgradeSpec, s conversion.Scope) error { + out.Namespace = in.Namespace + out.Release = in.Release + out.Version = in.Version return nil } -// Convert_management_DevPodEnvironmentTemplateSpec_To_v1_DevPodEnvironmentTemplateSpec is an autogenerated conversion function. -func Convert_management_DevPodEnvironmentTemplateSpec_To_v1_DevPodEnvironmentTemplateSpec(in *management.DevPodEnvironmentTemplateSpec, out *DevPodEnvironmentTemplateSpec, s conversion.Scope) error { - return autoConvert_management_DevPodEnvironmentTemplateSpec_To_v1_DevPodEnvironmentTemplateSpec(in, out, s) +// Convert_management_DevsyUpgradeSpec_To_v1_DevsyUpgradeSpec is an autogenerated conversion function. +func Convert_management_DevsyUpgradeSpec_To_v1_DevsyUpgradeSpec(in *management.DevsyUpgradeSpec, out *DevsyUpgradeSpec, s conversion.Scope) error { + return autoConvert_management_DevsyUpgradeSpec_To_v1_DevsyUpgradeSpec(in, out, s) } -func autoConvert_v1_DevPodEnvironmentTemplateStatus_To_management_DevPodEnvironmentTemplateStatus(in *DevPodEnvironmentTemplateStatus, out *management.DevPodEnvironmentTemplateStatus, s conversion.Scope) error { +func autoConvert_v1_DevsyUpgradeStatus_To_management_DevsyUpgradeStatus(in *DevsyUpgradeStatus, out *management.DevsyUpgradeStatus, s conversion.Scope) error { return nil } -// Convert_v1_DevPodEnvironmentTemplateStatus_To_management_DevPodEnvironmentTemplateStatus is an autogenerated conversion function. -func Convert_v1_DevPodEnvironmentTemplateStatus_To_management_DevPodEnvironmentTemplateStatus(in *DevPodEnvironmentTemplateStatus, out *management.DevPodEnvironmentTemplateStatus, s conversion.Scope) error { - return autoConvert_v1_DevPodEnvironmentTemplateStatus_To_management_DevPodEnvironmentTemplateStatus(in, out, s) +// Convert_v1_DevsyUpgradeStatus_To_management_DevsyUpgradeStatus is an autogenerated conversion function. +func Convert_v1_DevsyUpgradeStatus_To_management_DevsyUpgradeStatus(in *DevsyUpgradeStatus, out *management.DevsyUpgradeStatus, s conversion.Scope) error { + return autoConvert_v1_DevsyUpgradeStatus_To_management_DevsyUpgradeStatus(in, out, s) } -func autoConvert_management_DevPodEnvironmentTemplateStatus_To_v1_DevPodEnvironmentTemplateStatus(in *management.DevPodEnvironmentTemplateStatus, out *DevPodEnvironmentTemplateStatus, s conversion.Scope) error { +func autoConvert_management_DevsyUpgradeStatus_To_v1_DevsyUpgradeStatus(in *management.DevsyUpgradeStatus, out *DevsyUpgradeStatus, s conversion.Scope) error { return nil } -// Convert_management_DevPodEnvironmentTemplateStatus_To_v1_DevPodEnvironmentTemplateStatus is an autogenerated conversion function. -func Convert_management_DevPodEnvironmentTemplateStatus_To_v1_DevPodEnvironmentTemplateStatus(in *management.DevPodEnvironmentTemplateStatus, out *DevPodEnvironmentTemplateStatus, s conversion.Scope) error { - return autoConvert_management_DevPodEnvironmentTemplateStatus_To_v1_DevPodEnvironmentTemplateStatus(in, out, s) +// Convert_management_DevsyUpgradeStatus_To_v1_DevsyUpgradeStatus is an autogenerated conversion function. +func Convert_management_DevsyUpgradeStatus_To_v1_DevsyUpgradeStatus(in *management.DevsyUpgradeStatus, out *DevsyUpgradeStatus, s conversion.Scope) error { + return autoConvert_management_DevsyUpgradeStatus_To_v1_DevsyUpgradeStatus(in, out, s) } -func autoConvert_v1_DevPodWorkspaceInstance_To_management_DevPodWorkspaceInstance(in *DevPodWorkspaceInstance, out *management.DevPodWorkspaceInstance, s conversion.Scope) error { +func autoConvert_v1_DevsyWorkspaceInstance_To_management_DevsyWorkspaceInstance(in *DevsyWorkspaceInstance, out *management.DevsyWorkspaceInstance, s conversion.Scope) error { out.ObjectMeta = in.ObjectMeta - if err := Convert_v1_DevPodWorkspaceInstanceSpec_To_management_DevPodWorkspaceInstanceSpec(&in.Spec, &out.Spec, s); err != nil { + if err := Convert_v1_DevsyWorkspaceInstanceSpec_To_management_DevsyWorkspaceInstanceSpec(&in.Spec, &out.Spec, s); err != nil { return err } - if err := Convert_v1_DevPodWorkspaceInstanceStatus_To_management_DevPodWorkspaceInstanceStatus(&in.Status, &out.Status, s); err != nil { + if err := Convert_v1_DevsyWorkspaceInstanceStatus_To_management_DevsyWorkspaceInstanceStatus(&in.Status, &out.Status, s); err != nil { return err } return nil } -// Convert_v1_DevPodWorkspaceInstance_To_management_DevPodWorkspaceInstance is an autogenerated conversion function. -func Convert_v1_DevPodWorkspaceInstance_To_management_DevPodWorkspaceInstance(in *DevPodWorkspaceInstance, out *management.DevPodWorkspaceInstance, s conversion.Scope) error { - return autoConvert_v1_DevPodWorkspaceInstance_To_management_DevPodWorkspaceInstance(in, out, s) +// Convert_v1_DevsyWorkspaceInstance_To_management_DevsyWorkspaceInstance is an autogenerated conversion function. +func Convert_v1_DevsyWorkspaceInstance_To_management_DevsyWorkspaceInstance(in *DevsyWorkspaceInstance, out *management.DevsyWorkspaceInstance, s conversion.Scope) error { + return autoConvert_v1_DevsyWorkspaceInstance_To_management_DevsyWorkspaceInstance(in, out, s) } -func autoConvert_management_DevPodWorkspaceInstance_To_v1_DevPodWorkspaceInstance(in *management.DevPodWorkspaceInstance, out *DevPodWorkspaceInstance, s conversion.Scope) error { +func autoConvert_management_DevsyWorkspaceInstance_To_v1_DevsyWorkspaceInstance(in *management.DevsyWorkspaceInstance, out *DevsyWorkspaceInstance, s conversion.Scope) error { out.ObjectMeta = in.ObjectMeta - if err := Convert_management_DevPodWorkspaceInstanceSpec_To_v1_DevPodWorkspaceInstanceSpec(&in.Spec, &out.Spec, s); err != nil { + if err := Convert_management_DevsyWorkspaceInstanceSpec_To_v1_DevsyWorkspaceInstanceSpec(&in.Spec, &out.Spec, s); err != nil { return err } - if err := Convert_management_DevPodWorkspaceInstanceStatus_To_v1_DevPodWorkspaceInstanceStatus(&in.Status, &out.Status, s); err != nil { + if err := Convert_management_DevsyWorkspaceInstanceStatus_To_v1_DevsyWorkspaceInstanceStatus(&in.Status, &out.Status, s); err != nil { return err } return nil } -// Convert_management_DevPodWorkspaceInstance_To_v1_DevPodWorkspaceInstance is an autogenerated conversion function. -func Convert_management_DevPodWorkspaceInstance_To_v1_DevPodWorkspaceInstance(in *management.DevPodWorkspaceInstance, out *DevPodWorkspaceInstance, s conversion.Scope) error { - return autoConvert_management_DevPodWorkspaceInstance_To_v1_DevPodWorkspaceInstance(in, out, s) +// Convert_management_DevsyWorkspaceInstance_To_v1_DevsyWorkspaceInstance is an autogenerated conversion function. +func Convert_management_DevsyWorkspaceInstance_To_v1_DevsyWorkspaceInstance(in *management.DevsyWorkspaceInstance, out *DevsyWorkspaceInstance, s conversion.Scope) error { + return autoConvert_management_DevsyWorkspaceInstance_To_v1_DevsyWorkspaceInstance(in, out, s) } -func autoConvert_v1_DevPodWorkspaceInstanceCancel_To_management_DevPodWorkspaceInstanceCancel(in *DevPodWorkspaceInstanceCancel, out *management.DevPodWorkspaceInstanceCancel, s conversion.Scope) error { +func autoConvert_v1_DevsyWorkspaceInstanceCancel_To_management_DevsyWorkspaceInstanceCancel(in *DevsyWorkspaceInstanceCancel, out *management.DevsyWorkspaceInstanceCancel, s conversion.Scope) error { out.ObjectMeta = in.ObjectMeta out.TaskID = in.TaskID return nil } -// Convert_v1_DevPodWorkspaceInstanceCancel_To_management_DevPodWorkspaceInstanceCancel is an autogenerated conversion function. -func Convert_v1_DevPodWorkspaceInstanceCancel_To_management_DevPodWorkspaceInstanceCancel(in *DevPodWorkspaceInstanceCancel, out *management.DevPodWorkspaceInstanceCancel, s conversion.Scope) error { - return autoConvert_v1_DevPodWorkspaceInstanceCancel_To_management_DevPodWorkspaceInstanceCancel(in, out, s) +// Convert_v1_DevsyWorkspaceInstanceCancel_To_management_DevsyWorkspaceInstanceCancel is an autogenerated conversion function. +func Convert_v1_DevsyWorkspaceInstanceCancel_To_management_DevsyWorkspaceInstanceCancel(in *DevsyWorkspaceInstanceCancel, out *management.DevsyWorkspaceInstanceCancel, s conversion.Scope) error { + return autoConvert_v1_DevsyWorkspaceInstanceCancel_To_management_DevsyWorkspaceInstanceCancel(in, out, s) } -func autoConvert_management_DevPodWorkspaceInstanceCancel_To_v1_DevPodWorkspaceInstanceCancel(in *management.DevPodWorkspaceInstanceCancel, out *DevPodWorkspaceInstanceCancel, s conversion.Scope) error { +func autoConvert_management_DevsyWorkspaceInstanceCancel_To_v1_DevsyWorkspaceInstanceCancel(in *management.DevsyWorkspaceInstanceCancel, out *DevsyWorkspaceInstanceCancel, s conversion.Scope) error { out.ObjectMeta = in.ObjectMeta out.TaskID = in.TaskID return nil } -// Convert_management_DevPodWorkspaceInstanceCancel_To_v1_DevPodWorkspaceInstanceCancel is an autogenerated conversion function. -func Convert_management_DevPodWorkspaceInstanceCancel_To_v1_DevPodWorkspaceInstanceCancel(in *management.DevPodWorkspaceInstanceCancel, out *DevPodWorkspaceInstanceCancel, s conversion.Scope) error { - return autoConvert_management_DevPodWorkspaceInstanceCancel_To_v1_DevPodWorkspaceInstanceCancel(in, out, s) +// Convert_management_DevsyWorkspaceInstanceCancel_To_v1_DevsyWorkspaceInstanceCancel is an autogenerated conversion function. +func Convert_management_DevsyWorkspaceInstanceCancel_To_v1_DevsyWorkspaceInstanceCancel(in *management.DevsyWorkspaceInstanceCancel, out *DevsyWorkspaceInstanceCancel, s conversion.Scope) error { + return autoConvert_management_DevsyWorkspaceInstanceCancel_To_v1_DevsyWorkspaceInstanceCancel(in, out, s) } -func autoConvert_v1_DevPodWorkspaceInstanceCancelList_To_management_DevPodWorkspaceInstanceCancelList(in *DevPodWorkspaceInstanceCancelList, out *management.DevPodWorkspaceInstanceCancelList, s conversion.Scope) error { +func autoConvert_v1_DevsyWorkspaceInstanceCancelList_To_management_DevsyWorkspaceInstanceCancelList(in *DevsyWorkspaceInstanceCancelList, out *management.DevsyWorkspaceInstanceCancelList, s conversion.Scope) error { out.ListMeta = in.ListMeta - out.Items = *(*[]management.DevPodWorkspaceInstanceCancel)(unsafe.Pointer(&in.Items)) + out.Items = *(*[]management.DevsyWorkspaceInstanceCancel)(unsafe.Pointer(&in.Items)) return nil } -// Convert_v1_DevPodWorkspaceInstanceCancelList_To_management_DevPodWorkspaceInstanceCancelList is an autogenerated conversion function. -func Convert_v1_DevPodWorkspaceInstanceCancelList_To_management_DevPodWorkspaceInstanceCancelList(in *DevPodWorkspaceInstanceCancelList, out *management.DevPodWorkspaceInstanceCancelList, s conversion.Scope) error { - return autoConvert_v1_DevPodWorkspaceInstanceCancelList_To_management_DevPodWorkspaceInstanceCancelList(in, out, s) +// Convert_v1_DevsyWorkspaceInstanceCancelList_To_management_DevsyWorkspaceInstanceCancelList is an autogenerated conversion function. +func Convert_v1_DevsyWorkspaceInstanceCancelList_To_management_DevsyWorkspaceInstanceCancelList(in *DevsyWorkspaceInstanceCancelList, out *management.DevsyWorkspaceInstanceCancelList, s conversion.Scope) error { + return autoConvert_v1_DevsyWorkspaceInstanceCancelList_To_management_DevsyWorkspaceInstanceCancelList(in, out, s) } -func autoConvert_management_DevPodWorkspaceInstanceCancelList_To_v1_DevPodWorkspaceInstanceCancelList(in *management.DevPodWorkspaceInstanceCancelList, out *DevPodWorkspaceInstanceCancelList, s conversion.Scope) error { +func autoConvert_management_DevsyWorkspaceInstanceCancelList_To_v1_DevsyWorkspaceInstanceCancelList(in *management.DevsyWorkspaceInstanceCancelList, out *DevsyWorkspaceInstanceCancelList, s conversion.Scope) error { out.ListMeta = in.ListMeta - out.Items = *(*[]DevPodWorkspaceInstanceCancel)(unsafe.Pointer(&in.Items)) + out.Items = *(*[]DevsyWorkspaceInstanceCancel)(unsafe.Pointer(&in.Items)) return nil } -// Convert_management_DevPodWorkspaceInstanceCancelList_To_v1_DevPodWorkspaceInstanceCancelList is an autogenerated conversion function. -func Convert_management_DevPodWorkspaceInstanceCancelList_To_v1_DevPodWorkspaceInstanceCancelList(in *management.DevPodWorkspaceInstanceCancelList, out *DevPodWorkspaceInstanceCancelList, s conversion.Scope) error { - return autoConvert_management_DevPodWorkspaceInstanceCancelList_To_v1_DevPodWorkspaceInstanceCancelList(in, out, s) +// Convert_management_DevsyWorkspaceInstanceCancelList_To_v1_DevsyWorkspaceInstanceCancelList is an autogenerated conversion function. +func Convert_management_DevsyWorkspaceInstanceCancelList_To_v1_DevsyWorkspaceInstanceCancelList(in *management.DevsyWorkspaceInstanceCancelList, out *DevsyWorkspaceInstanceCancelList, s conversion.Scope) error { + return autoConvert_management_DevsyWorkspaceInstanceCancelList_To_v1_DevsyWorkspaceInstanceCancelList(in, out, s) } -func autoConvert_v1_DevPodWorkspaceInstanceDownload_To_management_DevPodWorkspaceInstanceDownload(in *DevPodWorkspaceInstanceDownload, out *management.DevPodWorkspaceInstanceDownload, s conversion.Scope) error { +func autoConvert_v1_DevsyWorkspaceInstanceDownload_To_management_DevsyWorkspaceInstanceDownload(in *DevsyWorkspaceInstanceDownload, out *management.DevsyWorkspaceInstanceDownload, s conversion.Scope) error { out.ObjectMeta = in.ObjectMeta return nil } -// Convert_v1_DevPodWorkspaceInstanceDownload_To_management_DevPodWorkspaceInstanceDownload is an autogenerated conversion function. -func Convert_v1_DevPodWorkspaceInstanceDownload_To_management_DevPodWorkspaceInstanceDownload(in *DevPodWorkspaceInstanceDownload, out *management.DevPodWorkspaceInstanceDownload, s conversion.Scope) error { - return autoConvert_v1_DevPodWorkspaceInstanceDownload_To_management_DevPodWorkspaceInstanceDownload(in, out, s) +// Convert_v1_DevsyWorkspaceInstanceDownload_To_management_DevsyWorkspaceInstanceDownload is an autogenerated conversion function. +func Convert_v1_DevsyWorkspaceInstanceDownload_To_management_DevsyWorkspaceInstanceDownload(in *DevsyWorkspaceInstanceDownload, out *management.DevsyWorkspaceInstanceDownload, s conversion.Scope) error { + return autoConvert_v1_DevsyWorkspaceInstanceDownload_To_management_DevsyWorkspaceInstanceDownload(in, out, s) } -func autoConvert_management_DevPodWorkspaceInstanceDownload_To_v1_DevPodWorkspaceInstanceDownload(in *management.DevPodWorkspaceInstanceDownload, out *DevPodWorkspaceInstanceDownload, s conversion.Scope) error { +func autoConvert_management_DevsyWorkspaceInstanceDownload_To_v1_DevsyWorkspaceInstanceDownload(in *management.DevsyWorkspaceInstanceDownload, out *DevsyWorkspaceInstanceDownload, s conversion.Scope) error { out.ObjectMeta = in.ObjectMeta return nil } -// Convert_management_DevPodWorkspaceInstanceDownload_To_v1_DevPodWorkspaceInstanceDownload is an autogenerated conversion function. -func Convert_management_DevPodWorkspaceInstanceDownload_To_v1_DevPodWorkspaceInstanceDownload(in *management.DevPodWorkspaceInstanceDownload, out *DevPodWorkspaceInstanceDownload, s conversion.Scope) error { - return autoConvert_management_DevPodWorkspaceInstanceDownload_To_v1_DevPodWorkspaceInstanceDownload(in, out, s) +// Convert_management_DevsyWorkspaceInstanceDownload_To_v1_DevsyWorkspaceInstanceDownload is an autogenerated conversion function. +func Convert_management_DevsyWorkspaceInstanceDownload_To_v1_DevsyWorkspaceInstanceDownload(in *management.DevsyWorkspaceInstanceDownload, out *DevsyWorkspaceInstanceDownload, s conversion.Scope) error { + return autoConvert_management_DevsyWorkspaceInstanceDownload_To_v1_DevsyWorkspaceInstanceDownload(in, out, s) } -func autoConvert_v1_DevPodWorkspaceInstanceDownloadList_To_management_DevPodWorkspaceInstanceDownloadList(in *DevPodWorkspaceInstanceDownloadList, out *management.DevPodWorkspaceInstanceDownloadList, s conversion.Scope) error { +func autoConvert_v1_DevsyWorkspaceInstanceDownloadList_To_management_DevsyWorkspaceInstanceDownloadList(in *DevsyWorkspaceInstanceDownloadList, out *management.DevsyWorkspaceInstanceDownloadList, s conversion.Scope) error { out.ListMeta = in.ListMeta - out.Items = *(*[]management.DevPodWorkspaceInstanceDownload)(unsafe.Pointer(&in.Items)) + out.Items = *(*[]management.DevsyWorkspaceInstanceDownload)(unsafe.Pointer(&in.Items)) return nil } -// Convert_v1_DevPodWorkspaceInstanceDownloadList_To_management_DevPodWorkspaceInstanceDownloadList is an autogenerated conversion function. -func Convert_v1_DevPodWorkspaceInstanceDownloadList_To_management_DevPodWorkspaceInstanceDownloadList(in *DevPodWorkspaceInstanceDownloadList, out *management.DevPodWorkspaceInstanceDownloadList, s conversion.Scope) error { - return autoConvert_v1_DevPodWorkspaceInstanceDownloadList_To_management_DevPodWorkspaceInstanceDownloadList(in, out, s) +// Convert_v1_DevsyWorkspaceInstanceDownloadList_To_management_DevsyWorkspaceInstanceDownloadList is an autogenerated conversion function. +func Convert_v1_DevsyWorkspaceInstanceDownloadList_To_management_DevsyWorkspaceInstanceDownloadList(in *DevsyWorkspaceInstanceDownloadList, out *management.DevsyWorkspaceInstanceDownloadList, s conversion.Scope) error { + return autoConvert_v1_DevsyWorkspaceInstanceDownloadList_To_management_DevsyWorkspaceInstanceDownloadList(in, out, s) } -func autoConvert_management_DevPodWorkspaceInstanceDownloadList_To_v1_DevPodWorkspaceInstanceDownloadList(in *management.DevPodWorkspaceInstanceDownloadList, out *DevPodWorkspaceInstanceDownloadList, s conversion.Scope) error { +func autoConvert_management_DevsyWorkspaceInstanceDownloadList_To_v1_DevsyWorkspaceInstanceDownloadList(in *management.DevsyWorkspaceInstanceDownloadList, out *DevsyWorkspaceInstanceDownloadList, s conversion.Scope) error { out.ListMeta = in.ListMeta - out.Items = *(*[]DevPodWorkspaceInstanceDownload)(unsafe.Pointer(&in.Items)) + out.Items = *(*[]DevsyWorkspaceInstanceDownload)(unsafe.Pointer(&in.Items)) return nil } -// Convert_management_DevPodWorkspaceInstanceDownloadList_To_v1_DevPodWorkspaceInstanceDownloadList is an autogenerated conversion function. -func Convert_management_DevPodWorkspaceInstanceDownloadList_To_v1_DevPodWorkspaceInstanceDownloadList(in *management.DevPodWorkspaceInstanceDownloadList, out *DevPodWorkspaceInstanceDownloadList, s conversion.Scope) error { - return autoConvert_management_DevPodWorkspaceInstanceDownloadList_To_v1_DevPodWorkspaceInstanceDownloadList(in, out, s) +// Convert_management_DevsyWorkspaceInstanceDownloadList_To_v1_DevsyWorkspaceInstanceDownloadList is an autogenerated conversion function. +func Convert_management_DevsyWorkspaceInstanceDownloadList_To_v1_DevsyWorkspaceInstanceDownloadList(in *management.DevsyWorkspaceInstanceDownloadList, out *DevsyWorkspaceInstanceDownloadList, s conversion.Scope) error { + return autoConvert_management_DevsyWorkspaceInstanceDownloadList_To_v1_DevsyWorkspaceInstanceDownloadList(in, out, s) } -func autoConvert_v1_DevPodWorkspaceInstanceDownloadOptions_To_management_DevPodWorkspaceInstanceDownloadOptions(in *DevPodWorkspaceInstanceDownloadOptions, out *management.DevPodWorkspaceInstanceDownloadOptions, s conversion.Scope) error { +func autoConvert_v1_DevsyWorkspaceInstanceDownloadOptions_To_management_DevsyWorkspaceInstanceDownloadOptions(in *DevsyWorkspaceInstanceDownloadOptions, out *management.DevsyWorkspaceInstanceDownloadOptions, s conversion.Scope) error { out.Path = in.Path return nil } -// Convert_v1_DevPodWorkspaceInstanceDownloadOptions_To_management_DevPodWorkspaceInstanceDownloadOptions is an autogenerated conversion function. -func Convert_v1_DevPodWorkspaceInstanceDownloadOptions_To_management_DevPodWorkspaceInstanceDownloadOptions(in *DevPodWorkspaceInstanceDownloadOptions, out *management.DevPodWorkspaceInstanceDownloadOptions, s conversion.Scope) error { - return autoConvert_v1_DevPodWorkspaceInstanceDownloadOptions_To_management_DevPodWorkspaceInstanceDownloadOptions(in, out, s) +// Convert_v1_DevsyWorkspaceInstanceDownloadOptions_To_management_DevsyWorkspaceInstanceDownloadOptions is an autogenerated conversion function. +func Convert_v1_DevsyWorkspaceInstanceDownloadOptions_To_management_DevsyWorkspaceInstanceDownloadOptions(in *DevsyWorkspaceInstanceDownloadOptions, out *management.DevsyWorkspaceInstanceDownloadOptions, s conversion.Scope) error { + return autoConvert_v1_DevsyWorkspaceInstanceDownloadOptions_To_management_DevsyWorkspaceInstanceDownloadOptions(in, out, s) } -func autoConvert_management_DevPodWorkspaceInstanceDownloadOptions_To_v1_DevPodWorkspaceInstanceDownloadOptions(in *management.DevPodWorkspaceInstanceDownloadOptions, out *DevPodWorkspaceInstanceDownloadOptions, s conversion.Scope) error { +func autoConvert_management_DevsyWorkspaceInstanceDownloadOptions_To_v1_DevsyWorkspaceInstanceDownloadOptions(in *management.DevsyWorkspaceInstanceDownloadOptions, out *DevsyWorkspaceInstanceDownloadOptions, s conversion.Scope) error { out.Path = in.Path return nil } -// Convert_management_DevPodWorkspaceInstanceDownloadOptions_To_v1_DevPodWorkspaceInstanceDownloadOptions is an autogenerated conversion function. -func Convert_management_DevPodWorkspaceInstanceDownloadOptions_To_v1_DevPodWorkspaceInstanceDownloadOptions(in *management.DevPodWorkspaceInstanceDownloadOptions, out *DevPodWorkspaceInstanceDownloadOptions, s conversion.Scope) error { - return autoConvert_management_DevPodWorkspaceInstanceDownloadOptions_To_v1_DevPodWorkspaceInstanceDownloadOptions(in, out, s) +// Convert_management_DevsyWorkspaceInstanceDownloadOptions_To_v1_DevsyWorkspaceInstanceDownloadOptions is an autogenerated conversion function. +func Convert_management_DevsyWorkspaceInstanceDownloadOptions_To_v1_DevsyWorkspaceInstanceDownloadOptions(in *management.DevsyWorkspaceInstanceDownloadOptions, out *DevsyWorkspaceInstanceDownloadOptions, s conversion.Scope) error { + return autoConvert_management_DevsyWorkspaceInstanceDownloadOptions_To_v1_DevsyWorkspaceInstanceDownloadOptions(in, out, s) } -func autoConvert_url_Values_To_v1_DevPodWorkspaceInstanceDownloadOptions(in *url.Values, out *DevPodWorkspaceInstanceDownloadOptions, s conversion.Scope) error { +func autoConvert_url_Values_To_v1_DevsyWorkspaceInstanceDownloadOptions(in *url.Values, out *DevsyWorkspaceInstanceDownloadOptions, s conversion.Scope) error { // WARNING: Field TypeMeta does not have json tag, skipping. if values, ok := map[string][]string(*in)["path"]; ok && len(values) > 0 { @@ -6368,98 +6464,98 @@ func autoConvert_url_Values_To_v1_DevPodWorkspaceInstanceDownloadOptions(in *url return nil } -// Convert_url_Values_To_v1_DevPodWorkspaceInstanceDownloadOptions is an autogenerated conversion function. -func Convert_url_Values_To_v1_DevPodWorkspaceInstanceDownloadOptions(in *url.Values, out *DevPodWorkspaceInstanceDownloadOptions, s conversion.Scope) error { - return autoConvert_url_Values_To_v1_DevPodWorkspaceInstanceDownloadOptions(in, out, s) +// Convert_url_Values_To_v1_DevsyWorkspaceInstanceDownloadOptions is an autogenerated conversion function. +func Convert_url_Values_To_v1_DevsyWorkspaceInstanceDownloadOptions(in *url.Values, out *DevsyWorkspaceInstanceDownloadOptions, s conversion.Scope) error { + return autoConvert_url_Values_To_v1_DevsyWorkspaceInstanceDownloadOptions(in, out, s) } -func autoConvert_v1_DevPodWorkspaceInstanceList_To_management_DevPodWorkspaceInstanceList(in *DevPodWorkspaceInstanceList, out *management.DevPodWorkspaceInstanceList, s conversion.Scope) error { +func autoConvert_v1_DevsyWorkspaceInstanceList_To_management_DevsyWorkspaceInstanceList(in *DevsyWorkspaceInstanceList, out *management.DevsyWorkspaceInstanceList, s conversion.Scope) error { out.ListMeta = in.ListMeta - out.Items = *(*[]management.DevPodWorkspaceInstance)(unsafe.Pointer(&in.Items)) + out.Items = *(*[]management.DevsyWorkspaceInstance)(unsafe.Pointer(&in.Items)) return nil } -// Convert_v1_DevPodWorkspaceInstanceList_To_management_DevPodWorkspaceInstanceList is an autogenerated conversion function. -func Convert_v1_DevPodWorkspaceInstanceList_To_management_DevPodWorkspaceInstanceList(in *DevPodWorkspaceInstanceList, out *management.DevPodWorkspaceInstanceList, s conversion.Scope) error { - return autoConvert_v1_DevPodWorkspaceInstanceList_To_management_DevPodWorkspaceInstanceList(in, out, s) +// Convert_v1_DevsyWorkspaceInstanceList_To_management_DevsyWorkspaceInstanceList is an autogenerated conversion function. +func Convert_v1_DevsyWorkspaceInstanceList_To_management_DevsyWorkspaceInstanceList(in *DevsyWorkspaceInstanceList, out *management.DevsyWorkspaceInstanceList, s conversion.Scope) error { + return autoConvert_v1_DevsyWorkspaceInstanceList_To_management_DevsyWorkspaceInstanceList(in, out, s) } -func autoConvert_management_DevPodWorkspaceInstanceList_To_v1_DevPodWorkspaceInstanceList(in *management.DevPodWorkspaceInstanceList, out *DevPodWorkspaceInstanceList, s conversion.Scope) error { +func autoConvert_management_DevsyWorkspaceInstanceList_To_v1_DevsyWorkspaceInstanceList(in *management.DevsyWorkspaceInstanceList, out *DevsyWorkspaceInstanceList, s conversion.Scope) error { out.ListMeta = in.ListMeta - out.Items = *(*[]DevPodWorkspaceInstance)(unsafe.Pointer(&in.Items)) + out.Items = *(*[]DevsyWorkspaceInstance)(unsafe.Pointer(&in.Items)) return nil } -// Convert_management_DevPodWorkspaceInstanceList_To_v1_DevPodWorkspaceInstanceList is an autogenerated conversion function. -func Convert_management_DevPodWorkspaceInstanceList_To_v1_DevPodWorkspaceInstanceList(in *management.DevPodWorkspaceInstanceList, out *DevPodWorkspaceInstanceList, s conversion.Scope) error { - return autoConvert_management_DevPodWorkspaceInstanceList_To_v1_DevPodWorkspaceInstanceList(in, out, s) +// Convert_management_DevsyWorkspaceInstanceList_To_v1_DevsyWorkspaceInstanceList is an autogenerated conversion function. +func Convert_management_DevsyWorkspaceInstanceList_To_v1_DevsyWorkspaceInstanceList(in *management.DevsyWorkspaceInstanceList, out *DevsyWorkspaceInstanceList, s conversion.Scope) error { + return autoConvert_management_DevsyWorkspaceInstanceList_To_v1_DevsyWorkspaceInstanceList(in, out, s) } -func autoConvert_v1_DevPodWorkspaceInstanceLog_To_management_DevPodWorkspaceInstanceLog(in *DevPodWorkspaceInstanceLog, out *management.DevPodWorkspaceInstanceLog, s conversion.Scope) error { +func autoConvert_v1_DevsyWorkspaceInstanceLog_To_management_DevsyWorkspaceInstanceLog(in *DevsyWorkspaceInstanceLog, out *management.DevsyWorkspaceInstanceLog, s conversion.Scope) error { out.ObjectMeta = in.ObjectMeta return nil } -// Convert_v1_DevPodWorkspaceInstanceLog_To_management_DevPodWorkspaceInstanceLog is an autogenerated conversion function. -func Convert_v1_DevPodWorkspaceInstanceLog_To_management_DevPodWorkspaceInstanceLog(in *DevPodWorkspaceInstanceLog, out *management.DevPodWorkspaceInstanceLog, s conversion.Scope) error { - return autoConvert_v1_DevPodWorkspaceInstanceLog_To_management_DevPodWorkspaceInstanceLog(in, out, s) +// Convert_v1_DevsyWorkspaceInstanceLog_To_management_DevsyWorkspaceInstanceLog is an autogenerated conversion function. +func Convert_v1_DevsyWorkspaceInstanceLog_To_management_DevsyWorkspaceInstanceLog(in *DevsyWorkspaceInstanceLog, out *management.DevsyWorkspaceInstanceLog, s conversion.Scope) error { + return autoConvert_v1_DevsyWorkspaceInstanceLog_To_management_DevsyWorkspaceInstanceLog(in, out, s) } -func autoConvert_management_DevPodWorkspaceInstanceLog_To_v1_DevPodWorkspaceInstanceLog(in *management.DevPodWorkspaceInstanceLog, out *DevPodWorkspaceInstanceLog, s conversion.Scope) error { +func autoConvert_management_DevsyWorkspaceInstanceLog_To_v1_DevsyWorkspaceInstanceLog(in *management.DevsyWorkspaceInstanceLog, out *DevsyWorkspaceInstanceLog, s conversion.Scope) error { out.ObjectMeta = in.ObjectMeta return nil } -// Convert_management_DevPodWorkspaceInstanceLog_To_v1_DevPodWorkspaceInstanceLog is an autogenerated conversion function. -func Convert_management_DevPodWorkspaceInstanceLog_To_v1_DevPodWorkspaceInstanceLog(in *management.DevPodWorkspaceInstanceLog, out *DevPodWorkspaceInstanceLog, s conversion.Scope) error { - return autoConvert_management_DevPodWorkspaceInstanceLog_To_v1_DevPodWorkspaceInstanceLog(in, out, s) +// Convert_management_DevsyWorkspaceInstanceLog_To_v1_DevsyWorkspaceInstanceLog is an autogenerated conversion function. +func Convert_management_DevsyWorkspaceInstanceLog_To_v1_DevsyWorkspaceInstanceLog(in *management.DevsyWorkspaceInstanceLog, out *DevsyWorkspaceInstanceLog, s conversion.Scope) error { + return autoConvert_management_DevsyWorkspaceInstanceLog_To_v1_DevsyWorkspaceInstanceLog(in, out, s) } -func autoConvert_v1_DevPodWorkspaceInstanceLogList_To_management_DevPodWorkspaceInstanceLogList(in *DevPodWorkspaceInstanceLogList, out *management.DevPodWorkspaceInstanceLogList, s conversion.Scope) error { +func autoConvert_v1_DevsyWorkspaceInstanceLogList_To_management_DevsyWorkspaceInstanceLogList(in *DevsyWorkspaceInstanceLogList, out *management.DevsyWorkspaceInstanceLogList, s conversion.Scope) error { out.ListMeta = in.ListMeta - out.Items = *(*[]management.DevPodWorkspaceInstanceLog)(unsafe.Pointer(&in.Items)) + out.Items = *(*[]management.DevsyWorkspaceInstanceLog)(unsafe.Pointer(&in.Items)) return nil } -// Convert_v1_DevPodWorkspaceInstanceLogList_To_management_DevPodWorkspaceInstanceLogList is an autogenerated conversion function. -func Convert_v1_DevPodWorkspaceInstanceLogList_To_management_DevPodWorkspaceInstanceLogList(in *DevPodWorkspaceInstanceLogList, out *management.DevPodWorkspaceInstanceLogList, s conversion.Scope) error { - return autoConvert_v1_DevPodWorkspaceInstanceLogList_To_management_DevPodWorkspaceInstanceLogList(in, out, s) +// Convert_v1_DevsyWorkspaceInstanceLogList_To_management_DevsyWorkspaceInstanceLogList is an autogenerated conversion function. +func Convert_v1_DevsyWorkspaceInstanceLogList_To_management_DevsyWorkspaceInstanceLogList(in *DevsyWorkspaceInstanceLogList, out *management.DevsyWorkspaceInstanceLogList, s conversion.Scope) error { + return autoConvert_v1_DevsyWorkspaceInstanceLogList_To_management_DevsyWorkspaceInstanceLogList(in, out, s) } -func autoConvert_management_DevPodWorkspaceInstanceLogList_To_v1_DevPodWorkspaceInstanceLogList(in *management.DevPodWorkspaceInstanceLogList, out *DevPodWorkspaceInstanceLogList, s conversion.Scope) error { +func autoConvert_management_DevsyWorkspaceInstanceLogList_To_v1_DevsyWorkspaceInstanceLogList(in *management.DevsyWorkspaceInstanceLogList, out *DevsyWorkspaceInstanceLogList, s conversion.Scope) error { out.ListMeta = in.ListMeta - out.Items = *(*[]DevPodWorkspaceInstanceLog)(unsafe.Pointer(&in.Items)) + out.Items = *(*[]DevsyWorkspaceInstanceLog)(unsafe.Pointer(&in.Items)) return nil } -// Convert_management_DevPodWorkspaceInstanceLogList_To_v1_DevPodWorkspaceInstanceLogList is an autogenerated conversion function. -func Convert_management_DevPodWorkspaceInstanceLogList_To_v1_DevPodWorkspaceInstanceLogList(in *management.DevPodWorkspaceInstanceLogList, out *DevPodWorkspaceInstanceLogList, s conversion.Scope) error { - return autoConvert_management_DevPodWorkspaceInstanceLogList_To_v1_DevPodWorkspaceInstanceLogList(in, out, s) +// Convert_management_DevsyWorkspaceInstanceLogList_To_v1_DevsyWorkspaceInstanceLogList is an autogenerated conversion function. +func Convert_management_DevsyWorkspaceInstanceLogList_To_v1_DevsyWorkspaceInstanceLogList(in *management.DevsyWorkspaceInstanceLogList, out *DevsyWorkspaceInstanceLogList, s conversion.Scope) error { + return autoConvert_management_DevsyWorkspaceInstanceLogList_To_v1_DevsyWorkspaceInstanceLogList(in, out, s) } -func autoConvert_v1_DevPodWorkspaceInstanceLogOptions_To_management_DevPodWorkspaceInstanceLogOptions(in *DevPodWorkspaceInstanceLogOptions, out *management.DevPodWorkspaceInstanceLogOptions, s conversion.Scope) error { +func autoConvert_v1_DevsyWorkspaceInstanceLogOptions_To_management_DevsyWorkspaceInstanceLogOptions(in *DevsyWorkspaceInstanceLogOptions, out *management.DevsyWorkspaceInstanceLogOptions, s conversion.Scope) error { out.TaskID = in.TaskID out.Follow = in.Follow return nil } -// Convert_v1_DevPodWorkspaceInstanceLogOptions_To_management_DevPodWorkspaceInstanceLogOptions is an autogenerated conversion function. -func Convert_v1_DevPodWorkspaceInstanceLogOptions_To_management_DevPodWorkspaceInstanceLogOptions(in *DevPodWorkspaceInstanceLogOptions, out *management.DevPodWorkspaceInstanceLogOptions, s conversion.Scope) error { - return autoConvert_v1_DevPodWorkspaceInstanceLogOptions_To_management_DevPodWorkspaceInstanceLogOptions(in, out, s) +// Convert_v1_DevsyWorkspaceInstanceLogOptions_To_management_DevsyWorkspaceInstanceLogOptions is an autogenerated conversion function. +func Convert_v1_DevsyWorkspaceInstanceLogOptions_To_management_DevsyWorkspaceInstanceLogOptions(in *DevsyWorkspaceInstanceLogOptions, out *management.DevsyWorkspaceInstanceLogOptions, s conversion.Scope) error { + return autoConvert_v1_DevsyWorkspaceInstanceLogOptions_To_management_DevsyWorkspaceInstanceLogOptions(in, out, s) } -func autoConvert_management_DevPodWorkspaceInstanceLogOptions_To_v1_DevPodWorkspaceInstanceLogOptions(in *management.DevPodWorkspaceInstanceLogOptions, out *DevPodWorkspaceInstanceLogOptions, s conversion.Scope) error { +func autoConvert_management_DevsyWorkspaceInstanceLogOptions_To_v1_DevsyWorkspaceInstanceLogOptions(in *management.DevsyWorkspaceInstanceLogOptions, out *DevsyWorkspaceInstanceLogOptions, s conversion.Scope) error { out.TaskID = in.TaskID out.Follow = in.Follow return nil } -// Convert_management_DevPodWorkspaceInstanceLogOptions_To_v1_DevPodWorkspaceInstanceLogOptions is an autogenerated conversion function. -func Convert_management_DevPodWorkspaceInstanceLogOptions_To_v1_DevPodWorkspaceInstanceLogOptions(in *management.DevPodWorkspaceInstanceLogOptions, out *DevPodWorkspaceInstanceLogOptions, s conversion.Scope) error { - return autoConvert_management_DevPodWorkspaceInstanceLogOptions_To_v1_DevPodWorkspaceInstanceLogOptions(in, out, s) +// Convert_management_DevsyWorkspaceInstanceLogOptions_To_v1_DevsyWorkspaceInstanceLogOptions is an autogenerated conversion function. +func Convert_management_DevsyWorkspaceInstanceLogOptions_To_v1_DevsyWorkspaceInstanceLogOptions(in *management.DevsyWorkspaceInstanceLogOptions, out *DevsyWorkspaceInstanceLogOptions, s conversion.Scope) error { + return autoConvert_management_DevsyWorkspaceInstanceLogOptions_To_v1_DevsyWorkspaceInstanceLogOptions(in, out, s) } -func autoConvert_url_Values_To_v1_DevPodWorkspaceInstanceLogOptions(in *url.Values, out *DevPodWorkspaceInstanceLogOptions, s conversion.Scope) error { +func autoConvert_url_Values_To_v1_DevsyWorkspaceInstanceLogOptions(in *url.Values, out *DevsyWorkspaceInstanceLogOptions, s conversion.Scope) error { // WARNING: Field TypeMeta does not have json tag, skipping. if values, ok := map[string][]string(*in)["taskID"]; ok && len(values) > 0 { @@ -6479,148 +6575,148 @@ func autoConvert_url_Values_To_v1_DevPodWorkspaceInstanceLogOptions(in *url.Valu return nil } -// Convert_url_Values_To_v1_DevPodWorkspaceInstanceLogOptions is an autogenerated conversion function. -func Convert_url_Values_To_v1_DevPodWorkspaceInstanceLogOptions(in *url.Values, out *DevPodWorkspaceInstanceLogOptions, s conversion.Scope) error { - return autoConvert_url_Values_To_v1_DevPodWorkspaceInstanceLogOptions(in, out, s) +// Convert_url_Values_To_v1_DevsyWorkspaceInstanceLogOptions is an autogenerated conversion function. +func Convert_url_Values_To_v1_DevsyWorkspaceInstanceLogOptions(in *url.Values, out *DevsyWorkspaceInstanceLogOptions, s conversion.Scope) error { + return autoConvert_url_Values_To_v1_DevsyWorkspaceInstanceLogOptions(in, out, s) } -func autoConvert_v1_DevPodWorkspaceInstanceSpec_To_management_DevPodWorkspaceInstanceSpec(in *DevPodWorkspaceInstanceSpec, out *management.DevPodWorkspaceInstanceSpec, s conversion.Scope) error { - out.DevPodWorkspaceInstanceSpec = in.DevPodWorkspaceInstanceSpec +func autoConvert_v1_DevsyWorkspaceInstanceSpec_To_management_DevsyWorkspaceInstanceSpec(in *DevsyWorkspaceInstanceSpec, out *management.DevsyWorkspaceInstanceSpec, s conversion.Scope) error { + out.DevsyWorkspaceInstanceSpec = in.DevsyWorkspaceInstanceSpec return nil } -// Convert_v1_DevPodWorkspaceInstanceSpec_To_management_DevPodWorkspaceInstanceSpec is an autogenerated conversion function. -func Convert_v1_DevPodWorkspaceInstanceSpec_To_management_DevPodWorkspaceInstanceSpec(in *DevPodWorkspaceInstanceSpec, out *management.DevPodWorkspaceInstanceSpec, s conversion.Scope) error { - return autoConvert_v1_DevPodWorkspaceInstanceSpec_To_management_DevPodWorkspaceInstanceSpec(in, out, s) +// Convert_v1_DevsyWorkspaceInstanceSpec_To_management_DevsyWorkspaceInstanceSpec is an autogenerated conversion function. +func Convert_v1_DevsyWorkspaceInstanceSpec_To_management_DevsyWorkspaceInstanceSpec(in *DevsyWorkspaceInstanceSpec, out *management.DevsyWorkspaceInstanceSpec, s conversion.Scope) error { + return autoConvert_v1_DevsyWorkspaceInstanceSpec_To_management_DevsyWorkspaceInstanceSpec(in, out, s) } -func autoConvert_management_DevPodWorkspaceInstanceSpec_To_v1_DevPodWorkspaceInstanceSpec(in *management.DevPodWorkspaceInstanceSpec, out *DevPodWorkspaceInstanceSpec, s conversion.Scope) error { - out.DevPodWorkspaceInstanceSpec = in.DevPodWorkspaceInstanceSpec +func autoConvert_management_DevsyWorkspaceInstanceSpec_To_v1_DevsyWorkspaceInstanceSpec(in *management.DevsyWorkspaceInstanceSpec, out *DevsyWorkspaceInstanceSpec, s conversion.Scope) error { + out.DevsyWorkspaceInstanceSpec = in.DevsyWorkspaceInstanceSpec return nil } -// Convert_management_DevPodWorkspaceInstanceSpec_To_v1_DevPodWorkspaceInstanceSpec is an autogenerated conversion function. -func Convert_management_DevPodWorkspaceInstanceSpec_To_v1_DevPodWorkspaceInstanceSpec(in *management.DevPodWorkspaceInstanceSpec, out *DevPodWorkspaceInstanceSpec, s conversion.Scope) error { - return autoConvert_management_DevPodWorkspaceInstanceSpec_To_v1_DevPodWorkspaceInstanceSpec(in, out, s) +// Convert_management_DevsyWorkspaceInstanceSpec_To_v1_DevsyWorkspaceInstanceSpec is an autogenerated conversion function. +func Convert_management_DevsyWorkspaceInstanceSpec_To_v1_DevsyWorkspaceInstanceSpec(in *management.DevsyWorkspaceInstanceSpec, out *DevsyWorkspaceInstanceSpec, s conversion.Scope) error { + return autoConvert_management_DevsyWorkspaceInstanceSpec_To_v1_DevsyWorkspaceInstanceSpec(in, out, s) } -func autoConvert_v1_DevPodWorkspaceInstanceStatus_To_management_DevPodWorkspaceInstanceStatus(in *DevPodWorkspaceInstanceStatus, out *management.DevPodWorkspaceInstanceStatus, s conversion.Scope) error { - out.DevPodWorkspaceInstanceStatus = in.DevPodWorkspaceInstanceStatus +func autoConvert_v1_DevsyWorkspaceInstanceStatus_To_management_DevsyWorkspaceInstanceStatus(in *DevsyWorkspaceInstanceStatus, out *management.DevsyWorkspaceInstanceStatus, s conversion.Scope) error { + out.DevsyWorkspaceInstanceStatus = in.DevsyWorkspaceInstanceStatus out.SleepModeConfig = (*clusterv1.SleepModeConfig)(unsafe.Pointer(in.SleepModeConfig)) return nil } -// Convert_v1_DevPodWorkspaceInstanceStatus_To_management_DevPodWorkspaceInstanceStatus is an autogenerated conversion function. -func Convert_v1_DevPodWorkspaceInstanceStatus_To_management_DevPodWorkspaceInstanceStatus(in *DevPodWorkspaceInstanceStatus, out *management.DevPodWorkspaceInstanceStatus, s conversion.Scope) error { - return autoConvert_v1_DevPodWorkspaceInstanceStatus_To_management_DevPodWorkspaceInstanceStatus(in, out, s) +// Convert_v1_DevsyWorkspaceInstanceStatus_To_management_DevsyWorkspaceInstanceStatus is an autogenerated conversion function. +func Convert_v1_DevsyWorkspaceInstanceStatus_To_management_DevsyWorkspaceInstanceStatus(in *DevsyWorkspaceInstanceStatus, out *management.DevsyWorkspaceInstanceStatus, s conversion.Scope) error { + return autoConvert_v1_DevsyWorkspaceInstanceStatus_To_management_DevsyWorkspaceInstanceStatus(in, out, s) } -func autoConvert_management_DevPodWorkspaceInstanceStatus_To_v1_DevPodWorkspaceInstanceStatus(in *management.DevPodWorkspaceInstanceStatus, out *DevPodWorkspaceInstanceStatus, s conversion.Scope) error { - out.DevPodWorkspaceInstanceStatus = in.DevPodWorkspaceInstanceStatus +func autoConvert_management_DevsyWorkspaceInstanceStatus_To_v1_DevsyWorkspaceInstanceStatus(in *management.DevsyWorkspaceInstanceStatus, out *DevsyWorkspaceInstanceStatus, s conversion.Scope) error { + out.DevsyWorkspaceInstanceStatus = in.DevsyWorkspaceInstanceStatus out.SleepModeConfig = (*clusterv1.SleepModeConfig)(unsafe.Pointer(in.SleepModeConfig)) return nil } -// Convert_management_DevPodWorkspaceInstanceStatus_To_v1_DevPodWorkspaceInstanceStatus is an autogenerated conversion function. -func Convert_management_DevPodWorkspaceInstanceStatus_To_v1_DevPodWorkspaceInstanceStatus(in *management.DevPodWorkspaceInstanceStatus, out *DevPodWorkspaceInstanceStatus, s conversion.Scope) error { - return autoConvert_management_DevPodWorkspaceInstanceStatus_To_v1_DevPodWorkspaceInstanceStatus(in, out, s) +// Convert_management_DevsyWorkspaceInstanceStatus_To_v1_DevsyWorkspaceInstanceStatus is an autogenerated conversion function. +func Convert_management_DevsyWorkspaceInstanceStatus_To_v1_DevsyWorkspaceInstanceStatus(in *management.DevsyWorkspaceInstanceStatus, out *DevsyWorkspaceInstanceStatus, s conversion.Scope) error { + return autoConvert_management_DevsyWorkspaceInstanceStatus_To_v1_DevsyWorkspaceInstanceStatus(in, out, s) } -func autoConvert_v1_DevPodWorkspaceInstanceStop_To_management_DevPodWorkspaceInstanceStop(in *DevPodWorkspaceInstanceStop, out *management.DevPodWorkspaceInstanceStop, s conversion.Scope) error { +func autoConvert_v1_DevsyWorkspaceInstanceStop_To_management_DevsyWorkspaceInstanceStop(in *DevsyWorkspaceInstanceStop, out *management.DevsyWorkspaceInstanceStop, s conversion.Scope) error { out.ObjectMeta = in.ObjectMeta - if err := Convert_v1_DevPodWorkspaceInstanceStopSpec_To_management_DevPodWorkspaceInstanceStopSpec(&in.Spec, &out.Spec, s); err != nil { + if err := Convert_v1_DevsyWorkspaceInstanceStopSpec_To_management_DevsyWorkspaceInstanceStopSpec(&in.Spec, &out.Spec, s); err != nil { return err } - if err := Convert_v1_DevPodWorkspaceInstanceStopStatus_To_management_DevPodWorkspaceInstanceStopStatus(&in.Status, &out.Status, s); err != nil { + if err := Convert_v1_DevsyWorkspaceInstanceStopStatus_To_management_DevsyWorkspaceInstanceStopStatus(&in.Status, &out.Status, s); err != nil { return err } return nil } -// Convert_v1_DevPodWorkspaceInstanceStop_To_management_DevPodWorkspaceInstanceStop is an autogenerated conversion function. -func Convert_v1_DevPodWorkspaceInstanceStop_To_management_DevPodWorkspaceInstanceStop(in *DevPodWorkspaceInstanceStop, out *management.DevPodWorkspaceInstanceStop, s conversion.Scope) error { - return autoConvert_v1_DevPodWorkspaceInstanceStop_To_management_DevPodWorkspaceInstanceStop(in, out, s) +// Convert_v1_DevsyWorkspaceInstanceStop_To_management_DevsyWorkspaceInstanceStop is an autogenerated conversion function. +func Convert_v1_DevsyWorkspaceInstanceStop_To_management_DevsyWorkspaceInstanceStop(in *DevsyWorkspaceInstanceStop, out *management.DevsyWorkspaceInstanceStop, s conversion.Scope) error { + return autoConvert_v1_DevsyWorkspaceInstanceStop_To_management_DevsyWorkspaceInstanceStop(in, out, s) } -func autoConvert_management_DevPodWorkspaceInstanceStop_To_v1_DevPodWorkspaceInstanceStop(in *management.DevPodWorkspaceInstanceStop, out *DevPodWorkspaceInstanceStop, s conversion.Scope) error { +func autoConvert_management_DevsyWorkspaceInstanceStop_To_v1_DevsyWorkspaceInstanceStop(in *management.DevsyWorkspaceInstanceStop, out *DevsyWorkspaceInstanceStop, s conversion.Scope) error { out.ObjectMeta = in.ObjectMeta - if err := Convert_management_DevPodWorkspaceInstanceStopSpec_To_v1_DevPodWorkspaceInstanceStopSpec(&in.Spec, &out.Spec, s); err != nil { + if err := Convert_management_DevsyWorkspaceInstanceStopSpec_To_v1_DevsyWorkspaceInstanceStopSpec(&in.Spec, &out.Spec, s); err != nil { return err } - if err := Convert_management_DevPodWorkspaceInstanceStopStatus_To_v1_DevPodWorkspaceInstanceStopStatus(&in.Status, &out.Status, s); err != nil { + if err := Convert_management_DevsyWorkspaceInstanceStopStatus_To_v1_DevsyWorkspaceInstanceStopStatus(&in.Status, &out.Status, s); err != nil { return err } return nil } -// Convert_management_DevPodWorkspaceInstanceStop_To_v1_DevPodWorkspaceInstanceStop is an autogenerated conversion function. -func Convert_management_DevPodWorkspaceInstanceStop_To_v1_DevPodWorkspaceInstanceStop(in *management.DevPodWorkspaceInstanceStop, out *DevPodWorkspaceInstanceStop, s conversion.Scope) error { - return autoConvert_management_DevPodWorkspaceInstanceStop_To_v1_DevPodWorkspaceInstanceStop(in, out, s) +// Convert_management_DevsyWorkspaceInstanceStop_To_v1_DevsyWorkspaceInstanceStop is an autogenerated conversion function. +func Convert_management_DevsyWorkspaceInstanceStop_To_v1_DevsyWorkspaceInstanceStop(in *management.DevsyWorkspaceInstanceStop, out *DevsyWorkspaceInstanceStop, s conversion.Scope) error { + return autoConvert_management_DevsyWorkspaceInstanceStop_To_v1_DevsyWorkspaceInstanceStop(in, out, s) } -func autoConvert_v1_DevPodWorkspaceInstanceStopList_To_management_DevPodWorkspaceInstanceStopList(in *DevPodWorkspaceInstanceStopList, out *management.DevPodWorkspaceInstanceStopList, s conversion.Scope) error { +func autoConvert_v1_DevsyWorkspaceInstanceStopList_To_management_DevsyWorkspaceInstanceStopList(in *DevsyWorkspaceInstanceStopList, out *management.DevsyWorkspaceInstanceStopList, s conversion.Scope) error { out.ListMeta = in.ListMeta - out.Items = *(*[]management.DevPodWorkspaceInstanceStop)(unsafe.Pointer(&in.Items)) + out.Items = *(*[]management.DevsyWorkspaceInstanceStop)(unsafe.Pointer(&in.Items)) return nil } -// Convert_v1_DevPodWorkspaceInstanceStopList_To_management_DevPodWorkspaceInstanceStopList is an autogenerated conversion function. -func Convert_v1_DevPodWorkspaceInstanceStopList_To_management_DevPodWorkspaceInstanceStopList(in *DevPodWorkspaceInstanceStopList, out *management.DevPodWorkspaceInstanceStopList, s conversion.Scope) error { - return autoConvert_v1_DevPodWorkspaceInstanceStopList_To_management_DevPodWorkspaceInstanceStopList(in, out, s) +// Convert_v1_DevsyWorkspaceInstanceStopList_To_management_DevsyWorkspaceInstanceStopList is an autogenerated conversion function. +func Convert_v1_DevsyWorkspaceInstanceStopList_To_management_DevsyWorkspaceInstanceStopList(in *DevsyWorkspaceInstanceStopList, out *management.DevsyWorkspaceInstanceStopList, s conversion.Scope) error { + return autoConvert_v1_DevsyWorkspaceInstanceStopList_To_management_DevsyWorkspaceInstanceStopList(in, out, s) } -func autoConvert_management_DevPodWorkspaceInstanceStopList_To_v1_DevPodWorkspaceInstanceStopList(in *management.DevPodWorkspaceInstanceStopList, out *DevPodWorkspaceInstanceStopList, s conversion.Scope) error { +func autoConvert_management_DevsyWorkspaceInstanceStopList_To_v1_DevsyWorkspaceInstanceStopList(in *management.DevsyWorkspaceInstanceStopList, out *DevsyWorkspaceInstanceStopList, s conversion.Scope) error { out.ListMeta = in.ListMeta - out.Items = *(*[]DevPodWorkspaceInstanceStop)(unsafe.Pointer(&in.Items)) + out.Items = *(*[]DevsyWorkspaceInstanceStop)(unsafe.Pointer(&in.Items)) return nil } -// Convert_management_DevPodWorkspaceInstanceStopList_To_v1_DevPodWorkspaceInstanceStopList is an autogenerated conversion function. -func Convert_management_DevPodWorkspaceInstanceStopList_To_v1_DevPodWorkspaceInstanceStopList(in *management.DevPodWorkspaceInstanceStopList, out *DevPodWorkspaceInstanceStopList, s conversion.Scope) error { - return autoConvert_management_DevPodWorkspaceInstanceStopList_To_v1_DevPodWorkspaceInstanceStopList(in, out, s) +// Convert_management_DevsyWorkspaceInstanceStopList_To_v1_DevsyWorkspaceInstanceStopList is an autogenerated conversion function. +func Convert_management_DevsyWorkspaceInstanceStopList_To_v1_DevsyWorkspaceInstanceStopList(in *management.DevsyWorkspaceInstanceStopList, out *DevsyWorkspaceInstanceStopList, s conversion.Scope) error { + return autoConvert_management_DevsyWorkspaceInstanceStopList_To_v1_DevsyWorkspaceInstanceStopList(in, out, s) } -func autoConvert_v1_DevPodWorkspaceInstanceStopSpec_To_management_DevPodWorkspaceInstanceStopSpec(in *DevPodWorkspaceInstanceStopSpec, out *management.DevPodWorkspaceInstanceStopSpec, s conversion.Scope) error { +func autoConvert_v1_DevsyWorkspaceInstanceStopSpec_To_management_DevsyWorkspaceInstanceStopSpec(in *DevsyWorkspaceInstanceStopSpec, out *management.DevsyWorkspaceInstanceStopSpec, s conversion.Scope) error { out.Options = in.Options return nil } -// Convert_v1_DevPodWorkspaceInstanceStopSpec_To_management_DevPodWorkspaceInstanceStopSpec is an autogenerated conversion function. -func Convert_v1_DevPodWorkspaceInstanceStopSpec_To_management_DevPodWorkspaceInstanceStopSpec(in *DevPodWorkspaceInstanceStopSpec, out *management.DevPodWorkspaceInstanceStopSpec, s conversion.Scope) error { - return autoConvert_v1_DevPodWorkspaceInstanceStopSpec_To_management_DevPodWorkspaceInstanceStopSpec(in, out, s) +// Convert_v1_DevsyWorkspaceInstanceStopSpec_To_management_DevsyWorkspaceInstanceStopSpec is an autogenerated conversion function. +func Convert_v1_DevsyWorkspaceInstanceStopSpec_To_management_DevsyWorkspaceInstanceStopSpec(in *DevsyWorkspaceInstanceStopSpec, out *management.DevsyWorkspaceInstanceStopSpec, s conversion.Scope) error { + return autoConvert_v1_DevsyWorkspaceInstanceStopSpec_To_management_DevsyWorkspaceInstanceStopSpec(in, out, s) } -func autoConvert_management_DevPodWorkspaceInstanceStopSpec_To_v1_DevPodWorkspaceInstanceStopSpec(in *management.DevPodWorkspaceInstanceStopSpec, out *DevPodWorkspaceInstanceStopSpec, s conversion.Scope) error { +func autoConvert_management_DevsyWorkspaceInstanceStopSpec_To_v1_DevsyWorkspaceInstanceStopSpec(in *management.DevsyWorkspaceInstanceStopSpec, out *DevsyWorkspaceInstanceStopSpec, s conversion.Scope) error { out.Options = in.Options return nil } -// Convert_management_DevPodWorkspaceInstanceStopSpec_To_v1_DevPodWorkspaceInstanceStopSpec is an autogenerated conversion function. -func Convert_management_DevPodWorkspaceInstanceStopSpec_To_v1_DevPodWorkspaceInstanceStopSpec(in *management.DevPodWorkspaceInstanceStopSpec, out *DevPodWorkspaceInstanceStopSpec, s conversion.Scope) error { - return autoConvert_management_DevPodWorkspaceInstanceStopSpec_To_v1_DevPodWorkspaceInstanceStopSpec(in, out, s) +// Convert_management_DevsyWorkspaceInstanceStopSpec_To_v1_DevsyWorkspaceInstanceStopSpec is an autogenerated conversion function. +func Convert_management_DevsyWorkspaceInstanceStopSpec_To_v1_DevsyWorkspaceInstanceStopSpec(in *management.DevsyWorkspaceInstanceStopSpec, out *DevsyWorkspaceInstanceStopSpec, s conversion.Scope) error { + return autoConvert_management_DevsyWorkspaceInstanceStopSpec_To_v1_DevsyWorkspaceInstanceStopSpec(in, out, s) } -func autoConvert_v1_DevPodWorkspaceInstanceStopStatus_To_management_DevPodWorkspaceInstanceStopStatus(in *DevPodWorkspaceInstanceStopStatus, out *management.DevPodWorkspaceInstanceStopStatus, s conversion.Scope) error { +func autoConvert_v1_DevsyWorkspaceInstanceStopStatus_To_management_DevsyWorkspaceInstanceStopStatus(in *DevsyWorkspaceInstanceStopStatus, out *management.DevsyWorkspaceInstanceStopStatus, s conversion.Scope) error { out.TaskID = in.TaskID return nil } -// Convert_v1_DevPodWorkspaceInstanceStopStatus_To_management_DevPodWorkspaceInstanceStopStatus is an autogenerated conversion function. -func Convert_v1_DevPodWorkspaceInstanceStopStatus_To_management_DevPodWorkspaceInstanceStopStatus(in *DevPodWorkspaceInstanceStopStatus, out *management.DevPodWorkspaceInstanceStopStatus, s conversion.Scope) error { - return autoConvert_v1_DevPodWorkspaceInstanceStopStatus_To_management_DevPodWorkspaceInstanceStopStatus(in, out, s) +// Convert_v1_DevsyWorkspaceInstanceStopStatus_To_management_DevsyWorkspaceInstanceStopStatus is an autogenerated conversion function. +func Convert_v1_DevsyWorkspaceInstanceStopStatus_To_management_DevsyWorkspaceInstanceStopStatus(in *DevsyWorkspaceInstanceStopStatus, out *management.DevsyWorkspaceInstanceStopStatus, s conversion.Scope) error { + return autoConvert_v1_DevsyWorkspaceInstanceStopStatus_To_management_DevsyWorkspaceInstanceStopStatus(in, out, s) } -func autoConvert_management_DevPodWorkspaceInstanceStopStatus_To_v1_DevPodWorkspaceInstanceStopStatus(in *management.DevPodWorkspaceInstanceStopStatus, out *DevPodWorkspaceInstanceStopStatus, s conversion.Scope) error { +func autoConvert_management_DevsyWorkspaceInstanceStopStatus_To_v1_DevsyWorkspaceInstanceStopStatus(in *management.DevsyWorkspaceInstanceStopStatus, out *DevsyWorkspaceInstanceStopStatus, s conversion.Scope) error { out.TaskID = in.TaskID return nil } -// Convert_management_DevPodWorkspaceInstanceStopStatus_To_v1_DevPodWorkspaceInstanceStopStatus is an autogenerated conversion function. -func Convert_management_DevPodWorkspaceInstanceStopStatus_To_v1_DevPodWorkspaceInstanceStopStatus(in *management.DevPodWorkspaceInstanceStopStatus, out *DevPodWorkspaceInstanceStopStatus, s conversion.Scope) error { - return autoConvert_management_DevPodWorkspaceInstanceStopStatus_To_v1_DevPodWorkspaceInstanceStopStatus(in, out, s) +// Convert_management_DevsyWorkspaceInstanceStopStatus_To_v1_DevsyWorkspaceInstanceStopStatus is an autogenerated conversion function. +func Convert_management_DevsyWorkspaceInstanceStopStatus_To_v1_DevsyWorkspaceInstanceStopStatus(in *management.DevsyWorkspaceInstanceStopStatus, out *DevsyWorkspaceInstanceStopStatus, s conversion.Scope) error { + return autoConvert_management_DevsyWorkspaceInstanceStopStatus_To_v1_DevsyWorkspaceInstanceStopStatus(in, out, s) } -func autoConvert_v1_DevPodWorkspaceInstanceTask_To_management_DevPodWorkspaceInstanceTask(in *DevPodWorkspaceInstanceTask, out *management.DevPodWorkspaceInstanceTask, s conversion.Scope) error { +func autoConvert_v1_DevsyWorkspaceInstanceTask_To_management_DevsyWorkspaceInstanceTask(in *DevsyWorkspaceInstanceTask, out *management.DevsyWorkspaceInstanceTask, s conversion.Scope) error { out.ID = in.ID out.Type = in.Type out.Status = in.Status @@ -6630,12 +6726,12 @@ func autoConvert_v1_DevPodWorkspaceInstanceTask_To_management_DevPodWorkspaceIns return nil } -// Convert_v1_DevPodWorkspaceInstanceTask_To_management_DevPodWorkspaceInstanceTask is an autogenerated conversion function. -func Convert_v1_DevPodWorkspaceInstanceTask_To_management_DevPodWorkspaceInstanceTask(in *DevPodWorkspaceInstanceTask, out *management.DevPodWorkspaceInstanceTask, s conversion.Scope) error { - return autoConvert_v1_DevPodWorkspaceInstanceTask_To_management_DevPodWorkspaceInstanceTask(in, out, s) +// Convert_v1_DevsyWorkspaceInstanceTask_To_management_DevsyWorkspaceInstanceTask is an autogenerated conversion function. +func Convert_v1_DevsyWorkspaceInstanceTask_To_management_DevsyWorkspaceInstanceTask(in *DevsyWorkspaceInstanceTask, out *management.DevsyWorkspaceInstanceTask, s conversion.Scope) error { + return autoConvert_v1_DevsyWorkspaceInstanceTask_To_management_DevsyWorkspaceInstanceTask(in, out, s) } -func autoConvert_management_DevPodWorkspaceInstanceTask_To_v1_DevPodWorkspaceInstanceTask(in *management.DevPodWorkspaceInstanceTask, out *DevPodWorkspaceInstanceTask, s conversion.Scope) error { +func autoConvert_management_DevsyWorkspaceInstanceTask_To_v1_DevsyWorkspaceInstanceTask(in *management.DevsyWorkspaceInstanceTask, out *DevsyWorkspaceInstanceTask, s conversion.Scope) error { out.ID = in.ID out.Type = in.Type out.Status = in.Status @@ -6645,76 +6741,76 @@ func autoConvert_management_DevPodWorkspaceInstanceTask_To_v1_DevPodWorkspaceIns return nil } -// Convert_management_DevPodWorkspaceInstanceTask_To_v1_DevPodWorkspaceInstanceTask is an autogenerated conversion function. -func Convert_management_DevPodWorkspaceInstanceTask_To_v1_DevPodWorkspaceInstanceTask(in *management.DevPodWorkspaceInstanceTask, out *DevPodWorkspaceInstanceTask, s conversion.Scope) error { - return autoConvert_management_DevPodWorkspaceInstanceTask_To_v1_DevPodWorkspaceInstanceTask(in, out, s) +// Convert_management_DevsyWorkspaceInstanceTask_To_v1_DevsyWorkspaceInstanceTask is an autogenerated conversion function. +func Convert_management_DevsyWorkspaceInstanceTask_To_v1_DevsyWorkspaceInstanceTask(in *management.DevsyWorkspaceInstanceTask, out *DevsyWorkspaceInstanceTask, s conversion.Scope) error { + return autoConvert_management_DevsyWorkspaceInstanceTask_To_v1_DevsyWorkspaceInstanceTask(in, out, s) } -func autoConvert_v1_DevPodWorkspaceInstanceTasks_To_management_DevPodWorkspaceInstanceTasks(in *DevPodWorkspaceInstanceTasks, out *management.DevPodWorkspaceInstanceTasks, s conversion.Scope) error { +func autoConvert_v1_DevsyWorkspaceInstanceTasks_To_management_DevsyWorkspaceInstanceTasks(in *DevsyWorkspaceInstanceTasks, out *management.DevsyWorkspaceInstanceTasks, s conversion.Scope) error { out.ObjectMeta = in.ObjectMeta - out.Tasks = *(*[]management.DevPodWorkspaceInstanceTask)(unsafe.Pointer(&in.Tasks)) + out.Tasks = *(*[]management.DevsyWorkspaceInstanceTask)(unsafe.Pointer(&in.Tasks)) return nil } -// Convert_v1_DevPodWorkspaceInstanceTasks_To_management_DevPodWorkspaceInstanceTasks is an autogenerated conversion function. -func Convert_v1_DevPodWorkspaceInstanceTasks_To_management_DevPodWorkspaceInstanceTasks(in *DevPodWorkspaceInstanceTasks, out *management.DevPodWorkspaceInstanceTasks, s conversion.Scope) error { - return autoConvert_v1_DevPodWorkspaceInstanceTasks_To_management_DevPodWorkspaceInstanceTasks(in, out, s) +// Convert_v1_DevsyWorkspaceInstanceTasks_To_management_DevsyWorkspaceInstanceTasks is an autogenerated conversion function. +func Convert_v1_DevsyWorkspaceInstanceTasks_To_management_DevsyWorkspaceInstanceTasks(in *DevsyWorkspaceInstanceTasks, out *management.DevsyWorkspaceInstanceTasks, s conversion.Scope) error { + return autoConvert_v1_DevsyWorkspaceInstanceTasks_To_management_DevsyWorkspaceInstanceTasks(in, out, s) } -func autoConvert_management_DevPodWorkspaceInstanceTasks_To_v1_DevPodWorkspaceInstanceTasks(in *management.DevPodWorkspaceInstanceTasks, out *DevPodWorkspaceInstanceTasks, s conversion.Scope) error { +func autoConvert_management_DevsyWorkspaceInstanceTasks_To_v1_DevsyWorkspaceInstanceTasks(in *management.DevsyWorkspaceInstanceTasks, out *DevsyWorkspaceInstanceTasks, s conversion.Scope) error { out.ObjectMeta = in.ObjectMeta - out.Tasks = *(*[]DevPodWorkspaceInstanceTask)(unsafe.Pointer(&in.Tasks)) + out.Tasks = *(*[]DevsyWorkspaceInstanceTask)(unsafe.Pointer(&in.Tasks)) return nil } -// Convert_management_DevPodWorkspaceInstanceTasks_To_v1_DevPodWorkspaceInstanceTasks is an autogenerated conversion function. -func Convert_management_DevPodWorkspaceInstanceTasks_To_v1_DevPodWorkspaceInstanceTasks(in *management.DevPodWorkspaceInstanceTasks, out *DevPodWorkspaceInstanceTasks, s conversion.Scope) error { - return autoConvert_management_DevPodWorkspaceInstanceTasks_To_v1_DevPodWorkspaceInstanceTasks(in, out, s) +// Convert_management_DevsyWorkspaceInstanceTasks_To_v1_DevsyWorkspaceInstanceTasks is an autogenerated conversion function. +func Convert_management_DevsyWorkspaceInstanceTasks_To_v1_DevsyWorkspaceInstanceTasks(in *management.DevsyWorkspaceInstanceTasks, out *DevsyWorkspaceInstanceTasks, s conversion.Scope) error { + return autoConvert_management_DevsyWorkspaceInstanceTasks_To_v1_DevsyWorkspaceInstanceTasks(in, out, s) } -func autoConvert_v1_DevPodWorkspaceInstanceTasksList_To_management_DevPodWorkspaceInstanceTasksList(in *DevPodWorkspaceInstanceTasksList, out *management.DevPodWorkspaceInstanceTasksList, s conversion.Scope) error { +func autoConvert_v1_DevsyWorkspaceInstanceTasksList_To_management_DevsyWorkspaceInstanceTasksList(in *DevsyWorkspaceInstanceTasksList, out *management.DevsyWorkspaceInstanceTasksList, s conversion.Scope) error { out.ListMeta = in.ListMeta - out.Items = *(*[]management.DevPodWorkspaceInstanceTasks)(unsafe.Pointer(&in.Items)) + out.Items = *(*[]management.DevsyWorkspaceInstanceTasks)(unsafe.Pointer(&in.Items)) return nil } -// Convert_v1_DevPodWorkspaceInstanceTasksList_To_management_DevPodWorkspaceInstanceTasksList is an autogenerated conversion function. -func Convert_v1_DevPodWorkspaceInstanceTasksList_To_management_DevPodWorkspaceInstanceTasksList(in *DevPodWorkspaceInstanceTasksList, out *management.DevPodWorkspaceInstanceTasksList, s conversion.Scope) error { - return autoConvert_v1_DevPodWorkspaceInstanceTasksList_To_management_DevPodWorkspaceInstanceTasksList(in, out, s) +// Convert_v1_DevsyWorkspaceInstanceTasksList_To_management_DevsyWorkspaceInstanceTasksList is an autogenerated conversion function. +func Convert_v1_DevsyWorkspaceInstanceTasksList_To_management_DevsyWorkspaceInstanceTasksList(in *DevsyWorkspaceInstanceTasksList, out *management.DevsyWorkspaceInstanceTasksList, s conversion.Scope) error { + return autoConvert_v1_DevsyWorkspaceInstanceTasksList_To_management_DevsyWorkspaceInstanceTasksList(in, out, s) } -func autoConvert_management_DevPodWorkspaceInstanceTasksList_To_v1_DevPodWorkspaceInstanceTasksList(in *management.DevPodWorkspaceInstanceTasksList, out *DevPodWorkspaceInstanceTasksList, s conversion.Scope) error { +func autoConvert_management_DevsyWorkspaceInstanceTasksList_To_v1_DevsyWorkspaceInstanceTasksList(in *management.DevsyWorkspaceInstanceTasksList, out *DevsyWorkspaceInstanceTasksList, s conversion.Scope) error { out.ListMeta = in.ListMeta - out.Items = *(*[]DevPodWorkspaceInstanceTasks)(unsafe.Pointer(&in.Items)) + out.Items = *(*[]DevsyWorkspaceInstanceTasks)(unsafe.Pointer(&in.Items)) return nil } -// Convert_management_DevPodWorkspaceInstanceTasksList_To_v1_DevPodWorkspaceInstanceTasksList is an autogenerated conversion function. -func Convert_management_DevPodWorkspaceInstanceTasksList_To_v1_DevPodWorkspaceInstanceTasksList(in *management.DevPodWorkspaceInstanceTasksList, out *DevPodWorkspaceInstanceTasksList, s conversion.Scope) error { - return autoConvert_management_DevPodWorkspaceInstanceTasksList_To_v1_DevPodWorkspaceInstanceTasksList(in, out, s) +// Convert_management_DevsyWorkspaceInstanceTasksList_To_v1_DevsyWorkspaceInstanceTasksList is an autogenerated conversion function. +func Convert_management_DevsyWorkspaceInstanceTasksList_To_v1_DevsyWorkspaceInstanceTasksList(in *management.DevsyWorkspaceInstanceTasksList, out *DevsyWorkspaceInstanceTasksList, s conversion.Scope) error { + return autoConvert_management_DevsyWorkspaceInstanceTasksList_To_v1_DevsyWorkspaceInstanceTasksList(in, out, s) } -func autoConvert_v1_DevPodWorkspaceInstanceTasksOptions_To_management_DevPodWorkspaceInstanceTasksOptions(in *DevPodWorkspaceInstanceTasksOptions, out *management.DevPodWorkspaceInstanceTasksOptions, s conversion.Scope) error { +func autoConvert_v1_DevsyWorkspaceInstanceTasksOptions_To_management_DevsyWorkspaceInstanceTasksOptions(in *DevsyWorkspaceInstanceTasksOptions, out *management.DevsyWorkspaceInstanceTasksOptions, s conversion.Scope) error { out.TaskID = in.TaskID return nil } -// Convert_v1_DevPodWorkspaceInstanceTasksOptions_To_management_DevPodWorkspaceInstanceTasksOptions is an autogenerated conversion function. -func Convert_v1_DevPodWorkspaceInstanceTasksOptions_To_management_DevPodWorkspaceInstanceTasksOptions(in *DevPodWorkspaceInstanceTasksOptions, out *management.DevPodWorkspaceInstanceTasksOptions, s conversion.Scope) error { - return autoConvert_v1_DevPodWorkspaceInstanceTasksOptions_To_management_DevPodWorkspaceInstanceTasksOptions(in, out, s) +// Convert_v1_DevsyWorkspaceInstanceTasksOptions_To_management_DevsyWorkspaceInstanceTasksOptions is an autogenerated conversion function. +func Convert_v1_DevsyWorkspaceInstanceTasksOptions_To_management_DevsyWorkspaceInstanceTasksOptions(in *DevsyWorkspaceInstanceTasksOptions, out *management.DevsyWorkspaceInstanceTasksOptions, s conversion.Scope) error { + return autoConvert_v1_DevsyWorkspaceInstanceTasksOptions_To_management_DevsyWorkspaceInstanceTasksOptions(in, out, s) } -func autoConvert_management_DevPodWorkspaceInstanceTasksOptions_To_v1_DevPodWorkspaceInstanceTasksOptions(in *management.DevPodWorkspaceInstanceTasksOptions, out *DevPodWorkspaceInstanceTasksOptions, s conversion.Scope) error { +func autoConvert_management_DevsyWorkspaceInstanceTasksOptions_To_v1_DevsyWorkspaceInstanceTasksOptions(in *management.DevsyWorkspaceInstanceTasksOptions, out *DevsyWorkspaceInstanceTasksOptions, s conversion.Scope) error { out.TaskID = in.TaskID return nil } -// Convert_management_DevPodWorkspaceInstanceTasksOptions_To_v1_DevPodWorkspaceInstanceTasksOptions is an autogenerated conversion function. -func Convert_management_DevPodWorkspaceInstanceTasksOptions_To_v1_DevPodWorkspaceInstanceTasksOptions(in *management.DevPodWorkspaceInstanceTasksOptions, out *DevPodWorkspaceInstanceTasksOptions, s conversion.Scope) error { - return autoConvert_management_DevPodWorkspaceInstanceTasksOptions_To_v1_DevPodWorkspaceInstanceTasksOptions(in, out, s) +// Convert_management_DevsyWorkspaceInstanceTasksOptions_To_v1_DevsyWorkspaceInstanceTasksOptions is an autogenerated conversion function. +func Convert_management_DevsyWorkspaceInstanceTasksOptions_To_v1_DevsyWorkspaceInstanceTasksOptions(in *management.DevsyWorkspaceInstanceTasksOptions, out *DevsyWorkspaceInstanceTasksOptions, s conversion.Scope) error { + return autoConvert_management_DevsyWorkspaceInstanceTasksOptions_To_v1_DevsyWorkspaceInstanceTasksOptions(in, out, s) } -func autoConvert_url_Values_To_v1_DevPodWorkspaceInstanceTasksOptions(in *url.Values, out *DevPodWorkspaceInstanceTasksOptions, s conversion.Scope) error { +func autoConvert_url_Values_To_v1_DevsyWorkspaceInstanceTasksOptions(in *url.Values, out *DevsyWorkspaceInstanceTasksOptions, s conversion.Scope) error { // WARNING: Field TypeMeta does not have json tag, skipping. if values, ok := map[string][]string(*in)["taskID"]; ok && len(values) > 0 { @@ -6727,16 +6823,16 @@ func autoConvert_url_Values_To_v1_DevPodWorkspaceInstanceTasksOptions(in *url.Va return nil } -// Convert_url_Values_To_v1_DevPodWorkspaceInstanceTasksOptions is an autogenerated conversion function. -func Convert_url_Values_To_v1_DevPodWorkspaceInstanceTasksOptions(in *url.Values, out *DevPodWorkspaceInstanceTasksOptions, s conversion.Scope) error { - return autoConvert_url_Values_To_v1_DevPodWorkspaceInstanceTasksOptions(in, out, s) +// Convert_url_Values_To_v1_DevsyWorkspaceInstanceTasksOptions is an autogenerated conversion function. +func Convert_url_Values_To_v1_DevsyWorkspaceInstanceTasksOptions(in *url.Values, out *DevsyWorkspaceInstanceTasksOptions, s conversion.Scope) error { + return autoConvert_url_Values_To_v1_DevsyWorkspaceInstanceTasksOptions(in, out, s) } -func autoConvert_v1_DevPodWorkspaceInstanceTroubleshoot_To_management_DevPodWorkspaceInstanceTroubleshoot(in *DevPodWorkspaceInstanceTroubleshoot, out *management.DevPodWorkspaceInstanceTroubleshoot, s conversion.Scope) error { +func autoConvert_v1_DevsyWorkspaceInstanceTroubleshoot_To_management_DevsyWorkspaceInstanceTroubleshoot(in *DevsyWorkspaceInstanceTroubleshoot, out *management.DevsyWorkspaceInstanceTroubleshoot, s conversion.Scope) error { out.ObjectMeta = in.ObjectMeta out.State = in.State - out.Workspace = (*management.DevPodWorkspaceInstance)(unsafe.Pointer(in.Workspace)) - out.Template = (*storagev1.DevPodWorkspaceTemplate)(unsafe.Pointer(in.Template)) + out.Workspace = (*management.DevsyWorkspaceInstance)(unsafe.Pointer(in.Workspace)) + out.Template = (*storagev1.DevsyWorkspaceTemplate)(unsafe.Pointer(in.Template)) out.Pods = *(*[]corev1.Pod)(unsafe.Pointer(&in.Pods)) out.PVCs = *(*[]corev1.PersistentVolumeClaim)(unsafe.Pointer(&in.PVCs)) out.Netmaps = *(*[]string)(unsafe.Pointer(&in.Netmaps)) @@ -6744,16 +6840,16 @@ func autoConvert_v1_DevPodWorkspaceInstanceTroubleshoot_To_management_DevPodWork return nil } -// Convert_v1_DevPodWorkspaceInstanceTroubleshoot_To_management_DevPodWorkspaceInstanceTroubleshoot is an autogenerated conversion function. -func Convert_v1_DevPodWorkspaceInstanceTroubleshoot_To_management_DevPodWorkspaceInstanceTroubleshoot(in *DevPodWorkspaceInstanceTroubleshoot, out *management.DevPodWorkspaceInstanceTroubleshoot, s conversion.Scope) error { - return autoConvert_v1_DevPodWorkspaceInstanceTroubleshoot_To_management_DevPodWorkspaceInstanceTroubleshoot(in, out, s) +// Convert_v1_DevsyWorkspaceInstanceTroubleshoot_To_management_DevsyWorkspaceInstanceTroubleshoot is an autogenerated conversion function. +func Convert_v1_DevsyWorkspaceInstanceTroubleshoot_To_management_DevsyWorkspaceInstanceTroubleshoot(in *DevsyWorkspaceInstanceTroubleshoot, out *management.DevsyWorkspaceInstanceTroubleshoot, s conversion.Scope) error { + return autoConvert_v1_DevsyWorkspaceInstanceTroubleshoot_To_management_DevsyWorkspaceInstanceTroubleshoot(in, out, s) } -func autoConvert_management_DevPodWorkspaceInstanceTroubleshoot_To_v1_DevPodWorkspaceInstanceTroubleshoot(in *management.DevPodWorkspaceInstanceTroubleshoot, out *DevPodWorkspaceInstanceTroubleshoot, s conversion.Scope) error { +func autoConvert_management_DevsyWorkspaceInstanceTroubleshoot_To_v1_DevsyWorkspaceInstanceTroubleshoot(in *management.DevsyWorkspaceInstanceTroubleshoot, out *DevsyWorkspaceInstanceTroubleshoot, s conversion.Scope) error { out.ObjectMeta = in.ObjectMeta out.State = in.State - out.Workspace = (*DevPodWorkspaceInstance)(unsafe.Pointer(in.Workspace)) - out.Template = (*storagev1.DevPodWorkspaceTemplate)(unsafe.Pointer(in.Template)) + out.Workspace = (*DevsyWorkspaceInstance)(unsafe.Pointer(in.Workspace)) + out.Template = (*storagev1.DevsyWorkspaceTemplate)(unsafe.Pointer(in.Template)) out.Pods = *(*[]corev1.Pod)(unsafe.Pointer(&in.Pods)) out.PVCs = *(*[]corev1.PersistentVolumeClaim)(unsafe.Pointer(&in.PVCs)) out.Netmaps = *(*[]string)(unsafe.Pointer(&in.Netmaps)) @@ -6761,313 +6857,313 @@ func autoConvert_management_DevPodWorkspaceInstanceTroubleshoot_To_v1_DevPodWork return nil } -// Convert_management_DevPodWorkspaceInstanceTroubleshoot_To_v1_DevPodWorkspaceInstanceTroubleshoot is an autogenerated conversion function. -func Convert_management_DevPodWorkspaceInstanceTroubleshoot_To_v1_DevPodWorkspaceInstanceTroubleshoot(in *management.DevPodWorkspaceInstanceTroubleshoot, out *DevPodWorkspaceInstanceTroubleshoot, s conversion.Scope) error { - return autoConvert_management_DevPodWorkspaceInstanceTroubleshoot_To_v1_DevPodWorkspaceInstanceTroubleshoot(in, out, s) +// Convert_management_DevsyWorkspaceInstanceTroubleshoot_To_v1_DevsyWorkspaceInstanceTroubleshoot is an autogenerated conversion function. +func Convert_management_DevsyWorkspaceInstanceTroubleshoot_To_v1_DevsyWorkspaceInstanceTroubleshoot(in *management.DevsyWorkspaceInstanceTroubleshoot, out *DevsyWorkspaceInstanceTroubleshoot, s conversion.Scope) error { + return autoConvert_management_DevsyWorkspaceInstanceTroubleshoot_To_v1_DevsyWorkspaceInstanceTroubleshoot(in, out, s) } -func autoConvert_v1_DevPodWorkspaceInstanceTroubleshootList_To_management_DevPodWorkspaceInstanceTroubleshootList(in *DevPodWorkspaceInstanceTroubleshootList, out *management.DevPodWorkspaceInstanceTroubleshootList, s conversion.Scope) error { +func autoConvert_v1_DevsyWorkspaceInstanceTroubleshootList_To_management_DevsyWorkspaceInstanceTroubleshootList(in *DevsyWorkspaceInstanceTroubleshootList, out *management.DevsyWorkspaceInstanceTroubleshootList, s conversion.Scope) error { out.ListMeta = in.ListMeta - out.Items = *(*[]management.DevPodWorkspaceInstanceTroubleshoot)(unsafe.Pointer(&in.Items)) + out.Items = *(*[]management.DevsyWorkspaceInstanceTroubleshoot)(unsafe.Pointer(&in.Items)) return nil } -// Convert_v1_DevPodWorkspaceInstanceTroubleshootList_To_management_DevPodWorkspaceInstanceTroubleshootList is an autogenerated conversion function. -func Convert_v1_DevPodWorkspaceInstanceTroubleshootList_To_management_DevPodWorkspaceInstanceTroubleshootList(in *DevPodWorkspaceInstanceTroubleshootList, out *management.DevPodWorkspaceInstanceTroubleshootList, s conversion.Scope) error { - return autoConvert_v1_DevPodWorkspaceInstanceTroubleshootList_To_management_DevPodWorkspaceInstanceTroubleshootList(in, out, s) +// Convert_v1_DevsyWorkspaceInstanceTroubleshootList_To_management_DevsyWorkspaceInstanceTroubleshootList is an autogenerated conversion function. +func Convert_v1_DevsyWorkspaceInstanceTroubleshootList_To_management_DevsyWorkspaceInstanceTroubleshootList(in *DevsyWorkspaceInstanceTroubleshootList, out *management.DevsyWorkspaceInstanceTroubleshootList, s conversion.Scope) error { + return autoConvert_v1_DevsyWorkspaceInstanceTroubleshootList_To_management_DevsyWorkspaceInstanceTroubleshootList(in, out, s) } -func autoConvert_management_DevPodWorkspaceInstanceTroubleshootList_To_v1_DevPodWorkspaceInstanceTroubleshootList(in *management.DevPodWorkspaceInstanceTroubleshootList, out *DevPodWorkspaceInstanceTroubleshootList, s conversion.Scope) error { +func autoConvert_management_DevsyWorkspaceInstanceTroubleshootList_To_v1_DevsyWorkspaceInstanceTroubleshootList(in *management.DevsyWorkspaceInstanceTroubleshootList, out *DevsyWorkspaceInstanceTroubleshootList, s conversion.Scope) error { out.ListMeta = in.ListMeta - out.Items = *(*[]DevPodWorkspaceInstanceTroubleshoot)(unsafe.Pointer(&in.Items)) + out.Items = *(*[]DevsyWorkspaceInstanceTroubleshoot)(unsafe.Pointer(&in.Items)) return nil } -// Convert_management_DevPodWorkspaceInstanceTroubleshootList_To_v1_DevPodWorkspaceInstanceTroubleshootList is an autogenerated conversion function. -func Convert_management_DevPodWorkspaceInstanceTroubleshootList_To_v1_DevPodWorkspaceInstanceTroubleshootList(in *management.DevPodWorkspaceInstanceTroubleshootList, out *DevPodWorkspaceInstanceTroubleshootList, s conversion.Scope) error { - return autoConvert_management_DevPodWorkspaceInstanceTroubleshootList_To_v1_DevPodWorkspaceInstanceTroubleshootList(in, out, s) +// Convert_management_DevsyWorkspaceInstanceTroubleshootList_To_v1_DevsyWorkspaceInstanceTroubleshootList is an autogenerated conversion function. +func Convert_management_DevsyWorkspaceInstanceTroubleshootList_To_v1_DevsyWorkspaceInstanceTroubleshootList(in *management.DevsyWorkspaceInstanceTroubleshootList, out *DevsyWorkspaceInstanceTroubleshootList, s conversion.Scope) error { + return autoConvert_management_DevsyWorkspaceInstanceTroubleshootList_To_v1_DevsyWorkspaceInstanceTroubleshootList(in, out, s) } -func autoConvert_v1_DevPodWorkspaceInstanceUp_To_management_DevPodWorkspaceInstanceUp(in *DevPodWorkspaceInstanceUp, out *management.DevPodWorkspaceInstanceUp, s conversion.Scope) error { +func autoConvert_v1_DevsyWorkspaceInstanceUp_To_management_DevsyWorkspaceInstanceUp(in *DevsyWorkspaceInstanceUp, out *management.DevsyWorkspaceInstanceUp, s conversion.Scope) error { out.ObjectMeta = in.ObjectMeta - if err := Convert_v1_DevPodWorkspaceInstanceUpSpec_To_management_DevPodWorkspaceInstanceUpSpec(&in.Spec, &out.Spec, s); err != nil { + if err := Convert_v1_DevsyWorkspaceInstanceUpSpec_To_management_DevsyWorkspaceInstanceUpSpec(&in.Spec, &out.Spec, s); err != nil { return err } - if err := Convert_v1_DevPodWorkspaceInstanceUpStatus_To_management_DevPodWorkspaceInstanceUpStatus(&in.Status, &out.Status, s); err != nil { + if err := Convert_v1_DevsyWorkspaceInstanceUpStatus_To_management_DevsyWorkspaceInstanceUpStatus(&in.Status, &out.Status, s); err != nil { return err } return nil } -// Convert_v1_DevPodWorkspaceInstanceUp_To_management_DevPodWorkspaceInstanceUp is an autogenerated conversion function. -func Convert_v1_DevPodWorkspaceInstanceUp_To_management_DevPodWorkspaceInstanceUp(in *DevPodWorkspaceInstanceUp, out *management.DevPodWorkspaceInstanceUp, s conversion.Scope) error { - return autoConvert_v1_DevPodWorkspaceInstanceUp_To_management_DevPodWorkspaceInstanceUp(in, out, s) +// Convert_v1_DevsyWorkspaceInstanceUp_To_management_DevsyWorkspaceInstanceUp is an autogenerated conversion function. +func Convert_v1_DevsyWorkspaceInstanceUp_To_management_DevsyWorkspaceInstanceUp(in *DevsyWorkspaceInstanceUp, out *management.DevsyWorkspaceInstanceUp, s conversion.Scope) error { + return autoConvert_v1_DevsyWorkspaceInstanceUp_To_management_DevsyWorkspaceInstanceUp(in, out, s) } -func autoConvert_management_DevPodWorkspaceInstanceUp_To_v1_DevPodWorkspaceInstanceUp(in *management.DevPodWorkspaceInstanceUp, out *DevPodWorkspaceInstanceUp, s conversion.Scope) error { +func autoConvert_management_DevsyWorkspaceInstanceUp_To_v1_DevsyWorkspaceInstanceUp(in *management.DevsyWorkspaceInstanceUp, out *DevsyWorkspaceInstanceUp, s conversion.Scope) error { out.ObjectMeta = in.ObjectMeta - if err := Convert_management_DevPodWorkspaceInstanceUpSpec_To_v1_DevPodWorkspaceInstanceUpSpec(&in.Spec, &out.Spec, s); err != nil { + if err := Convert_management_DevsyWorkspaceInstanceUpSpec_To_v1_DevsyWorkspaceInstanceUpSpec(&in.Spec, &out.Spec, s); err != nil { return err } - if err := Convert_management_DevPodWorkspaceInstanceUpStatus_To_v1_DevPodWorkspaceInstanceUpStatus(&in.Status, &out.Status, s); err != nil { + if err := Convert_management_DevsyWorkspaceInstanceUpStatus_To_v1_DevsyWorkspaceInstanceUpStatus(&in.Status, &out.Status, s); err != nil { return err } return nil } -// Convert_management_DevPodWorkspaceInstanceUp_To_v1_DevPodWorkspaceInstanceUp is an autogenerated conversion function. -func Convert_management_DevPodWorkspaceInstanceUp_To_v1_DevPodWorkspaceInstanceUp(in *management.DevPodWorkspaceInstanceUp, out *DevPodWorkspaceInstanceUp, s conversion.Scope) error { - return autoConvert_management_DevPodWorkspaceInstanceUp_To_v1_DevPodWorkspaceInstanceUp(in, out, s) +// Convert_management_DevsyWorkspaceInstanceUp_To_v1_DevsyWorkspaceInstanceUp is an autogenerated conversion function. +func Convert_management_DevsyWorkspaceInstanceUp_To_v1_DevsyWorkspaceInstanceUp(in *management.DevsyWorkspaceInstanceUp, out *DevsyWorkspaceInstanceUp, s conversion.Scope) error { + return autoConvert_management_DevsyWorkspaceInstanceUp_To_v1_DevsyWorkspaceInstanceUp(in, out, s) } -func autoConvert_v1_DevPodWorkspaceInstanceUpList_To_management_DevPodWorkspaceInstanceUpList(in *DevPodWorkspaceInstanceUpList, out *management.DevPodWorkspaceInstanceUpList, s conversion.Scope) error { +func autoConvert_v1_DevsyWorkspaceInstanceUpList_To_management_DevsyWorkspaceInstanceUpList(in *DevsyWorkspaceInstanceUpList, out *management.DevsyWorkspaceInstanceUpList, s conversion.Scope) error { out.ListMeta = in.ListMeta - out.Items = *(*[]management.DevPodWorkspaceInstanceUp)(unsafe.Pointer(&in.Items)) + out.Items = *(*[]management.DevsyWorkspaceInstanceUp)(unsafe.Pointer(&in.Items)) return nil } -// Convert_v1_DevPodWorkspaceInstanceUpList_To_management_DevPodWorkspaceInstanceUpList is an autogenerated conversion function. -func Convert_v1_DevPodWorkspaceInstanceUpList_To_management_DevPodWorkspaceInstanceUpList(in *DevPodWorkspaceInstanceUpList, out *management.DevPodWorkspaceInstanceUpList, s conversion.Scope) error { - return autoConvert_v1_DevPodWorkspaceInstanceUpList_To_management_DevPodWorkspaceInstanceUpList(in, out, s) +// Convert_v1_DevsyWorkspaceInstanceUpList_To_management_DevsyWorkspaceInstanceUpList is an autogenerated conversion function. +func Convert_v1_DevsyWorkspaceInstanceUpList_To_management_DevsyWorkspaceInstanceUpList(in *DevsyWorkspaceInstanceUpList, out *management.DevsyWorkspaceInstanceUpList, s conversion.Scope) error { + return autoConvert_v1_DevsyWorkspaceInstanceUpList_To_management_DevsyWorkspaceInstanceUpList(in, out, s) } -func autoConvert_management_DevPodWorkspaceInstanceUpList_To_v1_DevPodWorkspaceInstanceUpList(in *management.DevPodWorkspaceInstanceUpList, out *DevPodWorkspaceInstanceUpList, s conversion.Scope) error { +func autoConvert_management_DevsyWorkspaceInstanceUpList_To_v1_DevsyWorkspaceInstanceUpList(in *management.DevsyWorkspaceInstanceUpList, out *DevsyWorkspaceInstanceUpList, s conversion.Scope) error { out.ListMeta = in.ListMeta - out.Items = *(*[]DevPodWorkspaceInstanceUp)(unsafe.Pointer(&in.Items)) + out.Items = *(*[]DevsyWorkspaceInstanceUp)(unsafe.Pointer(&in.Items)) return nil } -// Convert_management_DevPodWorkspaceInstanceUpList_To_v1_DevPodWorkspaceInstanceUpList is an autogenerated conversion function. -func Convert_management_DevPodWorkspaceInstanceUpList_To_v1_DevPodWorkspaceInstanceUpList(in *management.DevPodWorkspaceInstanceUpList, out *DevPodWorkspaceInstanceUpList, s conversion.Scope) error { - return autoConvert_management_DevPodWorkspaceInstanceUpList_To_v1_DevPodWorkspaceInstanceUpList(in, out, s) +// Convert_management_DevsyWorkspaceInstanceUpList_To_v1_DevsyWorkspaceInstanceUpList is an autogenerated conversion function. +func Convert_management_DevsyWorkspaceInstanceUpList_To_v1_DevsyWorkspaceInstanceUpList(in *management.DevsyWorkspaceInstanceUpList, out *DevsyWorkspaceInstanceUpList, s conversion.Scope) error { + return autoConvert_management_DevsyWorkspaceInstanceUpList_To_v1_DevsyWorkspaceInstanceUpList(in, out, s) } -func autoConvert_v1_DevPodWorkspaceInstanceUpSpec_To_management_DevPodWorkspaceInstanceUpSpec(in *DevPodWorkspaceInstanceUpSpec, out *management.DevPodWorkspaceInstanceUpSpec, s conversion.Scope) error { +func autoConvert_v1_DevsyWorkspaceInstanceUpSpec_To_management_DevsyWorkspaceInstanceUpSpec(in *DevsyWorkspaceInstanceUpSpec, out *management.DevsyWorkspaceInstanceUpSpec, s conversion.Scope) error { out.Debug = in.Debug out.Options = in.Options return nil } -// Convert_v1_DevPodWorkspaceInstanceUpSpec_To_management_DevPodWorkspaceInstanceUpSpec is an autogenerated conversion function. -func Convert_v1_DevPodWorkspaceInstanceUpSpec_To_management_DevPodWorkspaceInstanceUpSpec(in *DevPodWorkspaceInstanceUpSpec, out *management.DevPodWorkspaceInstanceUpSpec, s conversion.Scope) error { - return autoConvert_v1_DevPodWorkspaceInstanceUpSpec_To_management_DevPodWorkspaceInstanceUpSpec(in, out, s) +// Convert_v1_DevsyWorkspaceInstanceUpSpec_To_management_DevsyWorkspaceInstanceUpSpec is an autogenerated conversion function. +func Convert_v1_DevsyWorkspaceInstanceUpSpec_To_management_DevsyWorkspaceInstanceUpSpec(in *DevsyWorkspaceInstanceUpSpec, out *management.DevsyWorkspaceInstanceUpSpec, s conversion.Scope) error { + return autoConvert_v1_DevsyWorkspaceInstanceUpSpec_To_management_DevsyWorkspaceInstanceUpSpec(in, out, s) } -func autoConvert_management_DevPodWorkspaceInstanceUpSpec_To_v1_DevPodWorkspaceInstanceUpSpec(in *management.DevPodWorkspaceInstanceUpSpec, out *DevPodWorkspaceInstanceUpSpec, s conversion.Scope) error { +func autoConvert_management_DevsyWorkspaceInstanceUpSpec_To_v1_DevsyWorkspaceInstanceUpSpec(in *management.DevsyWorkspaceInstanceUpSpec, out *DevsyWorkspaceInstanceUpSpec, s conversion.Scope) error { out.Debug = in.Debug out.Options = in.Options return nil } -// Convert_management_DevPodWorkspaceInstanceUpSpec_To_v1_DevPodWorkspaceInstanceUpSpec is an autogenerated conversion function. -func Convert_management_DevPodWorkspaceInstanceUpSpec_To_v1_DevPodWorkspaceInstanceUpSpec(in *management.DevPodWorkspaceInstanceUpSpec, out *DevPodWorkspaceInstanceUpSpec, s conversion.Scope) error { - return autoConvert_management_DevPodWorkspaceInstanceUpSpec_To_v1_DevPodWorkspaceInstanceUpSpec(in, out, s) +// Convert_management_DevsyWorkspaceInstanceUpSpec_To_v1_DevsyWorkspaceInstanceUpSpec is an autogenerated conversion function. +func Convert_management_DevsyWorkspaceInstanceUpSpec_To_v1_DevsyWorkspaceInstanceUpSpec(in *management.DevsyWorkspaceInstanceUpSpec, out *DevsyWorkspaceInstanceUpSpec, s conversion.Scope) error { + return autoConvert_management_DevsyWorkspaceInstanceUpSpec_To_v1_DevsyWorkspaceInstanceUpSpec(in, out, s) } -func autoConvert_v1_DevPodWorkspaceInstanceUpStatus_To_management_DevPodWorkspaceInstanceUpStatus(in *DevPodWorkspaceInstanceUpStatus, out *management.DevPodWorkspaceInstanceUpStatus, s conversion.Scope) error { +func autoConvert_v1_DevsyWorkspaceInstanceUpStatus_To_management_DevsyWorkspaceInstanceUpStatus(in *DevsyWorkspaceInstanceUpStatus, out *management.DevsyWorkspaceInstanceUpStatus, s conversion.Scope) error { out.TaskID = in.TaskID return nil } -// Convert_v1_DevPodWorkspaceInstanceUpStatus_To_management_DevPodWorkspaceInstanceUpStatus is an autogenerated conversion function. -func Convert_v1_DevPodWorkspaceInstanceUpStatus_To_management_DevPodWorkspaceInstanceUpStatus(in *DevPodWorkspaceInstanceUpStatus, out *management.DevPodWorkspaceInstanceUpStatus, s conversion.Scope) error { - return autoConvert_v1_DevPodWorkspaceInstanceUpStatus_To_management_DevPodWorkspaceInstanceUpStatus(in, out, s) +// Convert_v1_DevsyWorkspaceInstanceUpStatus_To_management_DevsyWorkspaceInstanceUpStatus is an autogenerated conversion function. +func Convert_v1_DevsyWorkspaceInstanceUpStatus_To_management_DevsyWorkspaceInstanceUpStatus(in *DevsyWorkspaceInstanceUpStatus, out *management.DevsyWorkspaceInstanceUpStatus, s conversion.Scope) error { + return autoConvert_v1_DevsyWorkspaceInstanceUpStatus_To_management_DevsyWorkspaceInstanceUpStatus(in, out, s) } -func autoConvert_management_DevPodWorkspaceInstanceUpStatus_To_v1_DevPodWorkspaceInstanceUpStatus(in *management.DevPodWorkspaceInstanceUpStatus, out *DevPodWorkspaceInstanceUpStatus, s conversion.Scope) error { +func autoConvert_management_DevsyWorkspaceInstanceUpStatus_To_v1_DevsyWorkspaceInstanceUpStatus(in *management.DevsyWorkspaceInstanceUpStatus, out *DevsyWorkspaceInstanceUpStatus, s conversion.Scope) error { out.TaskID = in.TaskID return nil } -// Convert_management_DevPodWorkspaceInstanceUpStatus_To_v1_DevPodWorkspaceInstanceUpStatus is an autogenerated conversion function. -func Convert_management_DevPodWorkspaceInstanceUpStatus_To_v1_DevPodWorkspaceInstanceUpStatus(in *management.DevPodWorkspaceInstanceUpStatus, out *DevPodWorkspaceInstanceUpStatus, s conversion.Scope) error { - return autoConvert_management_DevPodWorkspaceInstanceUpStatus_To_v1_DevPodWorkspaceInstanceUpStatus(in, out, s) +// Convert_management_DevsyWorkspaceInstanceUpStatus_To_v1_DevsyWorkspaceInstanceUpStatus is an autogenerated conversion function. +func Convert_management_DevsyWorkspaceInstanceUpStatus_To_v1_DevsyWorkspaceInstanceUpStatus(in *management.DevsyWorkspaceInstanceUpStatus, out *DevsyWorkspaceInstanceUpStatus, s conversion.Scope) error { + return autoConvert_management_DevsyWorkspaceInstanceUpStatus_To_v1_DevsyWorkspaceInstanceUpStatus(in, out, s) } -func autoConvert_v1_DevPodWorkspacePreset_To_management_DevPodWorkspacePreset(in *DevPodWorkspacePreset, out *management.DevPodWorkspacePreset, s conversion.Scope) error { +func autoConvert_v1_DevsyWorkspacePreset_To_management_DevsyWorkspacePreset(in *DevsyWorkspacePreset, out *management.DevsyWorkspacePreset, s conversion.Scope) error { out.ObjectMeta = in.ObjectMeta - if err := Convert_v1_DevPodWorkspacePresetSpec_To_management_DevPodWorkspacePresetSpec(&in.Spec, &out.Spec, s); err != nil { + if err := Convert_v1_DevsyWorkspacePresetSpec_To_management_DevsyWorkspacePresetSpec(&in.Spec, &out.Spec, s); err != nil { return err } - if err := Convert_v1_DevPodWorkspacePresetStatus_To_management_DevPodWorkspacePresetStatus(&in.Status, &out.Status, s); err != nil { + if err := Convert_v1_DevsyWorkspacePresetStatus_To_management_DevsyWorkspacePresetStatus(&in.Status, &out.Status, s); err != nil { return err } return nil } -// Convert_v1_DevPodWorkspacePreset_To_management_DevPodWorkspacePreset is an autogenerated conversion function. -func Convert_v1_DevPodWorkspacePreset_To_management_DevPodWorkspacePreset(in *DevPodWorkspacePreset, out *management.DevPodWorkspacePreset, s conversion.Scope) error { - return autoConvert_v1_DevPodWorkspacePreset_To_management_DevPodWorkspacePreset(in, out, s) +// Convert_v1_DevsyWorkspacePreset_To_management_DevsyWorkspacePreset is an autogenerated conversion function. +func Convert_v1_DevsyWorkspacePreset_To_management_DevsyWorkspacePreset(in *DevsyWorkspacePreset, out *management.DevsyWorkspacePreset, s conversion.Scope) error { + return autoConvert_v1_DevsyWorkspacePreset_To_management_DevsyWorkspacePreset(in, out, s) } -func autoConvert_management_DevPodWorkspacePreset_To_v1_DevPodWorkspacePreset(in *management.DevPodWorkspacePreset, out *DevPodWorkspacePreset, s conversion.Scope) error { +func autoConvert_management_DevsyWorkspacePreset_To_v1_DevsyWorkspacePreset(in *management.DevsyWorkspacePreset, out *DevsyWorkspacePreset, s conversion.Scope) error { out.ObjectMeta = in.ObjectMeta - if err := Convert_management_DevPodWorkspacePresetSpec_To_v1_DevPodWorkspacePresetSpec(&in.Spec, &out.Spec, s); err != nil { + if err := Convert_management_DevsyWorkspacePresetSpec_To_v1_DevsyWorkspacePresetSpec(&in.Spec, &out.Spec, s); err != nil { return err } - if err := Convert_management_DevPodWorkspacePresetStatus_To_v1_DevPodWorkspacePresetStatus(&in.Status, &out.Status, s); err != nil { + if err := Convert_management_DevsyWorkspacePresetStatus_To_v1_DevsyWorkspacePresetStatus(&in.Status, &out.Status, s); err != nil { return err } return nil } -// Convert_management_DevPodWorkspacePreset_To_v1_DevPodWorkspacePreset is an autogenerated conversion function. -func Convert_management_DevPodWorkspacePreset_To_v1_DevPodWorkspacePreset(in *management.DevPodWorkspacePreset, out *DevPodWorkspacePreset, s conversion.Scope) error { - return autoConvert_management_DevPodWorkspacePreset_To_v1_DevPodWorkspacePreset(in, out, s) +// Convert_management_DevsyWorkspacePreset_To_v1_DevsyWorkspacePreset is an autogenerated conversion function. +func Convert_management_DevsyWorkspacePreset_To_v1_DevsyWorkspacePreset(in *management.DevsyWorkspacePreset, out *DevsyWorkspacePreset, s conversion.Scope) error { + return autoConvert_management_DevsyWorkspacePreset_To_v1_DevsyWorkspacePreset(in, out, s) } -func autoConvert_v1_DevPodWorkspacePresetList_To_management_DevPodWorkspacePresetList(in *DevPodWorkspacePresetList, out *management.DevPodWorkspacePresetList, s conversion.Scope) error { +func autoConvert_v1_DevsyWorkspacePresetList_To_management_DevsyWorkspacePresetList(in *DevsyWorkspacePresetList, out *management.DevsyWorkspacePresetList, s conversion.Scope) error { out.ListMeta = in.ListMeta - out.Items = *(*[]management.DevPodWorkspacePreset)(unsafe.Pointer(&in.Items)) + out.Items = *(*[]management.DevsyWorkspacePreset)(unsafe.Pointer(&in.Items)) return nil } -// Convert_v1_DevPodWorkspacePresetList_To_management_DevPodWorkspacePresetList is an autogenerated conversion function. -func Convert_v1_DevPodWorkspacePresetList_To_management_DevPodWorkspacePresetList(in *DevPodWorkspacePresetList, out *management.DevPodWorkspacePresetList, s conversion.Scope) error { - return autoConvert_v1_DevPodWorkspacePresetList_To_management_DevPodWorkspacePresetList(in, out, s) +// Convert_v1_DevsyWorkspacePresetList_To_management_DevsyWorkspacePresetList is an autogenerated conversion function. +func Convert_v1_DevsyWorkspacePresetList_To_management_DevsyWorkspacePresetList(in *DevsyWorkspacePresetList, out *management.DevsyWorkspacePresetList, s conversion.Scope) error { + return autoConvert_v1_DevsyWorkspacePresetList_To_management_DevsyWorkspacePresetList(in, out, s) } -func autoConvert_management_DevPodWorkspacePresetList_To_v1_DevPodWorkspacePresetList(in *management.DevPodWorkspacePresetList, out *DevPodWorkspacePresetList, s conversion.Scope) error { +func autoConvert_management_DevsyWorkspacePresetList_To_v1_DevsyWorkspacePresetList(in *management.DevsyWorkspacePresetList, out *DevsyWorkspacePresetList, s conversion.Scope) error { out.ListMeta = in.ListMeta - out.Items = *(*[]DevPodWorkspacePreset)(unsafe.Pointer(&in.Items)) + out.Items = *(*[]DevsyWorkspacePreset)(unsafe.Pointer(&in.Items)) return nil } -// Convert_management_DevPodWorkspacePresetList_To_v1_DevPodWorkspacePresetList is an autogenerated conversion function. -func Convert_management_DevPodWorkspacePresetList_To_v1_DevPodWorkspacePresetList(in *management.DevPodWorkspacePresetList, out *DevPodWorkspacePresetList, s conversion.Scope) error { - return autoConvert_management_DevPodWorkspacePresetList_To_v1_DevPodWorkspacePresetList(in, out, s) +// Convert_management_DevsyWorkspacePresetList_To_v1_DevsyWorkspacePresetList is an autogenerated conversion function. +func Convert_management_DevsyWorkspacePresetList_To_v1_DevsyWorkspacePresetList(in *management.DevsyWorkspacePresetList, out *DevsyWorkspacePresetList, s conversion.Scope) error { + return autoConvert_management_DevsyWorkspacePresetList_To_v1_DevsyWorkspacePresetList(in, out, s) } -func autoConvert_v1_DevPodWorkspacePresetSpec_To_management_DevPodWorkspacePresetSpec(in *DevPodWorkspacePresetSpec, out *management.DevPodWorkspacePresetSpec, s conversion.Scope) error { - out.DevPodWorkspacePresetSpec = in.DevPodWorkspacePresetSpec +func autoConvert_v1_DevsyWorkspacePresetSpec_To_management_DevsyWorkspacePresetSpec(in *DevsyWorkspacePresetSpec, out *management.DevsyWorkspacePresetSpec, s conversion.Scope) error { + out.DevsyWorkspacePresetSpec = in.DevsyWorkspacePresetSpec return nil } -// Convert_v1_DevPodWorkspacePresetSpec_To_management_DevPodWorkspacePresetSpec is an autogenerated conversion function. -func Convert_v1_DevPodWorkspacePresetSpec_To_management_DevPodWorkspacePresetSpec(in *DevPodWorkspacePresetSpec, out *management.DevPodWorkspacePresetSpec, s conversion.Scope) error { - return autoConvert_v1_DevPodWorkspacePresetSpec_To_management_DevPodWorkspacePresetSpec(in, out, s) +// Convert_v1_DevsyWorkspacePresetSpec_To_management_DevsyWorkspacePresetSpec is an autogenerated conversion function. +func Convert_v1_DevsyWorkspacePresetSpec_To_management_DevsyWorkspacePresetSpec(in *DevsyWorkspacePresetSpec, out *management.DevsyWorkspacePresetSpec, s conversion.Scope) error { + return autoConvert_v1_DevsyWorkspacePresetSpec_To_management_DevsyWorkspacePresetSpec(in, out, s) } -func autoConvert_management_DevPodWorkspacePresetSpec_To_v1_DevPodWorkspacePresetSpec(in *management.DevPodWorkspacePresetSpec, out *DevPodWorkspacePresetSpec, s conversion.Scope) error { - out.DevPodWorkspacePresetSpec = in.DevPodWorkspacePresetSpec +func autoConvert_management_DevsyWorkspacePresetSpec_To_v1_DevsyWorkspacePresetSpec(in *management.DevsyWorkspacePresetSpec, out *DevsyWorkspacePresetSpec, s conversion.Scope) error { + out.DevsyWorkspacePresetSpec = in.DevsyWorkspacePresetSpec return nil } -// Convert_management_DevPodWorkspacePresetSpec_To_v1_DevPodWorkspacePresetSpec is an autogenerated conversion function. -func Convert_management_DevPodWorkspacePresetSpec_To_v1_DevPodWorkspacePresetSpec(in *management.DevPodWorkspacePresetSpec, out *DevPodWorkspacePresetSpec, s conversion.Scope) error { - return autoConvert_management_DevPodWorkspacePresetSpec_To_v1_DevPodWorkspacePresetSpec(in, out, s) +// Convert_management_DevsyWorkspacePresetSpec_To_v1_DevsyWorkspacePresetSpec is an autogenerated conversion function. +func Convert_management_DevsyWorkspacePresetSpec_To_v1_DevsyWorkspacePresetSpec(in *management.DevsyWorkspacePresetSpec, out *DevsyWorkspacePresetSpec, s conversion.Scope) error { + return autoConvert_management_DevsyWorkspacePresetSpec_To_v1_DevsyWorkspacePresetSpec(in, out, s) } -func autoConvert_v1_DevPodWorkspacePresetStatus_To_management_DevPodWorkspacePresetStatus(in *DevPodWorkspacePresetStatus, out *management.DevPodWorkspacePresetStatus, s conversion.Scope) error { +func autoConvert_v1_DevsyWorkspacePresetStatus_To_management_DevsyWorkspacePresetStatus(in *DevsyWorkspacePresetStatus, out *management.DevsyWorkspacePresetStatus, s conversion.Scope) error { return nil } -// Convert_v1_DevPodWorkspacePresetStatus_To_management_DevPodWorkspacePresetStatus is an autogenerated conversion function. -func Convert_v1_DevPodWorkspacePresetStatus_To_management_DevPodWorkspacePresetStatus(in *DevPodWorkspacePresetStatus, out *management.DevPodWorkspacePresetStatus, s conversion.Scope) error { - return autoConvert_v1_DevPodWorkspacePresetStatus_To_management_DevPodWorkspacePresetStatus(in, out, s) +// Convert_v1_DevsyWorkspacePresetStatus_To_management_DevsyWorkspacePresetStatus is an autogenerated conversion function. +func Convert_v1_DevsyWorkspacePresetStatus_To_management_DevsyWorkspacePresetStatus(in *DevsyWorkspacePresetStatus, out *management.DevsyWorkspacePresetStatus, s conversion.Scope) error { + return autoConvert_v1_DevsyWorkspacePresetStatus_To_management_DevsyWorkspacePresetStatus(in, out, s) } -func autoConvert_management_DevPodWorkspacePresetStatus_To_v1_DevPodWorkspacePresetStatus(in *management.DevPodWorkspacePresetStatus, out *DevPodWorkspacePresetStatus, s conversion.Scope) error { +func autoConvert_management_DevsyWorkspacePresetStatus_To_v1_DevsyWorkspacePresetStatus(in *management.DevsyWorkspacePresetStatus, out *DevsyWorkspacePresetStatus, s conversion.Scope) error { return nil } -// Convert_management_DevPodWorkspacePresetStatus_To_v1_DevPodWorkspacePresetStatus is an autogenerated conversion function. -func Convert_management_DevPodWorkspacePresetStatus_To_v1_DevPodWorkspacePresetStatus(in *management.DevPodWorkspacePresetStatus, out *DevPodWorkspacePresetStatus, s conversion.Scope) error { - return autoConvert_management_DevPodWorkspacePresetStatus_To_v1_DevPodWorkspacePresetStatus(in, out, s) +// Convert_management_DevsyWorkspacePresetStatus_To_v1_DevsyWorkspacePresetStatus is an autogenerated conversion function. +func Convert_management_DevsyWorkspacePresetStatus_To_v1_DevsyWorkspacePresetStatus(in *management.DevsyWorkspacePresetStatus, out *DevsyWorkspacePresetStatus, s conversion.Scope) error { + return autoConvert_management_DevsyWorkspacePresetStatus_To_v1_DevsyWorkspacePresetStatus(in, out, s) } -func autoConvert_v1_DevPodWorkspaceTemplate_To_management_DevPodWorkspaceTemplate(in *DevPodWorkspaceTemplate, out *management.DevPodWorkspaceTemplate, s conversion.Scope) error { +func autoConvert_v1_DevsyWorkspaceTemplate_To_management_DevsyWorkspaceTemplate(in *DevsyWorkspaceTemplate, out *management.DevsyWorkspaceTemplate, s conversion.Scope) error { out.ObjectMeta = in.ObjectMeta - if err := Convert_v1_DevPodWorkspaceTemplateSpec_To_management_DevPodWorkspaceTemplateSpec(&in.Spec, &out.Spec, s); err != nil { + if err := Convert_v1_DevsyWorkspaceTemplateSpec_To_management_DevsyWorkspaceTemplateSpec(&in.Spec, &out.Spec, s); err != nil { return err } - if err := Convert_v1_DevPodWorkspaceTemplateStatus_To_management_DevPodWorkspaceTemplateStatus(&in.Status, &out.Status, s); err != nil { + if err := Convert_v1_DevsyWorkspaceTemplateStatus_To_management_DevsyWorkspaceTemplateStatus(&in.Status, &out.Status, s); err != nil { return err } return nil } -// Convert_v1_DevPodWorkspaceTemplate_To_management_DevPodWorkspaceTemplate is an autogenerated conversion function. -func Convert_v1_DevPodWorkspaceTemplate_To_management_DevPodWorkspaceTemplate(in *DevPodWorkspaceTemplate, out *management.DevPodWorkspaceTemplate, s conversion.Scope) error { - return autoConvert_v1_DevPodWorkspaceTemplate_To_management_DevPodWorkspaceTemplate(in, out, s) +// Convert_v1_DevsyWorkspaceTemplate_To_management_DevsyWorkspaceTemplate is an autogenerated conversion function. +func Convert_v1_DevsyWorkspaceTemplate_To_management_DevsyWorkspaceTemplate(in *DevsyWorkspaceTemplate, out *management.DevsyWorkspaceTemplate, s conversion.Scope) error { + return autoConvert_v1_DevsyWorkspaceTemplate_To_management_DevsyWorkspaceTemplate(in, out, s) } -func autoConvert_management_DevPodWorkspaceTemplate_To_v1_DevPodWorkspaceTemplate(in *management.DevPodWorkspaceTemplate, out *DevPodWorkspaceTemplate, s conversion.Scope) error { +func autoConvert_management_DevsyWorkspaceTemplate_To_v1_DevsyWorkspaceTemplate(in *management.DevsyWorkspaceTemplate, out *DevsyWorkspaceTemplate, s conversion.Scope) error { out.ObjectMeta = in.ObjectMeta - if err := Convert_management_DevPodWorkspaceTemplateSpec_To_v1_DevPodWorkspaceTemplateSpec(&in.Spec, &out.Spec, s); err != nil { + if err := Convert_management_DevsyWorkspaceTemplateSpec_To_v1_DevsyWorkspaceTemplateSpec(&in.Spec, &out.Spec, s); err != nil { return err } - if err := Convert_management_DevPodWorkspaceTemplateStatus_To_v1_DevPodWorkspaceTemplateStatus(&in.Status, &out.Status, s); err != nil { + if err := Convert_management_DevsyWorkspaceTemplateStatus_To_v1_DevsyWorkspaceTemplateStatus(&in.Status, &out.Status, s); err != nil { return err } return nil } -// Convert_management_DevPodWorkspaceTemplate_To_v1_DevPodWorkspaceTemplate is an autogenerated conversion function. -func Convert_management_DevPodWorkspaceTemplate_To_v1_DevPodWorkspaceTemplate(in *management.DevPodWorkspaceTemplate, out *DevPodWorkspaceTemplate, s conversion.Scope) error { - return autoConvert_management_DevPodWorkspaceTemplate_To_v1_DevPodWorkspaceTemplate(in, out, s) +// Convert_management_DevsyWorkspaceTemplate_To_v1_DevsyWorkspaceTemplate is an autogenerated conversion function. +func Convert_management_DevsyWorkspaceTemplate_To_v1_DevsyWorkspaceTemplate(in *management.DevsyWorkspaceTemplate, out *DevsyWorkspaceTemplate, s conversion.Scope) error { + return autoConvert_management_DevsyWorkspaceTemplate_To_v1_DevsyWorkspaceTemplate(in, out, s) } -func autoConvert_v1_DevPodWorkspaceTemplateList_To_management_DevPodWorkspaceTemplateList(in *DevPodWorkspaceTemplateList, out *management.DevPodWorkspaceTemplateList, s conversion.Scope) error { +func autoConvert_v1_DevsyWorkspaceTemplateList_To_management_DevsyWorkspaceTemplateList(in *DevsyWorkspaceTemplateList, out *management.DevsyWorkspaceTemplateList, s conversion.Scope) error { out.ListMeta = in.ListMeta - out.Items = *(*[]management.DevPodWorkspaceTemplate)(unsafe.Pointer(&in.Items)) + out.Items = *(*[]management.DevsyWorkspaceTemplate)(unsafe.Pointer(&in.Items)) return nil } -// Convert_v1_DevPodWorkspaceTemplateList_To_management_DevPodWorkspaceTemplateList is an autogenerated conversion function. -func Convert_v1_DevPodWorkspaceTemplateList_To_management_DevPodWorkspaceTemplateList(in *DevPodWorkspaceTemplateList, out *management.DevPodWorkspaceTemplateList, s conversion.Scope) error { - return autoConvert_v1_DevPodWorkspaceTemplateList_To_management_DevPodWorkspaceTemplateList(in, out, s) +// Convert_v1_DevsyWorkspaceTemplateList_To_management_DevsyWorkspaceTemplateList is an autogenerated conversion function. +func Convert_v1_DevsyWorkspaceTemplateList_To_management_DevsyWorkspaceTemplateList(in *DevsyWorkspaceTemplateList, out *management.DevsyWorkspaceTemplateList, s conversion.Scope) error { + return autoConvert_v1_DevsyWorkspaceTemplateList_To_management_DevsyWorkspaceTemplateList(in, out, s) } -func autoConvert_management_DevPodWorkspaceTemplateList_To_v1_DevPodWorkspaceTemplateList(in *management.DevPodWorkspaceTemplateList, out *DevPodWorkspaceTemplateList, s conversion.Scope) error { +func autoConvert_management_DevsyWorkspaceTemplateList_To_v1_DevsyWorkspaceTemplateList(in *management.DevsyWorkspaceTemplateList, out *DevsyWorkspaceTemplateList, s conversion.Scope) error { out.ListMeta = in.ListMeta - out.Items = *(*[]DevPodWorkspaceTemplate)(unsafe.Pointer(&in.Items)) + out.Items = *(*[]DevsyWorkspaceTemplate)(unsafe.Pointer(&in.Items)) return nil } -// Convert_management_DevPodWorkspaceTemplateList_To_v1_DevPodWorkspaceTemplateList is an autogenerated conversion function. -func Convert_management_DevPodWorkspaceTemplateList_To_v1_DevPodWorkspaceTemplateList(in *management.DevPodWorkspaceTemplateList, out *DevPodWorkspaceTemplateList, s conversion.Scope) error { - return autoConvert_management_DevPodWorkspaceTemplateList_To_v1_DevPodWorkspaceTemplateList(in, out, s) +// Convert_management_DevsyWorkspaceTemplateList_To_v1_DevsyWorkspaceTemplateList is an autogenerated conversion function. +func Convert_management_DevsyWorkspaceTemplateList_To_v1_DevsyWorkspaceTemplateList(in *management.DevsyWorkspaceTemplateList, out *DevsyWorkspaceTemplateList, s conversion.Scope) error { + return autoConvert_management_DevsyWorkspaceTemplateList_To_v1_DevsyWorkspaceTemplateList(in, out, s) } -func autoConvert_v1_DevPodWorkspaceTemplateSpec_To_management_DevPodWorkspaceTemplateSpec(in *DevPodWorkspaceTemplateSpec, out *management.DevPodWorkspaceTemplateSpec, s conversion.Scope) error { - out.DevPodWorkspaceTemplateSpec = in.DevPodWorkspaceTemplateSpec +func autoConvert_v1_DevsyWorkspaceTemplateSpec_To_management_DevsyWorkspaceTemplateSpec(in *DevsyWorkspaceTemplateSpec, out *management.DevsyWorkspaceTemplateSpec, s conversion.Scope) error { + out.DevsyWorkspaceTemplateSpec = in.DevsyWorkspaceTemplateSpec return nil } -// Convert_v1_DevPodWorkspaceTemplateSpec_To_management_DevPodWorkspaceTemplateSpec is an autogenerated conversion function. -func Convert_v1_DevPodWorkspaceTemplateSpec_To_management_DevPodWorkspaceTemplateSpec(in *DevPodWorkspaceTemplateSpec, out *management.DevPodWorkspaceTemplateSpec, s conversion.Scope) error { - return autoConvert_v1_DevPodWorkspaceTemplateSpec_To_management_DevPodWorkspaceTemplateSpec(in, out, s) +// Convert_v1_DevsyWorkspaceTemplateSpec_To_management_DevsyWorkspaceTemplateSpec is an autogenerated conversion function. +func Convert_v1_DevsyWorkspaceTemplateSpec_To_management_DevsyWorkspaceTemplateSpec(in *DevsyWorkspaceTemplateSpec, out *management.DevsyWorkspaceTemplateSpec, s conversion.Scope) error { + return autoConvert_v1_DevsyWorkspaceTemplateSpec_To_management_DevsyWorkspaceTemplateSpec(in, out, s) } -func autoConvert_management_DevPodWorkspaceTemplateSpec_To_v1_DevPodWorkspaceTemplateSpec(in *management.DevPodWorkspaceTemplateSpec, out *DevPodWorkspaceTemplateSpec, s conversion.Scope) error { - out.DevPodWorkspaceTemplateSpec = in.DevPodWorkspaceTemplateSpec +func autoConvert_management_DevsyWorkspaceTemplateSpec_To_v1_DevsyWorkspaceTemplateSpec(in *management.DevsyWorkspaceTemplateSpec, out *DevsyWorkspaceTemplateSpec, s conversion.Scope) error { + out.DevsyWorkspaceTemplateSpec = in.DevsyWorkspaceTemplateSpec return nil } -// Convert_management_DevPodWorkspaceTemplateSpec_To_v1_DevPodWorkspaceTemplateSpec is an autogenerated conversion function. -func Convert_management_DevPodWorkspaceTemplateSpec_To_v1_DevPodWorkspaceTemplateSpec(in *management.DevPodWorkspaceTemplateSpec, out *DevPodWorkspaceTemplateSpec, s conversion.Scope) error { - return autoConvert_management_DevPodWorkspaceTemplateSpec_To_v1_DevPodWorkspaceTemplateSpec(in, out, s) +// Convert_management_DevsyWorkspaceTemplateSpec_To_v1_DevsyWorkspaceTemplateSpec is an autogenerated conversion function. +func Convert_management_DevsyWorkspaceTemplateSpec_To_v1_DevsyWorkspaceTemplateSpec(in *management.DevsyWorkspaceTemplateSpec, out *DevsyWorkspaceTemplateSpec, s conversion.Scope) error { + return autoConvert_management_DevsyWorkspaceTemplateSpec_To_v1_DevsyWorkspaceTemplateSpec(in, out, s) } -func autoConvert_v1_DevPodWorkspaceTemplateStatus_To_management_DevPodWorkspaceTemplateStatus(in *DevPodWorkspaceTemplateStatus, out *management.DevPodWorkspaceTemplateStatus, s conversion.Scope) error { - out.DevPodWorkspaceTemplateStatus = in.DevPodWorkspaceTemplateStatus +func autoConvert_v1_DevsyWorkspaceTemplateStatus_To_management_DevsyWorkspaceTemplateStatus(in *DevsyWorkspaceTemplateStatus, out *management.DevsyWorkspaceTemplateStatus, s conversion.Scope) error { + out.DevsyWorkspaceTemplateStatus = in.DevsyWorkspaceTemplateStatus return nil } -// Convert_v1_DevPodWorkspaceTemplateStatus_To_management_DevPodWorkspaceTemplateStatus is an autogenerated conversion function. -func Convert_v1_DevPodWorkspaceTemplateStatus_To_management_DevPodWorkspaceTemplateStatus(in *DevPodWorkspaceTemplateStatus, out *management.DevPodWorkspaceTemplateStatus, s conversion.Scope) error { - return autoConvert_v1_DevPodWorkspaceTemplateStatus_To_management_DevPodWorkspaceTemplateStatus(in, out, s) +// Convert_v1_DevsyWorkspaceTemplateStatus_To_management_DevsyWorkspaceTemplateStatus is an autogenerated conversion function. +func Convert_v1_DevsyWorkspaceTemplateStatus_To_management_DevsyWorkspaceTemplateStatus(in *DevsyWorkspaceTemplateStatus, out *management.DevsyWorkspaceTemplateStatus, s conversion.Scope) error { + return autoConvert_v1_DevsyWorkspaceTemplateStatus_To_management_DevsyWorkspaceTemplateStatus(in, out, s) } -func autoConvert_management_DevPodWorkspaceTemplateStatus_To_v1_DevPodWorkspaceTemplateStatus(in *management.DevPodWorkspaceTemplateStatus, out *DevPodWorkspaceTemplateStatus, s conversion.Scope) error { - out.DevPodWorkspaceTemplateStatus = in.DevPodWorkspaceTemplateStatus +func autoConvert_management_DevsyWorkspaceTemplateStatus_To_v1_DevsyWorkspaceTemplateStatus(in *management.DevsyWorkspaceTemplateStatus, out *DevsyWorkspaceTemplateStatus, s conversion.Scope) error { + out.DevsyWorkspaceTemplateStatus = in.DevsyWorkspaceTemplateStatus return nil } -// Convert_management_DevPodWorkspaceTemplateStatus_To_v1_DevPodWorkspaceTemplateStatus is an autogenerated conversion function. -func Convert_management_DevPodWorkspaceTemplateStatus_To_v1_DevPodWorkspaceTemplateStatus(in *management.DevPodWorkspaceTemplateStatus, out *DevPodWorkspaceTemplateStatus, s conversion.Scope) error { - return autoConvert_management_DevPodWorkspaceTemplateStatus_To_v1_DevPodWorkspaceTemplateStatus(in, out, s) +// Convert_management_DevsyWorkspaceTemplateStatus_To_v1_DevsyWorkspaceTemplateStatus is an autogenerated conversion function. +func Convert_management_DevsyWorkspaceTemplateStatus_To_v1_DevsyWorkspaceTemplateStatus(in *management.DevsyWorkspaceTemplateStatus, out *DevsyWorkspaceTemplateStatus, s conversion.Scope) error { + return autoConvert_management_DevsyWorkspaceTemplateStatus_To_v1_DevsyWorkspaceTemplateStatus(in, out, s) } func autoConvert_v1_DirectClusterEndpointToken_To_management_DirectClusterEndpointToken(in *DirectClusterEndpointToken, out *management.DirectClusterEndpointToken, s conversion.Scope) error { @@ -7940,102 +8036,6 @@ func Convert_management_LicenseTokenStatus_To_v1_LicenseTokenStatus(in *manageme return autoConvert_management_LicenseTokenStatus_To_v1_LicenseTokenStatus(in, out, s) } -func autoConvert_v1_DevsyUpgrade_To_management_DevsyUpgrade(in *DevsyUpgrade, out *management.DevsyUpgrade, s conversion.Scope) error { - out.ObjectMeta = in.ObjectMeta - if err := Convert_v1_DevsyUpgradeSpec_To_management_DevsyUpgradeSpec(&in.Spec, &out.Spec, s); err != nil { - return err - } - if err := Convert_v1_DevsyUpgradeStatus_To_management_DevsyUpgradeStatus(&in.Status, &out.Status, s); err != nil { - return err - } - return nil -} - -// Convert_v1_DevsyUpgrade_To_management_DevsyUpgrade is an autogenerated conversion function. -func Convert_v1_DevsyUpgrade_To_management_DevsyUpgrade(in *DevsyUpgrade, out *management.DevsyUpgrade, s conversion.Scope) error { - return autoConvert_v1_DevsyUpgrade_To_management_DevsyUpgrade(in, out, s) -} - -func autoConvert_management_DevsyUpgrade_To_v1_DevsyUpgrade(in *management.DevsyUpgrade, out *DevsyUpgrade, s conversion.Scope) error { - out.ObjectMeta = in.ObjectMeta - if err := Convert_management_DevsyUpgradeSpec_To_v1_DevsyUpgradeSpec(&in.Spec, &out.Spec, s); err != nil { - return err - } - if err := Convert_management_DevsyUpgradeStatus_To_v1_DevsyUpgradeStatus(&in.Status, &out.Status, s); err != nil { - return err - } - return nil -} - -// Convert_management_DevsyUpgrade_To_v1_DevsyUpgrade is an autogenerated conversion function. -func Convert_management_DevsyUpgrade_To_v1_DevsyUpgrade(in *management.DevsyUpgrade, out *DevsyUpgrade, s conversion.Scope) error { - return autoConvert_management_DevsyUpgrade_To_v1_DevsyUpgrade(in, out, s) -} - -func autoConvert_v1_DevsyUpgradeList_To_management_DevsyUpgradeList(in *DevsyUpgradeList, out *management.DevsyUpgradeList, s conversion.Scope) error { - out.ListMeta = in.ListMeta - out.Items = *(*[]management.DevsyUpgrade)(unsafe.Pointer(&in.Items)) - return nil -} - -// Convert_v1_DevsyUpgradeList_To_management_DevsyUpgradeList is an autogenerated conversion function. -func Convert_v1_DevsyUpgradeList_To_management_DevsyUpgradeList(in *DevsyUpgradeList, out *management.DevsyUpgradeList, s conversion.Scope) error { - return autoConvert_v1_DevsyUpgradeList_To_management_DevsyUpgradeList(in, out, s) -} - -func autoConvert_management_DevsyUpgradeList_To_v1_DevsyUpgradeList(in *management.DevsyUpgradeList, out *DevsyUpgradeList, s conversion.Scope) error { - out.ListMeta = in.ListMeta - out.Items = *(*[]DevsyUpgrade)(unsafe.Pointer(&in.Items)) - return nil -} - -// Convert_management_DevsyUpgradeList_To_v1_DevsyUpgradeList is an autogenerated conversion function. -func Convert_management_DevsyUpgradeList_To_v1_DevsyUpgradeList(in *management.DevsyUpgradeList, out *DevsyUpgradeList, s conversion.Scope) error { - return autoConvert_management_DevsyUpgradeList_To_v1_DevsyUpgradeList(in, out, s) -} - -func autoConvert_v1_DevsyUpgradeSpec_To_management_DevsyUpgradeSpec(in *DevsyUpgradeSpec, out *management.DevsyUpgradeSpec, s conversion.Scope) error { - out.Namespace = in.Namespace - out.Release = in.Release - out.Version = in.Version - return nil -} - -// Convert_v1_DevsyUpgradeSpec_To_management_DevsyUpgradeSpec is an autogenerated conversion function. -func Convert_v1_DevsyUpgradeSpec_To_management_DevsyUpgradeSpec(in *DevsyUpgradeSpec, out *management.DevsyUpgradeSpec, s conversion.Scope) error { - return autoConvert_v1_DevsyUpgradeSpec_To_management_DevsyUpgradeSpec(in, out, s) -} - -func autoConvert_management_DevsyUpgradeSpec_To_v1_DevsyUpgradeSpec(in *management.DevsyUpgradeSpec, out *DevsyUpgradeSpec, s conversion.Scope) error { - out.Namespace = in.Namespace - out.Release = in.Release - out.Version = in.Version - return nil -} - -// Convert_management_DevsyUpgradeSpec_To_v1_DevsyUpgradeSpec is an autogenerated conversion function. -func Convert_management_DevsyUpgradeSpec_To_v1_DevsyUpgradeSpec(in *management.DevsyUpgradeSpec, out *DevsyUpgradeSpec, s conversion.Scope) error { - return autoConvert_management_DevsyUpgradeSpec_To_v1_DevsyUpgradeSpec(in, out, s) -} - -func autoConvert_v1_DevsyUpgradeStatus_To_management_DevsyUpgradeStatus(in *DevsyUpgradeStatus, out *management.DevsyUpgradeStatus, s conversion.Scope) error { - return nil -} - -// Convert_v1_DevsyUpgradeStatus_To_management_DevsyUpgradeStatus is an autogenerated conversion function. -func Convert_v1_DevsyUpgradeStatus_To_management_DevsyUpgradeStatus(in *DevsyUpgradeStatus, out *management.DevsyUpgradeStatus, s conversion.Scope) error { - return autoConvert_v1_DevsyUpgradeStatus_To_management_DevsyUpgradeStatus(in, out, s) -} - -func autoConvert_management_DevsyUpgradeStatus_To_v1_DevsyUpgradeStatus(in *management.DevsyUpgradeStatus, out *DevsyUpgradeStatus, s conversion.Scope) error { - return nil -} - -// Convert_management_DevsyUpgradeStatus_To_v1_DevsyUpgradeStatus is an autogenerated conversion function. -func Convert_management_DevsyUpgradeStatus_To_v1_DevsyUpgradeStatus(in *management.DevsyUpgradeStatus, out *DevsyUpgradeStatus, s conversion.Scope) error { - return autoConvert_management_DevsyUpgradeStatus_To_v1_DevsyUpgradeStatus(in, out, s) -} - func autoConvert_v1_MaintenanceWindow_To_management_MaintenanceWindow(in *MaintenanceWindow, out *management.MaintenanceWindow, s conversion.Scope) error { out.DayOfWeek = in.DayOfWeek out.TimeWindow = in.TimeWindow @@ -9813,7 +9813,7 @@ func Convert_management_ProjectSecretSpec_To_v1_ProjectSecretSpec(in *management } func autoConvert_v1_ProjectSecretStatus_To_management_ProjectSecretStatus(in *ProjectSecretStatus, out *management.ProjectSecretStatus, s conversion.Scope) error { - out.Conditions = *(*loftstoragev1.Conditions)(unsafe.Pointer(&in.Conditions)) + out.Conditions = *(*devsystoragev1.Conditions)(unsafe.Pointer(&in.Conditions)) return nil } @@ -9823,7 +9823,7 @@ func Convert_v1_ProjectSecretStatus_To_management_ProjectSecretStatus(in *Projec } func autoConvert_management_ProjectSecretStatus_To_v1_ProjectSecretStatus(in *management.ProjectSecretStatus, out *ProjectSecretStatus, s conversion.Scope) error { - out.Conditions = *(*loftstoragev1.Conditions)(unsafe.Pointer(&in.Conditions)) + out.Conditions = *(*devsystoragev1.Conditions)(unsafe.Pointer(&in.Conditions)) return nil } @@ -9878,11 +9878,11 @@ func autoConvert_v1_ProjectTemplates_To_management_ProjectTemplates(in *ProjectT out.VirtualClusterTemplates = *(*[]management.VirtualClusterTemplate)(unsafe.Pointer(&in.VirtualClusterTemplates)) out.DefaultSpaceTemplate = in.DefaultSpaceTemplate out.SpaceTemplates = *(*[]management.SpaceTemplate)(unsafe.Pointer(&in.SpaceTemplates)) - out.DefaultDevPodWorkspaceTemplate = in.DefaultDevPodWorkspaceTemplate - out.DevPodWorkspaceTemplates = *(*[]management.DevPodWorkspaceTemplate)(unsafe.Pointer(&in.DevPodWorkspaceTemplates)) - out.DevPodEnvironmentTemplates = *(*[]management.DevPodEnvironmentTemplate)(unsafe.Pointer(&in.DevPodEnvironmentTemplates)) - out.DevPodWorkspacePresets = *(*[]management.DevPodWorkspacePreset)(unsafe.Pointer(&in.DevPodWorkspacePresets)) - out.DefaultDevPodEnvironmentTemplate = in.DefaultDevPodEnvironmentTemplate + out.DefaultDevsyWorkspaceTemplate = in.DefaultDevsyWorkspaceTemplate + out.DevsyWorkspaceTemplates = *(*[]management.DevsyWorkspaceTemplate)(unsafe.Pointer(&in.DevsyWorkspaceTemplates)) + out.DevsyEnvironmentTemplates = *(*[]management.DevsyEnvironmentTemplate)(unsafe.Pointer(&in.DevsyEnvironmentTemplates)) + out.DevsyWorkspacePresets = *(*[]management.DevsyWorkspacePreset)(unsafe.Pointer(&in.DevsyWorkspacePresets)) + out.DefaultDevsyEnvironmentTemplate = in.DefaultDevsyEnvironmentTemplate return nil } @@ -9897,11 +9897,11 @@ func autoConvert_management_ProjectTemplates_To_v1_ProjectTemplates(in *manageme out.VirtualClusterTemplates = *(*[]VirtualClusterTemplate)(unsafe.Pointer(&in.VirtualClusterTemplates)) out.DefaultSpaceTemplate = in.DefaultSpaceTemplate out.SpaceTemplates = *(*[]SpaceTemplate)(unsafe.Pointer(&in.SpaceTemplates)) - out.DefaultDevPodWorkspaceTemplate = in.DefaultDevPodWorkspaceTemplate - out.DevPodWorkspaceTemplates = *(*[]DevPodWorkspaceTemplate)(unsafe.Pointer(&in.DevPodWorkspaceTemplates)) - out.DevPodEnvironmentTemplates = *(*[]DevPodEnvironmentTemplate)(unsafe.Pointer(&in.DevPodEnvironmentTemplates)) - out.DevPodWorkspacePresets = *(*[]DevPodWorkspacePreset)(unsafe.Pointer(&in.DevPodWorkspacePresets)) - out.DefaultDevPodEnvironmentTemplate = in.DefaultDevPodEnvironmentTemplate + out.DefaultDevsyWorkspaceTemplate = in.DefaultDevsyWorkspaceTemplate + out.DevsyWorkspaceTemplates = *(*[]DevsyWorkspaceTemplate)(unsafe.Pointer(&in.DevsyWorkspaceTemplates)) + out.DevsyEnvironmentTemplates = *(*[]DevsyEnvironmentTemplate)(unsafe.Pointer(&in.DevsyEnvironmentTemplates)) + out.DevsyWorkspacePresets = *(*[]DevsyWorkspacePreset)(unsafe.Pointer(&in.DevsyWorkspacePresets)) + out.DefaultDevsyEnvironmentTemplate = in.DefaultDevsyEnvironmentTemplate return nil } @@ -10311,7 +10311,7 @@ func autoConvert_v1_SelfStatus_To_management_SelfStatus(in *SelfStatus, out *man out.Groups = *(*[]string)(unsafe.Pointer(&in.Groups)) out.ChatAuthToken = in.ChatAuthToken out.InstanceID = in.InstanceID - out.LoftHost = in.LoftHost + out.DevsyHost = in.DevsyHost out.ProjectNamespacePrefix = (*string)(unsafe.Pointer(in.ProjectNamespacePrefix)) return nil } @@ -10332,7 +10332,7 @@ func autoConvert_management_SelfStatus_To_v1_SelfStatus(in *management.SelfStatu out.Groups = *(*[]string)(unsafe.Pointer(&in.Groups)) out.ChatAuthToken = in.ChatAuthToken out.InstanceID = in.InstanceID - out.LoftHost = in.LoftHost + out.DevsyHost = in.DevsyHost out.ProjectNamespacePrefix = (*string)(unsafe.Pointer(in.ProjectNamespacePrefix)) return nil } diff --git a/pkg/apis/management/v1/zz_generated.deepcopy.go b/pkg/apis/management/v1/zz_generated.deepcopy.go index 5106e42..ac7f364 100644 --- a/pkg/apis/management/v1/zz_generated.deepcopy.go +++ b/pkg/apis/management/v1/zz_generated.deepcopy.go @@ -8,7 +8,7 @@ package v1 import ( licenseapi "github.com/devsy-org/admin-apis/pkg/licenseapi" clusterv1 "github.com/devsy-org/agentapi/pkg/apis/devsy/cluster/v1" - loftstoragev1 "github.com/devsy-org/agentapi/pkg/apis/devsy/storage/v1" + devsystoragev1 "github.com/devsy-org/agentapi/pkg/apis/devsy/storage/v1" auditv1 "github.com/devsy-org/api/pkg/apis/audit/v1" storagev1 "github.com/devsy-org/api/pkg/apis/storage/v1" uiv1 "github.com/devsy-org/api/pkg/apis/ui/v1" @@ -2476,7 +2476,7 @@ func (in *DatabaseConnectorStatus) DeepCopy() *DatabaseConnectorStatus { } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *DevPodEnvironmentTemplate) DeepCopyInto(out *DevPodEnvironmentTemplate) { +func (in *DevsyEnvironmentTemplate) DeepCopyInto(out *DevsyEnvironmentTemplate) { *out = *in out.TypeMeta = in.TypeMeta in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) @@ -2485,18 +2485,18 @@ func (in *DevPodEnvironmentTemplate) DeepCopyInto(out *DevPodEnvironmentTemplate return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevPodEnvironmentTemplate. -func (in *DevPodEnvironmentTemplate) DeepCopy() *DevPodEnvironmentTemplate { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevsyEnvironmentTemplate. +func (in *DevsyEnvironmentTemplate) DeepCopy() *DevsyEnvironmentTemplate { if in == nil { return nil } - out := new(DevPodEnvironmentTemplate) + out := new(DevsyEnvironmentTemplate) in.DeepCopyInto(out) return out } // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *DevPodEnvironmentTemplate) DeepCopyObject() runtime.Object { +func (in *DevsyEnvironmentTemplate) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -2504,13 +2504,13 @@ func (in *DevPodEnvironmentTemplate) DeepCopyObject() runtime.Object { } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *DevPodEnvironmentTemplateList) DeepCopyInto(out *DevPodEnvironmentTemplateList) { +func (in *DevsyEnvironmentTemplateList) DeepCopyInto(out *DevsyEnvironmentTemplateList) { *out = *in out.TypeMeta = in.TypeMeta in.ListMeta.DeepCopyInto(&out.ListMeta) if in.Items != nil { in, out := &in.Items, &out.Items - *out = make([]DevPodEnvironmentTemplate, len(*in)) + *out = make([]DevsyEnvironmentTemplate, len(*in)) for i := range *in { (*in)[i].DeepCopyInto(&(*out)[i]) } @@ -2518,18 +2518,18 @@ func (in *DevPodEnvironmentTemplateList) DeepCopyInto(out *DevPodEnvironmentTemp return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevPodEnvironmentTemplateList. -func (in *DevPodEnvironmentTemplateList) DeepCopy() *DevPodEnvironmentTemplateList { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevsyEnvironmentTemplateList. +func (in *DevsyEnvironmentTemplateList) DeepCopy() *DevsyEnvironmentTemplateList { if in == nil { return nil } - out := new(DevPodEnvironmentTemplateList) + out := new(DevsyEnvironmentTemplateList) in.DeepCopyInto(out) return out } // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *DevPodEnvironmentTemplateList) DeepCopyObject() runtime.Object { +func (in *DevsyEnvironmentTemplateList) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -2537,40 +2537,133 @@ func (in *DevPodEnvironmentTemplateList) DeepCopyObject() runtime.Object { } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *DevPodEnvironmentTemplateSpec) DeepCopyInto(out *DevPodEnvironmentTemplateSpec) { +func (in *DevsyEnvironmentTemplateSpec) DeepCopyInto(out *DevsyEnvironmentTemplateSpec) { *out = *in - in.DevPodEnvironmentTemplateSpec.DeepCopyInto(&out.DevPodEnvironmentTemplateSpec) + in.DevsyEnvironmentTemplateSpec.DeepCopyInto(&out.DevsyEnvironmentTemplateSpec) return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevPodEnvironmentTemplateSpec. -func (in *DevPodEnvironmentTemplateSpec) DeepCopy() *DevPodEnvironmentTemplateSpec { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevsyEnvironmentTemplateSpec. +func (in *DevsyEnvironmentTemplateSpec) DeepCopy() *DevsyEnvironmentTemplateSpec { if in == nil { return nil } - out := new(DevPodEnvironmentTemplateSpec) + out := new(DevsyEnvironmentTemplateSpec) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *DevPodEnvironmentTemplateStatus) DeepCopyInto(out *DevPodEnvironmentTemplateStatus) { +func (in *DevsyEnvironmentTemplateStatus) DeepCopyInto(out *DevsyEnvironmentTemplateStatus) { *out = *in return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevPodEnvironmentTemplateStatus. -func (in *DevPodEnvironmentTemplateStatus) DeepCopy() *DevPodEnvironmentTemplateStatus { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevsyEnvironmentTemplateStatus. +func (in *DevsyEnvironmentTemplateStatus) DeepCopy() *DevsyEnvironmentTemplateStatus { if in == nil { return nil } - out := new(DevPodEnvironmentTemplateStatus) + out := new(DevsyEnvironmentTemplateStatus) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *DevPodWorkspaceInstance) DeepCopyInto(out *DevPodWorkspaceInstance) { +func (in *DevsyUpgrade) DeepCopyInto(out *DevsyUpgrade) { + *out = *in + out.TypeMeta = in.TypeMeta + in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) + out.Spec = in.Spec + out.Status = in.Status + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevsyUpgrade. +func (in *DevsyUpgrade) DeepCopy() *DevsyUpgrade { + if in == nil { + return nil + } + out := new(DevsyUpgrade) + in.DeepCopyInto(out) + return out +} + +// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. +func (in *DevsyUpgrade) DeepCopyObject() runtime.Object { + if c := in.DeepCopy(); c != nil { + return c + } + return nil +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *DevsyUpgradeList) DeepCopyInto(out *DevsyUpgradeList) { + *out = *in + out.TypeMeta = in.TypeMeta + in.ListMeta.DeepCopyInto(&out.ListMeta) + if in.Items != nil { + in, out := &in.Items, &out.Items + *out = make([]DevsyUpgrade, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevsyUpgradeList. +func (in *DevsyUpgradeList) DeepCopy() *DevsyUpgradeList { + if in == nil { + return nil + } + out := new(DevsyUpgradeList) + in.DeepCopyInto(out) + return out +} + +// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. +func (in *DevsyUpgradeList) DeepCopyObject() runtime.Object { + if c := in.DeepCopy(); c != nil { + return c + } + return nil +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *DevsyUpgradeSpec) DeepCopyInto(out *DevsyUpgradeSpec) { + *out = *in + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevsyUpgradeSpec. +func (in *DevsyUpgradeSpec) DeepCopy() *DevsyUpgradeSpec { + if in == nil { + return nil + } + out := new(DevsyUpgradeSpec) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *DevsyUpgradeStatus) DeepCopyInto(out *DevsyUpgradeStatus) { + *out = *in + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevsyUpgradeStatus. +func (in *DevsyUpgradeStatus) DeepCopy() *DevsyUpgradeStatus { + if in == nil { + return nil + } + out := new(DevsyUpgradeStatus) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *DevsyWorkspaceInstance) DeepCopyInto(out *DevsyWorkspaceInstance) { *out = *in out.TypeMeta = in.TypeMeta in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) @@ -2579,18 +2672,18 @@ func (in *DevPodWorkspaceInstance) DeepCopyInto(out *DevPodWorkspaceInstance) { return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevPodWorkspaceInstance. -func (in *DevPodWorkspaceInstance) DeepCopy() *DevPodWorkspaceInstance { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevsyWorkspaceInstance. +func (in *DevsyWorkspaceInstance) DeepCopy() *DevsyWorkspaceInstance { if in == nil { return nil } - out := new(DevPodWorkspaceInstance) + out := new(DevsyWorkspaceInstance) in.DeepCopyInto(out) return out } // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *DevPodWorkspaceInstance) DeepCopyObject() runtime.Object { +func (in *DevsyWorkspaceInstance) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -2598,25 +2691,25 @@ func (in *DevPodWorkspaceInstance) DeepCopyObject() runtime.Object { } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *DevPodWorkspaceInstanceCancel) DeepCopyInto(out *DevPodWorkspaceInstanceCancel) { +func (in *DevsyWorkspaceInstanceCancel) DeepCopyInto(out *DevsyWorkspaceInstanceCancel) { *out = *in out.TypeMeta = in.TypeMeta in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevPodWorkspaceInstanceCancel. -func (in *DevPodWorkspaceInstanceCancel) DeepCopy() *DevPodWorkspaceInstanceCancel { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevsyWorkspaceInstanceCancel. +func (in *DevsyWorkspaceInstanceCancel) DeepCopy() *DevsyWorkspaceInstanceCancel { if in == nil { return nil } - out := new(DevPodWorkspaceInstanceCancel) + out := new(DevsyWorkspaceInstanceCancel) in.DeepCopyInto(out) return out } // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *DevPodWorkspaceInstanceCancel) DeepCopyObject() runtime.Object { +func (in *DevsyWorkspaceInstanceCancel) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -2624,13 +2717,13 @@ func (in *DevPodWorkspaceInstanceCancel) DeepCopyObject() runtime.Object { } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *DevPodWorkspaceInstanceCancelList) DeepCopyInto(out *DevPodWorkspaceInstanceCancelList) { +func (in *DevsyWorkspaceInstanceCancelList) DeepCopyInto(out *DevsyWorkspaceInstanceCancelList) { *out = *in out.TypeMeta = in.TypeMeta in.ListMeta.DeepCopyInto(&out.ListMeta) if in.Items != nil { in, out := &in.Items, &out.Items - *out = make([]DevPodWorkspaceInstanceCancel, len(*in)) + *out = make([]DevsyWorkspaceInstanceCancel, len(*in)) for i := range *in { (*in)[i].DeepCopyInto(&(*out)[i]) } @@ -2638,18 +2731,18 @@ func (in *DevPodWorkspaceInstanceCancelList) DeepCopyInto(out *DevPodWorkspaceIn return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevPodWorkspaceInstanceCancelList. -func (in *DevPodWorkspaceInstanceCancelList) DeepCopy() *DevPodWorkspaceInstanceCancelList { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevsyWorkspaceInstanceCancelList. +func (in *DevsyWorkspaceInstanceCancelList) DeepCopy() *DevsyWorkspaceInstanceCancelList { if in == nil { return nil } - out := new(DevPodWorkspaceInstanceCancelList) + out := new(DevsyWorkspaceInstanceCancelList) in.DeepCopyInto(out) return out } // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *DevPodWorkspaceInstanceCancelList) DeepCopyObject() runtime.Object { +func (in *DevsyWorkspaceInstanceCancelList) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -2657,25 +2750,25 @@ func (in *DevPodWorkspaceInstanceCancelList) DeepCopyObject() runtime.Object { } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *DevPodWorkspaceInstanceDownload) DeepCopyInto(out *DevPodWorkspaceInstanceDownload) { +func (in *DevsyWorkspaceInstanceDownload) DeepCopyInto(out *DevsyWorkspaceInstanceDownload) { *out = *in out.TypeMeta = in.TypeMeta in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevPodWorkspaceInstanceDownload. -func (in *DevPodWorkspaceInstanceDownload) DeepCopy() *DevPodWorkspaceInstanceDownload { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevsyWorkspaceInstanceDownload. +func (in *DevsyWorkspaceInstanceDownload) DeepCopy() *DevsyWorkspaceInstanceDownload { if in == nil { return nil } - out := new(DevPodWorkspaceInstanceDownload) + out := new(DevsyWorkspaceInstanceDownload) in.DeepCopyInto(out) return out } // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *DevPodWorkspaceInstanceDownload) DeepCopyObject() runtime.Object { +func (in *DevsyWorkspaceInstanceDownload) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -2683,13 +2776,13 @@ func (in *DevPodWorkspaceInstanceDownload) DeepCopyObject() runtime.Object { } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *DevPodWorkspaceInstanceDownloadList) DeepCopyInto(out *DevPodWorkspaceInstanceDownloadList) { +func (in *DevsyWorkspaceInstanceDownloadList) DeepCopyInto(out *DevsyWorkspaceInstanceDownloadList) { *out = *in out.TypeMeta = in.TypeMeta in.ListMeta.DeepCopyInto(&out.ListMeta) if in.Items != nil { in, out := &in.Items, &out.Items - *out = make([]DevPodWorkspaceInstanceDownload, len(*in)) + *out = make([]DevsyWorkspaceInstanceDownload, len(*in)) for i := range *in { (*in)[i].DeepCopyInto(&(*out)[i]) } @@ -2697,18 +2790,18 @@ func (in *DevPodWorkspaceInstanceDownloadList) DeepCopyInto(out *DevPodWorkspace return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevPodWorkspaceInstanceDownloadList. -func (in *DevPodWorkspaceInstanceDownloadList) DeepCopy() *DevPodWorkspaceInstanceDownloadList { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevsyWorkspaceInstanceDownloadList. +func (in *DevsyWorkspaceInstanceDownloadList) DeepCopy() *DevsyWorkspaceInstanceDownloadList { if in == nil { return nil } - out := new(DevPodWorkspaceInstanceDownloadList) + out := new(DevsyWorkspaceInstanceDownloadList) in.DeepCopyInto(out) return out } // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *DevPodWorkspaceInstanceDownloadList) DeepCopyObject() runtime.Object { +func (in *DevsyWorkspaceInstanceDownloadList) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -2716,24 +2809,24 @@ func (in *DevPodWorkspaceInstanceDownloadList) DeepCopyObject() runtime.Object { } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *DevPodWorkspaceInstanceDownloadOptions) DeepCopyInto(out *DevPodWorkspaceInstanceDownloadOptions) { +func (in *DevsyWorkspaceInstanceDownloadOptions) DeepCopyInto(out *DevsyWorkspaceInstanceDownloadOptions) { *out = *in out.TypeMeta = in.TypeMeta return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevPodWorkspaceInstanceDownloadOptions. -func (in *DevPodWorkspaceInstanceDownloadOptions) DeepCopy() *DevPodWorkspaceInstanceDownloadOptions { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevsyWorkspaceInstanceDownloadOptions. +func (in *DevsyWorkspaceInstanceDownloadOptions) DeepCopy() *DevsyWorkspaceInstanceDownloadOptions { if in == nil { return nil } - out := new(DevPodWorkspaceInstanceDownloadOptions) + out := new(DevsyWorkspaceInstanceDownloadOptions) in.DeepCopyInto(out) return out } // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *DevPodWorkspaceInstanceDownloadOptions) DeepCopyObject() runtime.Object { +func (in *DevsyWorkspaceInstanceDownloadOptions) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -2741,13 +2834,13 @@ func (in *DevPodWorkspaceInstanceDownloadOptions) DeepCopyObject() runtime.Objec } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *DevPodWorkspaceInstanceList) DeepCopyInto(out *DevPodWorkspaceInstanceList) { +func (in *DevsyWorkspaceInstanceList) DeepCopyInto(out *DevsyWorkspaceInstanceList) { *out = *in out.TypeMeta = in.TypeMeta in.ListMeta.DeepCopyInto(&out.ListMeta) if in.Items != nil { in, out := &in.Items, &out.Items - *out = make([]DevPodWorkspaceInstance, len(*in)) + *out = make([]DevsyWorkspaceInstance, len(*in)) for i := range *in { (*in)[i].DeepCopyInto(&(*out)[i]) } @@ -2755,18 +2848,18 @@ func (in *DevPodWorkspaceInstanceList) DeepCopyInto(out *DevPodWorkspaceInstance return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevPodWorkspaceInstanceList. -func (in *DevPodWorkspaceInstanceList) DeepCopy() *DevPodWorkspaceInstanceList { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevsyWorkspaceInstanceList. +func (in *DevsyWorkspaceInstanceList) DeepCopy() *DevsyWorkspaceInstanceList { if in == nil { return nil } - out := new(DevPodWorkspaceInstanceList) + out := new(DevsyWorkspaceInstanceList) in.DeepCopyInto(out) return out } // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *DevPodWorkspaceInstanceList) DeepCopyObject() runtime.Object { +func (in *DevsyWorkspaceInstanceList) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -2774,25 +2867,25 @@ func (in *DevPodWorkspaceInstanceList) DeepCopyObject() runtime.Object { } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *DevPodWorkspaceInstanceLog) DeepCopyInto(out *DevPodWorkspaceInstanceLog) { +func (in *DevsyWorkspaceInstanceLog) DeepCopyInto(out *DevsyWorkspaceInstanceLog) { *out = *in out.TypeMeta = in.TypeMeta in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevPodWorkspaceInstanceLog. -func (in *DevPodWorkspaceInstanceLog) DeepCopy() *DevPodWorkspaceInstanceLog { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevsyWorkspaceInstanceLog. +func (in *DevsyWorkspaceInstanceLog) DeepCopy() *DevsyWorkspaceInstanceLog { if in == nil { return nil } - out := new(DevPodWorkspaceInstanceLog) + out := new(DevsyWorkspaceInstanceLog) in.DeepCopyInto(out) return out } // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *DevPodWorkspaceInstanceLog) DeepCopyObject() runtime.Object { +func (in *DevsyWorkspaceInstanceLog) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -2800,13 +2893,13 @@ func (in *DevPodWorkspaceInstanceLog) DeepCopyObject() runtime.Object { } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *DevPodWorkspaceInstanceLogList) DeepCopyInto(out *DevPodWorkspaceInstanceLogList) { +func (in *DevsyWorkspaceInstanceLogList) DeepCopyInto(out *DevsyWorkspaceInstanceLogList) { *out = *in out.TypeMeta = in.TypeMeta in.ListMeta.DeepCopyInto(&out.ListMeta) if in.Items != nil { in, out := &in.Items, &out.Items - *out = make([]DevPodWorkspaceInstanceLog, len(*in)) + *out = make([]DevsyWorkspaceInstanceLog, len(*in)) for i := range *in { (*in)[i].DeepCopyInto(&(*out)[i]) } @@ -2814,18 +2907,18 @@ func (in *DevPodWorkspaceInstanceLogList) DeepCopyInto(out *DevPodWorkspaceInsta return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevPodWorkspaceInstanceLogList. -func (in *DevPodWorkspaceInstanceLogList) DeepCopy() *DevPodWorkspaceInstanceLogList { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevsyWorkspaceInstanceLogList. +func (in *DevsyWorkspaceInstanceLogList) DeepCopy() *DevsyWorkspaceInstanceLogList { if in == nil { return nil } - out := new(DevPodWorkspaceInstanceLogList) + out := new(DevsyWorkspaceInstanceLogList) in.DeepCopyInto(out) return out } // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *DevPodWorkspaceInstanceLogList) DeepCopyObject() runtime.Object { +func (in *DevsyWorkspaceInstanceLogList) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -2833,24 +2926,24 @@ func (in *DevPodWorkspaceInstanceLogList) DeepCopyObject() runtime.Object { } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *DevPodWorkspaceInstanceLogOptions) DeepCopyInto(out *DevPodWorkspaceInstanceLogOptions) { +func (in *DevsyWorkspaceInstanceLogOptions) DeepCopyInto(out *DevsyWorkspaceInstanceLogOptions) { *out = *in out.TypeMeta = in.TypeMeta return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevPodWorkspaceInstanceLogOptions. -func (in *DevPodWorkspaceInstanceLogOptions) DeepCopy() *DevPodWorkspaceInstanceLogOptions { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevsyWorkspaceInstanceLogOptions. +func (in *DevsyWorkspaceInstanceLogOptions) DeepCopy() *DevsyWorkspaceInstanceLogOptions { if in == nil { return nil } - out := new(DevPodWorkspaceInstanceLogOptions) + out := new(DevsyWorkspaceInstanceLogOptions) in.DeepCopyInto(out) return out } // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *DevPodWorkspaceInstanceLogOptions) DeepCopyObject() runtime.Object { +func (in *DevsyWorkspaceInstanceLogOptions) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -2858,26 +2951,26 @@ func (in *DevPodWorkspaceInstanceLogOptions) DeepCopyObject() runtime.Object { } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *DevPodWorkspaceInstanceSpec) DeepCopyInto(out *DevPodWorkspaceInstanceSpec) { +func (in *DevsyWorkspaceInstanceSpec) DeepCopyInto(out *DevsyWorkspaceInstanceSpec) { *out = *in - in.DevPodWorkspaceInstanceSpec.DeepCopyInto(&out.DevPodWorkspaceInstanceSpec) + in.DevsyWorkspaceInstanceSpec.DeepCopyInto(&out.DevsyWorkspaceInstanceSpec) return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevPodWorkspaceInstanceSpec. -func (in *DevPodWorkspaceInstanceSpec) DeepCopy() *DevPodWorkspaceInstanceSpec { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevsyWorkspaceInstanceSpec. +func (in *DevsyWorkspaceInstanceSpec) DeepCopy() *DevsyWorkspaceInstanceSpec { if in == nil { return nil } - out := new(DevPodWorkspaceInstanceSpec) + out := new(DevsyWorkspaceInstanceSpec) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *DevPodWorkspaceInstanceStatus) DeepCopyInto(out *DevPodWorkspaceInstanceStatus) { +func (in *DevsyWorkspaceInstanceStatus) DeepCopyInto(out *DevsyWorkspaceInstanceStatus) { *out = *in - in.DevPodWorkspaceInstanceStatus.DeepCopyInto(&out.DevPodWorkspaceInstanceStatus) + in.DevsyWorkspaceInstanceStatus.DeepCopyInto(&out.DevsyWorkspaceInstanceStatus) if in.SleepModeConfig != nil { in, out := &in.SleepModeConfig, &out.SleepModeConfig *out = new(clusterv1.SleepModeConfig) @@ -2886,18 +2979,18 @@ func (in *DevPodWorkspaceInstanceStatus) DeepCopyInto(out *DevPodWorkspaceInstan return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevPodWorkspaceInstanceStatus. -func (in *DevPodWorkspaceInstanceStatus) DeepCopy() *DevPodWorkspaceInstanceStatus { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevsyWorkspaceInstanceStatus. +func (in *DevsyWorkspaceInstanceStatus) DeepCopy() *DevsyWorkspaceInstanceStatus { if in == nil { return nil } - out := new(DevPodWorkspaceInstanceStatus) + out := new(DevsyWorkspaceInstanceStatus) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *DevPodWorkspaceInstanceStop) DeepCopyInto(out *DevPodWorkspaceInstanceStop) { +func (in *DevsyWorkspaceInstanceStop) DeepCopyInto(out *DevsyWorkspaceInstanceStop) { *out = *in out.TypeMeta = in.TypeMeta in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) @@ -2906,18 +2999,18 @@ func (in *DevPodWorkspaceInstanceStop) DeepCopyInto(out *DevPodWorkspaceInstance return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevPodWorkspaceInstanceStop. -func (in *DevPodWorkspaceInstanceStop) DeepCopy() *DevPodWorkspaceInstanceStop { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevsyWorkspaceInstanceStop. +func (in *DevsyWorkspaceInstanceStop) DeepCopy() *DevsyWorkspaceInstanceStop { if in == nil { return nil } - out := new(DevPodWorkspaceInstanceStop) + out := new(DevsyWorkspaceInstanceStop) in.DeepCopyInto(out) return out } // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *DevPodWorkspaceInstanceStop) DeepCopyObject() runtime.Object { +func (in *DevsyWorkspaceInstanceStop) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -2925,13 +3018,13 @@ func (in *DevPodWorkspaceInstanceStop) DeepCopyObject() runtime.Object { } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *DevPodWorkspaceInstanceStopList) DeepCopyInto(out *DevPodWorkspaceInstanceStopList) { +func (in *DevsyWorkspaceInstanceStopList) DeepCopyInto(out *DevsyWorkspaceInstanceStopList) { *out = *in out.TypeMeta = in.TypeMeta in.ListMeta.DeepCopyInto(&out.ListMeta) if in.Items != nil { in, out := &in.Items, &out.Items - *out = make([]DevPodWorkspaceInstanceStop, len(*in)) + *out = make([]DevsyWorkspaceInstanceStop, len(*in)) for i := range *in { (*in)[i].DeepCopyInto(&(*out)[i]) } @@ -2939,18 +3032,18 @@ func (in *DevPodWorkspaceInstanceStopList) DeepCopyInto(out *DevPodWorkspaceInst return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevPodWorkspaceInstanceStopList. -func (in *DevPodWorkspaceInstanceStopList) DeepCopy() *DevPodWorkspaceInstanceStopList { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevsyWorkspaceInstanceStopList. +func (in *DevsyWorkspaceInstanceStopList) DeepCopy() *DevsyWorkspaceInstanceStopList { if in == nil { return nil } - out := new(DevPodWorkspaceInstanceStopList) + out := new(DevsyWorkspaceInstanceStopList) in.DeepCopyInto(out) return out } // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *DevPodWorkspaceInstanceStopList) DeepCopyObject() runtime.Object { +func (in *DevsyWorkspaceInstanceStopList) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -2958,39 +3051,39 @@ func (in *DevPodWorkspaceInstanceStopList) DeepCopyObject() runtime.Object { } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *DevPodWorkspaceInstanceStopSpec) DeepCopyInto(out *DevPodWorkspaceInstanceStopSpec) { +func (in *DevsyWorkspaceInstanceStopSpec) DeepCopyInto(out *DevsyWorkspaceInstanceStopSpec) { *out = *in return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevPodWorkspaceInstanceStopSpec. -func (in *DevPodWorkspaceInstanceStopSpec) DeepCopy() *DevPodWorkspaceInstanceStopSpec { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevsyWorkspaceInstanceStopSpec. +func (in *DevsyWorkspaceInstanceStopSpec) DeepCopy() *DevsyWorkspaceInstanceStopSpec { if in == nil { return nil } - out := new(DevPodWorkspaceInstanceStopSpec) + out := new(DevsyWorkspaceInstanceStopSpec) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *DevPodWorkspaceInstanceStopStatus) DeepCopyInto(out *DevPodWorkspaceInstanceStopStatus) { +func (in *DevsyWorkspaceInstanceStopStatus) DeepCopyInto(out *DevsyWorkspaceInstanceStopStatus) { *out = *in return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevPodWorkspaceInstanceStopStatus. -func (in *DevPodWorkspaceInstanceStopStatus) DeepCopy() *DevPodWorkspaceInstanceStopStatus { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevsyWorkspaceInstanceStopStatus. +func (in *DevsyWorkspaceInstanceStopStatus) DeepCopy() *DevsyWorkspaceInstanceStopStatus { if in == nil { return nil } - out := new(DevPodWorkspaceInstanceStopStatus) + out := new(DevsyWorkspaceInstanceStopStatus) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *DevPodWorkspaceInstanceTask) DeepCopyInto(out *DevPodWorkspaceInstanceTask) { +func (in *DevsyWorkspaceInstanceTask) DeepCopyInto(out *DevsyWorkspaceInstanceTask) { *out = *in if in.Result != nil { in, out := &in.Result, &out.Result @@ -3006,24 +3099,24 @@ func (in *DevPodWorkspaceInstanceTask) DeepCopyInto(out *DevPodWorkspaceInstance return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevPodWorkspaceInstanceTask. -func (in *DevPodWorkspaceInstanceTask) DeepCopy() *DevPodWorkspaceInstanceTask { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevsyWorkspaceInstanceTask. +func (in *DevsyWorkspaceInstanceTask) DeepCopy() *DevsyWorkspaceInstanceTask { if in == nil { return nil } - out := new(DevPodWorkspaceInstanceTask) + out := new(DevsyWorkspaceInstanceTask) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *DevPodWorkspaceInstanceTasks) DeepCopyInto(out *DevPodWorkspaceInstanceTasks) { +func (in *DevsyWorkspaceInstanceTasks) DeepCopyInto(out *DevsyWorkspaceInstanceTasks) { *out = *in out.TypeMeta = in.TypeMeta in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) if in.Tasks != nil { in, out := &in.Tasks, &out.Tasks - *out = make([]DevPodWorkspaceInstanceTask, len(*in)) + *out = make([]DevsyWorkspaceInstanceTask, len(*in)) for i := range *in { (*in)[i].DeepCopyInto(&(*out)[i]) } @@ -3031,18 +3124,18 @@ func (in *DevPodWorkspaceInstanceTasks) DeepCopyInto(out *DevPodWorkspaceInstanc return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevPodWorkspaceInstanceTasks. -func (in *DevPodWorkspaceInstanceTasks) DeepCopy() *DevPodWorkspaceInstanceTasks { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevsyWorkspaceInstanceTasks. +func (in *DevsyWorkspaceInstanceTasks) DeepCopy() *DevsyWorkspaceInstanceTasks { if in == nil { return nil } - out := new(DevPodWorkspaceInstanceTasks) + out := new(DevsyWorkspaceInstanceTasks) in.DeepCopyInto(out) return out } // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *DevPodWorkspaceInstanceTasks) DeepCopyObject() runtime.Object { +func (in *DevsyWorkspaceInstanceTasks) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -3050,13 +3143,13 @@ func (in *DevPodWorkspaceInstanceTasks) DeepCopyObject() runtime.Object { } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *DevPodWorkspaceInstanceTasksList) DeepCopyInto(out *DevPodWorkspaceInstanceTasksList) { +func (in *DevsyWorkspaceInstanceTasksList) DeepCopyInto(out *DevsyWorkspaceInstanceTasksList) { *out = *in out.TypeMeta = in.TypeMeta in.ListMeta.DeepCopyInto(&out.ListMeta) if in.Items != nil { in, out := &in.Items, &out.Items - *out = make([]DevPodWorkspaceInstanceTasks, len(*in)) + *out = make([]DevsyWorkspaceInstanceTasks, len(*in)) for i := range *in { (*in)[i].DeepCopyInto(&(*out)[i]) } @@ -3064,18 +3157,18 @@ func (in *DevPodWorkspaceInstanceTasksList) DeepCopyInto(out *DevPodWorkspaceIns return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevPodWorkspaceInstanceTasksList. -func (in *DevPodWorkspaceInstanceTasksList) DeepCopy() *DevPodWorkspaceInstanceTasksList { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevsyWorkspaceInstanceTasksList. +func (in *DevsyWorkspaceInstanceTasksList) DeepCopy() *DevsyWorkspaceInstanceTasksList { if in == nil { return nil } - out := new(DevPodWorkspaceInstanceTasksList) + out := new(DevsyWorkspaceInstanceTasksList) in.DeepCopyInto(out) return out } // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *DevPodWorkspaceInstanceTasksList) DeepCopyObject() runtime.Object { +func (in *DevsyWorkspaceInstanceTasksList) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -3083,24 +3176,24 @@ func (in *DevPodWorkspaceInstanceTasksList) DeepCopyObject() runtime.Object { } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *DevPodWorkspaceInstanceTasksOptions) DeepCopyInto(out *DevPodWorkspaceInstanceTasksOptions) { +func (in *DevsyWorkspaceInstanceTasksOptions) DeepCopyInto(out *DevsyWorkspaceInstanceTasksOptions) { *out = *in out.TypeMeta = in.TypeMeta return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevPodWorkspaceInstanceTasksOptions. -func (in *DevPodWorkspaceInstanceTasksOptions) DeepCopy() *DevPodWorkspaceInstanceTasksOptions { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevsyWorkspaceInstanceTasksOptions. +func (in *DevsyWorkspaceInstanceTasksOptions) DeepCopy() *DevsyWorkspaceInstanceTasksOptions { if in == nil { return nil } - out := new(DevPodWorkspaceInstanceTasksOptions) + out := new(DevsyWorkspaceInstanceTasksOptions) in.DeepCopyInto(out) return out } // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *DevPodWorkspaceInstanceTasksOptions) DeepCopyObject() runtime.Object { +func (in *DevsyWorkspaceInstanceTasksOptions) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -3108,18 +3201,18 @@ func (in *DevPodWorkspaceInstanceTasksOptions) DeepCopyObject() runtime.Object { } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *DevPodWorkspaceInstanceTroubleshoot) DeepCopyInto(out *DevPodWorkspaceInstanceTroubleshoot) { +func (in *DevsyWorkspaceInstanceTroubleshoot) DeepCopyInto(out *DevsyWorkspaceInstanceTroubleshoot) { *out = *in out.TypeMeta = in.TypeMeta in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) if in.Workspace != nil { in, out := &in.Workspace, &out.Workspace - *out = new(DevPodWorkspaceInstance) + *out = new(DevsyWorkspaceInstance) (*in).DeepCopyInto(*out) } if in.Template != nil { in, out := &in.Template, &out.Template - *out = new(storagev1.DevPodWorkspaceTemplate) + *out = new(storagev1.DevsyWorkspaceTemplate) (*in).DeepCopyInto(*out) } if in.Pods != nil { @@ -3149,18 +3242,18 @@ func (in *DevPodWorkspaceInstanceTroubleshoot) DeepCopyInto(out *DevPodWorkspace return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevPodWorkspaceInstanceTroubleshoot. -func (in *DevPodWorkspaceInstanceTroubleshoot) DeepCopy() *DevPodWorkspaceInstanceTroubleshoot { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevsyWorkspaceInstanceTroubleshoot. +func (in *DevsyWorkspaceInstanceTroubleshoot) DeepCopy() *DevsyWorkspaceInstanceTroubleshoot { if in == nil { return nil } - out := new(DevPodWorkspaceInstanceTroubleshoot) + out := new(DevsyWorkspaceInstanceTroubleshoot) in.DeepCopyInto(out) return out } // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *DevPodWorkspaceInstanceTroubleshoot) DeepCopyObject() runtime.Object { +func (in *DevsyWorkspaceInstanceTroubleshoot) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -3168,13 +3261,13 @@ func (in *DevPodWorkspaceInstanceTroubleshoot) DeepCopyObject() runtime.Object { } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *DevPodWorkspaceInstanceTroubleshootList) DeepCopyInto(out *DevPodWorkspaceInstanceTroubleshootList) { +func (in *DevsyWorkspaceInstanceTroubleshootList) DeepCopyInto(out *DevsyWorkspaceInstanceTroubleshootList) { *out = *in out.TypeMeta = in.TypeMeta in.ListMeta.DeepCopyInto(&out.ListMeta) if in.Items != nil { in, out := &in.Items, &out.Items - *out = make([]DevPodWorkspaceInstanceTroubleshoot, len(*in)) + *out = make([]DevsyWorkspaceInstanceTroubleshoot, len(*in)) for i := range *in { (*in)[i].DeepCopyInto(&(*out)[i]) } @@ -3182,18 +3275,18 @@ func (in *DevPodWorkspaceInstanceTroubleshootList) DeepCopyInto(out *DevPodWorks return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevPodWorkspaceInstanceTroubleshootList. -func (in *DevPodWorkspaceInstanceTroubleshootList) DeepCopy() *DevPodWorkspaceInstanceTroubleshootList { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevsyWorkspaceInstanceTroubleshootList. +func (in *DevsyWorkspaceInstanceTroubleshootList) DeepCopy() *DevsyWorkspaceInstanceTroubleshootList { if in == nil { return nil } - out := new(DevPodWorkspaceInstanceTroubleshootList) + out := new(DevsyWorkspaceInstanceTroubleshootList) in.DeepCopyInto(out) return out } // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *DevPodWorkspaceInstanceTroubleshootList) DeepCopyObject() runtime.Object { +func (in *DevsyWorkspaceInstanceTroubleshootList) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -3201,7 +3294,7 @@ func (in *DevPodWorkspaceInstanceTroubleshootList) DeepCopyObject() runtime.Obje } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *DevPodWorkspaceInstanceUp) DeepCopyInto(out *DevPodWorkspaceInstanceUp) { +func (in *DevsyWorkspaceInstanceUp) DeepCopyInto(out *DevsyWorkspaceInstanceUp) { *out = *in out.TypeMeta = in.TypeMeta in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) @@ -3210,18 +3303,18 @@ func (in *DevPodWorkspaceInstanceUp) DeepCopyInto(out *DevPodWorkspaceInstanceUp return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevPodWorkspaceInstanceUp. -func (in *DevPodWorkspaceInstanceUp) DeepCopy() *DevPodWorkspaceInstanceUp { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevsyWorkspaceInstanceUp. +func (in *DevsyWorkspaceInstanceUp) DeepCopy() *DevsyWorkspaceInstanceUp { if in == nil { return nil } - out := new(DevPodWorkspaceInstanceUp) + out := new(DevsyWorkspaceInstanceUp) in.DeepCopyInto(out) return out } // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *DevPodWorkspaceInstanceUp) DeepCopyObject() runtime.Object { +func (in *DevsyWorkspaceInstanceUp) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -3229,13 +3322,13 @@ func (in *DevPodWorkspaceInstanceUp) DeepCopyObject() runtime.Object { } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *DevPodWorkspaceInstanceUpList) DeepCopyInto(out *DevPodWorkspaceInstanceUpList) { +func (in *DevsyWorkspaceInstanceUpList) DeepCopyInto(out *DevsyWorkspaceInstanceUpList) { *out = *in out.TypeMeta = in.TypeMeta in.ListMeta.DeepCopyInto(&out.ListMeta) if in.Items != nil { in, out := &in.Items, &out.Items - *out = make([]DevPodWorkspaceInstanceUp, len(*in)) + *out = make([]DevsyWorkspaceInstanceUp, len(*in)) for i := range *in { (*in)[i].DeepCopyInto(&(*out)[i]) } @@ -3243,18 +3336,18 @@ func (in *DevPodWorkspaceInstanceUpList) DeepCopyInto(out *DevPodWorkspaceInstan return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevPodWorkspaceInstanceUpList. -func (in *DevPodWorkspaceInstanceUpList) DeepCopy() *DevPodWorkspaceInstanceUpList { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevsyWorkspaceInstanceUpList. +func (in *DevsyWorkspaceInstanceUpList) DeepCopy() *DevsyWorkspaceInstanceUpList { if in == nil { return nil } - out := new(DevPodWorkspaceInstanceUpList) + out := new(DevsyWorkspaceInstanceUpList) in.DeepCopyInto(out) return out } // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *DevPodWorkspaceInstanceUpList) DeepCopyObject() runtime.Object { +func (in *DevsyWorkspaceInstanceUpList) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -3262,39 +3355,39 @@ func (in *DevPodWorkspaceInstanceUpList) DeepCopyObject() runtime.Object { } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *DevPodWorkspaceInstanceUpSpec) DeepCopyInto(out *DevPodWorkspaceInstanceUpSpec) { +func (in *DevsyWorkspaceInstanceUpSpec) DeepCopyInto(out *DevsyWorkspaceInstanceUpSpec) { *out = *in return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevPodWorkspaceInstanceUpSpec. -func (in *DevPodWorkspaceInstanceUpSpec) DeepCopy() *DevPodWorkspaceInstanceUpSpec { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevsyWorkspaceInstanceUpSpec. +func (in *DevsyWorkspaceInstanceUpSpec) DeepCopy() *DevsyWorkspaceInstanceUpSpec { if in == nil { return nil } - out := new(DevPodWorkspaceInstanceUpSpec) + out := new(DevsyWorkspaceInstanceUpSpec) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *DevPodWorkspaceInstanceUpStatus) DeepCopyInto(out *DevPodWorkspaceInstanceUpStatus) { +func (in *DevsyWorkspaceInstanceUpStatus) DeepCopyInto(out *DevsyWorkspaceInstanceUpStatus) { *out = *in return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevPodWorkspaceInstanceUpStatus. -func (in *DevPodWorkspaceInstanceUpStatus) DeepCopy() *DevPodWorkspaceInstanceUpStatus { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevsyWorkspaceInstanceUpStatus. +func (in *DevsyWorkspaceInstanceUpStatus) DeepCopy() *DevsyWorkspaceInstanceUpStatus { if in == nil { return nil } - out := new(DevPodWorkspaceInstanceUpStatus) + out := new(DevsyWorkspaceInstanceUpStatus) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *DevPodWorkspacePreset) DeepCopyInto(out *DevPodWorkspacePreset) { +func (in *DevsyWorkspacePreset) DeepCopyInto(out *DevsyWorkspacePreset) { *out = *in out.TypeMeta = in.TypeMeta in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) @@ -3303,18 +3396,18 @@ func (in *DevPodWorkspacePreset) DeepCopyInto(out *DevPodWorkspacePreset) { return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevPodWorkspacePreset. -func (in *DevPodWorkspacePreset) DeepCopy() *DevPodWorkspacePreset { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevsyWorkspacePreset. +func (in *DevsyWorkspacePreset) DeepCopy() *DevsyWorkspacePreset { if in == nil { return nil } - out := new(DevPodWorkspacePreset) + out := new(DevsyWorkspacePreset) in.DeepCopyInto(out) return out } // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *DevPodWorkspacePreset) DeepCopyObject() runtime.Object { +func (in *DevsyWorkspacePreset) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -3322,13 +3415,13 @@ func (in *DevPodWorkspacePreset) DeepCopyObject() runtime.Object { } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *DevPodWorkspacePresetList) DeepCopyInto(out *DevPodWorkspacePresetList) { +func (in *DevsyWorkspacePresetList) DeepCopyInto(out *DevsyWorkspacePresetList) { *out = *in out.TypeMeta = in.TypeMeta in.ListMeta.DeepCopyInto(&out.ListMeta) if in.Items != nil { in, out := &in.Items, &out.Items - *out = make([]DevPodWorkspacePreset, len(*in)) + *out = make([]DevsyWorkspacePreset, len(*in)) for i := range *in { (*in)[i].DeepCopyInto(&(*out)[i]) } @@ -3336,18 +3429,18 @@ func (in *DevPodWorkspacePresetList) DeepCopyInto(out *DevPodWorkspacePresetList return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevPodWorkspacePresetList. -func (in *DevPodWorkspacePresetList) DeepCopy() *DevPodWorkspacePresetList { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevsyWorkspacePresetList. +func (in *DevsyWorkspacePresetList) DeepCopy() *DevsyWorkspacePresetList { if in == nil { return nil } - out := new(DevPodWorkspacePresetList) + out := new(DevsyWorkspacePresetList) in.DeepCopyInto(out) return out } // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *DevPodWorkspacePresetList) DeepCopyObject() runtime.Object { +func (in *DevsyWorkspacePresetList) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -3355,57 +3448,57 @@ func (in *DevPodWorkspacePresetList) DeepCopyObject() runtime.Object { } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *DevPodWorkspacePresetSource) DeepCopyInto(out *DevPodWorkspacePresetSource) { +func (in *DevsyWorkspacePresetSource) DeepCopyInto(out *DevsyWorkspacePresetSource) { *out = *in - out.DevPodWorkspacePresetSource = in.DevPodWorkspacePresetSource + out.DevsyWorkspacePresetSource = in.DevsyWorkspacePresetSource return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevPodWorkspacePresetSource. -func (in *DevPodWorkspacePresetSource) DeepCopy() *DevPodWorkspacePresetSource { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevsyWorkspacePresetSource. +func (in *DevsyWorkspacePresetSource) DeepCopy() *DevsyWorkspacePresetSource { if in == nil { return nil } - out := new(DevPodWorkspacePresetSource) + out := new(DevsyWorkspacePresetSource) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *DevPodWorkspacePresetSpec) DeepCopyInto(out *DevPodWorkspacePresetSpec) { +func (in *DevsyWorkspacePresetSpec) DeepCopyInto(out *DevsyWorkspacePresetSpec) { *out = *in - in.DevPodWorkspacePresetSpec.DeepCopyInto(&out.DevPodWorkspacePresetSpec) + in.DevsyWorkspacePresetSpec.DeepCopyInto(&out.DevsyWorkspacePresetSpec) return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevPodWorkspacePresetSpec. -func (in *DevPodWorkspacePresetSpec) DeepCopy() *DevPodWorkspacePresetSpec { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevsyWorkspacePresetSpec. +func (in *DevsyWorkspacePresetSpec) DeepCopy() *DevsyWorkspacePresetSpec { if in == nil { return nil } - out := new(DevPodWorkspacePresetSpec) + out := new(DevsyWorkspacePresetSpec) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *DevPodWorkspacePresetStatus) DeepCopyInto(out *DevPodWorkspacePresetStatus) { +func (in *DevsyWorkspacePresetStatus) DeepCopyInto(out *DevsyWorkspacePresetStatus) { *out = *in return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevPodWorkspacePresetStatus. -func (in *DevPodWorkspacePresetStatus) DeepCopy() *DevPodWorkspacePresetStatus { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevsyWorkspacePresetStatus. +func (in *DevsyWorkspacePresetStatus) DeepCopy() *DevsyWorkspacePresetStatus { if in == nil { return nil } - out := new(DevPodWorkspacePresetStatus) + out := new(DevsyWorkspacePresetStatus) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *DevPodWorkspaceTemplate) DeepCopyInto(out *DevPodWorkspaceTemplate) { +func (in *DevsyWorkspaceTemplate) DeepCopyInto(out *DevsyWorkspaceTemplate) { *out = *in out.TypeMeta = in.TypeMeta in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) @@ -3414,18 +3507,18 @@ func (in *DevPodWorkspaceTemplate) DeepCopyInto(out *DevPodWorkspaceTemplate) { return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevPodWorkspaceTemplate. -func (in *DevPodWorkspaceTemplate) DeepCopy() *DevPodWorkspaceTemplate { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevsyWorkspaceTemplate. +func (in *DevsyWorkspaceTemplate) DeepCopy() *DevsyWorkspaceTemplate { if in == nil { return nil } - out := new(DevPodWorkspaceTemplate) + out := new(DevsyWorkspaceTemplate) in.DeepCopyInto(out) return out } // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *DevPodWorkspaceTemplate) DeepCopyObject() runtime.Object { +func (in *DevsyWorkspaceTemplate) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -3433,13 +3526,13 @@ func (in *DevPodWorkspaceTemplate) DeepCopyObject() runtime.Object { } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *DevPodWorkspaceTemplateList) DeepCopyInto(out *DevPodWorkspaceTemplateList) { +func (in *DevsyWorkspaceTemplateList) DeepCopyInto(out *DevsyWorkspaceTemplateList) { *out = *in out.TypeMeta = in.TypeMeta in.ListMeta.DeepCopyInto(&out.ListMeta) if in.Items != nil { in, out := &in.Items, &out.Items - *out = make([]DevPodWorkspaceTemplate, len(*in)) + *out = make([]DevsyWorkspaceTemplate, len(*in)) for i := range *in { (*in)[i].DeepCopyInto(&(*out)[i]) } @@ -3447,18 +3540,18 @@ func (in *DevPodWorkspaceTemplateList) DeepCopyInto(out *DevPodWorkspaceTemplate return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevPodWorkspaceTemplateList. -func (in *DevPodWorkspaceTemplateList) DeepCopy() *DevPodWorkspaceTemplateList { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevsyWorkspaceTemplateList. +func (in *DevsyWorkspaceTemplateList) DeepCopy() *DevsyWorkspaceTemplateList { if in == nil { return nil } - out := new(DevPodWorkspaceTemplateList) + out := new(DevsyWorkspaceTemplateList) in.DeepCopyInto(out) return out } // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *DevPodWorkspaceTemplateList) DeepCopyObject() runtime.Object { +func (in *DevsyWorkspaceTemplateList) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -3466,35 +3559,35 @@ func (in *DevPodWorkspaceTemplateList) DeepCopyObject() runtime.Object { } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *DevPodWorkspaceTemplateSpec) DeepCopyInto(out *DevPodWorkspaceTemplateSpec) { +func (in *DevsyWorkspaceTemplateSpec) DeepCopyInto(out *DevsyWorkspaceTemplateSpec) { *out = *in - in.DevPodWorkspaceTemplateSpec.DeepCopyInto(&out.DevPodWorkspaceTemplateSpec) + in.DevsyWorkspaceTemplateSpec.DeepCopyInto(&out.DevsyWorkspaceTemplateSpec) return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevPodWorkspaceTemplateSpec. -func (in *DevPodWorkspaceTemplateSpec) DeepCopy() *DevPodWorkspaceTemplateSpec { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevsyWorkspaceTemplateSpec. +func (in *DevsyWorkspaceTemplateSpec) DeepCopy() *DevsyWorkspaceTemplateSpec { if in == nil { return nil } - out := new(DevPodWorkspaceTemplateSpec) + out := new(DevsyWorkspaceTemplateSpec) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *DevPodWorkspaceTemplateStatus) DeepCopyInto(out *DevPodWorkspaceTemplateStatus) { +func (in *DevsyWorkspaceTemplateStatus) DeepCopyInto(out *DevsyWorkspaceTemplateStatus) { *out = *in - out.DevPodWorkspaceTemplateStatus = in.DevPodWorkspaceTemplateStatus + out.DevsyWorkspaceTemplateStatus = in.DevsyWorkspaceTemplateStatus return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevPodWorkspaceTemplateStatus. -func (in *DevPodWorkspaceTemplateStatus) DeepCopy() *DevPodWorkspaceTemplateStatus { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevsyWorkspaceTemplateStatus. +func (in *DevsyWorkspaceTemplateStatus) DeepCopy() *DevsyWorkspaceTemplateStatus { if in == nil { return nil } - out := new(DevPodWorkspaceTemplateStatus) + out := new(DevsyWorkspaceTemplateStatus) in.DeepCopyInto(out) return out } @@ -4349,99 +4442,6 @@ func (in *LicenseTokenStatus) DeepCopy() *LicenseTokenStatus { return out } -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *DevsyUpgrade) DeepCopyInto(out *DevsyUpgrade) { - *out = *in - out.TypeMeta = in.TypeMeta - in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) - out.Spec = in.Spec - out.Status = in.Status - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevsyUpgrade. -func (in *DevsyUpgrade) DeepCopy() *DevsyUpgrade { - if in == nil { - return nil - } - out := new(DevsyUpgrade) - in.DeepCopyInto(out) - return out -} - -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *DevsyUpgrade) DeepCopyObject() runtime.Object { - if c := in.DeepCopy(); c != nil { - return c - } - return nil -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *DevsyUpgradeList) DeepCopyInto(out *DevsyUpgradeList) { - *out = *in - out.TypeMeta = in.TypeMeta - in.ListMeta.DeepCopyInto(&out.ListMeta) - if in.Items != nil { - in, out := &in.Items, &out.Items - *out = make([]DevsyUpgrade, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevsyUpgradeList. -func (in *DevsyUpgradeList) DeepCopy() *DevsyUpgradeList { - if in == nil { - return nil - } - out := new(DevsyUpgradeList) - in.DeepCopyInto(out) - return out -} - -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *DevsyUpgradeList) DeepCopyObject() runtime.Object { - if c := in.DeepCopy(); c != nil { - return c - } - return nil -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *DevsyUpgradeSpec) DeepCopyInto(out *DevsyUpgradeSpec) { - *out = *in - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevsyUpgradeSpec. -func (in *DevsyUpgradeSpec) DeepCopy() *DevsyUpgradeSpec { - if in == nil { - return nil - } - out := new(DevsyUpgradeSpec) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *DevsyUpgradeStatus) DeepCopyInto(out *DevsyUpgradeStatus) { - *out = *in - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevsyUpgradeStatus. -func (in *DevsyUpgradeStatus) DeepCopy() *DevsyUpgradeStatus { - if in == nil { - return nil - } - out := new(DevsyUpgradeStatus) - in.DeepCopyInto(out) - return out -} - // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *MaintenanceWindow) DeepCopyInto(out *MaintenanceWindow) { *out = *in @@ -6320,7 +6320,7 @@ func (in *ProjectSecretStatus) DeepCopyInto(out *ProjectSecretStatus) { *out = *in if in.Conditions != nil { in, out := &in.Conditions, &out.Conditions - *out = make(loftstoragev1.Conditions, len(*in)) + *out = make(devsystoragev1.Conditions, len(*in)) for i := range *in { (*in)[i].DeepCopyInto(&(*out)[i]) } @@ -6391,23 +6391,23 @@ func (in *ProjectTemplates) DeepCopyInto(out *ProjectTemplates) { (*in)[i].DeepCopyInto(&(*out)[i]) } } - if in.DevPodWorkspaceTemplates != nil { - in, out := &in.DevPodWorkspaceTemplates, &out.DevPodWorkspaceTemplates - *out = make([]DevPodWorkspaceTemplate, len(*in)) + if in.DevsyWorkspaceTemplates != nil { + in, out := &in.DevsyWorkspaceTemplates, &out.DevsyWorkspaceTemplates + *out = make([]DevsyWorkspaceTemplate, len(*in)) for i := range *in { (*in)[i].DeepCopyInto(&(*out)[i]) } } - if in.DevPodEnvironmentTemplates != nil { - in, out := &in.DevPodEnvironmentTemplates, &out.DevPodEnvironmentTemplates - *out = make([]DevPodEnvironmentTemplate, len(*in)) + if in.DevsyEnvironmentTemplates != nil { + in, out := &in.DevsyEnvironmentTemplates, &out.DevsyEnvironmentTemplates + *out = make([]DevsyEnvironmentTemplate, len(*in)) for i := range *in { (*in)[i].DeepCopyInto(&(*out)[i]) } } - if in.DevPodWorkspacePresets != nil { - in, out := &in.DevPodWorkspacePresets, &out.DevPodWorkspacePresets - *out = make([]DevPodWorkspacePreset, len(*in)) + if in.DevsyWorkspacePresets != nil { + in, out := &in.DevsyWorkspacePresets, &out.DevsyWorkspacePresets + *out = make([]DevsyWorkspacePreset, len(*in)) for i := range *in { (*in)[i].DeepCopyInto(&(*out)[i]) } diff --git a/pkg/apis/management/v1/zz_generated.defaults.go b/pkg/apis/management/v1/zz_generated.defaults.go index fd9afaf..beef912 100644 --- a/pkg/apis/management/v1/zz_generated.defaults.go +++ b/pkg/apis/management/v1/zz_generated.defaults.go @@ -14,31 +14,27 @@ import ( // Public to allow building arbitrary schemes. // All generated defaulters are covering - they call all nested defaulters. func RegisterDefaults(scheme *runtime.Scheme) error { - scheme.AddTypeDefaultingFunc(&DevPodWorkspaceInstance{}, func(obj interface{}) { SetObjectDefaults_DevPodWorkspaceInstance(obj.(*DevPodWorkspaceInstance)) }) - scheme.AddTypeDefaultingFunc(&DevPodWorkspaceInstanceList{}, func(obj interface{}) { - SetObjectDefaults_DevPodWorkspaceInstanceList(obj.(*DevPodWorkspaceInstanceList)) + scheme.AddTypeDefaultingFunc(&DevsyWorkspaceInstance{}, func(obj interface{}) { SetObjectDefaults_DevsyWorkspaceInstance(obj.(*DevsyWorkspaceInstance)) }) + scheme.AddTypeDefaultingFunc(&DevsyWorkspaceInstanceList{}, func(obj interface{}) { SetObjectDefaults_DevsyWorkspaceInstanceList(obj.(*DevsyWorkspaceInstanceList)) }) + scheme.AddTypeDefaultingFunc(&DevsyWorkspaceInstanceTroubleshoot{}, func(obj interface{}) { + SetObjectDefaults_DevsyWorkspaceInstanceTroubleshoot(obj.(*DevsyWorkspaceInstanceTroubleshoot)) }) - scheme.AddTypeDefaultingFunc(&DevPodWorkspaceInstanceTroubleshoot{}, func(obj interface{}) { - SetObjectDefaults_DevPodWorkspaceInstanceTroubleshoot(obj.(*DevPodWorkspaceInstanceTroubleshoot)) - }) - scheme.AddTypeDefaultingFunc(&DevPodWorkspaceInstanceTroubleshootList{}, func(obj interface{}) { - SetObjectDefaults_DevPodWorkspaceInstanceTroubleshootList(obj.(*DevPodWorkspaceInstanceTroubleshootList)) - }) - scheme.AddTypeDefaultingFunc(&DevPodWorkspaceTemplate{}, func(obj interface{}) { SetObjectDefaults_DevPodWorkspaceTemplate(obj.(*DevPodWorkspaceTemplate)) }) - scheme.AddTypeDefaultingFunc(&DevPodWorkspaceTemplateList{}, func(obj interface{}) { - SetObjectDefaults_DevPodWorkspaceTemplateList(obj.(*DevPodWorkspaceTemplateList)) + scheme.AddTypeDefaultingFunc(&DevsyWorkspaceInstanceTroubleshootList{}, func(obj interface{}) { + SetObjectDefaults_DevsyWorkspaceInstanceTroubleshootList(obj.(*DevsyWorkspaceInstanceTroubleshootList)) }) + scheme.AddTypeDefaultingFunc(&DevsyWorkspaceTemplate{}, func(obj interface{}) { SetObjectDefaults_DevsyWorkspaceTemplate(obj.(*DevsyWorkspaceTemplate)) }) + scheme.AddTypeDefaultingFunc(&DevsyWorkspaceTemplateList{}, func(obj interface{}) { SetObjectDefaults_DevsyWorkspaceTemplateList(obj.(*DevsyWorkspaceTemplateList)) }) scheme.AddTypeDefaultingFunc(&ProjectTemplates{}, func(obj interface{}) { SetObjectDefaults_ProjectTemplates(obj.(*ProjectTemplates)) }) scheme.AddTypeDefaultingFunc(&ProjectTemplatesList{}, func(obj interface{}) { SetObjectDefaults_ProjectTemplatesList(obj.(*ProjectTemplatesList)) }) return nil } -func SetObjectDefaults_DevPodWorkspaceInstance(in *DevPodWorkspaceInstance) { - if in.Spec.DevPodWorkspaceInstanceSpec.Template != nil { - if in.Spec.DevPodWorkspaceInstanceSpec.Template.Kubernetes != nil { - if in.Spec.DevPodWorkspaceInstanceSpec.Template.Kubernetes.Pod != nil { - for i := range in.Spec.DevPodWorkspaceInstanceSpec.Template.Kubernetes.Pod.Spec.Volumes { - a := &in.Spec.DevPodWorkspaceInstanceSpec.Template.Kubernetes.Pod.Spec.Volumes[i] +func SetObjectDefaults_DevsyWorkspaceInstance(in *DevsyWorkspaceInstance) { + if in.Spec.DevsyWorkspaceInstanceSpec.Template != nil { + if in.Spec.DevsyWorkspaceInstanceSpec.Template.Kubernetes != nil { + if in.Spec.DevsyWorkspaceInstanceSpec.Template.Kubernetes.Pod != nil { + for i := range in.Spec.DevsyWorkspaceInstanceSpec.Template.Kubernetes.Pod.Spec.Volumes { + a := &in.Spec.DevsyWorkspaceInstanceSpec.Template.Kubernetes.Pod.Spec.Volumes[i] if a.VolumeSource.ISCSI != nil { if a.VolumeSource.ISCSI.ISCSIInterface == "" { a.VolumeSource.ISCSI.ISCSIInterface = "default" @@ -82,14 +78,25 @@ func SetObjectDefaults_DevPodWorkspaceInstance(in *DevPodWorkspaceInstance) { } } } - for i := range in.Spec.DevPodWorkspaceInstanceSpec.Template.Kubernetes.Pod.Spec.InitContainers { - a := &in.Spec.DevPodWorkspaceInstanceSpec.Template.Kubernetes.Pod.Spec.InitContainers[i] + for i := range in.Spec.DevsyWorkspaceInstanceSpec.Template.Kubernetes.Pod.Spec.InitContainers { + a := &in.Spec.DevsyWorkspaceInstanceSpec.Template.Kubernetes.Pod.Spec.InitContainers[i] for j := range a.Ports { b := &a.Ports[j] if b.Protocol == "" { b.Protocol = "TCP" } } + for j := range a.Env { + b := &a.Env[j] + if b.ValueFrom != nil { + if b.ValueFrom.FileKeyRef != nil { + if b.ValueFrom.FileKeyRef.Optional == nil { + var ptrVar1 bool = false + b.ValueFrom.FileKeyRef.Optional = &ptrVar1 + } + } + } + } if a.LivenessProbe != nil { if a.LivenessProbe.ProbeHandler.GRPC != nil { if a.LivenessProbe.ProbeHandler.GRPC.Service == nil { @@ -115,14 +122,25 @@ func SetObjectDefaults_DevPodWorkspaceInstance(in *DevPodWorkspaceInstance) { } } } - for i := range in.Spec.DevPodWorkspaceInstanceSpec.Template.Kubernetes.Pod.Spec.Containers { - a := &in.Spec.DevPodWorkspaceInstanceSpec.Template.Kubernetes.Pod.Spec.Containers[i] + for i := range in.Spec.DevsyWorkspaceInstanceSpec.Template.Kubernetes.Pod.Spec.Containers { + a := &in.Spec.DevsyWorkspaceInstanceSpec.Template.Kubernetes.Pod.Spec.Containers[i] for j := range a.Ports { b := &a.Ports[j] if b.Protocol == "" { b.Protocol = "TCP" } } + for j := range a.Env { + b := &a.Env[j] + if b.ValueFrom != nil { + if b.ValueFrom.FileKeyRef != nil { + if b.ValueFrom.FileKeyRef.Optional == nil { + var ptrVar1 bool = false + b.ValueFrom.FileKeyRef.Optional = &ptrVar1 + } + } + } + } if a.LivenessProbe != nil { if a.LivenessProbe.ProbeHandler.GRPC != nil { if a.LivenessProbe.ProbeHandler.GRPC.Service == nil { @@ -151,11 +169,11 @@ func SetObjectDefaults_DevPodWorkspaceInstance(in *DevPodWorkspaceInstance) { } } } - if in.Status.DevPodWorkspaceInstanceStatus.Instance != nil { - if in.Status.DevPodWorkspaceInstanceStatus.Instance.Kubernetes != nil { - if in.Status.DevPodWorkspaceInstanceStatus.Instance.Kubernetes.Pod != nil { - for i := range in.Status.DevPodWorkspaceInstanceStatus.Instance.Kubernetes.Pod.Spec.Volumes { - a := &in.Status.DevPodWorkspaceInstanceStatus.Instance.Kubernetes.Pod.Spec.Volumes[i] + if in.Status.DevsyWorkspaceInstanceStatus.Instance != nil { + if in.Status.DevsyWorkspaceInstanceStatus.Instance.Kubernetes != nil { + if in.Status.DevsyWorkspaceInstanceStatus.Instance.Kubernetes.Pod != nil { + for i := range in.Status.DevsyWorkspaceInstanceStatus.Instance.Kubernetes.Pod.Spec.Volumes { + a := &in.Status.DevsyWorkspaceInstanceStatus.Instance.Kubernetes.Pod.Spec.Volumes[i] if a.VolumeSource.ISCSI != nil { if a.VolumeSource.ISCSI.ISCSIInterface == "" { a.VolumeSource.ISCSI.ISCSIInterface = "default" @@ -199,14 +217,25 @@ func SetObjectDefaults_DevPodWorkspaceInstance(in *DevPodWorkspaceInstance) { } } } - for i := range in.Status.DevPodWorkspaceInstanceStatus.Instance.Kubernetes.Pod.Spec.InitContainers { - a := &in.Status.DevPodWorkspaceInstanceStatus.Instance.Kubernetes.Pod.Spec.InitContainers[i] + for i := range in.Status.DevsyWorkspaceInstanceStatus.Instance.Kubernetes.Pod.Spec.InitContainers { + a := &in.Status.DevsyWorkspaceInstanceStatus.Instance.Kubernetes.Pod.Spec.InitContainers[i] for j := range a.Ports { b := &a.Ports[j] if b.Protocol == "" { b.Protocol = "TCP" } } + for j := range a.Env { + b := &a.Env[j] + if b.ValueFrom != nil { + if b.ValueFrom.FileKeyRef != nil { + if b.ValueFrom.FileKeyRef.Optional == nil { + var ptrVar1 bool = false + b.ValueFrom.FileKeyRef.Optional = &ptrVar1 + } + } + } + } if a.LivenessProbe != nil { if a.LivenessProbe.ProbeHandler.GRPC != nil { if a.LivenessProbe.ProbeHandler.GRPC.Service == nil { @@ -232,14 +261,25 @@ func SetObjectDefaults_DevPodWorkspaceInstance(in *DevPodWorkspaceInstance) { } } } - for i := range in.Status.DevPodWorkspaceInstanceStatus.Instance.Kubernetes.Pod.Spec.Containers { - a := &in.Status.DevPodWorkspaceInstanceStatus.Instance.Kubernetes.Pod.Spec.Containers[i] + for i := range in.Status.DevsyWorkspaceInstanceStatus.Instance.Kubernetes.Pod.Spec.Containers { + a := &in.Status.DevsyWorkspaceInstanceStatus.Instance.Kubernetes.Pod.Spec.Containers[i] for j := range a.Ports { b := &a.Ports[j] if b.Protocol == "" { b.Protocol = "TCP" } } + for j := range a.Env { + b := &a.Env[j] + if b.ValueFrom != nil { + if b.ValueFrom.FileKeyRef != nil { + if b.ValueFrom.FileKeyRef.Optional == nil { + var ptrVar1 bool = false + b.ValueFrom.FileKeyRef.Optional = &ptrVar1 + } + } + } + } if a.LivenessProbe != nil { if a.LivenessProbe.ProbeHandler.GRPC != nil { if a.LivenessProbe.ProbeHandler.GRPC.Service == nil { @@ -270,16 +310,16 @@ func SetObjectDefaults_DevPodWorkspaceInstance(in *DevPodWorkspaceInstance) { } } -func SetObjectDefaults_DevPodWorkspaceInstanceList(in *DevPodWorkspaceInstanceList) { +func SetObjectDefaults_DevsyWorkspaceInstanceList(in *DevsyWorkspaceInstanceList) { for i := range in.Items { a := &in.Items[i] - SetObjectDefaults_DevPodWorkspaceInstance(a) + SetObjectDefaults_DevsyWorkspaceInstance(a) } } -func SetObjectDefaults_DevPodWorkspaceInstanceTroubleshoot(in *DevPodWorkspaceInstanceTroubleshoot) { +func SetObjectDefaults_DevsyWorkspaceInstanceTroubleshoot(in *DevsyWorkspaceInstanceTroubleshoot) { if in.Workspace != nil { - SetObjectDefaults_DevPodWorkspaceInstance(in.Workspace) + SetObjectDefaults_DevsyWorkspaceInstance(in.Workspace) } if in.Template != nil { if in.Template.Spec.Template.Kubernetes != nil { @@ -337,6 +377,17 @@ func SetObjectDefaults_DevPodWorkspaceInstanceTroubleshoot(in *DevPodWorkspaceIn b.Protocol = "TCP" } } + for j := range a.Env { + b := &a.Env[j] + if b.ValueFrom != nil { + if b.ValueFrom.FileKeyRef != nil { + if b.ValueFrom.FileKeyRef.Optional == nil { + var ptrVar1 bool = false + b.ValueFrom.FileKeyRef.Optional = &ptrVar1 + } + } + } + } if a.LivenessProbe != nil { if a.LivenessProbe.ProbeHandler.GRPC != nil { if a.LivenessProbe.ProbeHandler.GRPC.Service == nil { @@ -370,6 +421,17 @@ func SetObjectDefaults_DevPodWorkspaceInstanceTroubleshoot(in *DevPodWorkspaceIn b.Protocol = "TCP" } } + for j := range a.Env { + b := &a.Env[j] + if b.ValueFrom != nil { + if b.ValueFrom.FileKeyRef != nil { + if b.ValueFrom.FileKeyRef.Optional == nil { + var ptrVar1 bool = false + b.ValueFrom.FileKeyRef.Optional = &ptrVar1 + } + } + } + } if a.LivenessProbe != nil { if a.LivenessProbe.ProbeHandler.GRPC != nil { if a.LivenessProbe.ProbeHandler.GRPC.Service == nil { @@ -454,6 +516,17 @@ func SetObjectDefaults_DevPodWorkspaceInstanceTroubleshoot(in *DevPodWorkspaceIn c.Protocol = "TCP" } } + for k := range b.Env { + c := &b.Env[k] + if c.ValueFrom != nil { + if c.ValueFrom.FileKeyRef != nil { + if c.ValueFrom.FileKeyRef.Optional == nil { + var ptrVar1 bool = false + c.ValueFrom.FileKeyRef.Optional = &ptrVar1 + } + } + } + } if b.LivenessProbe != nil { if b.LivenessProbe.ProbeHandler.GRPC != nil { if b.LivenessProbe.ProbeHandler.GRPC.Service == nil { @@ -487,6 +560,17 @@ func SetObjectDefaults_DevPodWorkspaceInstanceTroubleshoot(in *DevPodWorkspaceIn c.Protocol = "TCP" } } + for k := range b.Env { + c := &b.Env[k] + if c.ValueFrom != nil { + if c.ValueFrom.FileKeyRef != nil { + if c.ValueFrom.FileKeyRef.Optional == nil { + var ptrVar1 bool = false + c.ValueFrom.FileKeyRef.Optional = &ptrVar1 + } + } + } + } if b.LivenessProbe != nil { if b.LivenessProbe.ProbeHandler.GRPC != nil { if b.LivenessProbe.ProbeHandler.GRPC.Service == nil { @@ -571,6 +655,17 @@ func SetObjectDefaults_DevPodWorkspaceInstanceTroubleshoot(in *DevPodWorkspaceIn c.Protocol = "TCP" } } + for k := range b.Env { + c := &b.Env[k] + if c.ValueFrom != nil { + if c.ValueFrom.FileKeyRef != nil { + if c.ValueFrom.FileKeyRef.Optional == nil { + var ptrVar1 bool = false + c.ValueFrom.FileKeyRef.Optional = &ptrVar1 + } + } + } + } if b.LivenessProbe != nil { if b.LivenessProbe.ProbeHandler.GRPC != nil { if b.LivenessProbe.ProbeHandler.GRPC.Service == nil { @@ -604,6 +699,17 @@ func SetObjectDefaults_DevPodWorkspaceInstanceTroubleshoot(in *DevPodWorkspaceIn c.Protocol = "TCP" } } + for k := range b.Env { + c := &b.Env[k] + if c.ValueFrom != nil { + if c.ValueFrom.FileKeyRef != nil { + if c.ValueFrom.FileKeyRef.Optional == nil { + var ptrVar1 bool = false + c.ValueFrom.FileKeyRef.Optional = &ptrVar1 + } + } + } + } if b.LivenessProbe != nil { if b.LivenessProbe.ProbeHandler.GRPC != nil { if b.LivenessProbe.ProbeHandler.GRPC.Service == nil { @@ -637,6 +743,17 @@ func SetObjectDefaults_DevPodWorkspaceInstanceTroubleshoot(in *DevPodWorkspaceIn c.Protocol = "TCP" } } + for k := range b.EphemeralContainerCommon.Env { + c := &b.EphemeralContainerCommon.Env[k] + if c.ValueFrom != nil { + if c.ValueFrom.FileKeyRef != nil { + if c.ValueFrom.FileKeyRef.Optional == nil { + var ptrVar1 bool = false + c.ValueFrom.FileKeyRef.Optional = &ptrVar1 + } + } + } + } if b.EphemeralContainerCommon.LivenessProbe != nil { if b.EphemeralContainerCommon.LivenessProbe.ProbeHandler.GRPC != nil { if b.EphemeralContainerCommon.LivenessProbe.ProbeHandler.GRPC.Service == nil { @@ -665,18 +782,18 @@ func SetObjectDefaults_DevPodWorkspaceInstanceTroubleshoot(in *DevPodWorkspaceIn } } -func SetObjectDefaults_DevPodWorkspaceInstanceTroubleshootList(in *DevPodWorkspaceInstanceTroubleshootList) { +func SetObjectDefaults_DevsyWorkspaceInstanceTroubleshootList(in *DevsyWorkspaceInstanceTroubleshootList) { for i := range in.Items { a := &in.Items[i] - SetObjectDefaults_DevPodWorkspaceInstanceTroubleshoot(a) + SetObjectDefaults_DevsyWorkspaceInstanceTroubleshoot(a) } } -func SetObjectDefaults_DevPodWorkspaceTemplate(in *DevPodWorkspaceTemplate) { - if in.Spec.DevPodWorkspaceTemplateSpec.Template.Kubernetes != nil { - if in.Spec.DevPodWorkspaceTemplateSpec.Template.Kubernetes.Pod != nil { - for i := range in.Spec.DevPodWorkspaceTemplateSpec.Template.Kubernetes.Pod.Spec.Volumes { - a := &in.Spec.DevPodWorkspaceTemplateSpec.Template.Kubernetes.Pod.Spec.Volumes[i] +func SetObjectDefaults_DevsyWorkspaceTemplate(in *DevsyWorkspaceTemplate) { + if in.Spec.DevsyWorkspaceTemplateSpec.Template.Kubernetes != nil { + if in.Spec.DevsyWorkspaceTemplateSpec.Template.Kubernetes.Pod != nil { + for i := range in.Spec.DevsyWorkspaceTemplateSpec.Template.Kubernetes.Pod.Spec.Volumes { + a := &in.Spec.DevsyWorkspaceTemplateSpec.Template.Kubernetes.Pod.Spec.Volumes[i] if a.VolumeSource.ISCSI != nil { if a.VolumeSource.ISCSI.ISCSIInterface == "" { a.VolumeSource.ISCSI.ISCSIInterface = "default" @@ -720,14 +837,25 @@ func SetObjectDefaults_DevPodWorkspaceTemplate(in *DevPodWorkspaceTemplate) { } } } - for i := range in.Spec.DevPodWorkspaceTemplateSpec.Template.Kubernetes.Pod.Spec.InitContainers { - a := &in.Spec.DevPodWorkspaceTemplateSpec.Template.Kubernetes.Pod.Spec.InitContainers[i] + for i := range in.Spec.DevsyWorkspaceTemplateSpec.Template.Kubernetes.Pod.Spec.InitContainers { + a := &in.Spec.DevsyWorkspaceTemplateSpec.Template.Kubernetes.Pod.Spec.InitContainers[i] for j := range a.Ports { b := &a.Ports[j] if b.Protocol == "" { b.Protocol = "TCP" } } + for j := range a.Env { + b := &a.Env[j] + if b.ValueFrom != nil { + if b.ValueFrom.FileKeyRef != nil { + if b.ValueFrom.FileKeyRef.Optional == nil { + var ptrVar1 bool = false + b.ValueFrom.FileKeyRef.Optional = &ptrVar1 + } + } + } + } if a.LivenessProbe != nil { if a.LivenessProbe.ProbeHandler.GRPC != nil { if a.LivenessProbe.ProbeHandler.GRPC.Service == nil { @@ -753,14 +881,25 @@ func SetObjectDefaults_DevPodWorkspaceTemplate(in *DevPodWorkspaceTemplate) { } } } - for i := range in.Spec.DevPodWorkspaceTemplateSpec.Template.Kubernetes.Pod.Spec.Containers { - a := &in.Spec.DevPodWorkspaceTemplateSpec.Template.Kubernetes.Pod.Spec.Containers[i] + for i := range in.Spec.DevsyWorkspaceTemplateSpec.Template.Kubernetes.Pod.Spec.Containers { + a := &in.Spec.DevsyWorkspaceTemplateSpec.Template.Kubernetes.Pod.Spec.Containers[i] for j := range a.Ports { b := &a.Ports[j] if b.Protocol == "" { b.Protocol = "TCP" } } + for j := range a.Env { + b := &a.Env[j] + if b.ValueFrom != nil { + if b.ValueFrom.FileKeyRef != nil { + if b.ValueFrom.FileKeyRef.Optional == nil { + var ptrVar1 bool = false + b.ValueFrom.FileKeyRef.Optional = &ptrVar1 + } + } + } + } if a.LivenessProbe != nil { if a.LivenessProbe.ProbeHandler.GRPC != nil { if a.LivenessProbe.ProbeHandler.GRPC.Service == nil { @@ -788,8 +927,8 @@ func SetObjectDefaults_DevPodWorkspaceTemplate(in *DevPodWorkspaceTemplate) { } } } - for i := range in.Spec.DevPodWorkspaceTemplateSpec.Versions { - a := &in.Spec.DevPodWorkspaceTemplateSpec.Versions[i] + for i := range in.Spec.DevsyWorkspaceTemplateSpec.Versions { + a := &in.Spec.DevsyWorkspaceTemplateSpec.Versions[i] if a.Template.Kubernetes != nil { if a.Template.Kubernetes.Pod != nil { for j := range a.Template.Kubernetes.Pod.Spec.Volumes { @@ -845,6 +984,17 @@ func SetObjectDefaults_DevPodWorkspaceTemplate(in *DevPodWorkspaceTemplate) { c.Protocol = "TCP" } } + for k := range b.Env { + c := &b.Env[k] + if c.ValueFrom != nil { + if c.ValueFrom.FileKeyRef != nil { + if c.ValueFrom.FileKeyRef.Optional == nil { + var ptrVar1 bool = false + c.ValueFrom.FileKeyRef.Optional = &ptrVar1 + } + } + } + } if b.LivenessProbe != nil { if b.LivenessProbe.ProbeHandler.GRPC != nil { if b.LivenessProbe.ProbeHandler.GRPC.Service == nil { @@ -878,6 +1028,17 @@ func SetObjectDefaults_DevPodWorkspaceTemplate(in *DevPodWorkspaceTemplate) { c.Protocol = "TCP" } } + for k := range b.Env { + c := &b.Env[k] + if c.ValueFrom != nil { + if c.ValueFrom.FileKeyRef != nil { + if c.ValueFrom.FileKeyRef.Optional == nil { + var ptrVar1 bool = false + c.ValueFrom.FileKeyRef.Optional = &ptrVar1 + } + } + } + } if b.LivenessProbe != nil { if b.LivenessProbe.ProbeHandler.GRPC != nil { if b.LivenessProbe.ProbeHandler.GRPC.Service == nil { @@ -908,17 +1069,17 @@ func SetObjectDefaults_DevPodWorkspaceTemplate(in *DevPodWorkspaceTemplate) { } } -func SetObjectDefaults_DevPodWorkspaceTemplateList(in *DevPodWorkspaceTemplateList) { +func SetObjectDefaults_DevsyWorkspaceTemplateList(in *DevsyWorkspaceTemplateList) { for i := range in.Items { a := &in.Items[i] - SetObjectDefaults_DevPodWorkspaceTemplate(a) + SetObjectDefaults_DevsyWorkspaceTemplate(a) } } func SetObjectDefaults_ProjectTemplates(in *ProjectTemplates) { - for i := range in.DevPodWorkspaceTemplates { - a := &in.DevPodWorkspaceTemplates[i] - SetObjectDefaults_DevPodWorkspaceTemplate(a) + for i := range in.DevsyWorkspaceTemplates { + a := &in.DevsyWorkspaceTemplates[i] + SetObjectDefaults_DevsyWorkspaceTemplate(a) } } diff --git a/pkg/apis/management/zz_generated.api.register.go b/pkg/apis/management/zz_generated.api.register.go index 9b3096f..5d9867b 100644 --- a/pkg/apis/management/zz_generated.api.register.go +++ b/pkg/apis/management/zz_generated.api.register.go @@ -1,4 +1,4 @@ -// Code generated by generator. DO NOT EDIT. +// Code generated by generate. DO NOT EDIT. package management @@ -12,8 +12,8 @@ import ( auditv1 "github.com/devsy-org/api/pkg/apis/audit/v1" storagev1 "github.com/devsy-org/api/pkg/apis/storage/v1" uiv1 "github.com/devsy-org/api/pkg/apis/ui/v1" - "github.com/devsy-org/api/pkg/managerfactory" "github.com/devsy-org/apiserver/pkg/builders" + "github.com/devsy-org/apiserver/pkg/managerfactory" authorizationv1 "k8s.io/api/authorization/v1" corev1 "k8s.io/api/core/v1" rbacv1 "k8s.io/api/rbac/v1" @@ -132,47 +132,57 @@ var ( NewDatabaseConnectorREST = func(getter generic.RESTOptionsGetter) rest.Storage { return NewDatabaseConnectorRESTFunc(Factory) } - NewDatabaseConnectorRESTFunc NewRESTFunc - ManagementDevPodEnvironmentTemplateStorage = builders.NewApiResourceWithStorage( // Resource status endpoint - InternalDevPodEnvironmentTemplate, - func() runtime.Object { return &DevPodEnvironmentTemplate{} }, // Register versioned resource - func() runtime.Object { return &DevPodEnvironmentTemplateList{} }, // Register versioned resource list - NewDevPodEnvironmentTemplateREST, - ) - NewDevPodEnvironmentTemplateREST = func(getter generic.RESTOptionsGetter) rest.Storage { - return NewDevPodEnvironmentTemplateRESTFunc(Factory) - } - NewDevPodEnvironmentTemplateRESTFunc NewRESTFunc - ManagementDevPodWorkspaceInstanceStorage = builders.NewApiResourceWithStorage( // Resource status endpoint - InternalDevPodWorkspaceInstance, - func() runtime.Object { return &DevPodWorkspaceInstance{} }, // Register versioned resource - func() runtime.Object { return &DevPodWorkspaceInstanceList{} }, // Register versioned resource list - NewDevPodWorkspaceInstanceREST, - ) - NewDevPodWorkspaceInstanceREST = func(getter generic.RESTOptionsGetter) rest.Storage { - return NewDevPodWorkspaceInstanceRESTFunc(Factory) - } - NewDevPodWorkspaceInstanceRESTFunc NewRESTFunc - ManagementDevPodWorkspacePresetStorage = builders.NewApiResourceWithStorage( // Resource status endpoint - InternalDevPodWorkspacePreset, - func() runtime.Object { return &DevPodWorkspacePreset{} }, // Register versioned resource - func() runtime.Object { return &DevPodWorkspacePresetList{} }, // Register versioned resource list - NewDevPodWorkspacePresetREST, - ) - NewDevPodWorkspacePresetREST = func(getter generic.RESTOptionsGetter) rest.Storage { - return NewDevPodWorkspacePresetRESTFunc(Factory) - } - NewDevPodWorkspacePresetRESTFunc NewRESTFunc - ManagementDevPodWorkspaceTemplateStorage = builders.NewApiResourceWithStorage( // Resource status endpoint - InternalDevPodWorkspaceTemplate, - func() runtime.Object { return &DevPodWorkspaceTemplate{} }, // Register versioned resource - func() runtime.Object { return &DevPodWorkspaceTemplateList{} }, // Register versioned resource list - NewDevPodWorkspaceTemplateREST, - ) - NewDevPodWorkspaceTemplateREST = func(getter generic.RESTOptionsGetter) rest.Storage { - return NewDevPodWorkspaceTemplateRESTFunc(Factory) - } - NewDevPodWorkspaceTemplateRESTFunc NewRESTFunc + NewDatabaseConnectorRESTFunc NewRESTFunc + ManagementDevsyEnvironmentTemplateStorage = builders.NewApiResourceWithStorage( // Resource status endpoint + InternalDevsyEnvironmentTemplate, + func() runtime.Object { return &DevsyEnvironmentTemplate{} }, // Register versioned resource + func() runtime.Object { return &DevsyEnvironmentTemplateList{} }, // Register versioned resource list + NewDevsyEnvironmentTemplateREST, + ) + NewDevsyEnvironmentTemplateREST = func(getter generic.RESTOptionsGetter) rest.Storage { + return NewDevsyEnvironmentTemplateRESTFunc(Factory) + } + NewDevsyEnvironmentTemplateRESTFunc NewRESTFunc + ManagementDevsyUpgradeStorage = builders.NewApiResourceWithStorage( // Resource status endpoint + InternalDevsyUpgrade, + func() runtime.Object { return &DevsyUpgrade{} }, // Register versioned resource + func() runtime.Object { return &DevsyUpgradeList{} }, // Register versioned resource list + NewDevsyUpgradeREST, + ) + NewDevsyUpgradeREST = func(getter generic.RESTOptionsGetter) rest.Storage { + return NewDevsyUpgradeRESTFunc(Factory) + } + NewDevsyUpgradeRESTFunc NewRESTFunc + ManagementDevsyWorkspaceInstanceStorage = builders.NewApiResourceWithStorage( // Resource status endpoint + InternalDevsyWorkspaceInstance, + func() runtime.Object { return &DevsyWorkspaceInstance{} }, // Register versioned resource + func() runtime.Object { return &DevsyWorkspaceInstanceList{} }, // Register versioned resource list + NewDevsyWorkspaceInstanceREST, + ) + NewDevsyWorkspaceInstanceREST = func(getter generic.RESTOptionsGetter) rest.Storage { + return NewDevsyWorkspaceInstanceRESTFunc(Factory) + } + NewDevsyWorkspaceInstanceRESTFunc NewRESTFunc + ManagementDevsyWorkspacePresetStorage = builders.NewApiResourceWithStorage( // Resource status endpoint + InternalDevsyWorkspacePreset, + func() runtime.Object { return &DevsyWorkspacePreset{} }, // Register versioned resource + func() runtime.Object { return &DevsyWorkspacePresetList{} }, // Register versioned resource list + NewDevsyWorkspacePresetREST, + ) + NewDevsyWorkspacePresetREST = func(getter generic.RESTOptionsGetter) rest.Storage { + return NewDevsyWorkspacePresetRESTFunc(Factory) + } + NewDevsyWorkspacePresetRESTFunc NewRESTFunc + ManagementDevsyWorkspaceTemplateStorage = builders.NewApiResourceWithStorage( // Resource status endpoint + InternalDevsyWorkspaceTemplate, + func() runtime.Object { return &DevsyWorkspaceTemplate{} }, // Register versioned resource + func() runtime.Object { return &DevsyWorkspaceTemplateList{} }, // Register versioned resource list + NewDevsyWorkspaceTemplateREST, + ) + NewDevsyWorkspaceTemplateREST = func(getter generic.RESTOptionsGetter) rest.Storage { + return NewDevsyWorkspaceTemplateRESTFunc(Factory) + } + NewDevsyWorkspaceTemplateRESTFunc NewRESTFunc ManagementDirectClusterEndpointTokenStorage = builders.NewApiResourceWithStorage( // Resource status endpoint InternalDirectClusterEndpointToken, func() runtime.Object { return &DirectClusterEndpointToken{} }, // Register versioned resource @@ -246,17 +256,7 @@ var ( NewLicenseTokenREST = func(getter generic.RESTOptionsGetter) rest.Storage { return NewLicenseTokenRESTFunc(Factory) } - NewLicenseTokenRESTFunc NewRESTFunc - ManagementDevsyUpgradeStorage = builders.NewApiResourceWithStorage( // Resource status endpoint - InternalDevsyUpgrade, - func() runtime.Object { return &DevsyUpgrade{} }, // Register versioned resource - func() runtime.Object { return &DevsyUpgradeList{} }, // Register versioned resource list - NewDevsyUpgradeREST, - ) - NewDevsyUpgradeREST = func(getter generic.RESTOptionsGetter) rest.Storage { - return NewDevsyUpgradeRESTFunc(Factory) - } - NewDevsyUpgradeRESTFunc NewRESTFunc + NewLicenseTokenRESTFunc NewRESTFunc ManagementNodeClaimStorage = builders.NewApiResourceWithStorage( // Resource status endpoint InternalNodeClaim, func() runtime.Object { return &NodeClaim{} }, // Register versioned resource @@ -466,7 +466,7 @@ var ( NewTeamREST = func(getter generic.RESTOptionsGetter) rest.Storage { return NewTeamRESTFunc(Factory) } - NewTeamRESTFunc NewRESTFunc + NewTeamRESTFunc NewRESTFunc ManagementTranslateDevsyResourceNameStorage = builders.NewApiResourceWithStorage( // Resource status endpoint InternalTranslateDevsyResourceName, func() runtime.Object { return &TranslateDevsyResourceName{} }, // Register versioned resource @@ -477,7 +477,7 @@ var ( return NewTranslateDevsyResourceNameRESTFunc(Factory) } NewTranslateDevsyResourceNameRESTFunc NewRESTFunc - ManagementUsageDownloadStorage = builders.NewApiResourceWithStorage( // Resource status endpoint + ManagementUsageDownloadStorage = builders.NewApiResourceWithStorage( // Resource status endpoint InternalUsageDownload, func() runtime.Object { return &UsageDownload{} }, // Register versioned resource func() runtime.Object { return &UsageDownloadList{} }, // Register versioned resource list @@ -719,109 +719,121 @@ var ( func() runtime.Object { return &DatabaseConnector{} }, func() runtime.Object { return &DatabaseConnectorList{} }, ) - InternalDevPodEnvironmentTemplate = builders.NewInternalResource( + InternalDevsyEnvironmentTemplate = builders.NewInternalResource( "devpodenvironmenttemplates", - "DevPodEnvironmentTemplate", - func() runtime.Object { return &DevPodEnvironmentTemplate{} }, - func() runtime.Object { return &DevPodEnvironmentTemplateList{} }, + "DevsyEnvironmentTemplate", + func() runtime.Object { return &DevsyEnvironmentTemplate{} }, + func() runtime.Object { return &DevsyEnvironmentTemplateList{} }, ) - InternalDevPodEnvironmentTemplateStatus = builders.NewInternalResourceStatus( + InternalDevsyEnvironmentTemplateStatus = builders.NewInternalResourceStatus( "devpodenvironmenttemplates", - "DevPodEnvironmentTemplateStatus", - func() runtime.Object { return &DevPodEnvironmentTemplate{} }, - func() runtime.Object { return &DevPodEnvironmentTemplateList{} }, + "DevsyEnvironmentTemplateStatus", + func() runtime.Object { return &DevsyEnvironmentTemplate{} }, + func() runtime.Object { return &DevsyEnvironmentTemplateList{} }, ) - InternalDevPodWorkspaceInstance = builders.NewInternalResource( + InternalDevsyUpgrade = builders.NewInternalResource( + "devsyupgrades", + "DevsyUpgrade", + func() runtime.Object { return &DevsyUpgrade{} }, + func() runtime.Object { return &DevsyUpgradeList{} }, + ) + InternalDevsyUpgradeStatus = builders.NewInternalResourceStatus( + "devsyupgrades", + "DevsyUpgradeStatus", + func() runtime.Object { return &DevsyUpgrade{} }, + func() runtime.Object { return &DevsyUpgradeList{} }, + ) + InternalDevsyWorkspaceInstance = builders.NewInternalResource( "devpodworkspaceinstances", - "DevPodWorkspaceInstance", - func() runtime.Object { return &DevPodWorkspaceInstance{} }, - func() runtime.Object { return &DevPodWorkspaceInstanceList{} }, + "DevsyWorkspaceInstance", + func() runtime.Object { return &DevsyWorkspaceInstance{} }, + func() runtime.Object { return &DevsyWorkspaceInstanceList{} }, ) - InternalDevPodWorkspaceInstanceStatus = builders.NewInternalResourceStatus( + InternalDevsyWorkspaceInstanceStatus = builders.NewInternalResourceStatus( "devpodworkspaceinstances", - "DevPodWorkspaceInstanceStatus", - func() runtime.Object { return &DevPodWorkspaceInstance{} }, - func() runtime.Object { return &DevPodWorkspaceInstanceList{} }, + "DevsyWorkspaceInstanceStatus", + func() runtime.Object { return &DevsyWorkspaceInstance{} }, + func() runtime.Object { return &DevsyWorkspaceInstanceList{} }, ) - InternalDevPodWorkspaceInstanceCancelREST = builders.NewInternalSubresource( - "devpodworkspaceinstances", "DevPodWorkspaceInstanceCancel", "cancel", - func() runtime.Object { return &DevPodWorkspaceInstanceCancel{} }, + InternalDevsyWorkspaceInstanceCancelREST = builders.NewInternalSubresource( + "devpodworkspaceinstances", "DevsyWorkspaceInstanceCancel", "cancel", + func() runtime.Object { return &DevsyWorkspaceInstanceCancel{} }, ) - NewDevPodWorkspaceInstanceCancelREST = func(getter generic.RESTOptionsGetter) rest.Storage { - return NewDevPodWorkspaceInstanceCancelRESTFunc(Factory) + NewDevsyWorkspaceInstanceCancelREST = func(getter generic.RESTOptionsGetter) rest.Storage { + return NewDevsyWorkspaceInstanceCancelRESTFunc(Factory) } - NewDevPodWorkspaceInstanceCancelRESTFunc NewRESTFunc - InternalDevPodWorkspaceInstanceDownloadREST = builders.NewInternalSubresource( - "devpodworkspaceinstances", "DevPodWorkspaceInstanceDownload", "download", - func() runtime.Object { return &DevPodWorkspaceInstanceDownload{} }, + NewDevsyWorkspaceInstanceCancelRESTFunc NewRESTFunc + InternalDevsyWorkspaceInstanceDownloadREST = builders.NewInternalSubresource( + "devpodworkspaceinstances", "DevsyWorkspaceInstanceDownload", "download", + func() runtime.Object { return &DevsyWorkspaceInstanceDownload{} }, ) - NewDevPodWorkspaceInstanceDownloadREST = func(getter generic.RESTOptionsGetter) rest.Storage { - return NewDevPodWorkspaceInstanceDownloadRESTFunc(Factory) + NewDevsyWorkspaceInstanceDownloadREST = func(getter generic.RESTOptionsGetter) rest.Storage { + return NewDevsyWorkspaceInstanceDownloadRESTFunc(Factory) } - NewDevPodWorkspaceInstanceDownloadRESTFunc NewRESTFunc - InternalDevPodWorkspaceInstanceLogREST = builders.NewInternalSubresource( - "devpodworkspaceinstances", "DevPodWorkspaceInstanceLog", "log", - func() runtime.Object { return &DevPodWorkspaceInstanceLog{} }, + NewDevsyWorkspaceInstanceDownloadRESTFunc NewRESTFunc + InternalDevsyWorkspaceInstanceLogREST = builders.NewInternalSubresource( + "devpodworkspaceinstances", "DevsyWorkspaceInstanceLog", "log", + func() runtime.Object { return &DevsyWorkspaceInstanceLog{} }, ) - NewDevPodWorkspaceInstanceLogREST = func(getter generic.RESTOptionsGetter) rest.Storage { - return NewDevPodWorkspaceInstanceLogRESTFunc(Factory) + NewDevsyWorkspaceInstanceLogREST = func(getter generic.RESTOptionsGetter) rest.Storage { + return NewDevsyWorkspaceInstanceLogRESTFunc(Factory) } - NewDevPodWorkspaceInstanceLogRESTFunc NewRESTFunc - InternalDevPodWorkspaceInstanceStopREST = builders.NewInternalSubresource( - "devpodworkspaceinstances", "DevPodWorkspaceInstanceStop", "stop", - func() runtime.Object { return &DevPodWorkspaceInstanceStop{} }, + NewDevsyWorkspaceInstanceLogRESTFunc NewRESTFunc + InternalDevsyWorkspaceInstanceStopREST = builders.NewInternalSubresource( + "devpodworkspaceinstances", "DevsyWorkspaceInstanceStop", "stop", + func() runtime.Object { return &DevsyWorkspaceInstanceStop{} }, ) - NewDevPodWorkspaceInstanceStopREST = func(getter generic.RESTOptionsGetter) rest.Storage { - return NewDevPodWorkspaceInstanceStopRESTFunc(Factory) + NewDevsyWorkspaceInstanceStopREST = func(getter generic.RESTOptionsGetter) rest.Storage { + return NewDevsyWorkspaceInstanceStopRESTFunc(Factory) } - NewDevPodWorkspaceInstanceStopRESTFunc NewRESTFunc - InternalDevPodWorkspaceInstanceTasksREST = builders.NewInternalSubresource( - "devpodworkspaceinstances", "DevPodWorkspaceInstanceTasks", "tasks", - func() runtime.Object { return &DevPodWorkspaceInstanceTasks{} }, + NewDevsyWorkspaceInstanceStopRESTFunc NewRESTFunc + InternalDevsyWorkspaceInstanceTasksREST = builders.NewInternalSubresource( + "devpodworkspaceinstances", "DevsyWorkspaceInstanceTasks", "tasks", + func() runtime.Object { return &DevsyWorkspaceInstanceTasks{} }, ) - NewDevPodWorkspaceInstanceTasksREST = func(getter generic.RESTOptionsGetter) rest.Storage { - return NewDevPodWorkspaceInstanceTasksRESTFunc(Factory) + NewDevsyWorkspaceInstanceTasksREST = func(getter generic.RESTOptionsGetter) rest.Storage { + return NewDevsyWorkspaceInstanceTasksRESTFunc(Factory) } - NewDevPodWorkspaceInstanceTasksRESTFunc NewRESTFunc - InternalDevPodWorkspaceInstanceTroubleshootREST = builders.NewInternalSubresource( - "devpodworkspaceinstances", "DevPodWorkspaceInstanceTroubleshoot", "troubleshoot", - func() runtime.Object { return &DevPodWorkspaceInstanceTroubleshoot{} }, + NewDevsyWorkspaceInstanceTasksRESTFunc NewRESTFunc + InternalDevsyWorkspaceInstanceTroubleshootREST = builders.NewInternalSubresource( + "devpodworkspaceinstances", "DevsyWorkspaceInstanceTroubleshoot", "troubleshoot", + func() runtime.Object { return &DevsyWorkspaceInstanceTroubleshoot{} }, ) - NewDevPodWorkspaceInstanceTroubleshootREST = func(getter generic.RESTOptionsGetter) rest.Storage { - return NewDevPodWorkspaceInstanceTroubleshootRESTFunc(Factory) + NewDevsyWorkspaceInstanceTroubleshootREST = func(getter generic.RESTOptionsGetter) rest.Storage { + return NewDevsyWorkspaceInstanceTroubleshootRESTFunc(Factory) } - NewDevPodWorkspaceInstanceTroubleshootRESTFunc NewRESTFunc - InternalDevPodWorkspaceInstanceUpREST = builders.NewInternalSubresource( - "devpodworkspaceinstances", "DevPodWorkspaceInstanceUp", "up", - func() runtime.Object { return &DevPodWorkspaceInstanceUp{} }, + NewDevsyWorkspaceInstanceTroubleshootRESTFunc NewRESTFunc + InternalDevsyWorkspaceInstanceUpREST = builders.NewInternalSubresource( + "devpodworkspaceinstances", "DevsyWorkspaceInstanceUp", "up", + func() runtime.Object { return &DevsyWorkspaceInstanceUp{} }, ) - NewDevPodWorkspaceInstanceUpREST = func(getter generic.RESTOptionsGetter) rest.Storage { - return NewDevPodWorkspaceInstanceUpRESTFunc(Factory) + NewDevsyWorkspaceInstanceUpREST = func(getter generic.RESTOptionsGetter) rest.Storage { + return NewDevsyWorkspaceInstanceUpRESTFunc(Factory) } - NewDevPodWorkspaceInstanceUpRESTFunc NewRESTFunc - InternalDevPodWorkspacePreset = builders.NewInternalResource( + NewDevsyWorkspaceInstanceUpRESTFunc NewRESTFunc + InternalDevsyWorkspacePreset = builders.NewInternalResource( "devpodworkspacepresets", - "DevPodWorkspacePreset", - func() runtime.Object { return &DevPodWorkspacePreset{} }, - func() runtime.Object { return &DevPodWorkspacePresetList{} }, + "DevsyWorkspacePreset", + func() runtime.Object { return &DevsyWorkspacePreset{} }, + func() runtime.Object { return &DevsyWorkspacePresetList{} }, ) - InternalDevPodWorkspacePresetStatus = builders.NewInternalResourceStatus( + InternalDevsyWorkspacePresetStatus = builders.NewInternalResourceStatus( "devpodworkspacepresets", - "DevPodWorkspacePresetStatus", - func() runtime.Object { return &DevPodWorkspacePreset{} }, - func() runtime.Object { return &DevPodWorkspacePresetList{} }, + "DevsyWorkspacePresetStatus", + func() runtime.Object { return &DevsyWorkspacePreset{} }, + func() runtime.Object { return &DevsyWorkspacePresetList{} }, ) - InternalDevPodWorkspaceTemplate = builders.NewInternalResource( + InternalDevsyWorkspaceTemplate = builders.NewInternalResource( "devpodworkspacetemplates", - "DevPodWorkspaceTemplate", - func() runtime.Object { return &DevPodWorkspaceTemplate{} }, - func() runtime.Object { return &DevPodWorkspaceTemplateList{} }, + "DevsyWorkspaceTemplate", + func() runtime.Object { return &DevsyWorkspaceTemplate{} }, + func() runtime.Object { return &DevsyWorkspaceTemplateList{} }, ) - InternalDevPodWorkspaceTemplateStatus = builders.NewInternalResourceStatus( + InternalDevsyWorkspaceTemplateStatus = builders.NewInternalResourceStatus( "devpodworkspacetemplates", - "DevPodWorkspaceTemplateStatus", - func() runtime.Object { return &DevPodWorkspaceTemplate{} }, - func() runtime.Object { return &DevPodWorkspaceTemplateList{} }, + "DevsyWorkspaceTemplateStatus", + func() runtime.Object { return &DevsyWorkspaceTemplate{} }, + func() runtime.Object { return &DevsyWorkspaceTemplateList{} }, ) InternalDirectClusterEndpointToken = builders.NewInternalResource( "directclusterendpointtokens", @@ -915,18 +927,6 @@ var ( func() runtime.Object { return &LicenseToken{} }, func() runtime.Object { return &LicenseTokenList{} }, ) - InternalDevsyUpgrade = builders.NewInternalResource( - "devsyupgrades", - "DevsyUpgrade", - func() runtime.Object { return &DevsyUpgrade{} }, - func() runtime.Object { return &DevsyUpgradeList{} }, - ) - InternalDevsyUpgradeStatus = builders.NewInternalResourceStatus( - "devsyupgrades", - "DevsyUpgradeStatus", - func() runtime.Object { return &DevsyUpgrade{} }, - func() runtime.Object { return &DevsyUpgradeList{} }, - ) InternalNodeClaim = builders.NewInternalResource( "nodeclaims", "NodeClaim", @@ -1274,7 +1274,7 @@ var ( NewTeamPermissionsREST = func(getter generic.RESTOptionsGetter) rest.Storage { return NewTeamPermissionsRESTFunc(Factory) } - NewTeamPermissionsRESTFunc NewRESTFunc + NewTeamPermissionsRESTFunc NewRESTFunc InternalTranslateDevsyResourceName = builders.NewInternalResource( "translatedevsyresourcenames", "TranslateDevsyResourceName", @@ -1474,21 +1474,23 @@ var ( InternalConvertVirtualClusterConfigStatus, InternalDatabaseConnector, InternalDatabaseConnectorStatus, - InternalDevPodEnvironmentTemplate, - InternalDevPodEnvironmentTemplateStatus, - InternalDevPodWorkspaceInstance, - InternalDevPodWorkspaceInstanceStatus, - InternalDevPodWorkspaceInstanceCancelREST, - InternalDevPodWorkspaceInstanceDownloadREST, - InternalDevPodWorkspaceInstanceLogREST, - InternalDevPodWorkspaceInstanceStopREST, - InternalDevPodWorkspaceInstanceTasksREST, - InternalDevPodWorkspaceInstanceTroubleshootREST, - InternalDevPodWorkspaceInstanceUpREST, - InternalDevPodWorkspacePreset, - InternalDevPodWorkspacePresetStatus, - InternalDevPodWorkspaceTemplate, - InternalDevPodWorkspaceTemplateStatus, + InternalDevsyEnvironmentTemplate, + InternalDevsyEnvironmentTemplateStatus, + InternalDevsyUpgrade, + InternalDevsyUpgradeStatus, + InternalDevsyWorkspaceInstance, + InternalDevsyWorkspaceInstanceStatus, + InternalDevsyWorkspaceInstanceCancelREST, + InternalDevsyWorkspaceInstanceDownloadREST, + InternalDevsyWorkspaceInstanceLogREST, + InternalDevsyWorkspaceInstanceStopREST, + InternalDevsyWorkspaceInstanceTasksREST, + InternalDevsyWorkspaceInstanceTroubleshootREST, + InternalDevsyWorkspaceInstanceUpREST, + InternalDevsyWorkspacePreset, + InternalDevsyWorkspacePresetStatus, + InternalDevsyWorkspaceTemplate, + InternalDevsyWorkspaceTemplateStatus, InternalDirectClusterEndpointToken, InternalDirectClusterEndpointTokenStatus, InternalEvent, @@ -1504,8 +1506,6 @@ var ( InternalLicenseRequestREST, InternalLicenseToken, InternalLicenseTokenStatus, - InternalDevsyUpgrade, - InternalDevsyUpgradeStatus, InternalNodeClaim, InternalNodeClaimStatus, InternalNodeEnvironment, @@ -1807,7 +1807,7 @@ type AuthenticationOIDC struct { CAFile string `json:"caFile,omitempty"` InsecureCA bool `json:"insecureCa,omitempty"` PreferredUsernameClaim string `json:"preferredUsername,omitempty"` - LoftUsernameClaim string `json:"loftUsernameClaim,omitempty"` + DevsyUsernameClaim string `json:"loftUsernameClaim,omitempty"` UsernameClaim string `json:"usernameClaim,omitempty"` EmailClaim string `json:"emailClaim,omitempty"` AllowedExtraClaims []string `json:"allowedExtraClaims,omitempty"` @@ -1883,7 +1883,7 @@ type Cloud struct { } // +genclient -// +genclient +// +genclient:nonNamespaced // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object type Cluster struct { @@ -1910,7 +1910,7 @@ type ClusterAccessKey struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` AccessKey string `json:"accessKey,omitempty"` - LoftHost string `json:"loftHost,omitempty"` + DevsyHost string `json:"loftHost,omitempty"` Insecure bool `json:"insecure,omitempty"` CaCert string `json:"caCert,omitempty"` } @@ -1950,9 +1950,9 @@ type ClusterAgentConfigCommon struct { Audit *AgentAuditConfig `json:"audit,omitempty"` DefaultImageRegistry string `json:"defaultImageRegistry,omitempty"` TokenCaCert []byte `json:"tokenCaCert,omitempty"` - LoftHost string `json:"loftHost,omitempty"` + DevsyHost string `json:"loftHost,omitempty"` ProjectNamespacePrefix string `json:"projectNamespacePrefix,omitempty"` - LoftInstanceID string `json:"loftInstanceID,omitempty"` + DevsyInstanceID string `json:"loftInstanceID,omitempty"` AnalyticsSpec AgentAnalyticsSpec `json:"analyticsSpec"` CostControl *AgentCostControlConfig `json:"costControl,omitempty"` AuthenticateVersionEndpoint bool `json:"authenticateVersionEndpoint,omitempty"` @@ -2056,9 +2056,9 @@ type ConfigStatus struct { OIDC *OIDC `json:"oidc,omitempty"` Apps *Apps `json:"apps,omitempty"` Audit *Audit `json:"audit,omitempty"` - LoftHost string `json:"loftHost,omitempty"` + DevsyHost string `json:"loftHost,omitempty"` ProjectNamespacePrefix *string `json:"projectNamespacePrefix,omitempty"` - DevPodSubDomain string `json:"devPodSubDomain,omitempty"` + DevsySubDomain string `json:"devPodSubDomain,omitempty"` UISettings *uiv1.UISettingsConfig `json:"uiSettings,omitempty"` VaultIntegration *storagev1.VaultIntegrationSpec `json:"vault,omitempty"` DisableConfigEndpoint bool `json:"disableConfigEndpoint,omitempty"` @@ -2160,37 +2160,57 @@ type DatabaseConnectorStatus struct { } // +genclient -// +genclient +// +genclient:nonNamespaced // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object -type DevPodEnvironmentTemplate struct { +type DevsyEnvironmentTemplate struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` - Spec DevPodEnvironmentTemplateSpec `json:"spec,omitempty"` - Status DevPodEnvironmentTemplateStatus `json:"status,omitempty"` + Spec DevsyEnvironmentTemplateSpec `json:"spec,omitempty"` + Status DevsyEnvironmentTemplateStatus `json:"status,omitempty"` } -type DevPodEnvironmentTemplateSpec struct { - storagev1.DevPodEnvironmentTemplateSpec `json:",inline"` +type DevsyEnvironmentTemplateSpec struct { + storagev1.DevsyEnvironmentTemplateSpec `json:",inline"` } -type DevPodEnvironmentTemplateStatus struct { +type DevsyEnvironmentTemplateStatus struct { } // +genclient +// +genclient:nonNamespaced +// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object + +type DevsyUpgrade struct { + metav1.TypeMeta `json:",inline"` + metav1.ObjectMeta `json:"metadata,omitempty"` + Spec DevsyUpgradeSpec `json:"spec,omitempty"` + Status DevsyUpgradeStatus `json:"status,omitempty"` +} + +type DevsyUpgradeSpec struct { + Namespace string `json:"namespace,omitempty"` + Release string `json:"release,omitempty"` + Version string `json:"version,omitempty"` +} + +type DevsyUpgradeStatus struct { +} + // +genclient + // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object -type DevPodWorkspaceInstance struct { +type DevsyWorkspaceInstance struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` - Spec DevPodWorkspaceInstanceSpec `json:"spec,omitempty"` - Status DevPodWorkspaceInstanceStatus `json:"status,omitempty"` + Spec DevsyWorkspaceInstanceSpec `json:"spec,omitempty"` + Status DevsyWorkspaceInstanceStatus `json:"status,omitempty"` } // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object -type DevPodWorkspaceInstanceCancel struct { +type DevsyWorkspaceInstanceCancel struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` TaskID string `json:"taskId,omitempty"` @@ -2198,45 +2218,45 @@ type DevPodWorkspaceInstanceCancel struct { // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object -type DevPodWorkspaceInstanceDownload struct { +type DevsyWorkspaceInstanceDownload struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` } // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object -type DevPodWorkspaceInstanceLog struct { +type DevsyWorkspaceInstanceLog struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` } -type DevPodWorkspaceInstanceSpec struct { - storagev1.DevPodWorkspaceInstanceSpec `json:",inline"` +type DevsyWorkspaceInstanceSpec struct { + storagev1.DevsyWorkspaceInstanceSpec `json:",inline"` } -type DevPodWorkspaceInstanceStatus struct { - storagev1.DevPodWorkspaceInstanceStatus `json:",inline"` - SleepModeConfig *clusterv1.SleepModeConfig `json:"sleepModeConfig,omitempty"` +type DevsyWorkspaceInstanceStatus struct { + storagev1.DevsyWorkspaceInstanceStatus `json:",inline"` + SleepModeConfig *clusterv1.SleepModeConfig `json:"sleepModeConfig,omitempty"` } // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object -type DevPodWorkspaceInstanceStop struct { +type DevsyWorkspaceInstanceStop struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` - Spec DevPodWorkspaceInstanceStopSpec `json:"spec,omitempty"` - Status DevPodWorkspaceInstanceStopStatus `json:"status,omitempty"` + Spec DevsyWorkspaceInstanceStopSpec `json:"spec,omitempty"` + Status DevsyWorkspaceInstanceStopStatus `json:"status,omitempty"` } -type DevPodWorkspaceInstanceStopSpec struct { +type DevsyWorkspaceInstanceStopSpec struct { Options string `json:"options,omitempty"` } -type DevPodWorkspaceInstanceStopStatus struct { +type DevsyWorkspaceInstanceStopStatus struct { TaskID string `json:"taskId,omitempty"` } -type DevPodWorkspaceInstanceTask struct { +type DevsyWorkspaceInstanceTask struct { ID string `json:"id,omitempty"` Type string `json:"type,omitempty"` Status string `json:"status,omitempty"` @@ -2247,79 +2267,79 @@ type DevPodWorkspaceInstanceTask struct { // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object -type DevPodWorkspaceInstanceTasks struct { +type DevsyWorkspaceInstanceTasks struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` - Tasks []DevPodWorkspaceInstanceTask `json:"tasks,omitempty"` + Tasks []DevsyWorkspaceInstanceTask `json:"tasks,omitempty"` } // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object -type DevPodWorkspaceInstanceTroubleshoot struct { +type DevsyWorkspaceInstanceTroubleshoot struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` - State string `json:"state,omitempty"` - Workspace *DevPodWorkspaceInstance `json:"workspace,omitempty"` - Template *storagev1.DevPodWorkspaceTemplate `json:"template,omitempty"` - Pods []corev1.Pod `json:"pods,omitempty"` - PVCs []corev1.PersistentVolumeClaim `json:"pvcs,omitempty"` - Netmaps []string `json:"netmaps,omitempty"` - Errors []string `json:"errors,omitempty"` + State string `json:"state,omitempty"` + Workspace *DevsyWorkspaceInstance `json:"workspace,omitempty"` + Template *storagev1.DevsyWorkspaceTemplate `json:"template,omitempty"` + Pods []corev1.Pod `json:"pods,omitempty"` + PVCs []corev1.PersistentVolumeClaim `json:"pvcs,omitempty"` + Netmaps []string `json:"netmaps,omitempty"` + Errors []string `json:"errors,omitempty"` } // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object -type DevPodWorkspaceInstanceUp struct { +type DevsyWorkspaceInstanceUp struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` - Spec DevPodWorkspaceInstanceUpSpec `json:"spec,omitempty"` - Status DevPodWorkspaceInstanceUpStatus `json:"status,omitempty"` + Spec DevsyWorkspaceInstanceUpSpec `json:"spec,omitempty"` + Status DevsyWorkspaceInstanceUpStatus `json:"status,omitempty"` } -type DevPodWorkspaceInstanceUpSpec struct { +type DevsyWorkspaceInstanceUpSpec struct { Debug bool `json:"debug,omitempty"` Options string `json:"options,omitempty"` } -type DevPodWorkspaceInstanceUpStatus struct { +type DevsyWorkspaceInstanceUpStatus struct { TaskID string `json:"taskId,omitempty"` } // +genclient -// +genclient +// +genclient:nonNamespaced // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object -type DevPodWorkspacePreset struct { +type DevsyWorkspacePreset struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` - Spec DevPodWorkspacePresetSpec `json:"spec,omitempty"` - Status DevPodWorkspacePresetStatus `json:"status,omitempty"` + Spec DevsyWorkspacePresetSpec `json:"spec,omitempty"` + Status DevsyWorkspacePresetStatus `json:"status,omitempty"` } -type DevPodWorkspacePresetSpec struct { - storagev1.DevPodWorkspacePresetSpec `json:",inline"` +type DevsyWorkspacePresetSpec struct { + storagev1.DevsyWorkspacePresetSpec `json:",inline"` } -type DevPodWorkspacePresetStatus struct { +type DevsyWorkspacePresetStatus struct { } // +genclient -// +genclient +// +genclient:nonNamespaced // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object -type DevPodWorkspaceTemplate struct { +type DevsyWorkspaceTemplate struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` - Spec DevPodWorkspaceTemplateSpec `json:"spec,omitempty"` - Status DevPodWorkspaceTemplateStatus `json:"status,omitempty"` + Spec DevsyWorkspaceTemplateSpec `json:"spec,omitempty"` + Status DevsyWorkspaceTemplateStatus `json:"status,omitempty"` } -type DevPodWorkspaceTemplateSpec struct { - storagev1.DevPodWorkspaceTemplateSpec `json:",inline"` +type DevsyWorkspaceTemplateSpec struct { + storagev1.DevsyWorkspaceTemplateSpec `json:",inline"` } -type DevPodWorkspaceTemplateStatus struct { - storagev1.DevPodWorkspaceTemplateStatus `json:",inline"` +type DevsyWorkspaceTemplateStatus struct { + storagev1.DevsyWorkspaceTemplateStatus `json:",inline"` } // +genclient @@ -2413,7 +2433,7 @@ type IngressAuthTokenStatus struct { } // +genclient -// +genclient + // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object type Kiosk struct { @@ -2501,26 +2521,6 @@ type LicenseTokenStatus struct { Token *pkglicenseapi.InstanceTokenAuth `json:"token,omitempty"` } -// +genclient -// +genclient:nonNamespaced -// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object - -type DevsyUpgrade struct { - metav1.TypeMeta `json:",inline"` - metav1.ObjectMeta `json:"metadata,omitempty"` - Spec DevsyUpgradeSpec `json:"spec,omitempty"` - Status DevsyUpgradeStatus `json:"status,omitempty"` -} - -type DevsyUpgradeSpec struct { - Namespace string `json:"namespace,omitempty"` - Release string `json:"release,omitempty"` - Version string `json:"version,omitempty"` -} - -type DevsyUpgradeStatus struct { -} - type MaintenanceWindow struct { DayOfWeek string `json:"dayOfWeek,omitempty"` TimeWindow string `json:"timeWindow,omitempty"` @@ -2532,7 +2532,7 @@ type ManagementRole struct { } // +genclient -// +genclient + // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object type NodeClaim struct { @@ -2557,7 +2557,7 @@ type NodeClaimStatus struct { } // +genclient -// +genclient + // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object type NodeEnvironment struct { @@ -2718,7 +2718,7 @@ type Operation struct { } // +genclient -// +genclient +// +genclient:nonNamespaced // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object type OwnedAccessKey struct { @@ -2869,7 +2869,7 @@ type ProjectRole struct { } // +genclient -// +genclient + // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object type ProjectSecret struct { @@ -2902,17 +2902,17 @@ type ProjectStatus struct { // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object type ProjectTemplates struct { - metav1.TypeMeta `json:",inline"` - metav1.ObjectMeta `json:"metadata,omitempty"` - DefaultVirtualClusterTemplate string `json:"defaultVirtualClusterTemplate,omitempty"` - VirtualClusterTemplates []VirtualClusterTemplate `json:"virtualClusterTemplates,omitempty"` - DefaultSpaceTemplate string `json:"defaultSpaceTemplate,omitempty"` - SpaceTemplates []SpaceTemplate `json:"spaceTemplates,omitempty"` - DefaultDevPodWorkspaceTemplate string `json:"defaultDevPodWorkspaceTemplate,omitempty"` - DevPodWorkspaceTemplates []DevPodWorkspaceTemplate `json:"devPodWorkspaceTemplates,omitempty"` - DevPodEnvironmentTemplates []DevPodEnvironmentTemplate `json:"devPodEnvironmentTemplates,omitempty"` - DevPodWorkspacePresets []DevPodWorkspacePreset `json:"devPodWorkspacePresets,omitempty"` - DefaultDevPodEnvironmentTemplate string `json:"defaultDevPodEnvironmentTemplate,omitempty"` + metav1.TypeMeta `json:",inline"` + metav1.ObjectMeta `json:"metadata,omitempty"` + DefaultVirtualClusterTemplate string `json:"defaultVirtualClusterTemplate,omitempty"` + VirtualClusterTemplates []VirtualClusterTemplate `json:"virtualClusterTemplates,omitempty"` + DefaultSpaceTemplate string `json:"defaultSpaceTemplate,omitempty"` + SpaceTemplates []SpaceTemplate `json:"spaceTemplates,omitempty"` + DefaultDevsyWorkspaceTemplate string `json:"defaultDevPodWorkspaceTemplate,omitempty"` + DevsyWorkspaceTemplates []DevsyWorkspaceTemplate `json:"devPodWorkspaceTemplates,omitempty"` + DevsyEnvironmentTemplates []DevsyEnvironmentTemplate `json:"devPodEnvironmentTemplates,omitempty"` + DevsyWorkspacePresets []DevsyWorkspacePreset `json:"devPodWorkspacePresets,omitempty"` + DefaultDevsyEnvironmentTemplate string `json:"defaultDevPodEnvironmentTemplate,omitempty"` } // +genclient @@ -3004,7 +3004,7 @@ type SelfStatus struct { Groups []string `json:"groups,omitempty"` ChatAuthToken string `json:"chatAuthToken,omitempty"` InstanceID string `json:"instanceID,omitempty"` - LoftHost string `json:"loftHost,omitempty"` + DevsyHost string `json:"loftHost,omitempty"` ProjectNamespacePrefix *string `json:"projectNamespacePrefix,omitempty"` } @@ -3028,7 +3028,7 @@ type SelfSubjectAccessReviewStatus struct { } // +genclient -// +genclient + // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object type SharedSecret struct { @@ -3055,7 +3055,7 @@ type SnapshotTaken struct { } // +genclient -// +genclient + // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object type SpaceInstance struct { @@ -3077,7 +3077,7 @@ type SpaceInstanceStatus struct { } // +genclient -// +genclient +// +genclient:nonNamespaced // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object type SpaceTemplate struct { @@ -3224,8 +3224,8 @@ type TranslateDevsyResourceName struct { } type TranslateDevsyResourceNameSpec struct { - Name string `json:"name"` - Namespace string `json:"namespace"` + Name string `json:"name"` + Namespace string `json:"namespace"` DevsyName string `json:"devsyName"` } @@ -3365,7 +3365,7 @@ type VirtualClusterExternalDatabaseStatus struct { } // +genclient -// +genclient + // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object type VirtualClusterInstance struct { @@ -3487,7 +3487,7 @@ type VirtualClusterStandaloneStatus struct { } // +genclient -// +genclient +// +genclient:nonNamespaced // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object type VirtualClusterTemplate struct { @@ -4768,81 +4768,81 @@ func (s *storageDatabaseConnector) DeleteDatabaseConnector(ctx context.Context, return sync, err } -// DevPodEnvironmentTemplate Functions and Structs +// DevsyEnvironmentTemplate Functions and Structs // // +k8s:deepcopy-gen=false -type DevPodEnvironmentTemplateStrategy struct { +type DevsyEnvironmentTemplateStrategy struct { builders.DefaultStorageStrategy } // +k8s:deepcopy-gen=false -type DevPodEnvironmentTemplateStatusStrategy struct { +type DevsyEnvironmentTemplateStatusStrategy struct { builders.DefaultStatusStorageStrategy } // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object -type DevPodEnvironmentTemplateList struct { +type DevsyEnvironmentTemplateList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` - Items []DevPodEnvironmentTemplate `json:"items"` + Items []DevsyEnvironmentTemplate `json:"items"` } -func (DevPodEnvironmentTemplate) NewStatus() interface{} { - return DevPodEnvironmentTemplateStatus{} +func (DevsyEnvironmentTemplate) NewStatus() interface{} { + return DevsyEnvironmentTemplateStatus{} } -func (pc *DevPodEnvironmentTemplate) GetStatus() interface{} { +func (pc *DevsyEnvironmentTemplate) GetStatus() interface{} { return pc.Status } -func (pc *DevPodEnvironmentTemplate) SetStatus(s interface{}) { - pc.Status = s.(DevPodEnvironmentTemplateStatus) +func (pc *DevsyEnvironmentTemplate) SetStatus(s interface{}) { + pc.Status = s.(DevsyEnvironmentTemplateStatus) } -func (pc *DevPodEnvironmentTemplate) GetSpec() interface{} { +func (pc *DevsyEnvironmentTemplate) GetSpec() interface{} { return pc.Spec } -func (pc *DevPodEnvironmentTemplate) SetSpec(s interface{}) { - pc.Spec = s.(DevPodEnvironmentTemplateSpec) +func (pc *DevsyEnvironmentTemplate) SetSpec(s interface{}) { + pc.Spec = s.(DevsyEnvironmentTemplateSpec) } -func (pc *DevPodEnvironmentTemplate) GetObjectMeta() *metav1.ObjectMeta { +func (pc *DevsyEnvironmentTemplate) GetObjectMeta() *metav1.ObjectMeta { return &pc.ObjectMeta } -func (pc *DevPodEnvironmentTemplate) SetGeneration(generation int64) { +func (pc *DevsyEnvironmentTemplate) SetGeneration(generation int64) { pc.ObjectMeta.Generation = generation } -func (pc DevPodEnvironmentTemplate) GetGeneration() int64 { +func (pc DevsyEnvironmentTemplate) GetGeneration() int64 { return pc.ObjectMeta.Generation } -// Registry is an interface for things that know how to store DevPodEnvironmentTemplate. +// Registry is an interface for things that know how to store DevsyEnvironmentTemplate. // +k8s:deepcopy-gen=false -type DevPodEnvironmentTemplateRegistry interface { - ListDevPodEnvironmentTemplates(ctx context.Context, options *internalversion.ListOptions) (*DevPodEnvironmentTemplateList, error) - GetDevPodEnvironmentTemplate(ctx context.Context, id string, options *metav1.GetOptions) (*DevPodEnvironmentTemplate, error) - CreateDevPodEnvironmentTemplate(ctx context.Context, id *DevPodEnvironmentTemplate) (*DevPodEnvironmentTemplate, error) - UpdateDevPodEnvironmentTemplate(ctx context.Context, id *DevPodEnvironmentTemplate) (*DevPodEnvironmentTemplate, error) - DeleteDevPodEnvironmentTemplate(ctx context.Context, id string) (bool, error) +type DevsyEnvironmentTemplateRegistry interface { + ListDevsyEnvironmentTemplates(ctx context.Context, options *internalversion.ListOptions) (*DevsyEnvironmentTemplateList, error) + GetDevsyEnvironmentTemplate(ctx context.Context, id string, options *metav1.GetOptions) (*DevsyEnvironmentTemplate, error) + CreateDevsyEnvironmentTemplate(ctx context.Context, id *DevsyEnvironmentTemplate) (*DevsyEnvironmentTemplate, error) + UpdateDevsyEnvironmentTemplate(ctx context.Context, id *DevsyEnvironmentTemplate) (*DevsyEnvironmentTemplate, error) + DeleteDevsyEnvironmentTemplate(ctx context.Context, id string) (bool, error) } // NewRegistry returns a new Registry interface for the given Storage. Any mismatched types will panic. -func NewDevPodEnvironmentTemplateRegistry(sp builders.StandardStorageProvider) DevPodEnvironmentTemplateRegistry { - return &storageDevPodEnvironmentTemplate{sp} +func NewDevsyEnvironmentTemplateRegistry(sp builders.StandardStorageProvider) DevsyEnvironmentTemplateRegistry { + return &storageDevsyEnvironmentTemplate{sp} } // Implement Registry // storage puts strong typing around storage calls // +k8s:deepcopy-gen=false -type storageDevPodEnvironmentTemplate struct { +type storageDevsyEnvironmentTemplate struct { builders.StandardStorageProvider } -func (s *storageDevPodEnvironmentTemplate) ListDevPodEnvironmentTemplates(ctx context.Context, options *internalversion.ListOptions) (*DevPodEnvironmentTemplateList, error) { +func (s *storageDevsyEnvironmentTemplate) ListDevsyEnvironmentTemplates(ctx context.Context, options *internalversion.ListOptions) (*DevsyEnvironmentTemplateList, error) { if options != nil && options.FieldSelector != nil && !options.FieldSelector.Empty() { return nil, fmt.Errorf("field selector not supported yet") } @@ -4851,173 +4851,292 @@ func (s *storageDevPodEnvironmentTemplate) ListDevPodEnvironmentTemplates(ctx co if err != nil { return nil, err } - return obj.(*DevPodEnvironmentTemplateList), err + return obj.(*DevsyEnvironmentTemplateList), err } -func (s *storageDevPodEnvironmentTemplate) GetDevPodEnvironmentTemplate(ctx context.Context, id string, options *metav1.GetOptions) (*DevPodEnvironmentTemplate, error) { +func (s *storageDevsyEnvironmentTemplate) GetDevsyEnvironmentTemplate(ctx context.Context, id string, options *metav1.GetOptions) (*DevsyEnvironmentTemplate, error) { st := s.GetStandardStorage() obj, err := st.Get(ctx, id, options) if err != nil { return nil, err } - return obj.(*DevPodEnvironmentTemplate), nil + return obj.(*DevsyEnvironmentTemplate), nil } -func (s *storageDevPodEnvironmentTemplate) CreateDevPodEnvironmentTemplate(ctx context.Context, object *DevPodEnvironmentTemplate) (*DevPodEnvironmentTemplate, error) { +func (s *storageDevsyEnvironmentTemplate) CreateDevsyEnvironmentTemplate(ctx context.Context, object *DevsyEnvironmentTemplate) (*DevsyEnvironmentTemplate, error) { st := s.GetStandardStorage() obj, err := st.Create(ctx, object, nil, &metav1.CreateOptions{}) if err != nil { return nil, err } - return obj.(*DevPodEnvironmentTemplate), nil + return obj.(*DevsyEnvironmentTemplate), nil } -func (s *storageDevPodEnvironmentTemplate) UpdateDevPodEnvironmentTemplate(ctx context.Context, object *DevPodEnvironmentTemplate) (*DevPodEnvironmentTemplate, error) { +func (s *storageDevsyEnvironmentTemplate) UpdateDevsyEnvironmentTemplate(ctx context.Context, object *DevsyEnvironmentTemplate) (*DevsyEnvironmentTemplate, error) { st := s.GetStandardStorage() obj, _, err := st.Update(ctx, object.Name, rest.DefaultUpdatedObjectInfo(object), nil, nil, false, &metav1.UpdateOptions{}) if err != nil { return nil, err } - return obj.(*DevPodEnvironmentTemplate), nil + return obj.(*DevsyEnvironmentTemplate), nil } -func (s *storageDevPodEnvironmentTemplate) DeleteDevPodEnvironmentTemplate(ctx context.Context, id string) (bool, error) { +func (s *storageDevsyEnvironmentTemplate) DeleteDevsyEnvironmentTemplate(ctx context.Context, id string) (bool, error) { st := s.GetStandardStorage() _, sync, err := st.Delete(ctx, id, nil, &metav1.DeleteOptions{}) return sync, err } -// DevPodWorkspaceInstance Functions and Structs +// DevsyUpgrade Functions and Structs // // +k8s:deepcopy-gen=false -type DevPodWorkspaceInstanceStrategy struct { +type DevsyUpgradeStrategy struct { builders.DefaultStorageStrategy } // +k8s:deepcopy-gen=false -type DevPodWorkspaceInstanceStatusStrategy struct { +type DevsyUpgradeStatusStrategy struct { builders.DefaultStatusStorageStrategy } // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object -type DevPodWorkspaceInstanceList struct { +type DevsyUpgradeList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` - Items []DevPodWorkspaceInstance `json:"items"` + Items []DevsyUpgrade `json:"items"` +} + +func (DevsyUpgrade) NewStatus() interface{} { + return DevsyUpgradeStatus{} +} + +func (pc *DevsyUpgrade) GetStatus() interface{} { + return pc.Status +} + +func (pc *DevsyUpgrade) SetStatus(s interface{}) { + pc.Status = s.(DevsyUpgradeStatus) +} + +func (pc *DevsyUpgrade) GetSpec() interface{} { + return pc.Spec +} + +func (pc *DevsyUpgrade) SetSpec(s interface{}) { + pc.Spec = s.(DevsyUpgradeSpec) +} + +func (pc *DevsyUpgrade) GetObjectMeta() *metav1.ObjectMeta { + return &pc.ObjectMeta +} + +func (pc *DevsyUpgrade) SetGeneration(generation int64) { + pc.ObjectMeta.Generation = generation +} + +func (pc DevsyUpgrade) GetGeneration() int64 { + return pc.ObjectMeta.Generation +} + +// Registry is an interface for things that know how to store DevsyUpgrade. +// +k8s:deepcopy-gen=false +type DevsyUpgradeRegistry interface { + ListDevsyUpgrades(ctx context.Context, options *internalversion.ListOptions) (*DevsyUpgradeList, error) + GetDevsyUpgrade(ctx context.Context, id string, options *metav1.GetOptions) (*DevsyUpgrade, error) + CreateDevsyUpgrade(ctx context.Context, id *DevsyUpgrade) (*DevsyUpgrade, error) + UpdateDevsyUpgrade(ctx context.Context, id *DevsyUpgrade) (*DevsyUpgrade, error) + DeleteDevsyUpgrade(ctx context.Context, id string) (bool, error) +} + +// NewRegistry returns a new Registry interface for the given Storage. Any mismatched types will panic. +func NewDevsyUpgradeRegistry(sp builders.StandardStorageProvider) DevsyUpgradeRegistry { + return &storageDevsyUpgrade{sp} +} + +// Implement Registry +// storage puts strong typing around storage calls +// +k8s:deepcopy-gen=false +type storageDevsyUpgrade struct { + builders.StandardStorageProvider +} + +func (s *storageDevsyUpgrade) ListDevsyUpgrades(ctx context.Context, options *internalversion.ListOptions) (*DevsyUpgradeList, error) { + if options != nil && options.FieldSelector != nil && !options.FieldSelector.Empty() { + return nil, fmt.Errorf("field selector not supported yet") + } + st := s.GetStandardStorage() + obj, err := st.List(ctx, options) + if err != nil { + return nil, err + } + return obj.(*DevsyUpgradeList), err +} + +func (s *storageDevsyUpgrade) GetDevsyUpgrade(ctx context.Context, id string, options *metav1.GetOptions) (*DevsyUpgrade, error) { + st := s.GetStandardStorage() + obj, err := st.Get(ctx, id, options) + if err != nil { + return nil, err + } + return obj.(*DevsyUpgrade), nil +} + +func (s *storageDevsyUpgrade) CreateDevsyUpgrade(ctx context.Context, object *DevsyUpgrade) (*DevsyUpgrade, error) { + st := s.GetStandardStorage() + obj, err := st.Create(ctx, object, nil, &metav1.CreateOptions{}) + if err != nil { + return nil, err + } + return obj.(*DevsyUpgrade), nil +} + +func (s *storageDevsyUpgrade) UpdateDevsyUpgrade(ctx context.Context, object *DevsyUpgrade) (*DevsyUpgrade, error) { + st := s.GetStandardStorage() + obj, _, err := st.Update(ctx, object.Name, rest.DefaultUpdatedObjectInfo(object), nil, nil, false, &metav1.UpdateOptions{}) + if err != nil { + return nil, err + } + return obj.(*DevsyUpgrade), nil +} + +func (s *storageDevsyUpgrade) DeleteDevsyUpgrade(ctx context.Context, id string) (bool, error) { + st := s.GetStandardStorage() + _, sync, err := st.Delete(ctx, id, nil, &metav1.DeleteOptions{}) + return sync, err +} + +// DevsyWorkspaceInstance Functions and Structs +// +// +k8s:deepcopy-gen=false +type DevsyWorkspaceInstanceStrategy struct { + builders.DefaultStorageStrategy +} + +// +k8s:deepcopy-gen=false +type DevsyWorkspaceInstanceStatusStrategy struct { + builders.DefaultStatusStorageStrategy +} + +// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object + +type DevsyWorkspaceInstanceList struct { + metav1.TypeMeta `json:",inline"` + metav1.ListMeta `json:"metadata,omitempty"` + Items []DevsyWorkspaceInstance `json:"items"` } // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object -type DevPodWorkspaceInstanceCancelList struct { +type DevsyWorkspaceInstanceCancelList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` - Items []DevPodWorkspaceInstanceCancel `json:"items"` + Items []DevsyWorkspaceInstanceCancel `json:"items"` } // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object -type DevPodWorkspaceInstanceDownloadList struct { +type DevsyWorkspaceInstanceDownloadList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` - Items []DevPodWorkspaceInstanceDownload `json:"items"` + Items []DevsyWorkspaceInstanceDownload `json:"items"` } // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object -type DevPodWorkspaceInstanceLogList struct { +type DevsyWorkspaceInstanceLogList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` - Items []DevPodWorkspaceInstanceLog `json:"items"` + Items []DevsyWorkspaceInstanceLog `json:"items"` } // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object -type DevPodWorkspaceInstanceStopList struct { +type DevsyWorkspaceInstanceStopList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` - Items []DevPodWorkspaceInstanceStop `json:"items"` + Items []DevsyWorkspaceInstanceStop `json:"items"` } // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object -type DevPodWorkspaceInstanceTasksList struct { +type DevsyWorkspaceInstanceTasksList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` - Items []DevPodWorkspaceInstanceTasks `json:"items"` + Items []DevsyWorkspaceInstanceTasks `json:"items"` } // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object -type DevPodWorkspaceInstanceTroubleshootList struct { +type DevsyWorkspaceInstanceTroubleshootList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` - Items []DevPodWorkspaceInstanceTroubleshoot `json:"items"` + Items []DevsyWorkspaceInstanceTroubleshoot `json:"items"` } // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object -type DevPodWorkspaceInstanceUpList struct { +type DevsyWorkspaceInstanceUpList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` - Items []DevPodWorkspaceInstanceUp `json:"items"` + Items []DevsyWorkspaceInstanceUp `json:"items"` } -func (DevPodWorkspaceInstance) NewStatus() interface{} { - return DevPodWorkspaceInstanceStatus{} +func (DevsyWorkspaceInstance) NewStatus() interface{} { + return DevsyWorkspaceInstanceStatus{} } -func (pc *DevPodWorkspaceInstance) GetStatus() interface{} { +func (pc *DevsyWorkspaceInstance) GetStatus() interface{} { return pc.Status } -func (pc *DevPodWorkspaceInstance) SetStatus(s interface{}) { - pc.Status = s.(DevPodWorkspaceInstanceStatus) +func (pc *DevsyWorkspaceInstance) SetStatus(s interface{}) { + pc.Status = s.(DevsyWorkspaceInstanceStatus) } -func (pc *DevPodWorkspaceInstance) GetSpec() interface{} { +func (pc *DevsyWorkspaceInstance) GetSpec() interface{} { return pc.Spec } -func (pc *DevPodWorkspaceInstance) SetSpec(s interface{}) { - pc.Spec = s.(DevPodWorkspaceInstanceSpec) +func (pc *DevsyWorkspaceInstance) SetSpec(s interface{}) { + pc.Spec = s.(DevsyWorkspaceInstanceSpec) } -func (pc *DevPodWorkspaceInstance) GetObjectMeta() *metav1.ObjectMeta { +func (pc *DevsyWorkspaceInstance) GetObjectMeta() *metav1.ObjectMeta { return &pc.ObjectMeta } -func (pc *DevPodWorkspaceInstance) SetGeneration(generation int64) { +func (pc *DevsyWorkspaceInstance) SetGeneration(generation int64) { pc.ObjectMeta.Generation = generation } -func (pc DevPodWorkspaceInstance) GetGeneration() int64 { +func (pc DevsyWorkspaceInstance) GetGeneration() int64 { return pc.ObjectMeta.Generation } -// Registry is an interface for things that know how to store DevPodWorkspaceInstance. +// Registry is an interface for things that know how to store DevsyWorkspaceInstance. // +k8s:deepcopy-gen=false -type DevPodWorkspaceInstanceRegistry interface { - ListDevPodWorkspaceInstances(ctx context.Context, options *internalversion.ListOptions) (*DevPodWorkspaceInstanceList, error) - GetDevPodWorkspaceInstance(ctx context.Context, id string, options *metav1.GetOptions) (*DevPodWorkspaceInstance, error) - CreateDevPodWorkspaceInstance(ctx context.Context, id *DevPodWorkspaceInstance) (*DevPodWorkspaceInstance, error) - UpdateDevPodWorkspaceInstance(ctx context.Context, id *DevPodWorkspaceInstance) (*DevPodWorkspaceInstance, error) - DeleteDevPodWorkspaceInstance(ctx context.Context, id string) (bool, error) +type DevsyWorkspaceInstanceRegistry interface { + ListDevsyWorkspaceInstances(ctx context.Context, options *internalversion.ListOptions) (*DevsyWorkspaceInstanceList, error) + GetDevsyWorkspaceInstance(ctx context.Context, id string, options *metav1.GetOptions) (*DevsyWorkspaceInstance, error) + CreateDevsyWorkspaceInstance(ctx context.Context, id *DevsyWorkspaceInstance) (*DevsyWorkspaceInstance, error) + UpdateDevsyWorkspaceInstance(ctx context.Context, id *DevsyWorkspaceInstance) (*DevsyWorkspaceInstance, error) + DeleteDevsyWorkspaceInstance(ctx context.Context, id string) (bool, error) } // NewRegistry returns a new Registry interface for the given Storage. Any mismatched types will panic. -func NewDevPodWorkspaceInstanceRegistry(sp builders.StandardStorageProvider) DevPodWorkspaceInstanceRegistry { - return &storageDevPodWorkspaceInstance{sp} +func NewDevsyWorkspaceInstanceRegistry(sp builders.StandardStorageProvider) DevsyWorkspaceInstanceRegistry { + return &storageDevsyWorkspaceInstance{sp} } // Implement Registry // storage puts strong typing around storage calls // +k8s:deepcopy-gen=false -type storageDevPodWorkspaceInstance struct { +type storageDevsyWorkspaceInstance struct { builders.StandardStorageProvider } -func (s *storageDevPodWorkspaceInstance) ListDevPodWorkspaceInstances(ctx context.Context, options *internalversion.ListOptions) (*DevPodWorkspaceInstanceList, error) { +func (s *storageDevsyWorkspaceInstance) ListDevsyWorkspaceInstances(ctx context.Context, options *internalversion.ListOptions) (*DevsyWorkspaceInstanceList, error) { if options != nil && options.FieldSelector != nil && !options.FieldSelector.Empty() { return nil, fmt.Errorf("field selector not supported yet") } @@ -5026,117 +5145,117 @@ func (s *storageDevPodWorkspaceInstance) ListDevPodWorkspaceInstances(ctx contex if err != nil { return nil, err } - return obj.(*DevPodWorkspaceInstanceList), err + return obj.(*DevsyWorkspaceInstanceList), err } -func (s *storageDevPodWorkspaceInstance) GetDevPodWorkspaceInstance(ctx context.Context, id string, options *metav1.GetOptions) (*DevPodWorkspaceInstance, error) { +func (s *storageDevsyWorkspaceInstance) GetDevsyWorkspaceInstance(ctx context.Context, id string, options *metav1.GetOptions) (*DevsyWorkspaceInstance, error) { st := s.GetStandardStorage() obj, err := st.Get(ctx, id, options) if err != nil { return nil, err } - return obj.(*DevPodWorkspaceInstance), nil + return obj.(*DevsyWorkspaceInstance), nil } -func (s *storageDevPodWorkspaceInstance) CreateDevPodWorkspaceInstance(ctx context.Context, object *DevPodWorkspaceInstance) (*DevPodWorkspaceInstance, error) { +func (s *storageDevsyWorkspaceInstance) CreateDevsyWorkspaceInstance(ctx context.Context, object *DevsyWorkspaceInstance) (*DevsyWorkspaceInstance, error) { st := s.GetStandardStorage() obj, err := st.Create(ctx, object, nil, &metav1.CreateOptions{}) if err != nil { return nil, err } - return obj.(*DevPodWorkspaceInstance), nil + return obj.(*DevsyWorkspaceInstance), nil } -func (s *storageDevPodWorkspaceInstance) UpdateDevPodWorkspaceInstance(ctx context.Context, object *DevPodWorkspaceInstance) (*DevPodWorkspaceInstance, error) { +func (s *storageDevsyWorkspaceInstance) UpdateDevsyWorkspaceInstance(ctx context.Context, object *DevsyWorkspaceInstance) (*DevsyWorkspaceInstance, error) { st := s.GetStandardStorage() obj, _, err := st.Update(ctx, object.Name, rest.DefaultUpdatedObjectInfo(object), nil, nil, false, &metav1.UpdateOptions{}) if err != nil { return nil, err } - return obj.(*DevPodWorkspaceInstance), nil + return obj.(*DevsyWorkspaceInstance), nil } -func (s *storageDevPodWorkspaceInstance) DeleteDevPodWorkspaceInstance(ctx context.Context, id string) (bool, error) { +func (s *storageDevsyWorkspaceInstance) DeleteDevsyWorkspaceInstance(ctx context.Context, id string) (bool, error) { st := s.GetStandardStorage() _, sync, err := st.Delete(ctx, id, nil, &metav1.DeleteOptions{}) return sync, err } -// DevPodWorkspacePreset Functions and Structs +// DevsyWorkspacePreset Functions and Structs // // +k8s:deepcopy-gen=false -type DevPodWorkspacePresetStrategy struct { +type DevsyWorkspacePresetStrategy struct { builders.DefaultStorageStrategy } // +k8s:deepcopy-gen=false -type DevPodWorkspacePresetStatusStrategy struct { +type DevsyWorkspacePresetStatusStrategy struct { builders.DefaultStatusStorageStrategy } // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object -type DevPodWorkspacePresetList struct { +type DevsyWorkspacePresetList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` - Items []DevPodWorkspacePreset `json:"items"` + Items []DevsyWorkspacePreset `json:"items"` } -func (DevPodWorkspacePreset) NewStatus() interface{} { - return DevPodWorkspacePresetStatus{} +func (DevsyWorkspacePreset) NewStatus() interface{} { + return DevsyWorkspacePresetStatus{} } -func (pc *DevPodWorkspacePreset) GetStatus() interface{} { +func (pc *DevsyWorkspacePreset) GetStatus() interface{} { return pc.Status } -func (pc *DevPodWorkspacePreset) SetStatus(s interface{}) { - pc.Status = s.(DevPodWorkspacePresetStatus) +func (pc *DevsyWorkspacePreset) SetStatus(s interface{}) { + pc.Status = s.(DevsyWorkspacePresetStatus) } -func (pc *DevPodWorkspacePreset) GetSpec() interface{} { +func (pc *DevsyWorkspacePreset) GetSpec() interface{} { return pc.Spec } -func (pc *DevPodWorkspacePreset) SetSpec(s interface{}) { - pc.Spec = s.(DevPodWorkspacePresetSpec) +func (pc *DevsyWorkspacePreset) SetSpec(s interface{}) { + pc.Spec = s.(DevsyWorkspacePresetSpec) } -func (pc *DevPodWorkspacePreset) GetObjectMeta() *metav1.ObjectMeta { +func (pc *DevsyWorkspacePreset) GetObjectMeta() *metav1.ObjectMeta { return &pc.ObjectMeta } -func (pc *DevPodWorkspacePreset) SetGeneration(generation int64) { +func (pc *DevsyWorkspacePreset) SetGeneration(generation int64) { pc.ObjectMeta.Generation = generation } -func (pc DevPodWorkspacePreset) GetGeneration() int64 { +func (pc DevsyWorkspacePreset) GetGeneration() int64 { return pc.ObjectMeta.Generation } -// Registry is an interface for things that know how to store DevPodWorkspacePreset. +// Registry is an interface for things that know how to store DevsyWorkspacePreset. // +k8s:deepcopy-gen=false -type DevPodWorkspacePresetRegistry interface { - ListDevPodWorkspacePresets(ctx context.Context, options *internalversion.ListOptions) (*DevPodWorkspacePresetList, error) - GetDevPodWorkspacePreset(ctx context.Context, id string, options *metav1.GetOptions) (*DevPodWorkspacePreset, error) - CreateDevPodWorkspacePreset(ctx context.Context, id *DevPodWorkspacePreset) (*DevPodWorkspacePreset, error) - UpdateDevPodWorkspacePreset(ctx context.Context, id *DevPodWorkspacePreset) (*DevPodWorkspacePreset, error) - DeleteDevPodWorkspacePreset(ctx context.Context, id string) (bool, error) +type DevsyWorkspacePresetRegistry interface { + ListDevsyWorkspacePresets(ctx context.Context, options *internalversion.ListOptions) (*DevsyWorkspacePresetList, error) + GetDevsyWorkspacePreset(ctx context.Context, id string, options *metav1.GetOptions) (*DevsyWorkspacePreset, error) + CreateDevsyWorkspacePreset(ctx context.Context, id *DevsyWorkspacePreset) (*DevsyWorkspacePreset, error) + UpdateDevsyWorkspacePreset(ctx context.Context, id *DevsyWorkspacePreset) (*DevsyWorkspacePreset, error) + DeleteDevsyWorkspacePreset(ctx context.Context, id string) (bool, error) } // NewRegistry returns a new Registry interface for the given Storage. Any mismatched types will panic. -func NewDevPodWorkspacePresetRegistry(sp builders.StandardStorageProvider) DevPodWorkspacePresetRegistry { - return &storageDevPodWorkspacePreset{sp} +func NewDevsyWorkspacePresetRegistry(sp builders.StandardStorageProvider) DevsyWorkspacePresetRegistry { + return &storageDevsyWorkspacePreset{sp} } // Implement Registry // storage puts strong typing around storage calls // +k8s:deepcopy-gen=false -type storageDevPodWorkspacePreset struct { +type storageDevsyWorkspacePreset struct { builders.StandardStorageProvider } -func (s *storageDevPodWorkspacePreset) ListDevPodWorkspacePresets(ctx context.Context, options *internalversion.ListOptions) (*DevPodWorkspacePresetList, error) { +func (s *storageDevsyWorkspacePreset) ListDevsyWorkspacePresets(ctx context.Context, options *internalversion.ListOptions) (*DevsyWorkspacePresetList, error) { if options != nil && options.FieldSelector != nil && !options.FieldSelector.Empty() { return nil, fmt.Errorf("field selector not supported yet") } @@ -5145,117 +5264,117 @@ func (s *storageDevPodWorkspacePreset) ListDevPodWorkspacePresets(ctx context.Co if err != nil { return nil, err } - return obj.(*DevPodWorkspacePresetList), err + return obj.(*DevsyWorkspacePresetList), err } -func (s *storageDevPodWorkspacePreset) GetDevPodWorkspacePreset(ctx context.Context, id string, options *metav1.GetOptions) (*DevPodWorkspacePreset, error) { +func (s *storageDevsyWorkspacePreset) GetDevsyWorkspacePreset(ctx context.Context, id string, options *metav1.GetOptions) (*DevsyWorkspacePreset, error) { st := s.GetStandardStorage() obj, err := st.Get(ctx, id, options) if err != nil { return nil, err } - return obj.(*DevPodWorkspacePreset), nil + return obj.(*DevsyWorkspacePreset), nil } -func (s *storageDevPodWorkspacePreset) CreateDevPodWorkspacePreset(ctx context.Context, object *DevPodWorkspacePreset) (*DevPodWorkspacePreset, error) { +func (s *storageDevsyWorkspacePreset) CreateDevsyWorkspacePreset(ctx context.Context, object *DevsyWorkspacePreset) (*DevsyWorkspacePreset, error) { st := s.GetStandardStorage() obj, err := st.Create(ctx, object, nil, &metav1.CreateOptions{}) if err != nil { return nil, err } - return obj.(*DevPodWorkspacePreset), nil + return obj.(*DevsyWorkspacePreset), nil } -func (s *storageDevPodWorkspacePreset) UpdateDevPodWorkspacePreset(ctx context.Context, object *DevPodWorkspacePreset) (*DevPodWorkspacePreset, error) { +func (s *storageDevsyWorkspacePreset) UpdateDevsyWorkspacePreset(ctx context.Context, object *DevsyWorkspacePreset) (*DevsyWorkspacePreset, error) { st := s.GetStandardStorage() obj, _, err := st.Update(ctx, object.Name, rest.DefaultUpdatedObjectInfo(object), nil, nil, false, &metav1.UpdateOptions{}) if err != nil { return nil, err } - return obj.(*DevPodWorkspacePreset), nil + return obj.(*DevsyWorkspacePreset), nil } -func (s *storageDevPodWorkspacePreset) DeleteDevPodWorkspacePreset(ctx context.Context, id string) (bool, error) { +func (s *storageDevsyWorkspacePreset) DeleteDevsyWorkspacePreset(ctx context.Context, id string) (bool, error) { st := s.GetStandardStorage() _, sync, err := st.Delete(ctx, id, nil, &metav1.DeleteOptions{}) return sync, err } -// DevPodWorkspaceTemplate Functions and Structs +// DevsyWorkspaceTemplate Functions and Structs // // +k8s:deepcopy-gen=false -type DevPodWorkspaceTemplateStrategy struct { +type DevsyWorkspaceTemplateStrategy struct { builders.DefaultStorageStrategy } // +k8s:deepcopy-gen=false -type DevPodWorkspaceTemplateStatusStrategy struct { +type DevsyWorkspaceTemplateStatusStrategy struct { builders.DefaultStatusStorageStrategy } // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object -type DevPodWorkspaceTemplateList struct { +type DevsyWorkspaceTemplateList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` - Items []DevPodWorkspaceTemplate `json:"items"` + Items []DevsyWorkspaceTemplate `json:"items"` } -func (DevPodWorkspaceTemplate) NewStatus() interface{} { - return DevPodWorkspaceTemplateStatus{} +func (DevsyWorkspaceTemplate) NewStatus() interface{} { + return DevsyWorkspaceTemplateStatus{} } -func (pc *DevPodWorkspaceTemplate) GetStatus() interface{} { +func (pc *DevsyWorkspaceTemplate) GetStatus() interface{} { return pc.Status } -func (pc *DevPodWorkspaceTemplate) SetStatus(s interface{}) { - pc.Status = s.(DevPodWorkspaceTemplateStatus) +func (pc *DevsyWorkspaceTemplate) SetStatus(s interface{}) { + pc.Status = s.(DevsyWorkspaceTemplateStatus) } -func (pc *DevPodWorkspaceTemplate) GetSpec() interface{} { +func (pc *DevsyWorkspaceTemplate) GetSpec() interface{} { return pc.Spec } -func (pc *DevPodWorkspaceTemplate) SetSpec(s interface{}) { - pc.Spec = s.(DevPodWorkspaceTemplateSpec) +func (pc *DevsyWorkspaceTemplate) SetSpec(s interface{}) { + pc.Spec = s.(DevsyWorkspaceTemplateSpec) } -func (pc *DevPodWorkspaceTemplate) GetObjectMeta() *metav1.ObjectMeta { +func (pc *DevsyWorkspaceTemplate) GetObjectMeta() *metav1.ObjectMeta { return &pc.ObjectMeta } -func (pc *DevPodWorkspaceTemplate) SetGeneration(generation int64) { +func (pc *DevsyWorkspaceTemplate) SetGeneration(generation int64) { pc.ObjectMeta.Generation = generation } -func (pc DevPodWorkspaceTemplate) GetGeneration() int64 { +func (pc DevsyWorkspaceTemplate) GetGeneration() int64 { return pc.ObjectMeta.Generation } -// Registry is an interface for things that know how to store DevPodWorkspaceTemplate. +// Registry is an interface for things that know how to store DevsyWorkspaceTemplate. // +k8s:deepcopy-gen=false -type DevPodWorkspaceTemplateRegistry interface { - ListDevPodWorkspaceTemplates(ctx context.Context, options *internalversion.ListOptions) (*DevPodWorkspaceTemplateList, error) - GetDevPodWorkspaceTemplate(ctx context.Context, id string, options *metav1.GetOptions) (*DevPodWorkspaceTemplate, error) - CreateDevPodWorkspaceTemplate(ctx context.Context, id *DevPodWorkspaceTemplate) (*DevPodWorkspaceTemplate, error) - UpdateDevPodWorkspaceTemplate(ctx context.Context, id *DevPodWorkspaceTemplate) (*DevPodWorkspaceTemplate, error) - DeleteDevPodWorkspaceTemplate(ctx context.Context, id string) (bool, error) +type DevsyWorkspaceTemplateRegistry interface { + ListDevsyWorkspaceTemplates(ctx context.Context, options *internalversion.ListOptions) (*DevsyWorkspaceTemplateList, error) + GetDevsyWorkspaceTemplate(ctx context.Context, id string, options *metav1.GetOptions) (*DevsyWorkspaceTemplate, error) + CreateDevsyWorkspaceTemplate(ctx context.Context, id *DevsyWorkspaceTemplate) (*DevsyWorkspaceTemplate, error) + UpdateDevsyWorkspaceTemplate(ctx context.Context, id *DevsyWorkspaceTemplate) (*DevsyWorkspaceTemplate, error) + DeleteDevsyWorkspaceTemplate(ctx context.Context, id string) (bool, error) } // NewRegistry returns a new Registry interface for the given Storage. Any mismatched types will panic. -func NewDevPodWorkspaceTemplateRegistry(sp builders.StandardStorageProvider) DevPodWorkspaceTemplateRegistry { - return &storageDevPodWorkspaceTemplate{sp} +func NewDevsyWorkspaceTemplateRegistry(sp builders.StandardStorageProvider) DevsyWorkspaceTemplateRegistry { + return &storageDevsyWorkspaceTemplate{sp} } // Implement Registry // storage puts strong typing around storage calls // +k8s:deepcopy-gen=false -type storageDevPodWorkspaceTemplate struct { +type storageDevsyWorkspaceTemplate struct { builders.StandardStorageProvider } -func (s *storageDevPodWorkspaceTemplate) ListDevPodWorkspaceTemplates(ctx context.Context, options *internalversion.ListOptions) (*DevPodWorkspaceTemplateList, error) { +func (s *storageDevsyWorkspaceTemplate) ListDevsyWorkspaceTemplates(ctx context.Context, options *internalversion.ListOptions) (*DevsyWorkspaceTemplateList, error) { if options != nil && options.FieldSelector != nil && !options.FieldSelector.Empty() { return nil, fmt.Errorf("field selector not supported yet") } @@ -5264,37 +5383,37 @@ func (s *storageDevPodWorkspaceTemplate) ListDevPodWorkspaceTemplates(ctx contex if err != nil { return nil, err } - return obj.(*DevPodWorkspaceTemplateList), err + return obj.(*DevsyWorkspaceTemplateList), err } -func (s *storageDevPodWorkspaceTemplate) GetDevPodWorkspaceTemplate(ctx context.Context, id string, options *metav1.GetOptions) (*DevPodWorkspaceTemplate, error) { +func (s *storageDevsyWorkspaceTemplate) GetDevsyWorkspaceTemplate(ctx context.Context, id string, options *metav1.GetOptions) (*DevsyWorkspaceTemplate, error) { st := s.GetStandardStorage() obj, err := st.Get(ctx, id, options) if err != nil { return nil, err } - return obj.(*DevPodWorkspaceTemplate), nil + return obj.(*DevsyWorkspaceTemplate), nil } -func (s *storageDevPodWorkspaceTemplate) CreateDevPodWorkspaceTemplate(ctx context.Context, object *DevPodWorkspaceTemplate) (*DevPodWorkspaceTemplate, error) { +func (s *storageDevsyWorkspaceTemplate) CreateDevsyWorkspaceTemplate(ctx context.Context, object *DevsyWorkspaceTemplate) (*DevsyWorkspaceTemplate, error) { st := s.GetStandardStorage() obj, err := st.Create(ctx, object, nil, &metav1.CreateOptions{}) if err != nil { return nil, err } - return obj.(*DevPodWorkspaceTemplate), nil + return obj.(*DevsyWorkspaceTemplate), nil } -func (s *storageDevPodWorkspaceTemplate) UpdateDevPodWorkspaceTemplate(ctx context.Context, object *DevPodWorkspaceTemplate) (*DevPodWorkspaceTemplate, error) { +func (s *storageDevsyWorkspaceTemplate) UpdateDevsyWorkspaceTemplate(ctx context.Context, object *DevsyWorkspaceTemplate) (*DevsyWorkspaceTemplate, error) { st := s.GetStandardStorage() obj, _, err := st.Update(ctx, object.Name, rest.DefaultUpdatedObjectInfo(object), nil, nil, false, &metav1.UpdateOptions{}) if err != nil { return nil, err } - return obj.(*DevPodWorkspaceTemplate), nil + return obj.(*DevsyWorkspaceTemplate), nil } -func (s *storageDevPodWorkspaceTemplate) DeleteDevPodWorkspaceTemplate(ctx context.Context, id string) (bool, error) { +func (s *storageDevsyWorkspaceTemplate) DeleteDevsyWorkspaceTemplate(ctx context.Context, id string) (bool, error) { st := s.GetStandardStorage() _, sync, err := st.Delete(ctx, id, nil, &metav1.DeleteOptions{}) return sync, err @@ -6141,125 +6260,6 @@ func (s *storageLicenseToken) DeleteLicenseToken(ctx context.Context, id string) return sync, err } -// DevsyUpgrade Functions and Structs -// -// +k8s:deepcopy-gen=false -type DevsyUpgradeStrategy struct { - builders.DefaultStorageStrategy -} - -// +k8s:deepcopy-gen=false -type DevsyUpgradeStatusStrategy struct { - builders.DefaultStatusStorageStrategy -} - -// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object - -type DevsyUpgradeList struct { - metav1.TypeMeta `json:",inline"` - metav1.ListMeta `json:"metadata,omitempty"` - Items []DevsyUpgrade `json:"items"` -} - -func (DevsyUpgrade) NewStatus() interface{} { - return DevsyUpgradeStatus{} -} - -func (pc *DevsyUpgrade) GetStatus() interface{} { - return pc.Status -} - -func (pc *DevsyUpgrade) SetStatus(s interface{}) { - pc.Status = s.(DevsyUpgradeStatus) -} - -func (pc *DevsyUpgrade) GetSpec() interface{} { - return pc.Spec -} - -func (pc *DevsyUpgrade) SetSpec(s interface{}) { - pc.Spec = s.(DevsyUpgradeSpec) -} - -func (pc *DevsyUpgrade) GetObjectMeta() *metav1.ObjectMeta { - return &pc.ObjectMeta -} - -func (pc *DevsyUpgrade) SetGeneration(generation int64) { - pc.ObjectMeta.Generation = generation -} - -func (pc DevsyUpgrade) GetGeneration() int64 { - return pc.ObjectMeta.Generation -} - -// Registry is an interface for things that know how to store DevsyUpgrade. -// +k8s:deepcopy-gen=false -type DevsyUpgradeRegistry interface { - ListDevsyUpgrades(ctx context.Context, options *internalversion.ListOptions) (*DevsyUpgradeList, error) - GetDevsyUpgrade(ctx context.Context, id string, options *metav1.GetOptions) (*DevsyUpgrade, error) - CreateDevsyUpgrade(ctx context.Context, id *DevsyUpgrade) (*DevsyUpgrade, error) - UpdateDevsyUpgrade(ctx context.Context, id *DevsyUpgrade) (*DevsyUpgrade, error) - DeleteDevsyUpgrade(ctx context.Context, id string) (bool, error) -} - -// NewRegistry returns a new Registry interface for the given Storage. Any mismatched types will panic. -func NewDevsyUpgradeRegistry(sp builders.StandardStorageProvider) DevsyUpgradeRegistry { - return &storageDevsyUpgrade{sp} -} - -// Implement Registry -// storage puts strong typing around storage calls -// +k8s:deepcopy-gen=false -type storageDevsyUpgrade struct { - builders.StandardStorageProvider -} - -func (s *storageDevsyUpgrade) ListDevsyUpgrades(ctx context.Context, options *internalversion.ListOptions) (*DevsyUpgradeList, error) { - if options != nil && options.FieldSelector != nil && !options.FieldSelector.Empty() { - return nil, fmt.Errorf("field selector not supported yet") - } - st := s.GetStandardStorage() - obj, err := st.List(ctx, options) - if err != nil { - return nil, err - } - return obj.(*DevsyUpgradeList), err -} - -func (s *storageDevsyUpgrade) GetDevsyUpgrade(ctx context.Context, id string, options *metav1.GetOptions) (*DevsyUpgrade, error) { - st := s.GetStandardStorage() - obj, err := st.Get(ctx, id, options) - if err != nil { - return nil, err - } - return obj.(*DevsyUpgrade), nil -} - -func (s *storageDevsyUpgrade) CreateDevsyUpgrade(ctx context.Context, object *DevsyUpgrade) (*DevsyUpgrade, error) { - st := s.GetStandardStorage() - obj, err := st.Create(ctx, object, nil, &metav1.CreateOptions{}) - if err != nil { - return nil, err - } - return obj.(*DevsyUpgrade), nil -} - -func (s *storageDevsyUpgrade) UpdateDevsyUpgrade(ctx context.Context, object *DevsyUpgrade) (*DevsyUpgrade, error) { - st := s.GetStandardStorage() - obj, _, err := st.Update(ctx, object.Name, rest.DefaultUpdatedObjectInfo(object), nil, nil, false, &metav1.UpdateOptions{}) - if err != nil { - return nil, err - } - return obj.(*DevsyUpgrade), nil -} - -func (s *storageDevsyUpgrade) DeleteDevsyUpgrade(ctx context.Context, id string) (bool, error) { - st := s.GetStandardStorage() - _, sync, err := st.Delete(ctx, id, nil, &metav1.DeleteOptions{}) - return sync, err -} - // NodeClaim Functions and Structs // // +k8s:deepcopy-gen=false diff --git a/pkg/apis/management/zz_generated.deepcopy.go b/pkg/apis/management/zz_generated.deepcopy.go index 1abdffa..52887db 100644 --- a/pkg/apis/management/zz_generated.deepcopy.go +++ b/pkg/apis/management/zz_generated.deepcopy.go @@ -8,7 +8,7 @@ package management import ( licenseapi "github.com/devsy-org/admin-apis/pkg/licenseapi" clusterv1 "github.com/devsy-org/agentapi/pkg/apis/devsy/cluster/v1" - loftstoragev1 "github.com/devsy-org/agentapi/pkg/apis/devsy/storage/v1" + devsystoragev1 "github.com/devsy-org/agentapi/pkg/apis/devsy/storage/v1" v1 "github.com/devsy-org/api/pkg/apis/audit/v1" storagev1 "github.com/devsy-org/api/pkg/apis/storage/v1" uiv1 "github.com/devsy-org/api/pkg/apis/ui/v1" @@ -2451,7 +2451,7 @@ func (in *DatabaseConnectorStatus) DeepCopy() *DatabaseConnectorStatus { } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *DevPodEnvironmentTemplate) DeepCopyInto(out *DevPodEnvironmentTemplate) { +func (in *DevsyEnvironmentTemplate) DeepCopyInto(out *DevsyEnvironmentTemplate) { *out = *in out.TypeMeta = in.TypeMeta in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) @@ -2460,18 +2460,18 @@ func (in *DevPodEnvironmentTemplate) DeepCopyInto(out *DevPodEnvironmentTemplate return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevPodEnvironmentTemplate. -func (in *DevPodEnvironmentTemplate) DeepCopy() *DevPodEnvironmentTemplate { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevsyEnvironmentTemplate. +func (in *DevsyEnvironmentTemplate) DeepCopy() *DevsyEnvironmentTemplate { if in == nil { return nil } - out := new(DevPodEnvironmentTemplate) + out := new(DevsyEnvironmentTemplate) in.DeepCopyInto(out) return out } // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *DevPodEnvironmentTemplate) DeepCopyObject() runtime.Object { +func (in *DevsyEnvironmentTemplate) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -2479,13 +2479,13 @@ func (in *DevPodEnvironmentTemplate) DeepCopyObject() runtime.Object { } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *DevPodEnvironmentTemplateList) DeepCopyInto(out *DevPodEnvironmentTemplateList) { +func (in *DevsyEnvironmentTemplateList) DeepCopyInto(out *DevsyEnvironmentTemplateList) { *out = *in out.TypeMeta = in.TypeMeta in.ListMeta.DeepCopyInto(&out.ListMeta) if in.Items != nil { in, out := &in.Items, &out.Items - *out = make([]DevPodEnvironmentTemplate, len(*in)) + *out = make([]DevsyEnvironmentTemplate, len(*in)) for i := range *in { (*in)[i].DeepCopyInto(&(*out)[i]) } @@ -2493,18 +2493,18 @@ func (in *DevPodEnvironmentTemplateList) DeepCopyInto(out *DevPodEnvironmentTemp return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevPodEnvironmentTemplateList. -func (in *DevPodEnvironmentTemplateList) DeepCopy() *DevPodEnvironmentTemplateList { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevsyEnvironmentTemplateList. +func (in *DevsyEnvironmentTemplateList) DeepCopy() *DevsyEnvironmentTemplateList { if in == nil { return nil } - out := new(DevPodEnvironmentTemplateList) + out := new(DevsyEnvironmentTemplateList) in.DeepCopyInto(out) return out } // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *DevPodEnvironmentTemplateList) DeepCopyObject() runtime.Object { +func (in *DevsyEnvironmentTemplateList) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -2512,40 +2512,133 @@ func (in *DevPodEnvironmentTemplateList) DeepCopyObject() runtime.Object { } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *DevPodEnvironmentTemplateSpec) DeepCopyInto(out *DevPodEnvironmentTemplateSpec) { +func (in *DevsyEnvironmentTemplateSpec) DeepCopyInto(out *DevsyEnvironmentTemplateSpec) { *out = *in - in.DevPodEnvironmentTemplateSpec.DeepCopyInto(&out.DevPodEnvironmentTemplateSpec) + in.DevsyEnvironmentTemplateSpec.DeepCopyInto(&out.DevsyEnvironmentTemplateSpec) return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevPodEnvironmentTemplateSpec. -func (in *DevPodEnvironmentTemplateSpec) DeepCopy() *DevPodEnvironmentTemplateSpec { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevsyEnvironmentTemplateSpec. +func (in *DevsyEnvironmentTemplateSpec) DeepCopy() *DevsyEnvironmentTemplateSpec { if in == nil { return nil } - out := new(DevPodEnvironmentTemplateSpec) + out := new(DevsyEnvironmentTemplateSpec) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *DevPodEnvironmentTemplateStatus) DeepCopyInto(out *DevPodEnvironmentTemplateStatus) { +func (in *DevsyEnvironmentTemplateStatus) DeepCopyInto(out *DevsyEnvironmentTemplateStatus) { *out = *in return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevPodEnvironmentTemplateStatus. -func (in *DevPodEnvironmentTemplateStatus) DeepCopy() *DevPodEnvironmentTemplateStatus { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevsyEnvironmentTemplateStatus. +func (in *DevsyEnvironmentTemplateStatus) DeepCopy() *DevsyEnvironmentTemplateStatus { if in == nil { return nil } - out := new(DevPodEnvironmentTemplateStatus) + out := new(DevsyEnvironmentTemplateStatus) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *DevPodWorkspaceInstance) DeepCopyInto(out *DevPodWorkspaceInstance) { +func (in *DevsyUpgrade) DeepCopyInto(out *DevsyUpgrade) { + *out = *in + out.TypeMeta = in.TypeMeta + in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) + out.Spec = in.Spec + out.Status = in.Status + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevsyUpgrade. +func (in *DevsyUpgrade) DeepCopy() *DevsyUpgrade { + if in == nil { + return nil + } + out := new(DevsyUpgrade) + in.DeepCopyInto(out) + return out +} + +// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. +func (in *DevsyUpgrade) DeepCopyObject() runtime.Object { + if c := in.DeepCopy(); c != nil { + return c + } + return nil +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *DevsyUpgradeList) DeepCopyInto(out *DevsyUpgradeList) { + *out = *in + out.TypeMeta = in.TypeMeta + in.ListMeta.DeepCopyInto(&out.ListMeta) + if in.Items != nil { + in, out := &in.Items, &out.Items + *out = make([]DevsyUpgrade, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevsyUpgradeList. +func (in *DevsyUpgradeList) DeepCopy() *DevsyUpgradeList { + if in == nil { + return nil + } + out := new(DevsyUpgradeList) + in.DeepCopyInto(out) + return out +} + +// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. +func (in *DevsyUpgradeList) DeepCopyObject() runtime.Object { + if c := in.DeepCopy(); c != nil { + return c + } + return nil +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *DevsyUpgradeSpec) DeepCopyInto(out *DevsyUpgradeSpec) { + *out = *in + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevsyUpgradeSpec. +func (in *DevsyUpgradeSpec) DeepCopy() *DevsyUpgradeSpec { + if in == nil { + return nil + } + out := new(DevsyUpgradeSpec) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *DevsyUpgradeStatus) DeepCopyInto(out *DevsyUpgradeStatus) { + *out = *in + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevsyUpgradeStatus. +func (in *DevsyUpgradeStatus) DeepCopy() *DevsyUpgradeStatus { + if in == nil { + return nil + } + out := new(DevsyUpgradeStatus) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *DevsyWorkspaceInstance) DeepCopyInto(out *DevsyWorkspaceInstance) { *out = *in out.TypeMeta = in.TypeMeta in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) @@ -2554,18 +2647,18 @@ func (in *DevPodWorkspaceInstance) DeepCopyInto(out *DevPodWorkspaceInstance) { return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevPodWorkspaceInstance. -func (in *DevPodWorkspaceInstance) DeepCopy() *DevPodWorkspaceInstance { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevsyWorkspaceInstance. +func (in *DevsyWorkspaceInstance) DeepCopy() *DevsyWorkspaceInstance { if in == nil { return nil } - out := new(DevPodWorkspaceInstance) + out := new(DevsyWorkspaceInstance) in.DeepCopyInto(out) return out } // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *DevPodWorkspaceInstance) DeepCopyObject() runtime.Object { +func (in *DevsyWorkspaceInstance) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -2573,25 +2666,25 @@ func (in *DevPodWorkspaceInstance) DeepCopyObject() runtime.Object { } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *DevPodWorkspaceInstanceCancel) DeepCopyInto(out *DevPodWorkspaceInstanceCancel) { +func (in *DevsyWorkspaceInstanceCancel) DeepCopyInto(out *DevsyWorkspaceInstanceCancel) { *out = *in out.TypeMeta = in.TypeMeta in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevPodWorkspaceInstanceCancel. -func (in *DevPodWorkspaceInstanceCancel) DeepCopy() *DevPodWorkspaceInstanceCancel { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevsyWorkspaceInstanceCancel. +func (in *DevsyWorkspaceInstanceCancel) DeepCopy() *DevsyWorkspaceInstanceCancel { if in == nil { return nil } - out := new(DevPodWorkspaceInstanceCancel) + out := new(DevsyWorkspaceInstanceCancel) in.DeepCopyInto(out) return out } // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *DevPodWorkspaceInstanceCancel) DeepCopyObject() runtime.Object { +func (in *DevsyWorkspaceInstanceCancel) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -2599,13 +2692,13 @@ func (in *DevPodWorkspaceInstanceCancel) DeepCopyObject() runtime.Object { } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *DevPodWorkspaceInstanceCancelList) DeepCopyInto(out *DevPodWorkspaceInstanceCancelList) { +func (in *DevsyWorkspaceInstanceCancelList) DeepCopyInto(out *DevsyWorkspaceInstanceCancelList) { *out = *in out.TypeMeta = in.TypeMeta in.ListMeta.DeepCopyInto(&out.ListMeta) if in.Items != nil { in, out := &in.Items, &out.Items - *out = make([]DevPodWorkspaceInstanceCancel, len(*in)) + *out = make([]DevsyWorkspaceInstanceCancel, len(*in)) for i := range *in { (*in)[i].DeepCopyInto(&(*out)[i]) } @@ -2613,18 +2706,18 @@ func (in *DevPodWorkspaceInstanceCancelList) DeepCopyInto(out *DevPodWorkspaceIn return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevPodWorkspaceInstanceCancelList. -func (in *DevPodWorkspaceInstanceCancelList) DeepCopy() *DevPodWorkspaceInstanceCancelList { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevsyWorkspaceInstanceCancelList. +func (in *DevsyWorkspaceInstanceCancelList) DeepCopy() *DevsyWorkspaceInstanceCancelList { if in == nil { return nil } - out := new(DevPodWorkspaceInstanceCancelList) + out := new(DevsyWorkspaceInstanceCancelList) in.DeepCopyInto(out) return out } // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *DevPodWorkspaceInstanceCancelList) DeepCopyObject() runtime.Object { +func (in *DevsyWorkspaceInstanceCancelList) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -2632,25 +2725,25 @@ func (in *DevPodWorkspaceInstanceCancelList) DeepCopyObject() runtime.Object { } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *DevPodWorkspaceInstanceDownload) DeepCopyInto(out *DevPodWorkspaceInstanceDownload) { +func (in *DevsyWorkspaceInstanceDownload) DeepCopyInto(out *DevsyWorkspaceInstanceDownload) { *out = *in out.TypeMeta = in.TypeMeta in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevPodWorkspaceInstanceDownload. -func (in *DevPodWorkspaceInstanceDownload) DeepCopy() *DevPodWorkspaceInstanceDownload { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevsyWorkspaceInstanceDownload. +func (in *DevsyWorkspaceInstanceDownload) DeepCopy() *DevsyWorkspaceInstanceDownload { if in == nil { return nil } - out := new(DevPodWorkspaceInstanceDownload) + out := new(DevsyWorkspaceInstanceDownload) in.DeepCopyInto(out) return out } // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *DevPodWorkspaceInstanceDownload) DeepCopyObject() runtime.Object { +func (in *DevsyWorkspaceInstanceDownload) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -2658,13 +2751,13 @@ func (in *DevPodWorkspaceInstanceDownload) DeepCopyObject() runtime.Object { } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *DevPodWorkspaceInstanceDownloadList) DeepCopyInto(out *DevPodWorkspaceInstanceDownloadList) { +func (in *DevsyWorkspaceInstanceDownloadList) DeepCopyInto(out *DevsyWorkspaceInstanceDownloadList) { *out = *in out.TypeMeta = in.TypeMeta in.ListMeta.DeepCopyInto(&out.ListMeta) if in.Items != nil { in, out := &in.Items, &out.Items - *out = make([]DevPodWorkspaceInstanceDownload, len(*in)) + *out = make([]DevsyWorkspaceInstanceDownload, len(*in)) for i := range *in { (*in)[i].DeepCopyInto(&(*out)[i]) } @@ -2672,18 +2765,18 @@ func (in *DevPodWorkspaceInstanceDownloadList) DeepCopyInto(out *DevPodWorkspace return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevPodWorkspaceInstanceDownloadList. -func (in *DevPodWorkspaceInstanceDownloadList) DeepCopy() *DevPodWorkspaceInstanceDownloadList { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevsyWorkspaceInstanceDownloadList. +func (in *DevsyWorkspaceInstanceDownloadList) DeepCopy() *DevsyWorkspaceInstanceDownloadList { if in == nil { return nil } - out := new(DevPodWorkspaceInstanceDownloadList) + out := new(DevsyWorkspaceInstanceDownloadList) in.DeepCopyInto(out) return out } // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *DevPodWorkspaceInstanceDownloadList) DeepCopyObject() runtime.Object { +func (in *DevsyWorkspaceInstanceDownloadList) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -2691,24 +2784,24 @@ func (in *DevPodWorkspaceInstanceDownloadList) DeepCopyObject() runtime.Object { } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *DevPodWorkspaceInstanceDownloadOptions) DeepCopyInto(out *DevPodWorkspaceInstanceDownloadOptions) { +func (in *DevsyWorkspaceInstanceDownloadOptions) DeepCopyInto(out *DevsyWorkspaceInstanceDownloadOptions) { *out = *in out.TypeMeta = in.TypeMeta return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevPodWorkspaceInstanceDownloadOptions. -func (in *DevPodWorkspaceInstanceDownloadOptions) DeepCopy() *DevPodWorkspaceInstanceDownloadOptions { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevsyWorkspaceInstanceDownloadOptions. +func (in *DevsyWorkspaceInstanceDownloadOptions) DeepCopy() *DevsyWorkspaceInstanceDownloadOptions { if in == nil { return nil } - out := new(DevPodWorkspaceInstanceDownloadOptions) + out := new(DevsyWorkspaceInstanceDownloadOptions) in.DeepCopyInto(out) return out } // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *DevPodWorkspaceInstanceDownloadOptions) DeepCopyObject() runtime.Object { +func (in *DevsyWorkspaceInstanceDownloadOptions) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -2716,13 +2809,13 @@ func (in *DevPodWorkspaceInstanceDownloadOptions) DeepCopyObject() runtime.Objec } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *DevPodWorkspaceInstanceList) DeepCopyInto(out *DevPodWorkspaceInstanceList) { +func (in *DevsyWorkspaceInstanceList) DeepCopyInto(out *DevsyWorkspaceInstanceList) { *out = *in out.TypeMeta = in.TypeMeta in.ListMeta.DeepCopyInto(&out.ListMeta) if in.Items != nil { in, out := &in.Items, &out.Items - *out = make([]DevPodWorkspaceInstance, len(*in)) + *out = make([]DevsyWorkspaceInstance, len(*in)) for i := range *in { (*in)[i].DeepCopyInto(&(*out)[i]) } @@ -2730,18 +2823,18 @@ func (in *DevPodWorkspaceInstanceList) DeepCopyInto(out *DevPodWorkspaceInstance return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevPodWorkspaceInstanceList. -func (in *DevPodWorkspaceInstanceList) DeepCopy() *DevPodWorkspaceInstanceList { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevsyWorkspaceInstanceList. +func (in *DevsyWorkspaceInstanceList) DeepCopy() *DevsyWorkspaceInstanceList { if in == nil { return nil } - out := new(DevPodWorkspaceInstanceList) + out := new(DevsyWorkspaceInstanceList) in.DeepCopyInto(out) return out } // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *DevPodWorkspaceInstanceList) DeepCopyObject() runtime.Object { +func (in *DevsyWorkspaceInstanceList) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -2749,25 +2842,25 @@ func (in *DevPodWorkspaceInstanceList) DeepCopyObject() runtime.Object { } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *DevPodWorkspaceInstanceLog) DeepCopyInto(out *DevPodWorkspaceInstanceLog) { +func (in *DevsyWorkspaceInstanceLog) DeepCopyInto(out *DevsyWorkspaceInstanceLog) { *out = *in out.TypeMeta = in.TypeMeta in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevPodWorkspaceInstanceLog. -func (in *DevPodWorkspaceInstanceLog) DeepCopy() *DevPodWorkspaceInstanceLog { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevsyWorkspaceInstanceLog. +func (in *DevsyWorkspaceInstanceLog) DeepCopy() *DevsyWorkspaceInstanceLog { if in == nil { return nil } - out := new(DevPodWorkspaceInstanceLog) + out := new(DevsyWorkspaceInstanceLog) in.DeepCopyInto(out) return out } // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *DevPodWorkspaceInstanceLog) DeepCopyObject() runtime.Object { +func (in *DevsyWorkspaceInstanceLog) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -2775,13 +2868,13 @@ func (in *DevPodWorkspaceInstanceLog) DeepCopyObject() runtime.Object { } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *DevPodWorkspaceInstanceLogList) DeepCopyInto(out *DevPodWorkspaceInstanceLogList) { +func (in *DevsyWorkspaceInstanceLogList) DeepCopyInto(out *DevsyWorkspaceInstanceLogList) { *out = *in out.TypeMeta = in.TypeMeta in.ListMeta.DeepCopyInto(&out.ListMeta) if in.Items != nil { in, out := &in.Items, &out.Items - *out = make([]DevPodWorkspaceInstanceLog, len(*in)) + *out = make([]DevsyWorkspaceInstanceLog, len(*in)) for i := range *in { (*in)[i].DeepCopyInto(&(*out)[i]) } @@ -2789,18 +2882,18 @@ func (in *DevPodWorkspaceInstanceLogList) DeepCopyInto(out *DevPodWorkspaceInsta return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevPodWorkspaceInstanceLogList. -func (in *DevPodWorkspaceInstanceLogList) DeepCopy() *DevPodWorkspaceInstanceLogList { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevsyWorkspaceInstanceLogList. +func (in *DevsyWorkspaceInstanceLogList) DeepCopy() *DevsyWorkspaceInstanceLogList { if in == nil { return nil } - out := new(DevPodWorkspaceInstanceLogList) + out := new(DevsyWorkspaceInstanceLogList) in.DeepCopyInto(out) return out } // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *DevPodWorkspaceInstanceLogList) DeepCopyObject() runtime.Object { +func (in *DevsyWorkspaceInstanceLogList) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -2808,24 +2901,24 @@ func (in *DevPodWorkspaceInstanceLogList) DeepCopyObject() runtime.Object { } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *DevPodWorkspaceInstanceLogOptions) DeepCopyInto(out *DevPodWorkspaceInstanceLogOptions) { +func (in *DevsyWorkspaceInstanceLogOptions) DeepCopyInto(out *DevsyWorkspaceInstanceLogOptions) { *out = *in out.TypeMeta = in.TypeMeta return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevPodWorkspaceInstanceLogOptions. -func (in *DevPodWorkspaceInstanceLogOptions) DeepCopy() *DevPodWorkspaceInstanceLogOptions { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevsyWorkspaceInstanceLogOptions. +func (in *DevsyWorkspaceInstanceLogOptions) DeepCopy() *DevsyWorkspaceInstanceLogOptions { if in == nil { return nil } - out := new(DevPodWorkspaceInstanceLogOptions) + out := new(DevsyWorkspaceInstanceLogOptions) in.DeepCopyInto(out) return out } // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *DevPodWorkspaceInstanceLogOptions) DeepCopyObject() runtime.Object { +func (in *DevsyWorkspaceInstanceLogOptions) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -2833,26 +2926,26 @@ func (in *DevPodWorkspaceInstanceLogOptions) DeepCopyObject() runtime.Object { } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *DevPodWorkspaceInstanceSpec) DeepCopyInto(out *DevPodWorkspaceInstanceSpec) { +func (in *DevsyWorkspaceInstanceSpec) DeepCopyInto(out *DevsyWorkspaceInstanceSpec) { *out = *in - in.DevPodWorkspaceInstanceSpec.DeepCopyInto(&out.DevPodWorkspaceInstanceSpec) + in.DevsyWorkspaceInstanceSpec.DeepCopyInto(&out.DevsyWorkspaceInstanceSpec) return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevPodWorkspaceInstanceSpec. -func (in *DevPodWorkspaceInstanceSpec) DeepCopy() *DevPodWorkspaceInstanceSpec { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevsyWorkspaceInstanceSpec. +func (in *DevsyWorkspaceInstanceSpec) DeepCopy() *DevsyWorkspaceInstanceSpec { if in == nil { return nil } - out := new(DevPodWorkspaceInstanceSpec) + out := new(DevsyWorkspaceInstanceSpec) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *DevPodWorkspaceInstanceStatus) DeepCopyInto(out *DevPodWorkspaceInstanceStatus) { +func (in *DevsyWorkspaceInstanceStatus) DeepCopyInto(out *DevsyWorkspaceInstanceStatus) { *out = *in - in.DevPodWorkspaceInstanceStatus.DeepCopyInto(&out.DevPodWorkspaceInstanceStatus) + in.DevsyWorkspaceInstanceStatus.DeepCopyInto(&out.DevsyWorkspaceInstanceStatus) if in.SleepModeConfig != nil { in, out := &in.SleepModeConfig, &out.SleepModeConfig *out = new(clusterv1.SleepModeConfig) @@ -2861,18 +2954,18 @@ func (in *DevPodWorkspaceInstanceStatus) DeepCopyInto(out *DevPodWorkspaceInstan return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevPodWorkspaceInstanceStatus. -func (in *DevPodWorkspaceInstanceStatus) DeepCopy() *DevPodWorkspaceInstanceStatus { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevsyWorkspaceInstanceStatus. +func (in *DevsyWorkspaceInstanceStatus) DeepCopy() *DevsyWorkspaceInstanceStatus { if in == nil { return nil } - out := new(DevPodWorkspaceInstanceStatus) + out := new(DevsyWorkspaceInstanceStatus) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *DevPodWorkspaceInstanceStop) DeepCopyInto(out *DevPodWorkspaceInstanceStop) { +func (in *DevsyWorkspaceInstanceStop) DeepCopyInto(out *DevsyWorkspaceInstanceStop) { *out = *in out.TypeMeta = in.TypeMeta in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) @@ -2881,18 +2974,18 @@ func (in *DevPodWorkspaceInstanceStop) DeepCopyInto(out *DevPodWorkspaceInstance return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevPodWorkspaceInstanceStop. -func (in *DevPodWorkspaceInstanceStop) DeepCopy() *DevPodWorkspaceInstanceStop { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevsyWorkspaceInstanceStop. +func (in *DevsyWorkspaceInstanceStop) DeepCopy() *DevsyWorkspaceInstanceStop { if in == nil { return nil } - out := new(DevPodWorkspaceInstanceStop) + out := new(DevsyWorkspaceInstanceStop) in.DeepCopyInto(out) return out } // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *DevPodWorkspaceInstanceStop) DeepCopyObject() runtime.Object { +func (in *DevsyWorkspaceInstanceStop) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -2900,13 +2993,13 @@ func (in *DevPodWorkspaceInstanceStop) DeepCopyObject() runtime.Object { } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *DevPodWorkspaceInstanceStopList) DeepCopyInto(out *DevPodWorkspaceInstanceStopList) { +func (in *DevsyWorkspaceInstanceStopList) DeepCopyInto(out *DevsyWorkspaceInstanceStopList) { *out = *in out.TypeMeta = in.TypeMeta in.ListMeta.DeepCopyInto(&out.ListMeta) if in.Items != nil { in, out := &in.Items, &out.Items - *out = make([]DevPodWorkspaceInstanceStop, len(*in)) + *out = make([]DevsyWorkspaceInstanceStop, len(*in)) for i := range *in { (*in)[i].DeepCopyInto(&(*out)[i]) } @@ -2914,18 +3007,18 @@ func (in *DevPodWorkspaceInstanceStopList) DeepCopyInto(out *DevPodWorkspaceInst return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevPodWorkspaceInstanceStopList. -func (in *DevPodWorkspaceInstanceStopList) DeepCopy() *DevPodWorkspaceInstanceStopList { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevsyWorkspaceInstanceStopList. +func (in *DevsyWorkspaceInstanceStopList) DeepCopy() *DevsyWorkspaceInstanceStopList { if in == nil { return nil } - out := new(DevPodWorkspaceInstanceStopList) + out := new(DevsyWorkspaceInstanceStopList) in.DeepCopyInto(out) return out } // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *DevPodWorkspaceInstanceStopList) DeepCopyObject() runtime.Object { +func (in *DevsyWorkspaceInstanceStopList) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -2933,39 +3026,39 @@ func (in *DevPodWorkspaceInstanceStopList) DeepCopyObject() runtime.Object { } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *DevPodWorkspaceInstanceStopSpec) DeepCopyInto(out *DevPodWorkspaceInstanceStopSpec) { +func (in *DevsyWorkspaceInstanceStopSpec) DeepCopyInto(out *DevsyWorkspaceInstanceStopSpec) { *out = *in return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevPodWorkspaceInstanceStopSpec. -func (in *DevPodWorkspaceInstanceStopSpec) DeepCopy() *DevPodWorkspaceInstanceStopSpec { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevsyWorkspaceInstanceStopSpec. +func (in *DevsyWorkspaceInstanceStopSpec) DeepCopy() *DevsyWorkspaceInstanceStopSpec { if in == nil { return nil } - out := new(DevPodWorkspaceInstanceStopSpec) + out := new(DevsyWorkspaceInstanceStopSpec) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *DevPodWorkspaceInstanceStopStatus) DeepCopyInto(out *DevPodWorkspaceInstanceStopStatus) { +func (in *DevsyWorkspaceInstanceStopStatus) DeepCopyInto(out *DevsyWorkspaceInstanceStopStatus) { *out = *in return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevPodWorkspaceInstanceStopStatus. -func (in *DevPodWorkspaceInstanceStopStatus) DeepCopy() *DevPodWorkspaceInstanceStopStatus { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevsyWorkspaceInstanceStopStatus. +func (in *DevsyWorkspaceInstanceStopStatus) DeepCopy() *DevsyWorkspaceInstanceStopStatus { if in == nil { return nil } - out := new(DevPodWorkspaceInstanceStopStatus) + out := new(DevsyWorkspaceInstanceStopStatus) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *DevPodWorkspaceInstanceTask) DeepCopyInto(out *DevPodWorkspaceInstanceTask) { +func (in *DevsyWorkspaceInstanceTask) DeepCopyInto(out *DevsyWorkspaceInstanceTask) { *out = *in if in.Result != nil { in, out := &in.Result, &out.Result @@ -2981,24 +3074,24 @@ func (in *DevPodWorkspaceInstanceTask) DeepCopyInto(out *DevPodWorkspaceInstance return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevPodWorkspaceInstanceTask. -func (in *DevPodWorkspaceInstanceTask) DeepCopy() *DevPodWorkspaceInstanceTask { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevsyWorkspaceInstanceTask. +func (in *DevsyWorkspaceInstanceTask) DeepCopy() *DevsyWorkspaceInstanceTask { if in == nil { return nil } - out := new(DevPodWorkspaceInstanceTask) + out := new(DevsyWorkspaceInstanceTask) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *DevPodWorkspaceInstanceTasks) DeepCopyInto(out *DevPodWorkspaceInstanceTasks) { +func (in *DevsyWorkspaceInstanceTasks) DeepCopyInto(out *DevsyWorkspaceInstanceTasks) { *out = *in out.TypeMeta = in.TypeMeta in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) if in.Tasks != nil { in, out := &in.Tasks, &out.Tasks - *out = make([]DevPodWorkspaceInstanceTask, len(*in)) + *out = make([]DevsyWorkspaceInstanceTask, len(*in)) for i := range *in { (*in)[i].DeepCopyInto(&(*out)[i]) } @@ -3006,18 +3099,18 @@ func (in *DevPodWorkspaceInstanceTasks) DeepCopyInto(out *DevPodWorkspaceInstanc return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevPodWorkspaceInstanceTasks. -func (in *DevPodWorkspaceInstanceTasks) DeepCopy() *DevPodWorkspaceInstanceTasks { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevsyWorkspaceInstanceTasks. +func (in *DevsyWorkspaceInstanceTasks) DeepCopy() *DevsyWorkspaceInstanceTasks { if in == nil { return nil } - out := new(DevPodWorkspaceInstanceTasks) + out := new(DevsyWorkspaceInstanceTasks) in.DeepCopyInto(out) return out } // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *DevPodWorkspaceInstanceTasks) DeepCopyObject() runtime.Object { +func (in *DevsyWorkspaceInstanceTasks) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -3025,13 +3118,13 @@ func (in *DevPodWorkspaceInstanceTasks) DeepCopyObject() runtime.Object { } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *DevPodWorkspaceInstanceTasksList) DeepCopyInto(out *DevPodWorkspaceInstanceTasksList) { +func (in *DevsyWorkspaceInstanceTasksList) DeepCopyInto(out *DevsyWorkspaceInstanceTasksList) { *out = *in out.TypeMeta = in.TypeMeta in.ListMeta.DeepCopyInto(&out.ListMeta) if in.Items != nil { in, out := &in.Items, &out.Items - *out = make([]DevPodWorkspaceInstanceTasks, len(*in)) + *out = make([]DevsyWorkspaceInstanceTasks, len(*in)) for i := range *in { (*in)[i].DeepCopyInto(&(*out)[i]) } @@ -3039,18 +3132,18 @@ func (in *DevPodWorkspaceInstanceTasksList) DeepCopyInto(out *DevPodWorkspaceIns return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevPodWorkspaceInstanceTasksList. -func (in *DevPodWorkspaceInstanceTasksList) DeepCopy() *DevPodWorkspaceInstanceTasksList { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevsyWorkspaceInstanceTasksList. +func (in *DevsyWorkspaceInstanceTasksList) DeepCopy() *DevsyWorkspaceInstanceTasksList { if in == nil { return nil } - out := new(DevPodWorkspaceInstanceTasksList) + out := new(DevsyWorkspaceInstanceTasksList) in.DeepCopyInto(out) return out } // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *DevPodWorkspaceInstanceTasksList) DeepCopyObject() runtime.Object { +func (in *DevsyWorkspaceInstanceTasksList) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -3058,24 +3151,24 @@ func (in *DevPodWorkspaceInstanceTasksList) DeepCopyObject() runtime.Object { } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *DevPodWorkspaceInstanceTasksOptions) DeepCopyInto(out *DevPodWorkspaceInstanceTasksOptions) { +func (in *DevsyWorkspaceInstanceTasksOptions) DeepCopyInto(out *DevsyWorkspaceInstanceTasksOptions) { *out = *in out.TypeMeta = in.TypeMeta return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevPodWorkspaceInstanceTasksOptions. -func (in *DevPodWorkspaceInstanceTasksOptions) DeepCopy() *DevPodWorkspaceInstanceTasksOptions { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevsyWorkspaceInstanceTasksOptions. +func (in *DevsyWorkspaceInstanceTasksOptions) DeepCopy() *DevsyWorkspaceInstanceTasksOptions { if in == nil { return nil } - out := new(DevPodWorkspaceInstanceTasksOptions) + out := new(DevsyWorkspaceInstanceTasksOptions) in.DeepCopyInto(out) return out } // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *DevPodWorkspaceInstanceTasksOptions) DeepCopyObject() runtime.Object { +func (in *DevsyWorkspaceInstanceTasksOptions) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -3083,18 +3176,18 @@ func (in *DevPodWorkspaceInstanceTasksOptions) DeepCopyObject() runtime.Object { } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *DevPodWorkspaceInstanceTroubleshoot) DeepCopyInto(out *DevPodWorkspaceInstanceTroubleshoot) { +func (in *DevsyWorkspaceInstanceTroubleshoot) DeepCopyInto(out *DevsyWorkspaceInstanceTroubleshoot) { *out = *in out.TypeMeta = in.TypeMeta in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) if in.Workspace != nil { in, out := &in.Workspace, &out.Workspace - *out = new(DevPodWorkspaceInstance) + *out = new(DevsyWorkspaceInstance) (*in).DeepCopyInto(*out) } if in.Template != nil { in, out := &in.Template, &out.Template - *out = new(storagev1.DevPodWorkspaceTemplate) + *out = new(storagev1.DevsyWorkspaceTemplate) (*in).DeepCopyInto(*out) } if in.Pods != nil { @@ -3124,18 +3217,18 @@ func (in *DevPodWorkspaceInstanceTroubleshoot) DeepCopyInto(out *DevPodWorkspace return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevPodWorkspaceInstanceTroubleshoot. -func (in *DevPodWorkspaceInstanceTroubleshoot) DeepCopy() *DevPodWorkspaceInstanceTroubleshoot { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevsyWorkspaceInstanceTroubleshoot. +func (in *DevsyWorkspaceInstanceTroubleshoot) DeepCopy() *DevsyWorkspaceInstanceTroubleshoot { if in == nil { return nil } - out := new(DevPodWorkspaceInstanceTroubleshoot) + out := new(DevsyWorkspaceInstanceTroubleshoot) in.DeepCopyInto(out) return out } // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *DevPodWorkspaceInstanceTroubleshoot) DeepCopyObject() runtime.Object { +func (in *DevsyWorkspaceInstanceTroubleshoot) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -3143,13 +3236,13 @@ func (in *DevPodWorkspaceInstanceTroubleshoot) DeepCopyObject() runtime.Object { } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *DevPodWorkspaceInstanceTroubleshootList) DeepCopyInto(out *DevPodWorkspaceInstanceTroubleshootList) { +func (in *DevsyWorkspaceInstanceTroubleshootList) DeepCopyInto(out *DevsyWorkspaceInstanceTroubleshootList) { *out = *in out.TypeMeta = in.TypeMeta in.ListMeta.DeepCopyInto(&out.ListMeta) if in.Items != nil { in, out := &in.Items, &out.Items - *out = make([]DevPodWorkspaceInstanceTroubleshoot, len(*in)) + *out = make([]DevsyWorkspaceInstanceTroubleshoot, len(*in)) for i := range *in { (*in)[i].DeepCopyInto(&(*out)[i]) } @@ -3157,18 +3250,18 @@ func (in *DevPodWorkspaceInstanceTroubleshootList) DeepCopyInto(out *DevPodWorks return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevPodWorkspaceInstanceTroubleshootList. -func (in *DevPodWorkspaceInstanceTroubleshootList) DeepCopy() *DevPodWorkspaceInstanceTroubleshootList { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevsyWorkspaceInstanceTroubleshootList. +func (in *DevsyWorkspaceInstanceTroubleshootList) DeepCopy() *DevsyWorkspaceInstanceTroubleshootList { if in == nil { return nil } - out := new(DevPodWorkspaceInstanceTroubleshootList) + out := new(DevsyWorkspaceInstanceTroubleshootList) in.DeepCopyInto(out) return out } // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *DevPodWorkspaceInstanceTroubleshootList) DeepCopyObject() runtime.Object { +func (in *DevsyWorkspaceInstanceTroubleshootList) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -3176,7 +3269,7 @@ func (in *DevPodWorkspaceInstanceTroubleshootList) DeepCopyObject() runtime.Obje } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *DevPodWorkspaceInstanceUp) DeepCopyInto(out *DevPodWorkspaceInstanceUp) { +func (in *DevsyWorkspaceInstanceUp) DeepCopyInto(out *DevsyWorkspaceInstanceUp) { *out = *in out.TypeMeta = in.TypeMeta in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) @@ -3185,18 +3278,18 @@ func (in *DevPodWorkspaceInstanceUp) DeepCopyInto(out *DevPodWorkspaceInstanceUp return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevPodWorkspaceInstanceUp. -func (in *DevPodWorkspaceInstanceUp) DeepCopy() *DevPodWorkspaceInstanceUp { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevsyWorkspaceInstanceUp. +func (in *DevsyWorkspaceInstanceUp) DeepCopy() *DevsyWorkspaceInstanceUp { if in == nil { return nil } - out := new(DevPodWorkspaceInstanceUp) + out := new(DevsyWorkspaceInstanceUp) in.DeepCopyInto(out) return out } // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *DevPodWorkspaceInstanceUp) DeepCopyObject() runtime.Object { +func (in *DevsyWorkspaceInstanceUp) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -3204,13 +3297,13 @@ func (in *DevPodWorkspaceInstanceUp) DeepCopyObject() runtime.Object { } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *DevPodWorkspaceInstanceUpList) DeepCopyInto(out *DevPodWorkspaceInstanceUpList) { +func (in *DevsyWorkspaceInstanceUpList) DeepCopyInto(out *DevsyWorkspaceInstanceUpList) { *out = *in out.TypeMeta = in.TypeMeta in.ListMeta.DeepCopyInto(&out.ListMeta) if in.Items != nil { in, out := &in.Items, &out.Items - *out = make([]DevPodWorkspaceInstanceUp, len(*in)) + *out = make([]DevsyWorkspaceInstanceUp, len(*in)) for i := range *in { (*in)[i].DeepCopyInto(&(*out)[i]) } @@ -3218,18 +3311,18 @@ func (in *DevPodWorkspaceInstanceUpList) DeepCopyInto(out *DevPodWorkspaceInstan return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevPodWorkspaceInstanceUpList. -func (in *DevPodWorkspaceInstanceUpList) DeepCopy() *DevPodWorkspaceInstanceUpList { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevsyWorkspaceInstanceUpList. +func (in *DevsyWorkspaceInstanceUpList) DeepCopy() *DevsyWorkspaceInstanceUpList { if in == nil { return nil } - out := new(DevPodWorkspaceInstanceUpList) + out := new(DevsyWorkspaceInstanceUpList) in.DeepCopyInto(out) return out } // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *DevPodWorkspaceInstanceUpList) DeepCopyObject() runtime.Object { +func (in *DevsyWorkspaceInstanceUpList) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -3237,39 +3330,39 @@ func (in *DevPodWorkspaceInstanceUpList) DeepCopyObject() runtime.Object { } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *DevPodWorkspaceInstanceUpSpec) DeepCopyInto(out *DevPodWorkspaceInstanceUpSpec) { +func (in *DevsyWorkspaceInstanceUpSpec) DeepCopyInto(out *DevsyWorkspaceInstanceUpSpec) { *out = *in return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevPodWorkspaceInstanceUpSpec. -func (in *DevPodWorkspaceInstanceUpSpec) DeepCopy() *DevPodWorkspaceInstanceUpSpec { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevsyWorkspaceInstanceUpSpec. +func (in *DevsyWorkspaceInstanceUpSpec) DeepCopy() *DevsyWorkspaceInstanceUpSpec { if in == nil { return nil } - out := new(DevPodWorkspaceInstanceUpSpec) + out := new(DevsyWorkspaceInstanceUpSpec) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *DevPodWorkspaceInstanceUpStatus) DeepCopyInto(out *DevPodWorkspaceInstanceUpStatus) { +func (in *DevsyWorkspaceInstanceUpStatus) DeepCopyInto(out *DevsyWorkspaceInstanceUpStatus) { *out = *in return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevPodWorkspaceInstanceUpStatus. -func (in *DevPodWorkspaceInstanceUpStatus) DeepCopy() *DevPodWorkspaceInstanceUpStatus { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevsyWorkspaceInstanceUpStatus. +func (in *DevsyWorkspaceInstanceUpStatus) DeepCopy() *DevsyWorkspaceInstanceUpStatus { if in == nil { return nil } - out := new(DevPodWorkspaceInstanceUpStatus) + out := new(DevsyWorkspaceInstanceUpStatus) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *DevPodWorkspacePreset) DeepCopyInto(out *DevPodWorkspacePreset) { +func (in *DevsyWorkspacePreset) DeepCopyInto(out *DevsyWorkspacePreset) { *out = *in out.TypeMeta = in.TypeMeta in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) @@ -3278,18 +3371,18 @@ func (in *DevPodWorkspacePreset) DeepCopyInto(out *DevPodWorkspacePreset) { return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevPodWorkspacePreset. -func (in *DevPodWorkspacePreset) DeepCopy() *DevPodWorkspacePreset { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevsyWorkspacePreset. +func (in *DevsyWorkspacePreset) DeepCopy() *DevsyWorkspacePreset { if in == nil { return nil } - out := new(DevPodWorkspacePreset) + out := new(DevsyWorkspacePreset) in.DeepCopyInto(out) return out } // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *DevPodWorkspacePreset) DeepCopyObject() runtime.Object { +func (in *DevsyWorkspacePreset) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -3297,13 +3390,13 @@ func (in *DevPodWorkspacePreset) DeepCopyObject() runtime.Object { } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *DevPodWorkspacePresetList) DeepCopyInto(out *DevPodWorkspacePresetList) { +func (in *DevsyWorkspacePresetList) DeepCopyInto(out *DevsyWorkspacePresetList) { *out = *in out.TypeMeta = in.TypeMeta in.ListMeta.DeepCopyInto(&out.ListMeta) if in.Items != nil { in, out := &in.Items, &out.Items - *out = make([]DevPodWorkspacePreset, len(*in)) + *out = make([]DevsyWorkspacePreset, len(*in)) for i := range *in { (*in)[i].DeepCopyInto(&(*out)[i]) } @@ -3311,18 +3404,18 @@ func (in *DevPodWorkspacePresetList) DeepCopyInto(out *DevPodWorkspacePresetList return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevPodWorkspacePresetList. -func (in *DevPodWorkspacePresetList) DeepCopy() *DevPodWorkspacePresetList { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevsyWorkspacePresetList. +func (in *DevsyWorkspacePresetList) DeepCopy() *DevsyWorkspacePresetList { if in == nil { return nil } - out := new(DevPodWorkspacePresetList) + out := new(DevsyWorkspacePresetList) in.DeepCopyInto(out) return out } // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *DevPodWorkspacePresetList) DeepCopyObject() runtime.Object { +func (in *DevsyWorkspacePresetList) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -3330,40 +3423,40 @@ func (in *DevPodWorkspacePresetList) DeepCopyObject() runtime.Object { } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *DevPodWorkspacePresetSpec) DeepCopyInto(out *DevPodWorkspacePresetSpec) { +func (in *DevsyWorkspacePresetSpec) DeepCopyInto(out *DevsyWorkspacePresetSpec) { *out = *in - in.DevPodWorkspacePresetSpec.DeepCopyInto(&out.DevPodWorkspacePresetSpec) + in.DevsyWorkspacePresetSpec.DeepCopyInto(&out.DevsyWorkspacePresetSpec) return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevPodWorkspacePresetSpec. -func (in *DevPodWorkspacePresetSpec) DeepCopy() *DevPodWorkspacePresetSpec { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevsyWorkspacePresetSpec. +func (in *DevsyWorkspacePresetSpec) DeepCopy() *DevsyWorkspacePresetSpec { if in == nil { return nil } - out := new(DevPodWorkspacePresetSpec) + out := new(DevsyWorkspacePresetSpec) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *DevPodWorkspacePresetStatus) DeepCopyInto(out *DevPodWorkspacePresetStatus) { +func (in *DevsyWorkspacePresetStatus) DeepCopyInto(out *DevsyWorkspacePresetStatus) { *out = *in return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevPodWorkspacePresetStatus. -func (in *DevPodWorkspacePresetStatus) DeepCopy() *DevPodWorkspacePresetStatus { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevsyWorkspacePresetStatus. +func (in *DevsyWorkspacePresetStatus) DeepCopy() *DevsyWorkspacePresetStatus { if in == nil { return nil } - out := new(DevPodWorkspacePresetStatus) + out := new(DevsyWorkspacePresetStatus) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *DevPodWorkspaceTemplate) DeepCopyInto(out *DevPodWorkspaceTemplate) { +func (in *DevsyWorkspaceTemplate) DeepCopyInto(out *DevsyWorkspaceTemplate) { *out = *in out.TypeMeta = in.TypeMeta in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) @@ -3372,18 +3465,18 @@ func (in *DevPodWorkspaceTemplate) DeepCopyInto(out *DevPodWorkspaceTemplate) { return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevPodWorkspaceTemplate. -func (in *DevPodWorkspaceTemplate) DeepCopy() *DevPodWorkspaceTemplate { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevsyWorkspaceTemplate. +func (in *DevsyWorkspaceTemplate) DeepCopy() *DevsyWorkspaceTemplate { if in == nil { return nil } - out := new(DevPodWorkspaceTemplate) + out := new(DevsyWorkspaceTemplate) in.DeepCopyInto(out) return out } // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *DevPodWorkspaceTemplate) DeepCopyObject() runtime.Object { +func (in *DevsyWorkspaceTemplate) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -3391,13 +3484,13 @@ func (in *DevPodWorkspaceTemplate) DeepCopyObject() runtime.Object { } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *DevPodWorkspaceTemplateList) DeepCopyInto(out *DevPodWorkspaceTemplateList) { +func (in *DevsyWorkspaceTemplateList) DeepCopyInto(out *DevsyWorkspaceTemplateList) { *out = *in out.TypeMeta = in.TypeMeta in.ListMeta.DeepCopyInto(&out.ListMeta) if in.Items != nil { in, out := &in.Items, &out.Items - *out = make([]DevPodWorkspaceTemplate, len(*in)) + *out = make([]DevsyWorkspaceTemplate, len(*in)) for i := range *in { (*in)[i].DeepCopyInto(&(*out)[i]) } @@ -3405,18 +3498,18 @@ func (in *DevPodWorkspaceTemplateList) DeepCopyInto(out *DevPodWorkspaceTemplate return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevPodWorkspaceTemplateList. -func (in *DevPodWorkspaceTemplateList) DeepCopy() *DevPodWorkspaceTemplateList { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevsyWorkspaceTemplateList. +func (in *DevsyWorkspaceTemplateList) DeepCopy() *DevsyWorkspaceTemplateList { if in == nil { return nil } - out := new(DevPodWorkspaceTemplateList) + out := new(DevsyWorkspaceTemplateList) in.DeepCopyInto(out) return out } // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *DevPodWorkspaceTemplateList) DeepCopyObject() runtime.Object { +func (in *DevsyWorkspaceTemplateList) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -3424,35 +3517,35 @@ func (in *DevPodWorkspaceTemplateList) DeepCopyObject() runtime.Object { } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *DevPodWorkspaceTemplateSpec) DeepCopyInto(out *DevPodWorkspaceTemplateSpec) { +func (in *DevsyWorkspaceTemplateSpec) DeepCopyInto(out *DevsyWorkspaceTemplateSpec) { *out = *in - in.DevPodWorkspaceTemplateSpec.DeepCopyInto(&out.DevPodWorkspaceTemplateSpec) + in.DevsyWorkspaceTemplateSpec.DeepCopyInto(&out.DevsyWorkspaceTemplateSpec) return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevPodWorkspaceTemplateSpec. -func (in *DevPodWorkspaceTemplateSpec) DeepCopy() *DevPodWorkspaceTemplateSpec { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevsyWorkspaceTemplateSpec. +func (in *DevsyWorkspaceTemplateSpec) DeepCopy() *DevsyWorkspaceTemplateSpec { if in == nil { return nil } - out := new(DevPodWorkspaceTemplateSpec) + out := new(DevsyWorkspaceTemplateSpec) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *DevPodWorkspaceTemplateStatus) DeepCopyInto(out *DevPodWorkspaceTemplateStatus) { +func (in *DevsyWorkspaceTemplateStatus) DeepCopyInto(out *DevsyWorkspaceTemplateStatus) { *out = *in - out.DevPodWorkspaceTemplateStatus = in.DevPodWorkspaceTemplateStatus + out.DevsyWorkspaceTemplateStatus = in.DevsyWorkspaceTemplateStatus return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevPodWorkspaceTemplateStatus. -func (in *DevPodWorkspaceTemplateStatus) DeepCopy() *DevPodWorkspaceTemplateStatus { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevsyWorkspaceTemplateStatus. +func (in *DevsyWorkspaceTemplateStatus) DeepCopy() *DevsyWorkspaceTemplateStatus { if in == nil { return nil } - out := new(DevPodWorkspaceTemplateStatus) + out := new(DevsyWorkspaceTemplateStatus) in.DeepCopyInto(out) return out } @@ -4307,99 +4400,6 @@ func (in *LicenseTokenStatus) DeepCopy() *LicenseTokenStatus { return out } -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *DevsyUpgrade) DeepCopyInto(out *DevsyUpgrade) { - *out = *in - out.TypeMeta = in.TypeMeta - in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) - out.Spec = in.Spec - out.Status = in.Status - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevsyUpgrade. -func (in *DevsyUpgrade) DeepCopy() *DevsyUpgrade { - if in == nil { - return nil - } - out := new(DevsyUpgrade) - in.DeepCopyInto(out) - return out -} - -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *DevsyUpgrade) DeepCopyObject() runtime.Object { - if c := in.DeepCopy(); c != nil { - return c - } - return nil -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *DevsyUpgradeList) DeepCopyInto(out *DevsyUpgradeList) { - *out = *in - out.TypeMeta = in.TypeMeta - in.ListMeta.DeepCopyInto(&out.ListMeta) - if in.Items != nil { - in, out := &in.Items, &out.Items - *out = make([]DevsyUpgrade, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevsyUpgradeList. -func (in *DevsyUpgradeList) DeepCopy() *DevsyUpgradeList { - if in == nil { - return nil - } - out := new(DevsyUpgradeList) - in.DeepCopyInto(out) - return out -} - -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *DevsyUpgradeList) DeepCopyObject() runtime.Object { - if c := in.DeepCopy(); c != nil { - return c - } - return nil -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *DevsyUpgradeSpec) DeepCopyInto(out *DevsyUpgradeSpec) { - *out = *in - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevsyUpgradeSpec. -func (in *DevsyUpgradeSpec) DeepCopy() *DevsyUpgradeSpec { - if in == nil { - return nil - } - out := new(DevsyUpgradeSpec) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *DevsyUpgradeStatus) DeepCopyInto(out *DevsyUpgradeStatus) { - *out = *in - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevsyUpgradeStatus. -func (in *DevsyUpgradeStatus) DeepCopy() *DevsyUpgradeStatus { - if in == nil { - return nil - } - out := new(DevsyUpgradeStatus) - in.DeepCopyInto(out) - return out -} - // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *MaintenanceWindow) DeepCopyInto(out *MaintenanceWindow) { *out = *in @@ -6262,7 +6262,7 @@ func (in *ProjectSecretStatus) DeepCopyInto(out *ProjectSecretStatus) { *out = *in if in.Conditions != nil { in, out := &in.Conditions, &out.Conditions - *out = make(loftstoragev1.Conditions, len(*in)) + *out = make(devsystoragev1.Conditions, len(*in)) for i := range *in { (*in)[i].DeepCopyInto(&(*out)[i]) } @@ -6333,23 +6333,23 @@ func (in *ProjectTemplates) DeepCopyInto(out *ProjectTemplates) { (*in)[i].DeepCopyInto(&(*out)[i]) } } - if in.DevPodWorkspaceTemplates != nil { - in, out := &in.DevPodWorkspaceTemplates, &out.DevPodWorkspaceTemplates - *out = make([]DevPodWorkspaceTemplate, len(*in)) + if in.DevsyWorkspaceTemplates != nil { + in, out := &in.DevsyWorkspaceTemplates, &out.DevsyWorkspaceTemplates + *out = make([]DevsyWorkspaceTemplate, len(*in)) for i := range *in { (*in)[i].DeepCopyInto(&(*out)[i]) } } - if in.DevPodEnvironmentTemplates != nil { - in, out := &in.DevPodEnvironmentTemplates, &out.DevPodEnvironmentTemplates - *out = make([]DevPodEnvironmentTemplate, len(*in)) + if in.DevsyEnvironmentTemplates != nil { + in, out := &in.DevsyEnvironmentTemplates, &out.DevsyEnvironmentTemplates + *out = make([]DevsyEnvironmentTemplate, len(*in)) for i := range *in { (*in)[i].DeepCopyInto(&(*out)[i]) } } - if in.DevPodWorkspacePresets != nil { - in, out := &in.DevPodWorkspacePresets, &out.DevPodWorkspacePresets - *out = make([]DevPodWorkspacePreset, len(*in)) + if in.DevsyWorkspacePresets != nil { + in, out := &in.DevsyWorkspacePresets, &out.DevsyWorkspacePresets + *out = make([]DevsyWorkspacePreset, len(*in)) for i := range *in { (*in)[i].DeepCopyInto(&(*out)[i]) } diff --git a/pkg/apis/management/zz_generated.defaults.go b/pkg/apis/management/zz_generated.defaults.go index 632f5e3..b742012 100644 --- a/pkg/apis/management/zz_generated.defaults.go +++ b/pkg/apis/management/zz_generated.defaults.go @@ -14,31 +14,27 @@ import ( // Public to allow building arbitrary schemes. // All generated defaulters are covering - they call all nested defaulters. func RegisterDefaults(scheme *runtime.Scheme) error { - scheme.AddTypeDefaultingFunc(&DevPodWorkspaceInstance{}, func(obj interface{}) { SetObjectDefaults_DevPodWorkspaceInstance(obj.(*DevPodWorkspaceInstance)) }) - scheme.AddTypeDefaultingFunc(&DevPodWorkspaceInstanceList{}, func(obj interface{}) { - SetObjectDefaults_DevPodWorkspaceInstanceList(obj.(*DevPodWorkspaceInstanceList)) + scheme.AddTypeDefaultingFunc(&DevsyWorkspaceInstance{}, func(obj interface{}) { SetObjectDefaults_DevsyWorkspaceInstance(obj.(*DevsyWorkspaceInstance)) }) + scheme.AddTypeDefaultingFunc(&DevsyWorkspaceInstanceList{}, func(obj interface{}) { SetObjectDefaults_DevsyWorkspaceInstanceList(obj.(*DevsyWorkspaceInstanceList)) }) + scheme.AddTypeDefaultingFunc(&DevsyWorkspaceInstanceTroubleshoot{}, func(obj interface{}) { + SetObjectDefaults_DevsyWorkspaceInstanceTroubleshoot(obj.(*DevsyWorkspaceInstanceTroubleshoot)) }) - scheme.AddTypeDefaultingFunc(&DevPodWorkspaceInstanceTroubleshoot{}, func(obj interface{}) { - SetObjectDefaults_DevPodWorkspaceInstanceTroubleshoot(obj.(*DevPodWorkspaceInstanceTroubleshoot)) - }) - scheme.AddTypeDefaultingFunc(&DevPodWorkspaceInstanceTroubleshootList{}, func(obj interface{}) { - SetObjectDefaults_DevPodWorkspaceInstanceTroubleshootList(obj.(*DevPodWorkspaceInstanceTroubleshootList)) - }) - scheme.AddTypeDefaultingFunc(&DevPodWorkspaceTemplate{}, func(obj interface{}) { SetObjectDefaults_DevPodWorkspaceTemplate(obj.(*DevPodWorkspaceTemplate)) }) - scheme.AddTypeDefaultingFunc(&DevPodWorkspaceTemplateList{}, func(obj interface{}) { - SetObjectDefaults_DevPodWorkspaceTemplateList(obj.(*DevPodWorkspaceTemplateList)) + scheme.AddTypeDefaultingFunc(&DevsyWorkspaceInstanceTroubleshootList{}, func(obj interface{}) { + SetObjectDefaults_DevsyWorkspaceInstanceTroubleshootList(obj.(*DevsyWorkspaceInstanceTroubleshootList)) }) + scheme.AddTypeDefaultingFunc(&DevsyWorkspaceTemplate{}, func(obj interface{}) { SetObjectDefaults_DevsyWorkspaceTemplate(obj.(*DevsyWorkspaceTemplate)) }) + scheme.AddTypeDefaultingFunc(&DevsyWorkspaceTemplateList{}, func(obj interface{}) { SetObjectDefaults_DevsyWorkspaceTemplateList(obj.(*DevsyWorkspaceTemplateList)) }) scheme.AddTypeDefaultingFunc(&ProjectTemplates{}, func(obj interface{}) { SetObjectDefaults_ProjectTemplates(obj.(*ProjectTemplates)) }) scheme.AddTypeDefaultingFunc(&ProjectTemplatesList{}, func(obj interface{}) { SetObjectDefaults_ProjectTemplatesList(obj.(*ProjectTemplatesList)) }) return nil } -func SetObjectDefaults_DevPodWorkspaceInstance(in *DevPodWorkspaceInstance) { - if in.Spec.DevPodWorkspaceInstanceSpec.Template != nil { - if in.Spec.DevPodWorkspaceInstanceSpec.Template.Kubernetes != nil { - if in.Spec.DevPodWorkspaceInstanceSpec.Template.Kubernetes.Pod != nil { - for i := range in.Spec.DevPodWorkspaceInstanceSpec.Template.Kubernetes.Pod.Spec.Volumes { - a := &in.Spec.DevPodWorkspaceInstanceSpec.Template.Kubernetes.Pod.Spec.Volumes[i] +func SetObjectDefaults_DevsyWorkspaceInstance(in *DevsyWorkspaceInstance) { + if in.Spec.DevsyWorkspaceInstanceSpec.Template != nil { + if in.Spec.DevsyWorkspaceInstanceSpec.Template.Kubernetes != nil { + if in.Spec.DevsyWorkspaceInstanceSpec.Template.Kubernetes.Pod != nil { + for i := range in.Spec.DevsyWorkspaceInstanceSpec.Template.Kubernetes.Pod.Spec.Volumes { + a := &in.Spec.DevsyWorkspaceInstanceSpec.Template.Kubernetes.Pod.Spec.Volumes[i] if a.VolumeSource.ISCSI != nil { if a.VolumeSource.ISCSI.ISCSIInterface == "" { a.VolumeSource.ISCSI.ISCSIInterface = "default" @@ -82,14 +78,25 @@ func SetObjectDefaults_DevPodWorkspaceInstance(in *DevPodWorkspaceInstance) { } } } - for i := range in.Spec.DevPodWorkspaceInstanceSpec.Template.Kubernetes.Pod.Spec.InitContainers { - a := &in.Spec.DevPodWorkspaceInstanceSpec.Template.Kubernetes.Pod.Spec.InitContainers[i] + for i := range in.Spec.DevsyWorkspaceInstanceSpec.Template.Kubernetes.Pod.Spec.InitContainers { + a := &in.Spec.DevsyWorkspaceInstanceSpec.Template.Kubernetes.Pod.Spec.InitContainers[i] for j := range a.Ports { b := &a.Ports[j] if b.Protocol == "" { b.Protocol = "TCP" } } + for j := range a.Env { + b := &a.Env[j] + if b.ValueFrom != nil { + if b.ValueFrom.FileKeyRef != nil { + if b.ValueFrom.FileKeyRef.Optional == nil { + var ptrVar1 bool = false + b.ValueFrom.FileKeyRef.Optional = &ptrVar1 + } + } + } + } if a.LivenessProbe != nil { if a.LivenessProbe.ProbeHandler.GRPC != nil { if a.LivenessProbe.ProbeHandler.GRPC.Service == nil { @@ -115,14 +122,25 @@ func SetObjectDefaults_DevPodWorkspaceInstance(in *DevPodWorkspaceInstance) { } } } - for i := range in.Spec.DevPodWorkspaceInstanceSpec.Template.Kubernetes.Pod.Spec.Containers { - a := &in.Spec.DevPodWorkspaceInstanceSpec.Template.Kubernetes.Pod.Spec.Containers[i] + for i := range in.Spec.DevsyWorkspaceInstanceSpec.Template.Kubernetes.Pod.Spec.Containers { + a := &in.Spec.DevsyWorkspaceInstanceSpec.Template.Kubernetes.Pod.Spec.Containers[i] for j := range a.Ports { b := &a.Ports[j] if b.Protocol == "" { b.Protocol = "TCP" } } + for j := range a.Env { + b := &a.Env[j] + if b.ValueFrom != nil { + if b.ValueFrom.FileKeyRef != nil { + if b.ValueFrom.FileKeyRef.Optional == nil { + var ptrVar1 bool = false + b.ValueFrom.FileKeyRef.Optional = &ptrVar1 + } + } + } + } if a.LivenessProbe != nil { if a.LivenessProbe.ProbeHandler.GRPC != nil { if a.LivenessProbe.ProbeHandler.GRPC.Service == nil { @@ -151,11 +169,11 @@ func SetObjectDefaults_DevPodWorkspaceInstance(in *DevPodWorkspaceInstance) { } } } - if in.Status.DevPodWorkspaceInstanceStatus.Instance != nil { - if in.Status.DevPodWorkspaceInstanceStatus.Instance.Kubernetes != nil { - if in.Status.DevPodWorkspaceInstanceStatus.Instance.Kubernetes.Pod != nil { - for i := range in.Status.DevPodWorkspaceInstanceStatus.Instance.Kubernetes.Pod.Spec.Volumes { - a := &in.Status.DevPodWorkspaceInstanceStatus.Instance.Kubernetes.Pod.Spec.Volumes[i] + if in.Status.DevsyWorkspaceInstanceStatus.Instance != nil { + if in.Status.DevsyWorkspaceInstanceStatus.Instance.Kubernetes != nil { + if in.Status.DevsyWorkspaceInstanceStatus.Instance.Kubernetes.Pod != nil { + for i := range in.Status.DevsyWorkspaceInstanceStatus.Instance.Kubernetes.Pod.Spec.Volumes { + a := &in.Status.DevsyWorkspaceInstanceStatus.Instance.Kubernetes.Pod.Spec.Volumes[i] if a.VolumeSource.ISCSI != nil { if a.VolumeSource.ISCSI.ISCSIInterface == "" { a.VolumeSource.ISCSI.ISCSIInterface = "default" @@ -199,14 +217,25 @@ func SetObjectDefaults_DevPodWorkspaceInstance(in *DevPodWorkspaceInstance) { } } } - for i := range in.Status.DevPodWorkspaceInstanceStatus.Instance.Kubernetes.Pod.Spec.InitContainers { - a := &in.Status.DevPodWorkspaceInstanceStatus.Instance.Kubernetes.Pod.Spec.InitContainers[i] + for i := range in.Status.DevsyWorkspaceInstanceStatus.Instance.Kubernetes.Pod.Spec.InitContainers { + a := &in.Status.DevsyWorkspaceInstanceStatus.Instance.Kubernetes.Pod.Spec.InitContainers[i] for j := range a.Ports { b := &a.Ports[j] if b.Protocol == "" { b.Protocol = "TCP" } } + for j := range a.Env { + b := &a.Env[j] + if b.ValueFrom != nil { + if b.ValueFrom.FileKeyRef != nil { + if b.ValueFrom.FileKeyRef.Optional == nil { + var ptrVar1 bool = false + b.ValueFrom.FileKeyRef.Optional = &ptrVar1 + } + } + } + } if a.LivenessProbe != nil { if a.LivenessProbe.ProbeHandler.GRPC != nil { if a.LivenessProbe.ProbeHandler.GRPC.Service == nil { @@ -232,14 +261,25 @@ func SetObjectDefaults_DevPodWorkspaceInstance(in *DevPodWorkspaceInstance) { } } } - for i := range in.Status.DevPodWorkspaceInstanceStatus.Instance.Kubernetes.Pod.Spec.Containers { - a := &in.Status.DevPodWorkspaceInstanceStatus.Instance.Kubernetes.Pod.Spec.Containers[i] + for i := range in.Status.DevsyWorkspaceInstanceStatus.Instance.Kubernetes.Pod.Spec.Containers { + a := &in.Status.DevsyWorkspaceInstanceStatus.Instance.Kubernetes.Pod.Spec.Containers[i] for j := range a.Ports { b := &a.Ports[j] if b.Protocol == "" { b.Protocol = "TCP" } } + for j := range a.Env { + b := &a.Env[j] + if b.ValueFrom != nil { + if b.ValueFrom.FileKeyRef != nil { + if b.ValueFrom.FileKeyRef.Optional == nil { + var ptrVar1 bool = false + b.ValueFrom.FileKeyRef.Optional = &ptrVar1 + } + } + } + } if a.LivenessProbe != nil { if a.LivenessProbe.ProbeHandler.GRPC != nil { if a.LivenessProbe.ProbeHandler.GRPC.Service == nil { @@ -270,16 +310,16 @@ func SetObjectDefaults_DevPodWorkspaceInstance(in *DevPodWorkspaceInstance) { } } -func SetObjectDefaults_DevPodWorkspaceInstanceList(in *DevPodWorkspaceInstanceList) { +func SetObjectDefaults_DevsyWorkspaceInstanceList(in *DevsyWorkspaceInstanceList) { for i := range in.Items { a := &in.Items[i] - SetObjectDefaults_DevPodWorkspaceInstance(a) + SetObjectDefaults_DevsyWorkspaceInstance(a) } } -func SetObjectDefaults_DevPodWorkspaceInstanceTroubleshoot(in *DevPodWorkspaceInstanceTroubleshoot) { +func SetObjectDefaults_DevsyWorkspaceInstanceTroubleshoot(in *DevsyWorkspaceInstanceTroubleshoot) { if in.Workspace != nil { - SetObjectDefaults_DevPodWorkspaceInstance(in.Workspace) + SetObjectDefaults_DevsyWorkspaceInstance(in.Workspace) } if in.Template != nil { if in.Template.Spec.Template.Kubernetes != nil { @@ -337,6 +377,17 @@ func SetObjectDefaults_DevPodWorkspaceInstanceTroubleshoot(in *DevPodWorkspaceIn b.Protocol = "TCP" } } + for j := range a.Env { + b := &a.Env[j] + if b.ValueFrom != nil { + if b.ValueFrom.FileKeyRef != nil { + if b.ValueFrom.FileKeyRef.Optional == nil { + var ptrVar1 bool = false + b.ValueFrom.FileKeyRef.Optional = &ptrVar1 + } + } + } + } if a.LivenessProbe != nil { if a.LivenessProbe.ProbeHandler.GRPC != nil { if a.LivenessProbe.ProbeHandler.GRPC.Service == nil { @@ -370,6 +421,17 @@ func SetObjectDefaults_DevPodWorkspaceInstanceTroubleshoot(in *DevPodWorkspaceIn b.Protocol = "TCP" } } + for j := range a.Env { + b := &a.Env[j] + if b.ValueFrom != nil { + if b.ValueFrom.FileKeyRef != nil { + if b.ValueFrom.FileKeyRef.Optional == nil { + var ptrVar1 bool = false + b.ValueFrom.FileKeyRef.Optional = &ptrVar1 + } + } + } + } if a.LivenessProbe != nil { if a.LivenessProbe.ProbeHandler.GRPC != nil { if a.LivenessProbe.ProbeHandler.GRPC.Service == nil { @@ -454,6 +516,17 @@ func SetObjectDefaults_DevPodWorkspaceInstanceTroubleshoot(in *DevPodWorkspaceIn c.Protocol = "TCP" } } + for k := range b.Env { + c := &b.Env[k] + if c.ValueFrom != nil { + if c.ValueFrom.FileKeyRef != nil { + if c.ValueFrom.FileKeyRef.Optional == nil { + var ptrVar1 bool = false + c.ValueFrom.FileKeyRef.Optional = &ptrVar1 + } + } + } + } if b.LivenessProbe != nil { if b.LivenessProbe.ProbeHandler.GRPC != nil { if b.LivenessProbe.ProbeHandler.GRPC.Service == nil { @@ -487,6 +560,17 @@ func SetObjectDefaults_DevPodWorkspaceInstanceTroubleshoot(in *DevPodWorkspaceIn c.Protocol = "TCP" } } + for k := range b.Env { + c := &b.Env[k] + if c.ValueFrom != nil { + if c.ValueFrom.FileKeyRef != nil { + if c.ValueFrom.FileKeyRef.Optional == nil { + var ptrVar1 bool = false + c.ValueFrom.FileKeyRef.Optional = &ptrVar1 + } + } + } + } if b.LivenessProbe != nil { if b.LivenessProbe.ProbeHandler.GRPC != nil { if b.LivenessProbe.ProbeHandler.GRPC.Service == nil { @@ -571,6 +655,17 @@ func SetObjectDefaults_DevPodWorkspaceInstanceTroubleshoot(in *DevPodWorkspaceIn c.Protocol = "TCP" } } + for k := range b.Env { + c := &b.Env[k] + if c.ValueFrom != nil { + if c.ValueFrom.FileKeyRef != nil { + if c.ValueFrom.FileKeyRef.Optional == nil { + var ptrVar1 bool = false + c.ValueFrom.FileKeyRef.Optional = &ptrVar1 + } + } + } + } if b.LivenessProbe != nil { if b.LivenessProbe.ProbeHandler.GRPC != nil { if b.LivenessProbe.ProbeHandler.GRPC.Service == nil { @@ -604,6 +699,17 @@ func SetObjectDefaults_DevPodWorkspaceInstanceTroubleshoot(in *DevPodWorkspaceIn c.Protocol = "TCP" } } + for k := range b.Env { + c := &b.Env[k] + if c.ValueFrom != nil { + if c.ValueFrom.FileKeyRef != nil { + if c.ValueFrom.FileKeyRef.Optional == nil { + var ptrVar1 bool = false + c.ValueFrom.FileKeyRef.Optional = &ptrVar1 + } + } + } + } if b.LivenessProbe != nil { if b.LivenessProbe.ProbeHandler.GRPC != nil { if b.LivenessProbe.ProbeHandler.GRPC.Service == nil { @@ -637,6 +743,17 @@ func SetObjectDefaults_DevPodWorkspaceInstanceTroubleshoot(in *DevPodWorkspaceIn c.Protocol = "TCP" } } + for k := range b.EphemeralContainerCommon.Env { + c := &b.EphemeralContainerCommon.Env[k] + if c.ValueFrom != nil { + if c.ValueFrom.FileKeyRef != nil { + if c.ValueFrom.FileKeyRef.Optional == nil { + var ptrVar1 bool = false + c.ValueFrom.FileKeyRef.Optional = &ptrVar1 + } + } + } + } if b.EphemeralContainerCommon.LivenessProbe != nil { if b.EphemeralContainerCommon.LivenessProbe.ProbeHandler.GRPC != nil { if b.EphemeralContainerCommon.LivenessProbe.ProbeHandler.GRPC.Service == nil { @@ -665,18 +782,18 @@ func SetObjectDefaults_DevPodWorkspaceInstanceTroubleshoot(in *DevPodWorkspaceIn } } -func SetObjectDefaults_DevPodWorkspaceInstanceTroubleshootList(in *DevPodWorkspaceInstanceTroubleshootList) { +func SetObjectDefaults_DevsyWorkspaceInstanceTroubleshootList(in *DevsyWorkspaceInstanceTroubleshootList) { for i := range in.Items { a := &in.Items[i] - SetObjectDefaults_DevPodWorkspaceInstanceTroubleshoot(a) + SetObjectDefaults_DevsyWorkspaceInstanceTroubleshoot(a) } } -func SetObjectDefaults_DevPodWorkspaceTemplate(in *DevPodWorkspaceTemplate) { - if in.Spec.DevPodWorkspaceTemplateSpec.Template.Kubernetes != nil { - if in.Spec.DevPodWorkspaceTemplateSpec.Template.Kubernetes.Pod != nil { - for i := range in.Spec.DevPodWorkspaceTemplateSpec.Template.Kubernetes.Pod.Spec.Volumes { - a := &in.Spec.DevPodWorkspaceTemplateSpec.Template.Kubernetes.Pod.Spec.Volumes[i] +func SetObjectDefaults_DevsyWorkspaceTemplate(in *DevsyWorkspaceTemplate) { + if in.Spec.DevsyWorkspaceTemplateSpec.Template.Kubernetes != nil { + if in.Spec.DevsyWorkspaceTemplateSpec.Template.Kubernetes.Pod != nil { + for i := range in.Spec.DevsyWorkspaceTemplateSpec.Template.Kubernetes.Pod.Spec.Volumes { + a := &in.Spec.DevsyWorkspaceTemplateSpec.Template.Kubernetes.Pod.Spec.Volumes[i] if a.VolumeSource.ISCSI != nil { if a.VolumeSource.ISCSI.ISCSIInterface == "" { a.VolumeSource.ISCSI.ISCSIInterface = "default" @@ -720,14 +837,25 @@ func SetObjectDefaults_DevPodWorkspaceTemplate(in *DevPodWorkspaceTemplate) { } } } - for i := range in.Spec.DevPodWorkspaceTemplateSpec.Template.Kubernetes.Pod.Spec.InitContainers { - a := &in.Spec.DevPodWorkspaceTemplateSpec.Template.Kubernetes.Pod.Spec.InitContainers[i] + for i := range in.Spec.DevsyWorkspaceTemplateSpec.Template.Kubernetes.Pod.Spec.InitContainers { + a := &in.Spec.DevsyWorkspaceTemplateSpec.Template.Kubernetes.Pod.Spec.InitContainers[i] for j := range a.Ports { b := &a.Ports[j] if b.Protocol == "" { b.Protocol = "TCP" } } + for j := range a.Env { + b := &a.Env[j] + if b.ValueFrom != nil { + if b.ValueFrom.FileKeyRef != nil { + if b.ValueFrom.FileKeyRef.Optional == nil { + var ptrVar1 bool = false + b.ValueFrom.FileKeyRef.Optional = &ptrVar1 + } + } + } + } if a.LivenessProbe != nil { if a.LivenessProbe.ProbeHandler.GRPC != nil { if a.LivenessProbe.ProbeHandler.GRPC.Service == nil { @@ -753,14 +881,25 @@ func SetObjectDefaults_DevPodWorkspaceTemplate(in *DevPodWorkspaceTemplate) { } } } - for i := range in.Spec.DevPodWorkspaceTemplateSpec.Template.Kubernetes.Pod.Spec.Containers { - a := &in.Spec.DevPodWorkspaceTemplateSpec.Template.Kubernetes.Pod.Spec.Containers[i] + for i := range in.Spec.DevsyWorkspaceTemplateSpec.Template.Kubernetes.Pod.Spec.Containers { + a := &in.Spec.DevsyWorkspaceTemplateSpec.Template.Kubernetes.Pod.Spec.Containers[i] for j := range a.Ports { b := &a.Ports[j] if b.Protocol == "" { b.Protocol = "TCP" } } + for j := range a.Env { + b := &a.Env[j] + if b.ValueFrom != nil { + if b.ValueFrom.FileKeyRef != nil { + if b.ValueFrom.FileKeyRef.Optional == nil { + var ptrVar1 bool = false + b.ValueFrom.FileKeyRef.Optional = &ptrVar1 + } + } + } + } if a.LivenessProbe != nil { if a.LivenessProbe.ProbeHandler.GRPC != nil { if a.LivenessProbe.ProbeHandler.GRPC.Service == nil { @@ -788,8 +927,8 @@ func SetObjectDefaults_DevPodWorkspaceTemplate(in *DevPodWorkspaceTemplate) { } } } - for i := range in.Spec.DevPodWorkspaceTemplateSpec.Versions { - a := &in.Spec.DevPodWorkspaceTemplateSpec.Versions[i] + for i := range in.Spec.DevsyWorkspaceTemplateSpec.Versions { + a := &in.Spec.DevsyWorkspaceTemplateSpec.Versions[i] if a.Template.Kubernetes != nil { if a.Template.Kubernetes.Pod != nil { for j := range a.Template.Kubernetes.Pod.Spec.Volumes { @@ -845,6 +984,17 @@ func SetObjectDefaults_DevPodWorkspaceTemplate(in *DevPodWorkspaceTemplate) { c.Protocol = "TCP" } } + for k := range b.Env { + c := &b.Env[k] + if c.ValueFrom != nil { + if c.ValueFrom.FileKeyRef != nil { + if c.ValueFrom.FileKeyRef.Optional == nil { + var ptrVar1 bool = false + c.ValueFrom.FileKeyRef.Optional = &ptrVar1 + } + } + } + } if b.LivenessProbe != nil { if b.LivenessProbe.ProbeHandler.GRPC != nil { if b.LivenessProbe.ProbeHandler.GRPC.Service == nil { @@ -878,6 +1028,17 @@ func SetObjectDefaults_DevPodWorkspaceTemplate(in *DevPodWorkspaceTemplate) { c.Protocol = "TCP" } } + for k := range b.Env { + c := &b.Env[k] + if c.ValueFrom != nil { + if c.ValueFrom.FileKeyRef != nil { + if c.ValueFrom.FileKeyRef.Optional == nil { + var ptrVar1 bool = false + c.ValueFrom.FileKeyRef.Optional = &ptrVar1 + } + } + } + } if b.LivenessProbe != nil { if b.LivenessProbe.ProbeHandler.GRPC != nil { if b.LivenessProbe.ProbeHandler.GRPC.Service == nil { @@ -908,17 +1069,17 @@ func SetObjectDefaults_DevPodWorkspaceTemplate(in *DevPodWorkspaceTemplate) { } } -func SetObjectDefaults_DevPodWorkspaceTemplateList(in *DevPodWorkspaceTemplateList) { +func SetObjectDefaults_DevsyWorkspaceTemplateList(in *DevsyWorkspaceTemplateList) { for i := range in.Items { a := &in.Items[i] - SetObjectDefaults_DevPodWorkspaceTemplate(a) + SetObjectDefaults_DevsyWorkspaceTemplate(a) } } func SetObjectDefaults_ProjectTemplates(in *ProjectTemplates) { - for i := range in.DevPodWorkspaceTemplates { - a := &in.DevPodWorkspaceTemplates[i] - SetObjectDefaults_DevPodWorkspaceTemplate(a) + for i := range in.DevsyWorkspaceTemplates { + a := &in.DevsyWorkspaceTemplates[i] + SetObjectDefaults_DevsyWorkspaceTemplate(a) } } diff --git a/pkg/apis/storage/v1/accesskey_types.go b/pkg/apis/storage/v1/accesskey_types.go index bc714bf..14ce8df 100644 --- a/pkg/apis/storage/v1/accesskey_types.go +++ b/pkg/apis/storage/v1/accesskey_types.go @@ -8,7 +8,7 @@ import ( // +genclient:nonNamespaced // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object -// AccessKey holds the session information +// AccessKey holds the session information. // +k8s:openapi-gen=true type AccessKey struct { metav1.TypeMeta `json:",inline"` @@ -130,7 +130,7 @@ type AccessKeyScope struct { // +optional Rules []AccessKeyScopeRule `json:"rules,omitempty"` - // AllowLoftCLI allows certain read-only management requests to + // AllowDevsyCLI allows certain read-only management requests to // make sure devsy cli works correctly with this specific access key. // // Deprecated: Use the `roles` field instead @@ -140,11 +140,11 @@ type AccessKeyScope struct { // - role: loftCLI // ``` // +optional - AllowLoftCLI bool `json:"allowLoftCli,omitempty"` + AllowDevsyCLI bool `json:"allowLoftCli,omitempty"` } func (a AccessKeyScope) ContainsRole(val AccessKeyScopeRoleName) bool { - if a.AllowLoftCLI && val == AccessKeyScopeRoleLoftCLI { + if a.AllowDevsyCLI && val == AccessKeyScopeRoleDevsyCLI { return true } @@ -161,7 +161,7 @@ func (a AccessKeyScope) ContainsRole(val AccessKeyScopeRoleName) bool { // (ThomasK33): Adding this so that the exhaustive linter is happy case AccessKeyScopeRoleNetworkPeer: return true - case AccessKeyScopeRoleLoftCLI: + case AccessKeyScopeRoleDevsyCLI: return false } } @@ -208,7 +208,7 @@ const ( AccessKeyScopeRoleAgent AccessKeyScopeRoleName = "agent" AccessKeyScopeRoleDevsy AccessKeyScopeRoleName = "devsy" AccessKeyScopeRoleNetworkPeer AccessKeyScopeRoleName = "network-peer" - AccessKeyScopeRoleLoftCLI AccessKeyScopeRoleName = "devsy-cli" + AccessKeyScopeRoleDevsyCLI AccessKeyScopeRoleName = "devsy-cli" AccessKeyScopeRoleRunner AccessKeyScopeRoleName = "runner" AccessKeyScopeRoleWorkspace AccessKeyScopeRoleName = "workspace" ) @@ -446,7 +446,7 @@ type AccessKeyStatus struct { // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object -// AccessKeyList contains a list of AccessKey +// AccessKeyList contains a list of AccessKey. type AccessKeyList struct { metav1.TypeMeta ` json:",inline"` metav1.ListMeta ` json:"metadata,omitempty"` diff --git a/pkg/apis/storage/v1/app_types.go b/pkg/apis/storage/v1/app_types.go index 0e972a7..7343bbe 100644 --- a/pkg/apis/storage/v1/app_types.go +++ b/pkg/apis/storage/v1/app_types.go @@ -35,7 +35,7 @@ func (a *App) SetAccess(access []Access) { a.Spec.Access = access } -// AppSpec holds the specification +// AppSpec holds the specification. type AppSpec struct { // DisplayName is the name that should be displayed in the UI // +optional @@ -229,7 +229,7 @@ type HelmConfiguration struct { Insecure bool `json:"insecure,omitempty"` } -// AppStatus holds the status +// AppStatus holds the status. type AppStatus struct{} // RecommendedApp describes where an app can be displayed as recommended app @@ -250,7 +250,7 @@ func (x RecommendedApp) String() string { return string(x) } // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object -// AppList contains a list of App +// AppList contains a list of App. type AppList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` diff --git a/pkg/apis/storage/v1/cluster_types.go b/pkg/apis/storage/v1/cluster_types.go index 9ccf710..3ce315a 100644 --- a/pkg/apis/storage/v1/cluster_types.go +++ b/pkg/apis/storage/v1/cluster_types.go @@ -154,7 +154,7 @@ const ( // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object -// ClusterList contains a list of Cluster +// ClusterList contains a list of Cluster. type ClusterList struct { metav1.TypeMeta ` json:",inline"` metav1.ListMeta ` json:"metadata,omitempty"` diff --git a/pkg/apis/storage/v1/clusteraccess_types.go b/pkg/apis/storage/v1/clusteraccess_types.go index 08ca543..c2da58c 100644 --- a/pkg/apis/storage/v1/clusteraccess_types.go +++ b/pkg/apis/storage/v1/clusteraccess_types.go @@ -111,7 +111,7 @@ type ClusterAccessStatus struct{} // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object -// ClusterAccessList contains a list of ClusterAccess objects +// ClusterAccessList contains a list of ClusterAccess objects. type ClusterAccessList struct { metav1.TypeMeta ` json:",inline"` metav1.ListMeta ` json:"metadata,omitempty"` diff --git a/pkg/apis/storage/v1/clusterroletemplate_types.go b/pkg/apis/storage/v1/clusterroletemplate_types.go index 621a4a1..43d104b 100644 --- a/pkg/apis/storage/v1/clusterroletemplate_types.go +++ b/pkg/apis/storage/v1/clusterroletemplate_types.go @@ -118,7 +118,7 @@ type ClusterRoleTemplateStatus struct{} // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object -// ClusterRoleTemplateList contains a list of ClusterRoleTemplate objects +// ClusterRoleTemplateList contains a list of ClusterRoleTemplate objects. type ClusterRoleTemplateList struct { metav1.TypeMeta ` json:",inline"` metav1.ListMeta ` json:"metadata,omitempty"` diff --git a/pkg/apis/storage/v1/devpodenvironmenttemplate_types.go b/pkg/apis/storage/v1/devsyenvironmenttemplate_types.go similarity index 65% rename from pkg/apis/storage/v1/devpodenvironmenttemplate_types.go rename to pkg/apis/storage/v1/devsyenvironmenttemplate_types.go index 5113153..2861d5a 100644 --- a/pkg/apis/storage/v1/devpodenvironmenttemplate_types.go +++ b/pkg/apis/storage/v1/devsyenvironmenttemplate_types.go @@ -9,20 +9,20 @@ import ( // +genclient:noStatus // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object -// DevPodWorkspaceEnvironmentSource +// DevsyWorkspaceEnvironmentSource // +k8s:openapi-gen=true -type DevPodEnvironmentTemplate struct { +type DevsyEnvironmentTemplate struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` - Spec DevPodEnvironmentTemplateSpec `json:"spec,omitempty"` - Status DevPodEnvironmentTemplateStatus `json:"status,omitempty"` + Spec DevsyEnvironmentTemplateSpec `json:"spec,omitempty"` + Status DevsyEnvironmentTemplateStatus `json:"status,omitempty"` } -// DevPodEnvironmentTemplateStatus holds the status -type DevPodEnvironmentTemplateStatus struct{} +// DevsyEnvironmentTemplateStatus holds the status. +type DevsyEnvironmentTemplateStatus struct{} -func (a *DevPodEnvironmentTemplate) GetVersions() []VersionAccessor { +func (a *DevsyEnvironmentTemplate) GetVersions() []VersionAccessor { var retVersions []VersionAccessor for _, v := range a.Spec.Versions { b := v @@ -32,27 +32,27 @@ func (a *DevPodEnvironmentTemplate) GetVersions() []VersionAccessor { return retVersions } -func (a *DevPodEnvironmentTemplateVersion) GetVersion() string { +func (a *DevsyEnvironmentTemplateVersion) GetVersion() string { return a.Version } -func (a *DevPodEnvironmentTemplate) GetOwner() *UserOrTeam { +func (a *DevsyEnvironmentTemplate) GetOwner() *UserOrTeam { return a.Spec.Owner } -func (a *DevPodEnvironmentTemplate) SetOwner(userOrTeam *UserOrTeam) { +func (a *DevsyEnvironmentTemplate) SetOwner(userOrTeam *UserOrTeam) { a.Spec.Owner = userOrTeam } -func (a *DevPodEnvironmentTemplate) GetAccess() []Access { +func (a *DevsyEnvironmentTemplate) GetAccess() []Access { return a.Spec.Access } -func (a *DevPodEnvironmentTemplate) SetAccess(access []Access) { +func (a *DevsyEnvironmentTemplate) SetAccess(access []Access) { a.Spec.Access = access } -type DevPodEnvironmentTemplateSpec struct { +type DevsyEnvironmentTemplateSpec struct { // DisplayName is the name that should be displayed in the UI // +optional DisplayName string `json:"displayName,omitempty"` @@ -65,20 +65,20 @@ type DevPodEnvironmentTemplateSpec struct { // +optional Owner *UserOrTeam `json:"owner,omitempty"` - // Access to the DevPod machine instance object itself + // Access to the Devsy machine instance object itself // +optional Access []Access `json:"access,omitempty"` - // Template is the inline template to use for DevPod environments + // Template is the inline template to use for Devsy environments // +optional - Template *DevPodEnvironmentTemplateDefinition `json:"template,omitempty"` + Template *DevsyEnvironmentTemplateDefinition `json:"template,omitempty"` // Versions are different versions of the template that can be referenced as well // +optional - Versions []DevPodEnvironmentTemplateVersion `json:"versions,omitempty"` + Versions []DevsyEnvironmentTemplateVersion `json:"versions,omitempty"` } -type DevPodEnvironmentTemplateDefinition struct { +type DevsyEnvironmentTemplateDefinition struct { // Git holds configuration for git environment spec source // +optional Git *GitEnvironmentTemplate `json:"git,omitempty"` @@ -114,10 +114,10 @@ type GitEnvironmentTemplate struct { UseProjectGitCredentials bool `json:"useProjectGitCredentials,omitempty"` } -type DevPodEnvironmentTemplateVersion struct { +type DevsyEnvironmentTemplateVersion struct { // Template holds the environment template definition // +optional - Template DevPodEnvironmentTemplateDefinition `json:"template,omitempty"` + Template DevsyEnvironmentTemplateDefinition `json:"template,omitempty"` // Version is the version. Needs to be in X.X.X format. // +optional @@ -127,7 +127,7 @@ type DevPodEnvironmentTemplateVersion struct { // +enum type GitCloneStrategy string -// WARN: Need to match https://github.com/devsy-org/devpod/pkg/git/clone.go +// WARN: Need to match https://github.com/devsy-org/devsy/pkg/git/clone.go const ( FullCloneStrategy GitCloneStrategy = "" BloblessCloneStrategy GitCloneStrategy = "blobless" @@ -137,13 +137,13 @@ const ( // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object -// DevPodEnvironmentTemplateList contains a list of DevPodEnvironmentTemplate objects -type DevPodEnvironmentTemplateList struct { - metav1.TypeMeta ` json:",inline"` - metav1.ListMeta ` json:"metadata,omitempty"` - Items []DevPodEnvironmentTemplate `json:"items"` +// DevsyEnvironmentTemplateList contains a list of DevsyEnvironmentTemplate objects. +type DevsyEnvironmentTemplateList struct { + metav1.TypeMeta ` json:",inline"` + metav1.ListMeta ` json:"metadata,omitempty"` + Items []DevsyEnvironmentTemplate `json:"items"` } func init() { - SchemeBuilder.Register(&DevPodEnvironmentTemplate{}, &DevPodEnvironmentTemplateList{}) + SchemeBuilder.Register(&DevsyEnvironmentTemplate{}, &DevsyEnvironmentTemplateList{}) } diff --git a/pkg/apis/storage/v1/devpodworkspaceinstance_types.go b/pkg/apis/storage/v1/devsyworkspaceinstance_types.go similarity index 76% rename from pkg/apis/storage/v1/devpodworkspaceinstance_types.go rename to pkg/apis/storage/v1/devsyworkspaceinstance_types.go index cd4e4c1..44567ce 100644 --- a/pkg/apis/storage/v1/devpodworkspaceinstance_types.go +++ b/pkg/apis/storage/v1/devsyworkspaceinstance_types.go @@ -8,83 +8,83 @@ import ( ) var ( - DevPodWorkspaceConditions = []agentstoragev1.ConditionType{ + DevsyWorkspaceConditions = []agentstoragev1.ConditionType{ InstanceScheduled, InstanceTemplateResolved, } - // DevPodWorkspaceIDLabel holds the actual workspace id of the devpod workspace - DevPodWorkspaceIDLabel = "devsy.sh/workspace-id" + // DevsyWorkspaceIDLabel holds the actual workspace id of the devsy workspace. + DevsyWorkspaceIDLabel = "devsy.sh/workspace-id" - // DevPodWorkspaceUIDLabel holds the actual workspace uid of the devpod workspace - DevPodWorkspaceUIDLabel = "devsy.sh/workspace-uid" + // DevsyWorkspaceUIDLabel holds the actual workspace uid of the devsy workspace. + DevsyWorkspaceUIDLabel = "devsy.sh/workspace-uid" - // DevPodKubernetesProviderWorkspaceUIDLabel holds the actual workspace uid of the devpod workspace on resources - // created by the DevPod Kubernetes provider. - DevPodKubernetesProviderWorkspaceUIDLabel = "devpod.sh/workspace-uid" + // DevsyKubernetesProviderWorkspaceUIDLabel holds the actual workspace uid of the + // devsy workspace on resources created by the Devsy Kubernetes provider. + DevsyKubernetesProviderWorkspaceUIDLabel = "devpod.sh/workspace-uid" - // DevPodWorkspacePictureAnnotation holds the workspace picture url of the devpod workspace - DevPodWorkspacePictureAnnotation = "devsy.sh/workspace-picture" + // DevsyWorkspacePictureAnnotation holds the workspace picture url of the devsy workspace. + DevsyWorkspacePictureAnnotation = "devsy.sh/workspace-picture" - // DevPodWorkspaceSourceAnnotation holds the workspace source of the devpod workspace - DevPodWorkspaceSourceAnnotation = "devsy.sh/workspace-source" + // DevsyWorkspaceSourceAnnotation holds the workspace source of the devsy workspace. + DevsyWorkspaceSourceAnnotation = "devsy.sh/workspace-source" - // DevPodClientsAnnotation holds the active clients for a workspace networpeer - DevPodClientsAnnotation = "devsy.sh/devpod-clients" + // DevsyClientsAnnotation holds the active clients for a workspace networpeer. + DevsyClientsAnnotation = "devsy.sh/devpod-clients" ) var ( - DevPodPlatformOptions = "DEVPOD_PLATFORM_OPTIONS" + DevsyPlatformOptions = "DEVPOD_PLATFORM_OPTIONS" - DevPodFlagsUp = "DEVPOD_FLAGS_UP" - DevPodFlagsDelete = "DEVPOD_FLAGS_DELETE" - DevPodFlagsStop = "DEVPOD_FLAGS_STOP" + DevsyFlagsUp = "DEVPOD_FLAGS_UP" + DevsyFlagsDelete = "DEVPOD_FLAGS_DELETE" + DevsyFlagsStop = "DEVPOD_FLAGS_STOP" ) // +genclient // +genclient:noStatus // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object -// DevPodWorkspaceInstance +// DevsyWorkspaceInstance // +k8s:openapi-gen=true -type DevPodWorkspaceInstance struct { +type DevsyWorkspaceInstance struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` - Spec DevPodWorkspaceInstanceSpec `json:"spec,omitempty"` - Status DevPodWorkspaceInstanceStatus `json:"status,omitempty"` + Spec DevsyWorkspaceInstanceSpec `json:"spec,omitempty"` + Status DevsyWorkspaceInstanceStatus `json:"status,omitempty"` } -func (a *DevPodWorkspaceInstance) GetConditions() agentstoragev1.Conditions { +func (a *DevsyWorkspaceInstance) GetConditions() agentstoragev1.Conditions { return a.Status.Conditions } -func (a *DevPodWorkspaceInstance) SetConditions(conditions agentstoragev1.Conditions) { +func (a *DevsyWorkspaceInstance) SetConditions(conditions agentstoragev1.Conditions) { a.Status.Conditions = conditions } -func (a *DevPodWorkspaceInstance) GetOwner() *UserOrTeam { +func (a *DevsyWorkspaceInstance) GetOwner() *UserOrTeam { return a.Spec.Owner } -func (a *DevPodWorkspaceInstance) SetOwner(userOrTeam *UserOrTeam) { +func (a *DevsyWorkspaceInstance) SetOwner(userOrTeam *UserOrTeam) { a.Spec.Owner = userOrTeam } -func (a *DevPodWorkspaceInstance) GetAccess() []Access { +func (a *DevsyWorkspaceInstance) GetAccess() []Access { return a.Spec.Access } -func (a *DevPodWorkspaceInstance) SetAccess(access []Access) { +func (a *DevsyWorkspaceInstance) SetAccess(access []Access) { a.Spec.Access = access } -type DevPodWorkspaceInstanceSpec struct { +type DevsyWorkspaceInstanceSpec struct { // DisplayName is the name that should be displayed in the UI // +optional DisplayName string `json:"displayName,omitempty"` - // Description describes a DevPod machine instance + // Description describes a Devsy machine instance // +optional Description string `json:"description,omitempty"` @@ -92,22 +92,22 @@ type DevPodWorkspaceInstanceSpec struct { // +optional Owner *UserOrTeam `json:"owner,omitempty"` - // PresetRef holds the DevPodWorkspacePreset template reference + // PresetRef holds the DevsyWorkspacePreset template reference // +optional PresetRef *PresetRef `json:"presetRef,omitempty"` - // TemplateRef holds the DevPod machine template reference + // TemplateRef holds the Devsy machine template reference // +optional TemplateRef *TemplateRef `json:"templateRef,omitempty"` - // EnvironmentRef is the reference to DevPodEnvironmentTemplate that should be used + // EnvironmentRef is the reference to DevsyEnvironmentTemplate that should be used // +optional EnvironmentRef *EnvironmentRef `json:"environmentRef,omitempty"` - // Template is the inline template to use for DevPod machine creation. This is mutually + // Template is the inline template to use for Devsy machine creation. This is mutually // exclusive with templateRef. // +optional - Template *DevPodWorkspaceTemplateDefinition `json:"template,omitempty"` + Template *DevsyWorkspaceTemplateDefinition `json:"template,omitempty"` // Target is the reference to the cluster holding this workspace // +optional @@ -122,7 +122,7 @@ type DevPodWorkspaceInstanceSpec struct { // +optional Parameters string `json:"parameters,omitempty"` - // Access to the DevPod machine instance object itself + // Access to the Devsy machine instance object itself // +optional Access []Access `json:"access,omitempty"` @@ -132,7 +132,7 @@ type DevPodWorkspaceInstanceSpec struct { } type PresetRef struct { - // Name is the name of DevPodWorkspacePreset + // Name is the name of DevsyWorkspacePreset Name string `json:"name"` // Version holds the preset version to use. Version is expected to @@ -192,15 +192,15 @@ type RunnerRef struct { } type EnvironmentRef struct { - // Name is the name of DevPodEnvironmentTemplate this references + // Name is the name of DevsyEnvironmentTemplate this references Name string `json:"name"` - // Version is the version of DevPodEnvironmentTemplate this references + // Version is the version of DevsyEnvironmentTemplate this references // +optional Version string `json:"version,omitempty"` } -type DevPodWorkspaceInstanceStatus struct { +type DevsyWorkspaceInstanceStatus struct { // ResolvedTarget is the resolved target of the workspace // +optional ResolvedTarget WorkspaceResolvedTarget `json:"resolvedTarget,omitempty"` @@ -209,7 +209,7 @@ type DevPodWorkspaceInstanceStatus struct { // +optional LastWorkspaceStatus WorkspaceStatus `json:"lastWorkspaceStatus,omitempty"` - // Phase describes the current phase the DevPod machine instance is in + // Phase describes the current phase the Devsy machine instance is in // +optional Phase InstancePhase `json:"phase,omitempty"` @@ -218,18 +218,18 @@ type DevPodWorkspaceInstanceStatus struct { // +optional Reason string `json:"reason,omitempty"` - // Message describes the reason in human-readable form why the DevPod machine is in the current + // Message describes the reason in human-readable form why the Devsy machine is in the current // phase // +optional Message string `json:"message,omitempty"` - // Conditions holds several conditions the DevPod machine might be in + // Conditions holds several conditions the Devsy machine might be in // +optional Conditions agentstoragev1.Conditions `json:"conditions,omitempty"` // Instance is the template rendered with all the parameters // +optional - Instance *DevPodWorkspaceTemplateDefinition `json:"instance,omitempty"` + Instance *DevsyWorkspaceTemplateDefinition `json:"instance,omitempty"` // IgnoreReconciliation ignores reconciliation for this object // +optional @@ -237,24 +237,24 @@ type DevPodWorkspaceInstanceStatus struct { // Kubernetes is the status of the workspace on kubernetes // +optional - Kubernetes *DevPodWorkspaceInstanceKubernetesStatus `json:"kubernetes,omitempty"` + Kubernetes *DevsyWorkspaceInstanceKubernetesStatus `json:"kubernetes,omitempty"` } -type DevPodWorkspaceInstanceKubernetesStatus struct { +type DevsyWorkspaceInstanceKubernetesStatus struct { // Last time the condition transitioned from one status to another. // +required LastTransitionTime metav1.Time `json:"lastTransitionTime,omitempty"` // PodStatus is the status of the pod that is running the workspace // +optional - PodStatus *DevPodWorkspaceInstancePodStatus `json:"podStatus,omitempty"` + PodStatus *DevsyWorkspaceInstancePodStatus `json:"podStatus,omitempty"` - // PersistentVolumeClaimStatus is the pvc that is used to store the workspace + // PersistentVolumeClaimStatus is the pvc that is used to store the workspace. // +optional - PersistentVolumeClaimStatus *DevPodWorkspaceInstancePersistentVolumeClaimStatus `json:"persistentVolumeClaimStatus,omitempty"` + PersistentVolumeClaimStatus *DevsyWorkspaceInstancePersistentVolumeClaimStatus `json:"persistentVolumeClaimStatus,omitempty"` //nolint:lll } -type DevPodWorkspaceInstancePodStatus struct { +type DevsyWorkspaceInstancePodStatus struct { // The phase of a Pod is a simple, high-level summary of where the Pod is in its lifecycle. // The conditions array, the reason and message fields, and the individual container status // arrays contain more detail about the pod's status. @@ -318,16 +318,16 @@ type DevPodWorkspaceInstancePodStatus struct { NodeName string `json:"nodeName,omitempty"` // Events are the events of the pod that is running the workspace. This will only be filled if the pod is not running. // +optional - Events []DevPodWorkspaceInstanceEvent `json:"events,omitempty"` + Events []DevsyWorkspaceInstanceEvent `json:"events,omitempty"` // ContainerResources are the resources of the containers that are running the workspace // +optional - ContainerResources []DevPodWorkspaceInstanceContainerResource `json:"containerResources,omitempty"` + ContainerResources []DevsyWorkspaceInstanceContainerResource `json:"containerResources,omitempty"` // ContainerMetrics are the metrics of the pod that is running the workspace // +optional ContainerMetrics []metricsv1beta1.ContainerMetrics `json:"containerMetrics,omitempty"` } -type DevPodWorkspaceInstanceContainerResource struct { +type DevsyWorkspaceInstanceContainerResource struct { // Name is the name of the container // +optional Name string `json:"name,omitempty"` @@ -336,7 +336,7 @@ type DevPodWorkspaceInstanceContainerResource struct { Resources corev1.ResourceRequirements `json:"resources,omitempty"` } -type DevPodWorkspaceInstancePersistentVolumeClaimStatus struct { +type DevsyWorkspaceInstancePersistentVolumeClaimStatus struct { // phase represents the current phase of PersistentVolumeClaim. // +optional Phase corev1.PersistentVolumeClaimPhase `json:"phase,omitempty" protobuf:"bytes,1,opt,name=phase,casttype=PersistentVolumeClaimPhase"` @@ -353,10 +353,10 @@ type DevPodWorkspaceInstancePersistentVolumeClaimStatus struct { Conditions []corev1.PersistentVolumeClaimCondition `json:"conditions,omitempty" patchStrategy:"merge" patchMergeKey:"type" protobuf:"bytes,4,rep,name=conditions"` // Events are the events of the pod that is running the workspace. This will only be filled if the persistent volume claim is not bound. // +optional - Events []DevPodWorkspaceInstanceEvent `json:"events,omitempty"` + Events []DevsyWorkspaceInstanceEvent `json:"events,omitempty"` } -type DevPodWorkspaceInstanceEvent struct { +type DevsyWorkspaceInstanceEvent struct { // This should be a short, machine understandable string that gives the reason // for the transition into the object's current status. // TODO: provide exact specification for format. @@ -400,19 +400,19 @@ var ( WorkspaceStatusRunning WorkspaceStatus = "Running" ) -type DevPodCommandStopOptions struct{} +type DevsyCommandStopOptions struct{} -type DevPodCommandDeleteOptions struct { +type DevsyCommandDeleteOptions struct { IgnoreNotFound bool `json:"ignoreNotFound,omitempty"` Force bool `json:"force,omitempty"` GracePeriod string `json:"gracePeriod,omitempty"` } -type DevPodCommandStatusOptions struct { +type DevsyCommandStatusOptions struct { ContainerStatus bool `json:"containerStatus,omitempty"` } -type DevPodCommandUpOptions struct { +type DevsyCommandUpOptions struct { // up options ID string `json:"id,omitempty"` Source string `json:"source,omitempty"` @@ -438,13 +438,13 @@ type DevPodCommandUpOptions struct { // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object -// DevPodWorkspaceInstanceList contains a list of DevPodWorkspaceInstance objects -type DevPodWorkspaceInstanceList struct { - metav1.TypeMeta ` json:",inline"` - metav1.ListMeta ` json:"metadata,omitempty"` - Items []DevPodWorkspaceInstance `json:"items"` +// DevsyWorkspaceInstanceList contains a list of DevsyWorkspaceInstance objects. +type DevsyWorkspaceInstanceList struct { + metav1.TypeMeta ` json:",inline"` + metav1.ListMeta ` json:"metadata,omitempty"` + Items []DevsyWorkspaceInstance `json:"items"` } func init() { - SchemeBuilder.Register(&DevPodWorkspaceInstance{}, &DevPodWorkspaceInstanceList{}) + SchemeBuilder.Register(&DevsyWorkspaceInstance{}, &DevsyWorkspaceInstanceList{}) } diff --git a/pkg/apis/storage/v1/devpodworkspacepreset_types.go b/pkg/apis/storage/v1/devsyworkspacepreset_types.go similarity index 57% rename from pkg/apis/storage/v1/devpodworkspacepreset_types.go rename to pkg/apis/storage/v1/devsyworkspacepreset_types.go index b118c09..5370a42 100644 --- a/pkg/apis/storage/v1/devpodworkspacepreset_types.go +++ b/pkg/apis/storage/v1/devsyworkspacepreset_types.go @@ -9,44 +9,44 @@ import ( // +genclient:noStatus // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object -// DevPodWorkspacePreset +// DevsyWorkspacePreset // +k8s:openapi-gen=true -type DevPodWorkspacePreset struct { +type DevsyWorkspacePreset struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` - Spec DevPodWorkspacePresetSpec `json:"spec,omitempty"` - Status DevPodWorkspacePresetStatus `json:"status,omitempty"` + Spec DevsyWorkspacePresetSpec `json:"spec,omitempty"` + Status DevsyWorkspacePresetStatus `json:"status,omitempty"` } -func (a *DevPodWorkspacePreset) GetOwner() *UserOrTeam { +func (a *DevsyWorkspacePreset) GetOwner() *UserOrTeam { return a.Spec.Owner } -func (a *DevPodWorkspacePreset) SetOwner(userOrTeam *UserOrTeam) { +func (a *DevsyWorkspacePreset) SetOwner(userOrTeam *UserOrTeam) { a.Spec.Owner = userOrTeam } -func (a *DevPodWorkspacePreset) GetAccess() []Access { +func (a *DevsyWorkspacePreset) GetAccess() []Access { return a.Spec.Access } -func (a *DevPodWorkspacePreset) SetAccess(access []Access) { +func (a *DevsyWorkspacePreset) SetAccess(access []Access) { a.Spec.Access = access } -type DevPodWorkspacePresetSpec struct { +type DevsyWorkspacePresetSpec struct { // DisplayName is the name that should be displayed in the UI // +optional DisplayName string `json:"displayName,omitempty"` // Source stores inline path of project source - Source *DevPodWorkspacePresetSource `json:"source"` + Source *DevsyWorkspacePresetSource `json:"source"` - // InfrastructureRef stores reference to DevPodWorkspaceTemplate to use + // InfrastructureRef stores reference to DevsyWorkspaceTemplate to use InfrastructureRef *TemplateRef `json:"infrastructureRef"` - // EnvironmentRef stores reference to DevPodEnvironmentTemplate + // EnvironmentRef stores reference to DevsyEnvironmentTemplate // +optional EnvironmentRef *EnvironmentRef `json:"environmentRef,omitempty"` @@ -58,16 +58,16 @@ type DevPodWorkspacePresetSpec struct { // +optional Owner *UserOrTeam `json:"owner,omitempty"` - // Access to the DevPod machine instance object itself + // Access to the Devsy machine instance object itself // +optional Access []Access `json:"access,omitempty"` // Versions are different versions of the template that can be referenced as well // +optional - Versions []DevPodWorkspacePresetVersion `json:"versions,omitempty"` + Versions []DevsyWorkspacePresetVersion `json:"versions,omitempty"` } -type DevPodWorkspacePresetSource struct { +type DevsyWorkspacePresetSource struct { // Git stores path to git repo to use as workspace source // +optional Git string `json:"git,omitempty"` @@ -77,40 +77,40 @@ type DevPodWorkspacePresetSource struct { Image string `json:"image,omitempty"` } -type DevPodWorkspacePresetVersion struct { +type DevsyWorkspacePresetVersion struct { // Version is the version. Needs to be in X.X.X format. // +optional Version string `json:"version,omitempty"` // Source stores inline path of project source // +optional - Source *DevPodWorkspacePresetSource `json:"source,omitempty"` + Source *DevsyWorkspacePresetSource `json:"source,omitempty"` - // InfrastructureRef stores reference to DevPodWorkspaceTemplate to use + // InfrastructureRef stores reference to DevsyWorkspaceTemplate to use // +optional InfrastructureRef *TemplateRef `json:"infrastructureRef,omitempty"` - // EnvironmentRef stores reference to DevPodEnvironmentTemplate + // EnvironmentRef stores reference to DevsyEnvironmentTemplate // +optional EnvironmentRef *EnvironmentRef `json:"environmentRef,omitempty"` } -// DevPodWorkspacePresetStatus holds the status -type DevPodWorkspacePresetStatus struct{} +// DevsyWorkspacePresetStatus holds the status. +type DevsyWorkspacePresetStatus struct{} type WorkspaceRef struct { - // Name is the name of DevPodWorkspaceTemplate this references + // Name is the name of DevsyWorkspaceTemplate this references Name string `json:"name"` } // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object -// DevPodWorkspacePresetList contains a list of DevPodWorkspacePreset objects -type DevPodWorkspacePresetList struct { +// DevsyWorkspacePresetList contains a list of DevsyWorkspacePreset objects. +type DevsyWorkspacePresetList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` - Items []DevPodWorkspacePreset `json:"items"` + Items []DevsyWorkspacePreset `json:"items"` } func init() { - SchemeBuilder.Register(&DevPodWorkspacePreset{}, &DevPodWorkspacePresetList{}) + SchemeBuilder.Register(&DevsyWorkspacePreset{}, &DevsyWorkspacePresetList{}) } diff --git a/pkg/apis/storage/v1/devpodworkspacetemplate_types.go b/pkg/apis/storage/v1/devsyworkspacetemplate_types.go similarity index 82% rename from pkg/apis/storage/v1/devpodworkspacetemplate_types.go rename to pkg/apis/storage/v1/devsyworkspacetemplate_types.go index 1dc3187..8b52abf 100644 --- a/pkg/apis/storage/v1/devpodworkspacetemplate_types.go +++ b/pkg/apis/storage/v1/devsyworkspacetemplate_types.go @@ -9,17 +9,17 @@ import ( // +genclient:nonNamespaced // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object -// DevPodWorkspaceTemplate holds the DevPodWorkspaceTemplate information +// DevsyWorkspaceTemplate holds the DevsyWorkspaceTemplate information // +k8s:openapi-gen=true -type DevPodWorkspaceTemplate struct { +type DevsyWorkspaceTemplate struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` - Spec DevPodWorkspaceTemplateSpec `json:"spec,omitempty"` - Status DevPodWorkspaceTemplateStatus `json:"status,omitempty"` + Spec DevsyWorkspaceTemplateSpec `json:"spec,omitempty"` + Status DevsyWorkspaceTemplateStatus `json:"status,omitempty"` } -func (a *DevPodWorkspaceTemplate) GetVersions() []VersionAccessor { +func (a *DevsyWorkspaceTemplate) GetVersions() []VersionAccessor { var retVersions []VersionAccessor for _, v := range a.Spec.Versions { b := v @@ -29,28 +29,28 @@ func (a *DevPodWorkspaceTemplate) GetVersions() []VersionAccessor { return retVersions } -func (a *DevPodWorkspaceTemplateVersion) GetVersion() string { +func (a *DevsyWorkspaceTemplateVersion) GetVersion() string { return a.Version } -func (a *DevPodWorkspaceTemplate) GetOwner() *UserOrTeam { +func (a *DevsyWorkspaceTemplate) GetOwner() *UserOrTeam { return a.Spec.Owner } -func (a *DevPodWorkspaceTemplate) SetOwner(userOrTeam *UserOrTeam) { +func (a *DevsyWorkspaceTemplate) SetOwner(userOrTeam *UserOrTeam) { a.Spec.Owner = userOrTeam } -func (a *DevPodWorkspaceTemplate) GetAccess() []Access { +func (a *DevsyWorkspaceTemplate) GetAccess() []Access { return a.Spec.Access } -func (a *DevPodWorkspaceTemplate) SetAccess(access []Access) { +func (a *DevsyWorkspaceTemplate) SetAccess(access []Access) { a.Spec.Access = access } -// DevPodWorkspaceTemplateSpec holds the specification -type DevPodWorkspaceTemplateSpec struct { +// DevsyWorkspaceTemplateSpec holds the specification. +type DevsyWorkspaceTemplateSpec struct { // DisplayName is the name that is shown in the UI // +optional DisplayName string `json:"displayName,omitempty"` @@ -67,29 +67,29 @@ type DevPodWorkspaceTemplateSpec struct { // +optional Parameters []AppParameter `json:"parameters,omitempty"` - // Template holds the DevPod workspace template - Template DevPodWorkspaceTemplateDefinition `json:"template,omitempty"` + // Template holds the Devsy workspace template + Template DevsyWorkspaceTemplateDefinition `json:"template,omitempty"` // Versions are different versions of the template that can be referenced as well // +optional - Versions []DevPodWorkspaceTemplateVersion `json:"versions,omitempty"` + Versions []DevsyWorkspaceTemplateVersion `json:"versions,omitempty"` // Access holds the access rights for users and teams // +optional Access []Access `json:"access,omitempty"` } -type DevPodWorkspaceTemplateDefinition struct { +type DevsyWorkspaceTemplateDefinition struct { // Kubernetes holds the definition for kubernetes based workspaces - Kubernetes *DevPodWorkspaceKubernetesSpec `json:"kubernetes,omitempty"` + Kubernetes *DevsyWorkspaceKubernetesSpec `json:"kubernetes,omitempty"` // WorkspaceEnv are environment variables that should be available within the created workspace. // +optional - WorkspaceEnv map[string]DevPodProviderOption `json:"workspaceEnv,omitempty"` + WorkspaceEnv map[string]DevsyProviderOption `json:"workspaceEnv,omitempty"` // InstanceTemplate holds the workspace instance template // +optional - InstanceTemplate DevPodWorkspaceInstanceTemplateDefinition `json:"instanceTemplate,omitempty"` + InstanceTemplate DevsyWorkspaceInstanceTemplateDefinition `json:"instanceTemplate,omitempty"` // CredentialForwarding specifies controls for how workspaces created by this template forward credentials into the workspace // +optional @@ -98,22 +98,22 @@ type DevPodWorkspaceTemplateDefinition struct { // Provider holds the legacy VM provider configuration // // +optional - Provider *DevPodWorkspaceProvider `json:"provider,omitempty"` + Provider *DevsyWorkspaceProvider `json:"provider,omitempty"` } -type DevPodWorkspaceKubernetesSpec struct { +type DevsyWorkspaceKubernetesSpec struct { // Pod holds the definition for workspace pod. // // Defaults will be applied for fields that aren't specified. // +optional - Pod *DevPodWorkspacePodTemplate `json:"pod,omitempty"` + Pod *DevsyWorkspacePodTemplate `json:"pod,omitempty"` // VolumeClaim holds the definition for the main workspace persistent volume. // This volume is guaranteed to exist for the lifespan of the workspace. // // Defaults will be applied for fields that aren't specified. // +optional - VolumeClaim *DevPodWorkspaceVolumeClaimTemplate `json:"volumeClaim,omitempty"` + VolumeClaim *DevsyWorkspaceVolumeClaimTemplate `json:"volumeClaim,omitempty"` // PodTimeout specifies a maximum duration to wait for the workspace pod to start up before failing. // Default: 10m @@ -125,39 +125,39 @@ type DevPodWorkspaceKubernetesSpec struct { // +optional NodeArchitecure string `json:"nodeArchitecture,omitempty"` - // SpaceTemplateRef is a reference to the space that should get created for this DevPod. + // SpaceTemplateRef is a reference to the space that should get created for this Devsy. // If this is specified, the kubernetes provider will be selected automatically. // +optional SpaceTemplateRef *TemplateRef `json:"spaceTemplateRef,omitempty"` - // SpaceTemplate is the inline template for a space that should get created for this DevPod. + // SpaceTemplate is the inline template for a space that should get created for this Devsy. // If this is specified, the kubernetes provider will be selected automatically. // +optional SpaceTemplate *SpaceTemplateDefinition `json:"spaceTemplate,omitempty"` - // VirtualClusterTemplateRef is a reference to the virtual cluster that should get created for this DevPod. + // VirtualClusterTemplateRef is a reference to the virtual cluster that should get created for this Devsy. // If this is specified, the kubernetes provider will be selected automatically. // +optional VirtualClusterTemplateRef *TemplateRef `json:"virtualClusterTemplateRef,omitempty"` - // VirtualClusterTemplate is the inline template for a virtual cluster that should get created for this DevPod. + // VirtualClusterTemplate is the inline template for a virtual cluster that should get created for this Devsy. // If this is specified, the kubernetes provider will be selected automatically. // +optional VirtualClusterTemplate *VirtualClusterTemplateDefinition `json:"virtualClusterTemplate,omitempty"` } -// DevPodWorkspacePodTemplate is a less restrictive PodTemplate -type DevPodWorkspacePodTemplate struct { +// DevsyWorkspacePodTemplate is a less restrictive PodTemplate. +type DevsyWorkspacePodTemplate struct { // The pods metadata // +kubebuilder:pruning:PreserveUnknownFields // +optional TemplateMetadata `json:"metadata,omitempty"` - Spec DevPodWorkspacePodTemplateSpec `json:"spec,omitempty"` + Spec DevsyWorkspacePodTemplateSpec `json:"spec,omitempty"` } -// DevPodWorkspacePodResourceRequirements are less restrictive corev1.ResourceRequirements. -type DevPodWorkspaceResourceRequirements struct { +// DevsyWorkspacePodResourceRequirements are less restrictive corev1.ResourceRequirements. +type DevsyWorkspaceResourceRequirements struct { // Limits describes the maximum amount of compute resources allowed. // +optional Limits map[corev1.ResourceName]string `json:"limits,omitempty"` @@ -172,8 +172,8 @@ type DevPodWorkspaceResourceRequirements struct { Claims []corev1.ResourceClaim `json:"claims,omitempty"` } -// // DevPodWorkspacePodResourceRequirements is a less restrictive corev1.Container. -type DevPodWorkspaceContainer struct { +// // DevsyWorkspacePodResourceRequirements is a less restrictive corev1.Container. +type DevsyWorkspaceContainer struct { // Name of the container specified as a DNS_LABEL. Name string `json:"name"` // Container image name. @@ -201,7 +201,7 @@ type DevPodWorkspaceContainer struct { Env []corev1.EnvVar `json:"env,omitempty"` // Compute Resources required by this container. // +optional - Resources DevPodWorkspaceResourceRequirements `json:"resources,omitempty"` + Resources DevsyWorkspaceResourceRequirements `json:"resources,omitempty"` // Resources resize policy for the container. // +optional // +listType=atomic @@ -251,19 +251,19 @@ type DevPodWorkspaceContainer struct { TTY bool `json:"tty,omitempty"` } -// DevPodWorkspacePodTemplateSpec is a less restrictive PodSpec -type DevPodWorkspacePodTemplateSpec struct { +// DevsyWorkspacePodTemplateSpec is a less restrictive PodSpec. +type DevsyWorkspacePodTemplateSpec struct { // List of volumes that can be mounted by containers belonging to the pod. // +optional Volumes []corev1.Volume `json:"volumes,omitempty"` // List of initialization containers belonging to the pod. // +optional - InitContainers []DevPodWorkspaceContainer `json:"initContainers,omitempty"` + InitContainers []DevsyWorkspaceContainer `json:"initContainers,omitempty"` // List of containers belonging to the pod. // +optional - Containers []DevPodWorkspaceContainer `json:"containers,omitempty"` + Containers []DevsyWorkspaceContainer `json:"containers,omitempty"` // Restart policy for all containers within the pod. // +optional @@ -413,19 +413,19 @@ type DevPodWorkspacePodTemplateSpec struct { // containers in the pod. It supports specifying Requests and Limits for // "cpu" and "memory" resource names only. ResourceClaims are not supported. // +optional - Resources *DevPodWorkspaceResourceRequirements `json:"resources,omitempty"` + Resources *DevsyWorkspaceResourceRequirements `json:"resources,omitempty"` } -type DevPodWorkspaceVolumeClaimTemplate struct { +type DevsyWorkspaceVolumeClaimTemplate struct { // The pods metadata // +kubebuilder:pruning:PreserveUnknownFields // +optional TemplateMetadata `json:"metadata,omitempty"` - Spec DevPodWorkspaceVolumeClaimSpec `json:"spec,omitempty"` + Spec DevsyWorkspaceVolumeClaimSpec `json:"spec,omitempty"` } -type DevPodWorkspaceVolumeClaimSpec struct { +type DevsyWorkspaceVolumeClaimSpec struct { // accessModes contains the desired access modes the volume should have. // +optional // +listType=atomic @@ -435,7 +435,7 @@ type DevPodWorkspaceVolumeClaimSpec struct { Selector *metav1.LabelSelector `json:"selector,omitempty"` // resources represents the minimum resources the volume should have. // +optional - Resources DevPodWorkspaceResourceRequirements `json:"resources,omitempty"` + Resources DevsyWorkspaceResourceRequirements `json:"resources,omitempty"` // volumeName is the binding reference to the PersistentVolume backing this claim. // +optional VolumeName string `json:"volumeName,omitempty"` @@ -456,38 +456,38 @@ type DevPodWorkspaceVolumeClaimSpec struct { VolumeAttributesClassName *string `json:"volumeAttributesClassName,omitempty"` } -type DevPodWorkspaceProvider struct { +type DevsyWorkspaceProvider struct { // Name is the name of the provider. This can also be an url. // +optional Name string `json:"name,omitempty"` // Options are the provider option values // +optional - Options map[string]DevPodProviderOption `json:"options,omitempty"` + Options map[string]DevsyProviderOption `json:"options,omitempty"` // Env are environment options to set when using the provider. // +optional - Env map[string]DevPodProviderOption `json:"env,omitempty"` + Env map[string]DevsyProviderOption `json:"env,omitempty"` } -type DevPodWorkspaceInstanceTemplateDefinition struct { +type DevsyWorkspaceInstanceTemplateDefinition struct { // The workspace instance metadata // +kubebuilder:pruning:PreserveUnknownFields // +optional TemplateMetadata `json:"metadata,omitempty"` } -type DevPodProviderOption struct { +type DevsyProviderOption struct { // Value of this option. // +optional Value string `json:"value,omitempty"` // ValueFrom specifies a secret where this value should be taken from. // +optional - ValueFrom *DevPodProviderOptionFrom `json:"valueFrom,omitempty"` + ValueFrom *DevsyProviderOptionFrom `json:"valueFrom,omitempty"` } -type DevPodProviderOptionFrom struct { +type DevsyProviderOptionFrom struct { // ProjectSecretRef is the project secret to use for this value. // +optional ProjectSecretRef *corev1.SecretKeySelector `json:"projectSecretRef,omitempty"` @@ -497,7 +497,7 @@ type DevPodProviderOptionFrom struct { SharedSecretRef *corev1.SecretKeySelector `json:"sharedSecretRef,omitempty"` } -type DevPodProviderSource struct { +type DevsyProviderSource struct { // Github source for the provider Github string `json:"github,omitempty"` @@ -508,10 +508,10 @@ type DevPodProviderSource struct { URL string `json:"url,omitempty"` } -type DevPodWorkspaceTemplateVersion struct { - // Template holds the DevPod template +type DevsyWorkspaceTemplateVersion struct { + // Template holds the Devsy template // +optional - Template DevPodWorkspaceTemplateDefinition `json:"template,omitempty"` + Template DevsyWorkspaceTemplateDefinition `json:"template,omitempty"` // Parameters define additional app parameters that will set provider values // +optional @@ -544,18 +544,18 @@ type GitCredentialForwarding struct { Disabled bool `json:"disabled,omitempty"` } -// DevPodWorkspaceTemplateStatus holds the status -type DevPodWorkspaceTemplateStatus struct{} +// DevsyWorkspaceTemplateStatus holds the status. +type DevsyWorkspaceTemplateStatus struct{} // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object -// DevPodWorkspaceTemplateList contains a list of DevPodWorkspaceTemplate -type DevPodWorkspaceTemplateList struct { - metav1.TypeMeta ` json:",inline"` - metav1.ListMeta ` json:"metadata,omitempty"` - Items []DevPodWorkspaceTemplate `json:"items"` +// DevsyWorkspaceTemplateList contains a list of DevsyWorkspaceTemplate. +type DevsyWorkspaceTemplateList struct { + metav1.TypeMeta ` json:",inline"` + metav1.ListMeta ` json:"metadata,omitempty"` + Items []DevsyWorkspaceTemplate `json:"items"` } func init() { - SchemeBuilder.Register(&DevPodWorkspaceTemplate{}, &DevPodWorkspaceTemplateList{}) + SchemeBuilder.Register(&DevsyWorkspaceTemplate{}, &DevsyWorkspaceTemplateList{}) } diff --git a/pkg/apis/storage/v1/doc.go b/pkg/apis/storage/v1/doc.go index efc5152..6d2d6b1 100644 --- a/pkg/apis/storage/v1/doc.go +++ b/pkg/apis/storage/v1/doc.go @@ -2,10 +2,6 @@ // backward compatibility by support multiple concurrent versions // of the same resource -//go:generate go run ../../../../vendor/k8s.io/code-generator/cmd/deepcopy-gen/main.go -O zz_generated.deepcopy -i . -h ../../../../boilerplate.go.txt -//go:generate go run ../../../../vendor/k8s.io/code-generator/cmd/defaulter-gen/main.go -O zz_generated.defaults -i . -h ../../../../boilerplate.go.txt -//go:generate go run ../../../../vendor/k8s.io/code-generator/cmd/conversion-gen/main.go -O zz_generated.conversion -i . -h ../../../../boilerplate.go.txt - // +k8s:openapi-gen=true // +k8s:deepcopy-gen=package // +k8s:defaulter-gen=TypeMeta diff --git a/pkg/apis/storage/v1/networkpeer_types.go b/pkg/apis/storage/v1/networkpeer_types.go index 2c2cfe3..81bfe85 100644 --- a/pkg/apis/storage/v1/networkpeer_types.go +++ b/pkg/apis/storage/v1/networkpeer_types.go @@ -47,7 +47,7 @@ type NetworkPeerStatus struct { // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object -// NetworkPeerList contains a list of NetworkPeers +// NetworkPeerList contains a list of NetworkPeers. type NetworkPeerList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` diff --git a/pkg/apis/storage/v1/nodeclaim_types.go b/pkg/apis/storage/v1/nodeclaim_types.go index 189dd08..1382fca 100644 --- a/pkg/apis/storage/v1/nodeclaim_types.go +++ b/pkg/apis/storage/v1/nodeclaim_types.go @@ -117,7 +117,7 @@ type NodeClaimStatus struct { // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object -// NodeClaimList contains a list of NodeClaim +// NodeClaimList contains a list of NodeClaim. type NodeClaimList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` diff --git a/pkg/apis/storage/v1/nodeenvironment_types.go b/pkg/apis/storage/v1/nodeenvironment_types.go index a4a35f1..4682242 100644 --- a/pkg/apis/storage/v1/nodeenvironment_types.go +++ b/pkg/apis/storage/v1/nodeenvironment_types.go @@ -87,7 +87,7 @@ type NodeEnvironmentStatus struct { // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object -// NodeEnvironmentList contains a list of NodeEnvironment +// NodeEnvironmentList contains a list of NodeEnvironment. type NodeEnvironmentList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` diff --git a/pkg/apis/storage/v1/nodeprovider_types.go b/pkg/apis/storage/v1/nodeprovider_types.go index c289ef0..33916cd 100644 --- a/pkg/apis/storage/v1/nodeprovider_types.go +++ b/pkg/apis/storage/v1/nodeprovider_types.go @@ -248,7 +248,7 @@ type NodeProviderStatus struct { // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object -// NodeProviderList contains a list of NodeProvider +// NodeProviderList contains a list of NodeProvider. type NodeProviderList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` diff --git a/pkg/apis/storage/v1/nodetype_types.go b/pkg/apis/storage/v1/nodetype_types.go index eced75d..f1d1b31 100644 --- a/pkg/apis/storage/v1/nodetype_types.go +++ b/pkg/apis/storage/v1/nodetype_types.go @@ -132,7 +132,7 @@ type NodeTypeCapacity struct { // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object -// NodeTypeList contains a list of NodeType +// NodeTypeList contains a list of NodeType. type NodeTypeList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` diff --git a/pkg/apis/storage/v1/project_types.go b/pkg/apis/storage/v1/project_types.go index cb140fb..d33d3b8 100644 --- a/pkg/apis/storage/v1/project_types.go +++ b/pkg/apis/storage/v1/project_types.go @@ -93,7 +93,7 @@ type ProjectSpec struct { AllowedClusters []AllowedCluster `json:"allowedClusters,omitempty"` // AllowedRunners are target runners that are allowed to target with - // DevPod environments. + // Devsy environments. // +optional AllowedRunners []AllowedRunner `json:"allowedRunners,omitempty"` @@ -134,9 +134,9 @@ type ProjectSpec struct { // +optional RancherIntegration *RancherIntegrationSpec `json:"rancher,omitempty"` - // DevPod holds DevPod specific configuration for project + // Devsy holds Devsy specific configuration for project // +optional - DevPod *DevPodProjectSpec `json:"devPod,omitempty"` + Devsy *DevsyProjectSpec `json:"devPod,omitempty"` } type RequireTemplate struct { @@ -162,9 +162,9 @@ type NamespacePattern struct { // +optional VirtualCluster string `json:"virtualCluster,omitempty"` - // DevPodWorkspace holds the namespace pattern to use for DevPod workspaces + // DevsyWorkspace holds the namespace pattern to use for Devsy workspaces // +optional - DevPodWorkspace string `json:"devPodWorkspace,omitempty"` + DevsyWorkspace string `json:"devPodWorkspace,omitempty"` } type Quotas struct { @@ -177,14 +177,15 @@ type Quotas struct { } var ( - SpaceTemplateKind = "SpaceTemplate" - VirtualClusterTemplateKind = "VirtualClusterTemplate" - DevPodWorkspaceTemplateKind = "DevPodWorkspaceTemplate" - DevPodWorkspacePresetKind = "DevPodWorkspacePreset" + SpaceTemplateKind = "SpaceTemplate" + VirtualClusterTemplateKind = "VirtualClusterTemplate" + DevsyWorkspaceTemplateKind = "DevsyWorkspaceTemplate" + DevsyWorkspacePresetKind = "DevsyWorkspacePreset" ) type AllowedTemplate struct { - // Kind of the template that is allowed. Currently only supports DevPodWorkspaceTemplate, VirtualClusterTemplate & SpaceTemplate + // Kind of the template that is allowed. Currently only supports + // DevsyWorkspaceTemplate, VirtualClusterTemplate & SpaceTemplate. // +optional Kind string `json:"kind,omitempty"` @@ -231,7 +232,7 @@ type AllowedCluster struct { } type ProjectStatus struct { - // Quotas holds the quota status + // Quotas holds the quota status. // +optional Quotas *QuotaStatus `json:"quotas,omitempty"` @@ -371,7 +372,7 @@ type ArgoSSOSpec struct { type ArgoProjectSpec struct { // Enabled indicates if the ArgoCD Project Integration is enabled for this project. Enabling - // this will cause Devsy to create an appProject in ArgoCD that is associated with the Loft + // this will cause Devsy to create an appProject in ArgoCD that is associated with the Devsy // Project. When Project integration is enabled Devsy will override the default assigned role // set in the SSO integration spec. // +optional @@ -515,7 +516,7 @@ type SyncMembersSpec struct { RoleMapping map[string]string `json:"roleMapping,omitempty"` } -type DevPodProjectSpec struct { +type DevsyProjectSpec struct { // Git defines additional git related settings like credentials // +optional Git *GitProjectSpec `json:"git,omitempty"` @@ -556,7 +557,7 @@ type GitProjectCredentials struct { // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object -// ProjectList contains a list of Project objects +// ProjectList contains a list of Project objects. type ProjectList struct { metav1.TypeMeta ` json:",inline"` metav1.ListMeta ` json:"metadata,omitempty"` diff --git a/pkg/apis/storage/v1/sharedsecret_types.go b/pkg/apis/storage/v1/sharedsecret_types.go index ecf070d..d460b16 100644 --- a/pkg/apis/storage/v1/sharedsecret_types.go +++ b/pkg/apis/storage/v1/sharedsecret_types.go @@ -44,7 +44,7 @@ func (a *SharedSecret) SetAccess(access []Access) { a.Spec.Access = access } -// SharedSecretSpec holds the specification +// SharedSecretSpec holds the specification. type SharedSecretSpec struct { // DisplayName is the name that should be displayed in the UI // +optional @@ -93,7 +93,7 @@ type Access struct { Teams []string `json:"teams,omitempty"` } -// SharedSecretStatus holds the status +// SharedSecretStatus holds the status. type SharedSecretStatus struct { // Conditions holds several conditions the project might be in // +optional @@ -102,7 +102,7 @@ type SharedSecretStatus struct { // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object -// SharedSecretList contains a list of SharedSecret +// SharedSecretList contains a list of SharedSecret. type SharedSecretList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` diff --git a/pkg/apis/storage/v1/spaceinstance_types.go b/pkg/apis/storage/v1/spaceinstance_types.go index 292e3cd..2638979 100644 --- a/pkg/apis/storage/v1/spaceinstance_types.go +++ b/pkg/apis/storage/v1/spaceinstance_types.go @@ -212,7 +212,7 @@ var ( // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object -// SpaceInstanceList contains a list of SpaceInstance objects +// SpaceInstanceList contains a list of SpaceInstance objects. type SpaceInstanceList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` diff --git a/pkg/apis/storage/v1/spacetemplate_types.go b/pkg/apis/storage/v1/spacetemplate_types.go index 19bbde2..120db00 100644 --- a/pkg/apis/storage/v1/spacetemplate_types.go +++ b/pkg/apis/storage/v1/spacetemplate_types.go @@ -48,7 +48,7 @@ func (a *SpaceTemplate) SetAccess(access []Access) { a.Spec.Access = access } -// SpaceTemplateSpec holds the specification +// SpaceTemplateSpec holds the specification. type SpaceTemplateSpec struct { // DisplayName is the name that is shown in the UI // +optional @@ -128,12 +128,12 @@ type SpaceInstanceTemplateDefinition struct { TemplateMetadata `json:"metadata,omitempty"` } -// SpaceTemplateStatus holds the status +// SpaceTemplateStatus holds the status. type SpaceTemplateStatus struct{} // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object -// SpaceTemplateList contains a list of SpaceTemplate +// SpaceTemplateList contains a list of SpaceTemplate. type SpaceTemplateList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` diff --git a/pkg/apis/storage/v1/task_types.go b/pkg/apis/storage/v1/task_types.go index 529d888..27d7e02 100644 --- a/pkg/apis/storage/v1/task_types.go +++ b/pkg/apis/storage/v1/task_types.go @@ -266,7 +266,7 @@ type EntityInfo struct { // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object -// TaskList contains a list of Task +// TaskList contains a list of Task. type TaskList struct { metav1.TypeMeta ` json:",inline"` metav1.ListMeta ` json:"metadata,omitempty"` diff --git a/pkg/apis/storage/v1/team_types.go b/pkg/apis/storage/v1/team_types.go index 1d1a48b..56e8133 100644 --- a/pkg/apis/storage/v1/team_types.go +++ b/pkg/apis/storage/v1/team_types.go @@ -77,7 +77,7 @@ type TeamStatus struct{} // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object -// TeamList contains a list of Team +// TeamList contains a list of Team. type TeamList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` diff --git a/pkg/apis/storage/v1/user_types.go b/pkg/apis/storage/v1/user_types.go index b2e6063..d050a8d 100644 --- a/pkg/apis/storage/v1/user_types.go +++ b/pkg/apis/storage/v1/user_types.go @@ -138,7 +138,7 @@ type SecretRef struct { // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object -// UserList contains a list of User +// UserList contains a list of User. type UserList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` diff --git a/pkg/apis/storage/v1/virtualclusterinstance_types.go b/pkg/apis/storage/v1/virtualclusterinstance_types.go index d6d0c93..f2956e0 100644 --- a/pkg/apis/storage/v1/virtualclusterinstance_types.go +++ b/pkg/apis/storage/v1/virtualclusterinstance_types.go @@ -444,7 +444,7 @@ const ( // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object -// VirtualClusterInstanceList contains a list of VirtualClusterInstance objects +// VirtualClusterInstanceList contains a list of VirtualClusterInstance objects. type VirtualClusterInstanceList struct { metav1.TypeMeta ` json:",inline"` metav1.ListMeta ` json:"metadata,omitempty"` diff --git a/pkg/apis/storage/v1/virtualclustertemplate_types.go b/pkg/apis/storage/v1/virtualclustertemplate_types.go index 31b2232..272436a 100644 --- a/pkg/apis/storage/v1/virtualclustertemplate_types.go +++ b/pkg/apis/storage/v1/virtualclustertemplate_types.go @@ -48,7 +48,7 @@ func (a *VirtualClusterTemplate) SetAccess(access []Access) { a.Spec.Access = access } -// VirtualClusterTemplateSpec holds the specification +// VirtualClusterTemplateSpec holds the specification. type VirtualClusterTemplateSpec struct { // DisplayName is the name that is shown in the UI // +optional @@ -163,12 +163,12 @@ type TemplateMetadata struct { Annotations map[string]string `json:"annotations,omitempty"` } -// VirtualClusterTemplateStatus holds the status +// VirtualClusterTemplateStatus holds the status. type VirtualClusterTemplateStatus struct{} // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object -// VirtualClusterTemplateList contains a list of VirtualClusterTemplate +// VirtualClusterTemplateList contains a list of VirtualClusterTemplate. type VirtualClusterTemplateList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` diff --git a/pkg/apis/storage/v1/zz_generated.deepcopy.go b/pkg/apis/storage/v1/zz_generated.deepcopy.go index 265368a..4ce3bc0 100644 --- a/pkg/apis/storage/v1/zz_generated.deepcopy.go +++ b/pkg/apis/storage/v1/zz_generated.deepcopy.go @@ -1378,55 +1378,55 @@ func (in *CredentialForwarding) DeepCopy() *CredentialForwarding { } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *DevPodCommandDeleteOptions) DeepCopyInto(out *DevPodCommandDeleteOptions) { +func (in *DevsyCommandDeleteOptions) DeepCopyInto(out *DevsyCommandDeleteOptions) { *out = *in return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevPodCommandDeleteOptions. -func (in *DevPodCommandDeleteOptions) DeepCopy() *DevPodCommandDeleteOptions { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevsyCommandDeleteOptions. +func (in *DevsyCommandDeleteOptions) DeepCopy() *DevsyCommandDeleteOptions { if in == nil { return nil } - out := new(DevPodCommandDeleteOptions) + out := new(DevsyCommandDeleteOptions) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *DevPodCommandStatusOptions) DeepCopyInto(out *DevPodCommandStatusOptions) { +func (in *DevsyCommandStatusOptions) DeepCopyInto(out *DevsyCommandStatusOptions) { *out = *in return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevPodCommandStatusOptions. -func (in *DevPodCommandStatusOptions) DeepCopy() *DevPodCommandStatusOptions { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevsyCommandStatusOptions. +func (in *DevsyCommandStatusOptions) DeepCopy() *DevsyCommandStatusOptions { if in == nil { return nil } - out := new(DevPodCommandStatusOptions) + out := new(DevsyCommandStatusOptions) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *DevPodCommandStopOptions) DeepCopyInto(out *DevPodCommandStopOptions) { +func (in *DevsyCommandStopOptions) DeepCopyInto(out *DevsyCommandStopOptions) { *out = *in return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevPodCommandStopOptions. -func (in *DevPodCommandStopOptions) DeepCopy() *DevPodCommandStopOptions { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevsyCommandStopOptions. +func (in *DevsyCommandStopOptions) DeepCopy() *DevsyCommandStopOptions { if in == nil { return nil } - out := new(DevPodCommandStopOptions) + out := new(DevsyCommandStopOptions) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *DevPodCommandUpOptions) DeepCopyInto(out *DevPodCommandUpOptions) { +func (in *DevsyCommandUpOptions) DeepCopyInto(out *DevsyCommandUpOptions) { *out = *in if in.IDEOptions != nil { in, out := &in.IDEOptions, &out.IDEOptions @@ -1451,18 +1451,18 @@ func (in *DevPodCommandUpOptions) DeepCopyInto(out *DevPodCommandUpOptions) { return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevPodCommandUpOptions. -func (in *DevPodCommandUpOptions) DeepCopy() *DevPodCommandUpOptions { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevsyCommandUpOptions. +func (in *DevsyCommandUpOptions) DeepCopy() *DevsyCommandUpOptions { if in == nil { return nil } - out := new(DevPodCommandUpOptions) + out := new(DevsyCommandUpOptions) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *DevPodEnvironmentTemplate) DeepCopyInto(out *DevPodEnvironmentTemplate) { +func (in *DevsyEnvironmentTemplate) DeepCopyInto(out *DevsyEnvironmentTemplate) { *out = *in out.TypeMeta = in.TypeMeta in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) @@ -1471,18 +1471,18 @@ func (in *DevPodEnvironmentTemplate) DeepCopyInto(out *DevPodEnvironmentTemplate return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevPodEnvironmentTemplate. -func (in *DevPodEnvironmentTemplate) DeepCopy() *DevPodEnvironmentTemplate { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevsyEnvironmentTemplate. +func (in *DevsyEnvironmentTemplate) DeepCopy() *DevsyEnvironmentTemplate { if in == nil { return nil } - out := new(DevPodEnvironmentTemplate) + out := new(DevsyEnvironmentTemplate) in.DeepCopyInto(out) return out } // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *DevPodEnvironmentTemplate) DeepCopyObject() runtime.Object { +func (in *DevsyEnvironmentTemplate) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -1490,7 +1490,7 @@ func (in *DevPodEnvironmentTemplate) DeepCopyObject() runtime.Object { } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *DevPodEnvironmentTemplateDefinition) DeepCopyInto(out *DevPodEnvironmentTemplateDefinition) { +func (in *DevsyEnvironmentTemplateDefinition) DeepCopyInto(out *DevsyEnvironmentTemplateDefinition) { *out = *in if in.Git != nil { in, out := &in.Git, &out.Git @@ -1500,24 +1500,24 @@ func (in *DevPodEnvironmentTemplateDefinition) DeepCopyInto(out *DevPodEnvironme return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevPodEnvironmentTemplateDefinition. -func (in *DevPodEnvironmentTemplateDefinition) DeepCopy() *DevPodEnvironmentTemplateDefinition { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevsyEnvironmentTemplateDefinition. +func (in *DevsyEnvironmentTemplateDefinition) DeepCopy() *DevsyEnvironmentTemplateDefinition { if in == nil { return nil } - out := new(DevPodEnvironmentTemplateDefinition) + out := new(DevsyEnvironmentTemplateDefinition) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *DevPodEnvironmentTemplateList) DeepCopyInto(out *DevPodEnvironmentTemplateList) { +func (in *DevsyEnvironmentTemplateList) DeepCopyInto(out *DevsyEnvironmentTemplateList) { *out = *in out.TypeMeta = in.TypeMeta in.ListMeta.DeepCopyInto(&out.ListMeta) if in.Items != nil { in, out := &in.Items, &out.Items - *out = make([]DevPodEnvironmentTemplate, len(*in)) + *out = make([]DevsyEnvironmentTemplate, len(*in)) for i := range *in { (*in)[i].DeepCopyInto(&(*out)[i]) } @@ -1525,18 +1525,18 @@ func (in *DevPodEnvironmentTemplateList) DeepCopyInto(out *DevPodEnvironmentTemp return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevPodEnvironmentTemplateList. -func (in *DevPodEnvironmentTemplateList) DeepCopy() *DevPodEnvironmentTemplateList { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevsyEnvironmentTemplateList. +func (in *DevsyEnvironmentTemplateList) DeepCopy() *DevsyEnvironmentTemplateList { if in == nil { return nil } - out := new(DevPodEnvironmentTemplateList) + out := new(DevsyEnvironmentTemplateList) in.DeepCopyInto(out) return out } // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *DevPodEnvironmentTemplateList) DeepCopyObject() runtime.Object { +func (in *DevsyEnvironmentTemplateList) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -1544,7 +1544,7 @@ func (in *DevPodEnvironmentTemplateList) DeepCopyObject() runtime.Object { } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *DevPodEnvironmentTemplateSpec) DeepCopyInto(out *DevPodEnvironmentTemplateSpec) { +func (in *DevsyEnvironmentTemplateSpec) DeepCopyInto(out *DevsyEnvironmentTemplateSpec) { *out = *in if in.Owner != nil { in, out := &in.Owner, &out.Owner @@ -1560,12 +1560,12 @@ func (in *DevPodEnvironmentTemplateSpec) DeepCopyInto(out *DevPodEnvironmentTemp } if in.Template != nil { in, out := &in.Template, &out.Template - *out = new(DevPodEnvironmentTemplateDefinition) + *out = new(DevsyEnvironmentTemplateDefinition) (*in).DeepCopyInto(*out) } if in.Versions != nil { in, out := &in.Versions, &out.Versions - *out = make([]DevPodEnvironmentTemplateVersion, len(*in)) + *out = make([]DevsyEnvironmentTemplateVersion, len(*in)) for i := range *in { (*in)[i].DeepCopyInto(&(*out)[i]) } @@ -1573,51 +1573,51 @@ func (in *DevPodEnvironmentTemplateSpec) DeepCopyInto(out *DevPodEnvironmentTemp return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevPodEnvironmentTemplateSpec. -func (in *DevPodEnvironmentTemplateSpec) DeepCopy() *DevPodEnvironmentTemplateSpec { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevsyEnvironmentTemplateSpec. +func (in *DevsyEnvironmentTemplateSpec) DeepCopy() *DevsyEnvironmentTemplateSpec { if in == nil { return nil } - out := new(DevPodEnvironmentTemplateSpec) + out := new(DevsyEnvironmentTemplateSpec) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *DevPodEnvironmentTemplateStatus) DeepCopyInto(out *DevPodEnvironmentTemplateStatus) { +func (in *DevsyEnvironmentTemplateStatus) DeepCopyInto(out *DevsyEnvironmentTemplateStatus) { *out = *in return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevPodEnvironmentTemplateStatus. -func (in *DevPodEnvironmentTemplateStatus) DeepCopy() *DevPodEnvironmentTemplateStatus { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevsyEnvironmentTemplateStatus. +func (in *DevsyEnvironmentTemplateStatus) DeepCopy() *DevsyEnvironmentTemplateStatus { if in == nil { return nil } - out := new(DevPodEnvironmentTemplateStatus) + out := new(DevsyEnvironmentTemplateStatus) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *DevPodEnvironmentTemplateVersion) DeepCopyInto(out *DevPodEnvironmentTemplateVersion) { +func (in *DevsyEnvironmentTemplateVersion) DeepCopyInto(out *DevsyEnvironmentTemplateVersion) { *out = *in in.Template.DeepCopyInto(&out.Template) return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevPodEnvironmentTemplateVersion. -func (in *DevPodEnvironmentTemplateVersion) DeepCopy() *DevPodEnvironmentTemplateVersion { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevsyEnvironmentTemplateVersion. +func (in *DevsyEnvironmentTemplateVersion) DeepCopy() *DevsyEnvironmentTemplateVersion { if in == nil { return nil } - out := new(DevPodEnvironmentTemplateVersion) + out := new(DevsyEnvironmentTemplateVersion) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *DevPodProjectSpec) DeepCopyInto(out *DevPodProjectSpec) { +func (in *DevsyProjectSpec) DeepCopyInto(out *DevsyProjectSpec) { *out = *in if in.Git != nil { in, out := &in.Git, &out.Git @@ -1627,39 +1627,39 @@ func (in *DevPodProjectSpec) DeepCopyInto(out *DevPodProjectSpec) { return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevPodProjectSpec. -func (in *DevPodProjectSpec) DeepCopy() *DevPodProjectSpec { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevsyProjectSpec. +func (in *DevsyProjectSpec) DeepCopy() *DevsyProjectSpec { if in == nil { return nil } - out := new(DevPodProjectSpec) + out := new(DevsyProjectSpec) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *DevPodProviderOption) DeepCopyInto(out *DevPodProviderOption) { +func (in *DevsyProviderOption) DeepCopyInto(out *DevsyProviderOption) { *out = *in if in.ValueFrom != nil { in, out := &in.ValueFrom, &out.ValueFrom - *out = new(DevPodProviderOptionFrom) + *out = new(DevsyProviderOptionFrom) (*in).DeepCopyInto(*out) } return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevPodProviderOption. -func (in *DevPodProviderOption) DeepCopy() *DevPodProviderOption { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevsyProviderOption. +func (in *DevsyProviderOption) DeepCopy() *DevsyProviderOption { if in == nil { return nil } - out := new(DevPodProviderOption) + out := new(DevsyProviderOption) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *DevPodProviderOptionFrom) DeepCopyInto(out *DevPodProviderOptionFrom) { +func (in *DevsyProviderOptionFrom) DeepCopyInto(out *DevsyProviderOptionFrom) { *out = *in if in.ProjectSecretRef != nil { in, out := &in.ProjectSecretRef, &out.ProjectSecretRef @@ -1674,34 +1674,34 @@ func (in *DevPodProviderOptionFrom) DeepCopyInto(out *DevPodProviderOptionFrom) return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevPodProviderOptionFrom. -func (in *DevPodProviderOptionFrom) DeepCopy() *DevPodProviderOptionFrom { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevsyProviderOptionFrom. +func (in *DevsyProviderOptionFrom) DeepCopy() *DevsyProviderOptionFrom { if in == nil { return nil } - out := new(DevPodProviderOptionFrom) + out := new(DevsyProviderOptionFrom) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *DevPodProviderSource) DeepCopyInto(out *DevPodProviderSource) { +func (in *DevsyProviderSource) DeepCopyInto(out *DevsyProviderSource) { *out = *in return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevPodProviderSource. -func (in *DevPodProviderSource) DeepCopy() *DevPodProviderSource { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevsyProviderSource. +func (in *DevsyProviderSource) DeepCopy() *DevsyProviderSource { if in == nil { return nil } - out := new(DevPodProviderSource) + out := new(DevsyProviderSource) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *DevPodWorkspaceContainer) DeepCopyInto(out *DevPodWorkspaceContainer) { +func (in *DevsyWorkspaceContainer) DeepCopyInto(out *DevsyWorkspaceContainer) { *out = *in if in.Command != nil { in, out := &in.Command, &out.Command @@ -1783,18 +1783,18 @@ func (in *DevPodWorkspaceContainer) DeepCopyInto(out *DevPodWorkspaceContainer) return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevPodWorkspaceContainer. -func (in *DevPodWorkspaceContainer) DeepCopy() *DevPodWorkspaceContainer { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevsyWorkspaceContainer. +func (in *DevsyWorkspaceContainer) DeepCopy() *DevsyWorkspaceContainer { if in == nil { return nil } - out := new(DevPodWorkspaceContainer) + out := new(DevsyWorkspaceContainer) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *DevPodWorkspaceInstance) DeepCopyInto(out *DevPodWorkspaceInstance) { +func (in *DevsyWorkspaceInstance) DeepCopyInto(out *DevsyWorkspaceInstance) { *out = *in out.TypeMeta = in.TypeMeta in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) @@ -1803,18 +1803,18 @@ func (in *DevPodWorkspaceInstance) DeepCopyInto(out *DevPodWorkspaceInstance) { return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevPodWorkspaceInstance. -func (in *DevPodWorkspaceInstance) DeepCopy() *DevPodWorkspaceInstance { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevsyWorkspaceInstance. +func (in *DevsyWorkspaceInstance) DeepCopy() *DevsyWorkspaceInstance { if in == nil { return nil } - out := new(DevPodWorkspaceInstance) + out := new(DevsyWorkspaceInstance) in.DeepCopyInto(out) return out } // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *DevPodWorkspaceInstance) DeepCopyObject() runtime.Object { +func (in *DevsyWorkspaceInstance) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -1822,74 +1822,74 @@ func (in *DevPodWorkspaceInstance) DeepCopyObject() runtime.Object { } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *DevPodWorkspaceInstanceContainerResource) DeepCopyInto(out *DevPodWorkspaceInstanceContainerResource) { +func (in *DevsyWorkspaceInstanceContainerResource) DeepCopyInto(out *DevsyWorkspaceInstanceContainerResource) { *out = *in in.Resources.DeepCopyInto(&out.Resources) return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevPodWorkspaceInstanceContainerResource. -func (in *DevPodWorkspaceInstanceContainerResource) DeepCopy() *DevPodWorkspaceInstanceContainerResource { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevsyWorkspaceInstanceContainerResource. +func (in *DevsyWorkspaceInstanceContainerResource) DeepCopy() *DevsyWorkspaceInstanceContainerResource { if in == nil { return nil } - out := new(DevPodWorkspaceInstanceContainerResource) + out := new(DevsyWorkspaceInstanceContainerResource) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *DevPodWorkspaceInstanceEvent) DeepCopyInto(out *DevPodWorkspaceInstanceEvent) { +func (in *DevsyWorkspaceInstanceEvent) DeepCopyInto(out *DevsyWorkspaceInstanceEvent) { *out = *in in.LastTimestamp.DeepCopyInto(&out.LastTimestamp) return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevPodWorkspaceInstanceEvent. -func (in *DevPodWorkspaceInstanceEvent) DeepCopy() *DevPodWorkspaceInstanceEvent { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevsyWorkspaceInstanceEvent. +func (in *DevsyWorkspaceInstanceEvent) DeepCopy() *DevsyWorkspaceInstanceEvent { if in == nil { return nil } - out := new(DevPodWorkspaceInstanceEvent) + out := new(DevsyWorkspaceInstanceEvent) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *DevPodWorkspaceInstanceKubernetesStatus) DeepCopyInto(out *DevPodWorkspaceInstanceKubernetesStatus) { +func (in *DevsyWorkspaceInstanceKubernetesStatus) DeepCopyInto(out *DevsyWorkspaceInstanceKubernetesStatus) { *out = *in in.LastTransitionTime.DeepCopyInto(&out.LastTransitionTime) if in.PodStatus != nil { in, out := &in.PodStatus, &out.PodStatus - *out = new(DevPodWorkspaceInstancePodStatus) + *out = new(DevsyWorkspaceInstancePodStatus) (*in).DeepCopyInto(*out) } if in.PersistentVolumeClaimStatus != nil { in, out := &in.PersistentVolumeClaimStatus, &out.PersistentVolumeClaimStatus - *out = new(DevPodWorkspaceInstancePersistentVolumeClaimStatus) + *out = new(DevsyWorkspaceInstancePersistentVolumeClaimStatus) (*in).DeepCopyInto(*out) } return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevPodWorkspaceInstanceKubernetesStatus. -func (in *DevPodWorkspaceInstanceKubernetesStatus) DeepCopy() *DevPodWorkspaceInstanceKubernetesStatus { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevsyWorkspaceInstanceKubernetesStatus. +func (in *DevsyWorkspaceInstanceKubernetesStatus) DeepCopy() *DevsyWorkspaceInstanceKubernetesStatus { if in == nil { return nil } - out := new(DevPodWorkspaceInstanceKubernetesStatus) + out := new(DevsyWorkspaceInstanceKubernetesStatus) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *DevPodWorkspaceInstanceList) DeepCopyInto(out *DevPodWorkspaceInstanceList) { +func (in *DevsyWorkspaceInstanceList) DeepCopyInto(out *DevsyWorkspaceInstanceList) { *out = *in out.TypeMeta = in.TypeMeta in.ListMeta.DeepCopyInto(&out.ListMeta) if in.Items != nil { in, out := &in.Items, &out.Items - *out = make([]DevPodWorkspaceInstance, len(*in)) + *out = make([]DevsyWorkspaceInstance, len(*in)) for i := range *in { (*in)[i].DeepCopyInto(&(*out)[i]) } @@ -1897,18 +1897,18 @@ func (in *DevPodWorkspaceInstanceList) DeepCopyInto(out *DevPodWorkspaceInstance return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevPodWorkspaceInstanceList. -func (in *DevPodWorkspaceInstanceList) DeepCopy() *DevPodWorkspaceInstanceList { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevsyWorkspaceInstanceList. +func (in *DevsyWorkspaceInstanceList) DeepCopy() *DevsyWorkspaceInstanceList { if in == nil { return nil } - out := new(DevPodWorkspaceInstanceList) + out := new(DevsyWorkspaceInstanceList) in.DeepCopyInto(out) return out } // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *DevPodWorkspaceInstanceList) DeepCopyObject() runtime.Object { +func (in *DevsyWorkspaceInstanceList) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -1916,7 +1916,7 @@ func (in *DevPodWorkspaceInstanceList) DeepCopyObject() runtime.Object { } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *DevPodWorkspaceInstancePersistentVolumeClaimStatus) DeepCopyInto(out *DevPodWorkspaceInstancePersistentVolumeClaimStatus) { +func (in *DevsyWorkspaceInstancePersistentVolumeClaimStatus) DeepCopyInto(out *DevsyWorkspaceInstancePersistentVolumeClaimStatus) { *out = *in if in.Capacity != nil { in, out := &in.Capacity, &out.Capacity @@ -1934,7 +1934,7 @@ func (in *DevPodWorkspaceInstancePersistentVolumeClaimStatus) DeepCopyInto(out * } if in.Events != nil { in, out := &in.Events, &out.Events - *out = make([]DevPodWorkspaceInstanceEvent, len(*in)) + *out = make([]DevsyWorkspaceInstanceEvent, len(*in)) for i := range *in { (*in)[i].DeepCopyInto(&(*out)[i]) } @@ -1942,18 +1942,18 @@ func (in *DevPodWorkspaceInstancePersistentVolumeClaimStatus) DeepCopyInto(out * return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevPodWorkspaceInstancePersistentVolumeClaimStatus. -func (in *DevPodWorkspaceInstancePersistentVolumeClaimStatus) DeepCopy() *DevPodWorkspaceInstancePersistentVolumeClaimStatus { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevsyWorkspaceInstancePersistentVolumeClaimStatus. +func (in *DevsyWorkspaceInstancePersistentVolumeClaimStatus) DeepCopy() *DevsyWorkspaceInstancePersistentVolumeClaimStatus { if in == nil { return nil } - out := new(DevPodWorkspaceInstancePersistentVolumeClaimStatus) + out := new(DevsyWorkspaceInstancePersistentVolumeClaimStatus) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *DevPodWorkspaceInstancePodStatus) DeepCopyInto(out *DevPodWorkspaceInstancePodStatus) { +func (in *DevsyWorkspaceInstancePodStatus) DeepCopyInto(out *DevsyWorkspaceInstancePodStatus) { *out = *in if in.Conditions != nil { in, out := &in.Conditions, &out.Conditions @@ -1978,14 +1978,14 @@ func (in *DevPodWorkspaceInstancePodStatus) DeepCopyInto(out *DevPodWorkspaceIns } if in.Events != nil { in, out := &in.Events, &out.Events - *out = make([]DevPodWorkspaceInstanceEvent, len(*in)) + *out = make([]DevsyWorkspaceInstanceEvent, len(*in)) for i := range *in { (*in)[i].DeepCopyInto(&(*out)[i]) } } if in.ContainerResources != nil { in, out := &in.ContainerResources, &out.ContainerResources - *out = make([]DevPodWorkspaceInstanceContainerResource, len(*in)) + *out = make([]DevsyWorkspaceInstanceContainerResource, len(*in)) for i := range *in { (*in)[i].DeepCopyInto(&(*out)[i]) } @@ -2000,18 +2000,18 @@ func (in *DevPodWorkspaceInstancePodStatus) DeepCopyInto(out *DevPodWorkspaceIns return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevPodWorkspaceInstancePodStatus. -func (in *DevPodWorkspaceInstancePodStatus) DeepCopy() *DevPodWorkspaceInstancePodStatus { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevsyWorkspaceInstancePodStatus. +func (in *DevsyWorkspaceInstancePodStatus) DeepCopy() *DevsyWorkspaceInstancePodStatus { if in == nil { return nil } - out := new(DevPodWorkspaceInstancePodStatus) + out := new(DevsyWorkspaceInstancePodStatus) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *DevPodWorkspaceInstanceSpec) DeepCopyInto(out *DevPodWorkspaceInstanceSpec) { +func (in *DevsyWorkspaceInstanceSpec) DeepCopyInto(out *DevsyWorkspaceInstanceSpec) { *out = *in if in.Owner != nil { in, out := &in.Owner, &out.Owner @@ -2035,7 +2035,7 @@ func (in *DevPodWorkspaceInstanceSpec) DeepCopyInto(out *DevPodWorkspaceInstance } if in.Template != nil { in, out := &in.Template, &out.Template - *out = new(DevPodWorkspaceTemplateDefinition) + *out = new(DevsyWorkspaceTemplateDefinition) (*in).DeepCopyInto(*out) } in.Target.DeepCopyInto(&out.Target) @@ -2050,18 +2050,18 @@ func (in *DevPodWorkspaceInstanceSpec) DeepCopyInto(out *DevPodWorkspaceInstance return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevPodWorkspaceInstanceSpec. -func (in *DevPodWorkspaceInstanceSpec) DeepCopy() *DevPodWorkspaceInstanceSpec { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevsyWorkspaceInstanceSpec. +func (in *DevsyWorkspaceInstanceSpec) DeepCopy() *DevsyWorkspaceInstanceSpec { if in == nil { return nil } - out := new(DevPodWorkspaceInstanceSpec) + out := new(DevsyWorkspaceInstanceSpec) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *DevPodWorkspaceInstanceStatus) DeepCopyInto(out *DevPodWorkspaceInstanceStatus) { +func (in *DevsyWorkspaceInstanceStatus) DeepCopyInto(out *DevsyWorkspaceInstanceStatus) { *out = *in in.ResolvedTarget.DeepCopyInto(&out.ResolvedTarget) if in.Conditions != nil { @@ -2073,55 +2073,55 @@ func (in *DevPodWorkspaceInstanceStatus) DeepCopyInto(out *DevPodWorkspaceInstan } if in.Instance != nil { in, out := &in.Instance, &out.Instance - *out = new(DevPodWorkspaceTemplateDefinition) + *out = new(DevsyWorkspaceTemplateDefinition) (*in).DeepCopyInto(*out) } if in.Kubernetes != nil { in, out := &in.Kubernetes, &out.Kubernetes - *out = new(DevPodWorkspaceInstanceKubernetesStatus) + *out = new(DevsyWorkspaceInstanceKubernetesStatus) (*in).DeepCopyInto(*out) } return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevPodWorkspaceInstanceStatus. -func (in *DevPodWorkspaceInstanceStatus) DeepCopy() *DevPodWorkspaceInstanceStatus { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevsyWorkspaceInstanceStatus. +func (in *DevsyWorkspaceInstanceStatus) DeepCopy() *DevsyWorkspaceInstanceStatus { if in == nil { return nil } - out := new(DevPodWorkspaceInstanceStatus) + out := new(DevsyWorkspaceInstanceStatus) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *DevPodWorkspaceInstanceTemplateDefinition) DeepCopyInto(out *DevPodWorkspaceInstanceTemplateDefinition) { +func (in *DevsyWorkspaceInstanceTemplateDefinition) DeepCopyInto(out *DevsyWorkspaceInstanceTemplateDefinition) { *out = *in in.TemplateMetadata.DeepCopyInto(&out.TemplateMetadata) return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevPodWorkspaceInstanceTemplateDefinition. -func (in *DevPodWorkspaceInstanceTemplateDefinition) DeepCopy() *DevPodWorkspaceInstanceTemplateDefinition { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevsyWorkspaceInstanceTemplateDefinition. +func (in *DevsyWorkspaceInstanceTemplateDefinition) DeepCopy() *DevsyWorkspaceInstanceTemplateDefinition { if in == nil { return nil } - out := new(DevPodWorkspaceInstanceTemplateDefinition) + out := new(DevsyWorkspaceInstanceTemplateDefinition) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *DevPodWorkspaceKubernetesSpec) DeepCopyInto(out *DevPodWorkspaceKubernetesSpec) { +func (in *DevsyWorkspaceKubernetesSpec) DeepCopyInto(out *DevsyWorkspaceKubernetesSpec) { *out = *in if in.Pod != nil { in, out := &in.Pod, &out.Pod - *out = new(DevPodWorkspacePodTemplate) + *out = new(DevsyWorkspacePodTemplate) (*in).DeepCopyInto(*out) } if in.VolumeClaim != nil { in, out := &in.VolumeClaim, &out.VolumeClaim - *out = new(DevPodWorkspaceVolumeClaimTemplate) + *out = new(DevsyWorkspaceVolumeClaimTemplate) (*in).DeepCopyInto(*out) } if in.SpaceTemplateRef != nil { @@ -2147,36 +2147,36 @@ func (in *DevPodWorkspaceKubernetesSpec) DeepCopyInto(out *DevPodWorkspaceKubern return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevPodWorkspaceKubernetesSpec. -func (in *DevPodWorkspaceKubernetesSpec) DeepCopy() *DevPodWorkspaceKubernetesSpec { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevsyWorkspaceKubernetesSpec. +func (in *DevsyWorkspaceKubernetesSpec) DeepCopy() *DevsyWorkspaceKubernetesSpec { if in == nil { return nil } - out := new(DevPodWorkspaceKubernetesSpec) + out := new(DevsyWorkspaceKubernetesSpec) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *DevPodWorkspacePodTemplate) DeepCopyInto(out *DevPodWorkspacePodTemplate) { +func (in *DevsyWorkspacePodTemplate) DeepCopyInto(out *DevsyWorkspacePodTemplate) { *out = *in in.TemplateMetadata.DeepCopyInto(&out.TemplateMetadata) in.Spec.DeepCopyInto(&out.Spec) return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevPodWorkspacePodTemplate. -func (in *DevPodWorkspacePodTemplate) DeepCopy() *DevPodWorkspacePodTemplate { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevsyWorkspacePodTemplate. +func (in *DevsyWorkspacePodTemplate) DeepCopy() *DevsyWorkspacePodTemplate { if in == nil { return nil } - out := new(DevPodWorkspacePodTemplate) + out := new(DevsyWorkspacePodTemplate) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *DevPodWorkspacePodTemplateSpec) DeepCopyInto(out *DevPodWorkspacePodTemplateSpec) { +func (in *DevsyWorkspacePodTemplateSpec) DeepCopyInto(out *DevsyWorkspacePodTemplateSpec) { *out = *in if in.Volumes != nil { in, out := &in.Volumes, &out.Volumes @@ -2187,14 +2187,14 @@ func (in *DevPodWorkspacePodTemplateSpec) DeepCopyInto(out *DevPodWorkspacePodTe } if in.InitContainers != nil { in, out := &in.InitContainers, &out.InitContainers - *out = make([]DevPodWorkspaceContainer, len(*in)) + *out = make([]DevsyWorkspaceContainer, len(*in)) for i := range *in { (*in)[i].DeepCopyInto(&(*out)[i]) } } if in.Containers != nil { in, out := &in.Containers, &out.Containers - *out = make([]DevPodWorkspaceContainer, len(*in)) + *out = make([]DevsyWorkspaceContainer, len(*in)) for i := range *in { (*in)[i].DeepCopyInto(&(*out)[i]) } @@ -2328,24 +2328,24 @@ func (in *DevPodWorkspacePodTemplateSpec) DeepCopyInto(out *DevPodWorkspacePodTe } if in.Resources != nil { in, out := &in.Resources, &out.Resources - *out = new(DevPodWorkspaceResourceRequirements) + *out = new(DevsyWorkspaceResourceRequirements) (*in).DeepCopyInto(*out) } return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevPodWorkspacePodTemplateSpec. -func (in *DevPodWorkspacePodTemplateSpec) DeepCopy() *DevPodWorkspacePodTemplateSpec { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevsyWorkspacePodTemplateSpec. +func (in *DevsyWorkspacePodTemplateSpec) DeepCopy() *DevsyWorkspacePodTemplateSpec { if in == nil { return nil } - out := new(DevPodWorkspacePodTemplateSpec) + out := new(DevsyWorkspacePodTemplateSpec) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *DevPodWorkspacePreset) DeepCopyInto(out *DevPodWorkspacePreset) { +func (in *DevsyWorkspacePreset) DeepCopyInto(out *DevsyWorkspacePreset) { *out = *in out.TypeMeta = in.TypeMeta in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) @@ -2354,18 +2354,18 @@ func (in *DevPodWorkspacePreset) DeepCopyInto(out *DevPodWorkspacePreset) { return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevPodWorkspacePreset. -func (in *DevPodWorkspacePreset) DeepCopy() *DevPodWorkspacePreset { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevsyWorkspacePreset. +func (in *DevsyWorkspacePreset) DeepCopy() *DevsyWorkspacePreset { if in == nil { return nil } - out := new(DevPodWorkspacePreset) + out := new(DevsyWorkspacePreset) in.DeepCopyInto(out) return out } // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *DevPodWorkspacePreset) DeepCopyObject() runtime.Object { +func (in *DevsyWorkspacePreset) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -2373,13 +2373,13 @@ func (in *DevPodWorkspacePreset) DeepCopyObject() runtime.Object { } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *DevPodWorkspacePresetList) DeepCopyInto(out *DevPodWorkspacePresetList) { +func (in *DevsyWorkspacePresetList) DeepCopyInto(out *DevsyWorkspacePresetList) { *out = *in out.TypeMeta = in.TypeMeta in.ListMeta.DeepCopyInto(&out.ListMeta) if in.Items != nil { in, out := &in.Items, &out.Items - *out = make([]DevPodWorkspacePreset, len(*in)) + *out = make([]DevsyWorkspacePreset, len(*in)) for i := range *in { (*in)[i].DeepCopyInto(&(*out)[i]) } @@ -2387,18 +2387,18 @@ func (in *DevPodWorkspacePresetList) DeepCopyInto(out *DevPodWorkspacePresetList return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevPodWorkspacePresetList. -func (in *DevPodWorkspacePresetList) DeepCopy() *DevPodWorkspacePresetList { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevsyWorkspacePresetList. +func (in *DevsyWorkspacePresetList) DeepCopy() *DevsyWorkspacePresetList { if in == nil { return nil } - out := new(DevPodWorkspacePresetList) + out := new(DevsyWorkspacePresetList) in.DeepCopyInto(out) return out } // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *DevPodWorkspacePresetList) DeepCopyObject() runtime.Object { +func (in *DevsyWorkspacePresetList) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -2406,27 +2406,27 @@ func (in *DevPodWorkspacePresetList) DeepCopyObject() runtime.Object { } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *DevPodWorkspacePresetSource) DeepCopyInto(out *DevPodWorkspacePresetSource) { +func (in *DevsyWorkspacePresetSource) DeepCopyInto(out *DevsyWorkspacePresetSource) { *out = *in return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevPodWorkspacePresetSource. -func (in *DevPodWorkspacePresetSource) DeepCopy() *DevPodWorkspacePresetSource { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevsyWorkspacePresetSource. +func (in *DevsyWorkspacePresetSource) DeepCopy() *DevsyWorkspacePresetSource { if in == nil { return nil } - out := new(DevPodWorkspacePresetSource) + out := new(DevsyWorkspacePresetSource) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *DevPodWorkspacePresetSpec) DeepCopyInto(out *DevPodWorkspacePresetSpec) { +func (in *DevsyWorkspacePresetSpec) DeepCopyInto(out *DevsyWorkspacePresetSpec) { *out = *in if in.Source != nil { in, out := &in.Source, &out.Source - *out = new(DevPodWorkspacePresetSource) + *out = new(DevsyWorkspacePresetSource) **out = **in } if in.InfrastructureRef != nil { @@ -2453,7 +2453,7 @@ func (in *DevPodWorkspacePresetSpec) DeepCopyInto(out *DevPodWorkspacePresetSpec } if in.Versions != nil { in, out := &in.Versions, &out.Versions - *out = make([]DevPodWorkspacePresetVersion, len(*in)) + *out = make([]DevsyWorkspacePresetVersion, len(*in)) for i := range *in { (*in)[i].DeepCopyInto(&(*out)[i]) } @@ -2461,38 +2461,38 @@ func (in *DevPodWorkspacePresetSpec) DeepCopyInto(out *DevPodWorkspacePresetSpec return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevPodWorkspacePresetSpec. -func (in *DevPodWorkspacePresetSpec) DeepCopy() *DevPodWorkspacePresetSpec { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevsyWorkspacePresetSpec. +func (in *DevsyWorkspacePresetSpec) DeepCopy() *DevsyWorkspacePresetSpec { if in == nil { return nil } - out := new(DevPodWorkspacePresetSpec) + out := new(DevsyWorkspacePresetSpec) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *DevPodWorkspacePresetStatus) DeepCopyInto(out *DevPodWorkspacePresetStatus) { +func (in *DevsyWorkspacePresetStatus) DeepCopyInto(out *DevsyWorkspacePresetStatus) { *out = *in return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevPodWorkspacePresetStatus. -func (in *DevPodWorkspacePresetStatus) DeepCopy() *DevPodWorkspacePresetStatus { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevsyWorkspacePresetStatus. +func (in *DevsyWorkspacePresetStatus) DeepCopy() *DevsyWorkspacePresetStatus { if in == nil { return nil } - out := new(DevPodWorkspacePresetStatus) + out := new(DevsyWorkspacePresetStatus) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *DevPodWorkspacePresetVersion) DeepCopyInto(out *DevPodWorkspacePresetVersion) { +func (in *DevsyWorkspacePresetVersion) DeepCopyInto(out *DevsyWorkspacePresetVersion) { *out = *in if in.Source != nil { in, out := &in.Source, &out.Source - *out = new(DevPodWorkspacePresetSource) + *out = new(DevsyWorkspacePresetSource) **out = **in } if in.InfrastructureRef != nil { @@ -2508,29 +2508,29 @@ func (in *DevPodWorkspacePresetVersion) DeepCopyInto(out *DevPodWorkspacePresetV return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevPodWorkspacePresetVersion. -func (in *DevPodWorkspacePresetVersion) DeepCopy() *DevPodWorkspacePresetVersion { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevsyWorkspacePresetVersion. +func (in *DevsyWorkspacePresetVersion) DeepCopy() *DevsyWorkspacePresetVersion { if in == nil { return nil } - out := new(DevPodWorkspacePresetVersion) + out := new(DevsyWorkspacePresetVersion) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *DevPodWorkspaceProvider) DeepCopyInto(out *DevPodWorkspaceProvider) { +func (in *DevsyWorkspaceProvider) DeepCopyInto(out *DevsyWorkspaceProvider) { *out = *in if in.Options != nil { in, out := &in.Options, &out.Options - *out = make(map[string]DevPodProviderOption, len(*in)) + *out = make(map[string]DevsyProviderOption, len(*in)) for key, val := range *in { (*out)[key] = *val.DeepCopy() } } if in.Env != nil { in, out := &in.Env, &out.Env - *out = make(map[string]DevPodProviderOption, len(*in)) + *out = make(map[string]DevsyProviderOption, len(*in)) for key, val := range *in { (*out)[key] = *val.DeepCopy() } @@ -2538,18 +2538,18 @@ func (in *DevPodWorkspaceProvider) DeepCopyInto(out *DevPodWorkspaceProvider) { return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevPodWorkspaceProvider. -func (in *DevPodWorkspaceProvider) DeepCopy() *DevPodWorkspaceProvider { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevsyWorkspaceProvider. +func (in *DevsyWorkspaceProvider) DeepCopy() *DevsyWorkspaceProvider { if in == nil { return nil } - out := new(DevPodWorkspaceProvider) + out := new(DevsyWorkspaceProvider) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *DevPodWorkspaceResourceRequirements) DeepCopyInto(out *DevPodWorkspaceResourceRequirements) { +func (in *DevsyWorkspaceResourceRequirements) DeepCopyInto(out *DevsyWorkspaceResourceRequirements) { *out = *in if in.Limits != nil { in, out := &in.Limits, &out.Limits @@ -2573,18 +2573,18 @@ func (in *DevPodWorkspaceResourceRequirements) DeepCopyInto(out *DevPodWorkspace return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevPodWorkspaceResourceRequirements. -func (in *DevPodWorkspaceResourceRequirements) DeepCopy() *DevPodWorkspaceResourceRequirements { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevsyWorkspaceResourceRequirements. +func (in *DevsyWorkspaceResourceRequirements) DeepCopy() *DevsyWorkspaceResourceRequirements { if in == nil { return nil } - out := new(DevPodWorkspaceResourceRequirements) + out := new(DevsyWorkspaceResourceRequirements) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *DevPodWorkspaceTemplate) DeepCopyInto(out *DevPodWorkspaceTemplate) { +func (in *DevsyWorkspaceTemplate) DeepCopyInto(out *DevsyWorkspaceTemplate) { *out = *in out.TypeMeta = in.TypeMeta in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) @@ -2593,18 +2593,18 @@ func (in *DevPodWorkspaceTemplate) DeepCopyInto(out *DevPodWorkspaceTemplate) { return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevPodWorkspaceTemplate. -func (in *DevPodWorkspaceTemplate) DeepCopy() *DevPodWorkspaceTemplate { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevsyWorkspaceTemplate. +func (in *DevsyWorkspaceTemplate) DeepCopy() *DevsyWorkspaceTemplate { if in == nil { return nil } - out := new(DevPodWorkspaceTemplate) + out := new(DevsyWorkspaceTemplate) in.DeepCopyInto(out) return out } // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *DevPodWorkspaceTemplate) DeepCopyObject() runtime.Object { +func (in *DevsyWorkspaceTemplate) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -2612,16 +2612,16 @@ func (in *DevPodWorkspaceTemplate) DeepCopyObject() runtime.Object { } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *DevPodWorkspaceTemplateDefinition) DeepCopyInto(out *DevPodWorkspaceTemplateDefinition) { +func (in *DevsyWorkspaceTemplateDefinition) DeepCopyInto(out *DevsyWorkspaceTemplateDefinition) { *out = *in if in.Kubernetes != nil { in, out := &in.Kubernetes, &out.Kubernetes - *out = new(DevPodWorkspaceKubernetesSpec) + *out = new(DevsyWorkspaceKubernetesSpec) (*in).DeepCopyInto(*out) } if in.WorkspaceEnv != nil { in, out := &in.WorkspaceEnv, &out.WorkspaceEnv - *out = make(map[string]DevPodProviderOption, len(*in)) + *out = make(map[string]DevsyProviderOption, len(*in)) for key, val := range *in { (*out)[key] = *val.DeepCopy() } @@ -2634,30 +2634,30 @@ func (in *DevPodWorkspaceTemplateDefinition) DeepCopyInto(out *DevPodWorkspaceTe } if in.Provider != nil { in, out := &in.Provider, &out.Provider - *out = new(DevPodWorkspaceProvider) + *out = new(DevsyWorkspaceProvider) (*in).DeepCopyInto(*out) } return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevPodWorkspaceTemplateDefinition. -func (in *DevPodWorkspaceTemplateDefinition) DeepCopy() *DevPodWorkspaceTemplateDefinition { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevsyWorkspaceTemplateDefinition. +func (in *DevsyWorkspaceTemplateDefinition) DeepCopy() *DevsyWorkspaceTemplateDefinition { if in == nil { return nil } - out := new(DevPodWorkspaceTemplateDefinition) + out := new(DevsyWorkspaceTemplateDefinition) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *DevPodWorkspaceTemplateList) DeepCopyInto(out *DevPodWorkspaceTemplateList) { +func (in *DevsyWorkspaceTemplateList) DeepCopyInto(out *DevsyWorkspaceTemplateList) { *out = *in out.TypeMeta = in.TypeMeta in.ListMeta.DeepCopyInto(&out.ListMeta) if in.Items != nil { in, out := &in.Items, &out.Items - *out = make([]DevPodWorkspaceTemplate, len(*in)) + *out = make([]DevsyWorkspaceTemplate, len(*in)) for i := range *in { (*in)[i].DeepCopyInto(&(*out)[i]) } @@ -2665,18 +2665,18 @@ func (in *DevPodWorkspaceTemplateList) DeepCopyInto(out *DevPodWorkspaceTemplate return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevPodWorkspaceTemplateList. -func (in *DevPodWorkspaceTemplateList) DeepCopy() *DevPodWorkspaceTemplateList { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevsyWorkspaceTemplateList. +func (in *DevsyWorkspaceTemplateList) DeepCopy() *DevsyWorkspaceTemplateList { if in == nil { return nil } - out := new(DevPodWorkspaceTemplateList) + out := new(DevsyWorkspaceTemplateList) in.DeepCopyInto(out) return out } // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *DevPodWorkspaceTemplateList) DeepCopyObject() runtime.Object { +func (in *DevsyWorkspaceTemplateList) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -2684,7 +2684,7 @@ func (in *DevPodWorkspaceTemplateList) DeepCopyObject() runtime.Object { } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *DevPodWorkspaceTemplateSpec) DeepCopyInto(out *DevPodWorkspaceTemplateSpec) { +func (in *DevsyWorkspaceTemplateSpec) DeepCopyInto(out *DevsyWorkspaceTemplateSpec) { *out = *in if in.Owner != nil { in, out := &in.Owner, &out.Owner @@ -2701,7 +2701,7 @@ func (in *DevPodWorkspaceTemplateSpec) DeepCopyInto(out *DevPodWorkspaceTemplate in.Template.DeepCopyInto(&out.Template) if in.Versions != nil { in, out := &in.Versions, &out.Versions - *out = make([]DevPodWorkspaceTemplateVersion, len(*in)) + *out = make([]DevsyWorkspaceTemplateVersion, len(*in)) for i := range *in { (*in)[i].DeepCopyInto(&(*out)[i]) } @@ -2716,34 +2716,34 @@ func (in *DevPodWorkspaceTemplateSpec) DeepCopyInto(out *DevPodWorkspaceTemplate return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevPodWorkspaceTemplateSpec. -func (in *DevPodWorkspaceTemplateSpec) DeepCopy() *DevPodWorkspaceTemplateSpec { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevsyWorkspaceTemplateSpec. +func (in *DevsyWorkspaceTemplateSpec) DeepCopy() *DevsyWorkspaceTemplateSpec { if in == nil { return nil } - out := new(DevPodWorkspaceTemplateSpec) + out := new(DevsyWorkspaceTemplateSpec) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *DevPodWorkspaceTemplateStatus) DeepCopyInto(out *DevPodWorkspaceTemplateStatus) { +func (in *DevsyWorkspaceTemplateStatus) DeepCopyInto(out *DevsyWorkspaceTemplateStatus) { *out = *in return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevPodWorkspaceTemplateStatus. -func (in *DevPodWorkspaceTemplateStatus) DeepCopy() *DevPodWorkspaceTemplateStatus { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevsyWorkspaceTemplateStatus. +func (in *DevsyWorkspaceTemplateStatus) DeepCopy() *DevsyWorkspaceTemplateStatus { if in == nil { return nil } - out := new(DevPodWorkspaceTemplateStatus) + out := new(DevsyWorkspaceTemplateStatus) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *DevPodWorkspaceTemplateVersion) DeepCopyInto(out *DevPodWorkspaceTemplateVersion) { +func (in *DevsyWorkspaceTemplateVersion) DeepCopyInto(out *DevsyWorkspaceTemplateVersion) { *out = *in in.Template.DeepCopyInto(&out.Template) if in.Parameters != nil { @@ -2756,18 +2756,18 @@ func (in *DevPodWorkspaceTemplateVersion) DeepCopyInto(out *DevPodWorkspaceTempl return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevPodWorkspaceTemplateVersion. -func (in *DevPodWorkspaceTemplateVersion) DeepCopy() *DevPodWorkspaceTemplateVersion { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevsyWorkspaceTemplateVersion. +func (in *DevsyWorkspaceTemplateVersion) DeepCopy() *DevsyWorkspaceTemplateVersion { if in == nil { return nil } - out := new(DevPodWorkspaceTemplateVersion) + out := new(DevsyWorkspaceTemplateVersion) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *DevPodWorkspaceVolumeClaimSpec) DeepCopyInto(out *DevPodWorkspaceVolumeClaimSpec) { +func (in *DevsyWorkspaceVolumeClaimSpec) DeepCopyInto(out *DevsyWorkspaceVolumeClaimSpec) { *out = *in if in.AccessModes != nil { in, out := &in.AccessModes, &out.AccessModes @@ -2808,30 +2808,30 @@ func (in *DevPodWorkspaceVolumeClaimSpec) DeepCopyInto(out *DevPodWorkspaceVolum return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevPodWorkspaceVolumeClaimSpec. -func (in *DevPodWorkspaceVolumeClaimSpec) DeepCopy() *DevPodWorkspaceVolumeClaimSpec { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevsyWorkspaceVolumeClaimSpec. +func (in *DevsyWorkspaceVolumeClaimSpec) DeepCopy() *DevsyWorkspaceVolumeClaimSpec { if in == nil { return nil } - out := new(DevPodWorkspaceVolumeClaimSpec) + out := new(DevsyWorkspaceVolumeClaimSpec) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *DevPodWorkspaceVolumeClaimTemplate) DeepCopyInto(out *DevPodWorkspaceVolumeClaimTemplate) { +func (in *DevsyWorkspaceVolumeClaimTemplate) DeepCopyInto(out *DevsyWorkspaceVolumeClaimTemplate) { *out = *in in.TemplateMetadata.DeepCopyInto(&out.TemplateMetadata) in.Spec.DeepCopyInto(&out.Spec) return } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevPodWorkspaceVolumeClaimTemplate. -func (in *DevPodWorkspaceVolumeClaimTemplate) DeepCopy() *DevPodWorkspaceVolumeClaimTemplate { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevsyWorkspaceVolumeClaimTemplate. +func (in *DevsyWorkspaceVolumeClaimTemplate) DeepCopy() *DevsyWorkspaceVolumeClaimTemplate { if in == nil { return nil } - out := new(DevPodWorkspaceVolumeClaimTemplate) + out := new(DevsyWorkspaceVolumeClaimTemplate) in.DeepCopyInto(out) return out } @@ -4373,9 +4373,9 @@ func (in *ProjectSpec) DeepCopyInto(out *ProjectSpec) { *out = new(RancherIntegrationSpec) (*in).DeepCopyInto(*out) } - if in.DevPod != nil { - in, out := &in.DevPod, &out.DevPod - *out = new(DevPodProjectSpec) + if in.Devsy != nil { + in, out := &in.Devsy, &out.Devsy + *out = new(DevsyProjectSpec) (*in).DeepCopyInto(*out) } return diff --git a/pkg/apis/storage/v1/zz_generated.defaults.go b/pkg/apis/storage/v1/zz_generated.defaults.go index 9cf2965..c2c5eb0 100644 --- a/pkg/apis/storage/v1/zz_generated.defaults.go +++ b/pkg/apis/storage/v1/zz_generated.defaults.go @@ -14,18 +14,14 @@ import ( // Public to allow building arbitrary schemes. // All generated defaulters are covering - they call all nested defaulters. func RegisterDefaults(scheme *runtime.Scheme) error { - scheme.AddTypeDefaultingFunc(&DevPodWorkspaceInstance{}, func(obj interface{}) { SetObjectDefaults_DevPodWorkspaceInstance(obj.(*DevPodWorkspaceInstance)) }) - scheme.AddTypeDefaultingFunc(&DevPodWorkspaceInstanceList{}, func(obj interface{}) { - SetObjectDefaults_DevPodWorkspaceInstanceList(obj.(*DevPodWorkspaceInstanceList)) - }) - scheme.AddTypeDefaultingFunc(&DevPodWorkspaceTemplate{}, func(obj interface{}) { SetObjectDefaults_DevPodWorkspaceTemplate(obj.(*DevPodWorkspaceTemplate)) }) - scheme.AddTypeDefaultingFunc(&DevPodWorkspaceTemplateList{}, func(obj interface{}) { - SetObjectDefaults_DevPodWorkspaceTemplateList(obj.(*DevPodWorkspaceTemplateList)) - }) + scheme.AddTypeDefaultingFunc(&DevsyWorkspaceInstance{}, func(obj interface{}) { SetObjectDefaults_DevsyWorkspaceInstance(obj.(*DevsyWorkspaceInstance)) }) + scheme.AddTypeDefaultingFunc(&DevsyWorkspaceInstanceList{}, func(obj interface{}) { SetObjectDefaults_DevsyWorkspaceInstanceList(obj.(*DevsyWorkspaceInstanceList)) }) + scheme.AddTypeDefaultingFunc(&DevsyWorkspaceTemplate{}, func(obj interface{}) { SetObjectDefaults_DevsyWorkspaceTemplate(obj.(*DevsyWorkspaceTemplate)) }) + scheme.AddTypeDefaultingFunc(&DevsyWorkspaceTemplateList{}, func(obj interface{}) { SetObjectDefaults_DevsyWorkspaceTemplateList(obj.(*DevsyWorkspaceTemplateList)) }) return nil } -func SetObjectDefaults_DevPodWorkspaceInstance(in *DevPodWorkspaceInstance) { +func SetObjectDefaults_DevsyWorkspaceInstance(in *DevsyWorkspaceInstance) { if in.Spec.Template != nil { if in.Spec.Template.Kubernetes != nil { if in.Spec.Template.Kubernetes.Pod != nil { @@ -82,6 +78,17 @@ func SetObjectDefaults_DevPodWorkspaceInstance(in *DevPodWorkspaceInstance) { b.Protocol = "TCP" } } + for j := range a.Env { + b := &a.Env[j] + if b.ValueFrom != nil { + if b.ValueFrom.FileKeyRef != nil { + if b.ValueFrom.FileKeyRef.Optional == nil { + var ptrVar1 bool = false + b.ValueFrom.FileKeyRef.Optional = &ptrVar1 + } + } + } + } if a.LivenessProbe != nil { if a.LivenessProbe.ProbeHandler.GRPC != nil { if a.LivenessProbe.ProbeHandler.GRPC.Service == nil { @@ -115,6 +122,17 @@ func SetObjectDefaults_DevPodWorkspaceInstance(in *DevPodWorkspaceInstance) { b.Protocol = "TCP" } } + for j := range a.Env { + b := &a.Env[j] + if b.ValueFrom != nil { + if b.ValueFrom.FileKeyRef != nil { + if b.ValueFrom.FileKeyRef.Optional == nil { + var ptrVar1 bool = false + b.ValueFrom.FileKeyRef.Optional = &ptrVar1 + } + } + } + } if a.LivenessProbe != nil { if a.LivenessProbe.ProbeHandler.GRPC != nil { if a.LivenessProbe.ProbeHandler.GRPC.Service == nil { @@ -199,6 +217,17 @@ func SetObjectDefaults_DevPodWorkspaceInstance(in *DevPodWorkspaceInstance) { b.Protocol = "TCP" } } + for j := range a.Env { + b := &a.Env[j] + if b.ValueFrom != nil { + if b.ValueFrom.FileKeyRef != nil { + if b.ValueFrom.FileKeyRef.Optional == nil { + var ptrVar1 bool = false + b.ValueFrom.FileKeyRef.Optional = &ptrVar1 + } + } + } + } if a.LivenessProbe != nil { if a.LivenessProbe.ProbeHandler.GRPC != nil { if a.LivenessProbe.ProbeHandler.GRPC.Service == nil { @@ -232,6 +261,17 @@ func SetObjectDefaults_DevPodWorkspaceInstance(in *DevPodWorkspaceInstance) { b.Protocol = "TCP" } } + for j := range a.Env { + b := &a.Env[j] + if b.ValueFrom != nil { + if b.ValueFrom.FileKeyRef != nil { + if b.ValueFrom.FileKeyRef.Optional == nil { + var ptrVar1 bool = false + b.ValueFrom.FileKeyRef.Optional = &ptrVar1 + } + } + } + } if a.LivenessProbe != nil { if a.LivenessProbe.ProbeHandler.GRPC != nil { if a.LivenessProbe.ProbeHandler.GRPC.Service == nil { @@ -262,14 +302,14 @@ func SetObjectDefaults_DevPodWorkspaceInstance(in *DevPodWorkspaceInstance) { } } -func SetObjectDefaults_DevPodWorkspaceInstanceList(in *DevPodWorkspaceInstanceList) { +func SetObjectDefaults_DevsyWorkspaceInstanceList(in *DevsyWorkspaceInstanceList) { for i := range in.Items { a := &in.Items[i] - SetObjectDefaults_DevPodWorkspaceInstance(a) + SetObjectDefaults_DevsyWorkspaceInstance(a) } } -func SetObjectDefaults_DevPodWorkspaceTemplate(in *DevPodWorkspaceTemplate) { +func SetObjectDefaults_DevsyWorkspaceTemplate(in *DevsyWorkspaceTemplate) { if in.Spec.Template.Kubernetes != nil { if in.Spec.Template.Kubernetes.Pod != nil { for i := range in.Spec.Template.Kubernetes.Pod.Spec.Volumes { @@ -325,6 +365,17 @@ func SetObjectDefaults_DevPodWorkspaceTemplate(in *DevPodWorkspaceTemplate) { b.Protocol = "TCP" } } + for j := range a.Env { + b := &a.Env[j] + if b.ValueFrom != nil { + if b.ValueFrom.FileKeyRef != nil { + if b.ValueFrom.FileKeyRef.Optional == nil { + var ptrVar1 bool = false + b.ValueFrom.FileKeyRef.Optional = &ptrVar1 + } + } + } + } if a.LivenessProbe != nil { if a.LivenessProbe.ProbeHandler.GRPC != nil { if a.LivenessProbe.ProbeHandler.GRPC.Service == nil { @@ -358,6 +409,17 @@ func SetObjectDefaults_DevPodWorkspaceTemplate(in *DevPodWorkspaceTemplate) { b.Protocol = "TCP" } } + for j := range a.Env { + b := &a.Env[j] + if b.ValueFrom != nil { + if b.ValueFrom.FileKeyRef != nil { + if b.ValueFrom.FileKeyRef.Optional == nil { + var ptrVar1 bool = false + b.ValueFrom.FileKeyRef.Optional = &ptrVar1 + } + } + } + } if a.LivenessProbe != nil { if a.LivenessProbe.ProbeHandler.GRPC != nil { if a.LivenessProbe.ProbeHandler.GRPC.Service == nil { @@ -442,6 +504,17 @@ func SetObjectDefaults_DevPodWorkspaceTemplate(in *DevPodWorkspaceTemplate) { c.Protocol = "TCP" } } + for k := range b.Env { + c := &b.Env[k] + if c.ValueFrom != nil { + if c.ValueFrom.FileKeyRef != nil { + if c.ValueFrom.FileKeyRef.Optional == nil { + var ptrVar1 bool = false + c.ValueFrom.FileKeyRef.Optional = &ptrVar1 + } + } + } + } if b.LivenessProbe != nil { if b.LivenessProbe.ProbeHandler.GRPC != nil { if b.LivenessProbe.ProbeHandler.GRPC.Service == nil { @@ -475,6 +548,17 @@ func SetObjectDefaults_DevPodWorkspaceTemplate(in *DevPodWorkspaceTemplate) { c.Protocol = "TCP" } } + for k := range b.Env { + c := &b.Env[k] + if c.ValueFrom != nil { + if c.ValueFrom.FileKeyRef != nil { + if c.ValueFrom.FileKeyRef.Optional == nil { + var ptrVar1 bool = false + c.ValueFrom.FileKeyRef.Optional = &ptrVar1 + } + } + } + } if b.LivenessProbe != nil { if b.LivenessProbe.ProbeHandler.GRPC != nil { if b.LivenessProbe.ProbeHandler.GRPC.Service == nil { @@ -505,9 +589,9 @@ func SetObjectDefaults_DevPodWorkspaceTemplate(in *DevPodWorkspaceTemplate) { } } -func SetObjectDefaults_DevPodWorkspaceTemplateList(in *DevPodWorkspaceTemplateList) { +func SetObjectDefaults_DevsyWorkspaceTemplateList(in *DevsyWorkspaceTemplateList) { for i := range in.Items { a := &in.Items[i] - SetObjectDefaults_DevPodWorkspaceTemplate(a) + SetObjectDefaults_DevsyWorkspaceTemplate(a) } } diff --git a/pkg/apis/ui/v1/ui_types.go b/pkg/apis/ui/v1/ui_types.go index 8043098..bb62bd6 100644 --- a/pkg/apis/ui/v1/ui_types.go +++ b/pkg/apis/ui/v1/ui_types.go @@ -5,9 +5,9 @@ import metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" type ProductName string const ( - ProductNameDevsy ProductName = "Devsy" - ProductNameDevsyPro ProductName = "vCluster Platform" - ProductNameDevPodPro ProductName = "DevPod.Pro" + ProductNameDevsy ProductName = "Devsy" + ProductNameDevsyPro ProductName = "Devsy Platform" + ProductNameDevsyWorkspaces ProductName = "Devsy.Pro" ) // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object @@ -34,7 +34,7 @@ type UISettingsSpec struct { // +optional Offline bool `json:"offline,omitempty"` - // HasHelmRelease indicates whether the vCluster Platform instance + // HasHelmRelease indicates whether the Devsy Platform instance // has been installed via Helm HasHelmRelease bool `json:"hasHelmRelease,omitempty"` @@ -45,15 +45,15 @@ type UISettingsSpec struct { // +optional AvailableDevsyVersions []DevsyVersion `json:"availableDevsyVersions,omitempty"` - // LoftHosted indicates whether the vCluster Platform instance + // DevsyHosted indicates whether the Devsy Platform instance // is hosted and operated by Devsy Labs Inc. - LoftHosted bool `json:"loftHosted,omitempty"` + DevsyHosted bool `json:"loftHosted,omitempty"` } type UISettingsConfig struct { - // LoftVersion holds the current devsy version + // DevsyVersion holds the current devsy version // +optional - LoftVersion string `json:"loftVersion,omitempty"` + DevsyVersion string `json:"loftVersion,omitempty"` // LogoURL is url pointing to the logo to use in the Devsy UI. This path must be accessible for clients accessing // the Devsy UI! // +optional diff --git a/pkg/apis/ui/v1/zz_generated.deepcopy.go b/pkg/apis/ui/v1/zz_generated.deepcopy.go index cdb86c9..b74df7b 100644 --- a/pkg/apis/ui/v1/zz_generated.deepcopy.go +++ b/pkg/apis/ui/v1/zz_generated.deepcopy.go @@ -47,6 +47,22 @@ func (in Csps) DeepCopy() Csps { return *out } +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *DevsyVersion) DeepCopyInto(out *DevsyVersion) { + *out = *in + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevsyVersion. +func (in *DevsyVersion) DeepCopy() *DevsyVersion { + if in == nil { + return nil + } + out := new(DevsyVersion) + in.DeepCopyInto(out) + return out +} + // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *ExternalURLs) DeepCopyInto(out *ExternalURLs) { *out = *in @@ -188,19 +204,3 @@ func (in *UISettingsStatus) DeepCopy() *UISettingsStatus { in.DeepCopyInto(out) return out } - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *DevsyVersion) DeepCopyInto(out *DevsyVersion) { - *out = *in - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DevsyVersion. -func (in *DevsyVersion) DeepCopy() *DevsyVersion { - if in == nil { - return nil - } - out := new(DevsyVersion) - in.DeepCopyInto(out) - return out -} diff --git a/pkg/apis/ui/zz_generated.defaults.go b/pkg/apis/ui/zz_generated.defaults.go new file mode 100644 index 0000000..3ce821b --- /dev/null +++ b/pkg/apis/ui/zz_generated.defaults.go @@ -0,0 +1,17 @@ +//go:build !ignore_autogenerated +// +build !ignore_autogenerated + +// Code generated by defaulter-gen. DO NOT EDIT. + +package ui + +import ( + runtime "k8s.io/apimachinery/pkg/runtime" +) + +// RegisterDefaults adds defaulters functions to the given scheme. +// Public to allow building arbitrary schemes. +// All generated defaulters are covering - they call all nested defaulters. +func RegisterDefaults(scheme *runtime.Scheme) error { + return nil +} diff --git a/pkg/apis/virtualcluster/install/zz_generated.api.register.go b/pkg/apis/virtualcluster/install/zz_generated.api.register.go index 36f3c55..0230b71 100644 --- a/pkg/apis/virtualcluster/install/zz_generated.api.register.go +++ b/pkg/apis/virtualcluster/install/zz_generated.api.register.go @@ -1,4 +1,4 @@ -// Code generated by generator. DO NOT EDIT. +// Code generated by generate. DO NOT EDIT. package install diff --git a/pkg/apis/virtualcluster/v1/zz_generated.api.register.go b/pkg/apis/virtualcluster/v1/zz_generated.api.register.go index 93292d0..5d48e38 100644 --- a/pkg/apis/virtualcluster/v1/zz_generated.api.register.go +++ b/pkg/apis/virtualcluster/v1/zz_generated.api.register.go @@ -1,4 +1,4 @@ -// Code generated by generator. DO NOT EDIT. +// Code generated by generate. DO NOT EDIT. package v1 diff --git a/pkg/apis/virtualcluster/zz_generated.api.register.go b/pkg/apis/virtualcluster/zz_generated.api.register.go index 8a9abbc..6657fa8 100644 --- a/pkg/apis/virtualcluster/zz_generated.api.register.go +++ b/pkg/apis/virtualcluster/zz_generated.api.register.go @@ -1,4 +1,4 @@ -// Code generated by generator. DO NOT EDIT. +// Code generated by generate. DO NOT EDIT. package virtualcluster @@ -7,8 +7,8 @@ import ( "fmt" clusterv1 "github.com/devsy-org/agentapi/pkg/apis/devsy/cluster/v1" - "github.com/devsy-org/api/pkg/managerfactory" "github.com/devsy-org/apiserver/pkg/builders" + "github.com/devsy-org/apiserver/pkg/managerfactory" "k8s.io/apimachinery/pkg/apis/meta/internalversion" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" "k8s.io/apimachinery/pkg/runtime" @@ -71,7 +71,7 @@ func Resource(resource string) schema.GroupResource { } // +genclient -// +genclient + // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object type HelmRelease struct { diff --git a/pkg/apis/zz_generated.api.register.go b/pkg/apis/zz_generated.api.register.go index ac8f62d..029d657 100644 --- a/pkg/apis/zz_generated.api.register.go +++ b/pkg/apis/zz_generated.api.register.go @@ -1,4 +1,4 @@ -// Code generated by generator. DO NOT EDIT. +// Code generated by generate. DO NOT EDIT. package apis @@ -49,16 +49,16 @@ func GetManagementAPIBuilder() *builders.APIGroupBuilder { "Config", "ConvertVirtualClusterConfig", "DatabaseConnector", - "DevPodEnvironmentTemplate", - "DevPodWorkspacePreset", - "DevPodWorkspaceTemplate", + "DevsyEnvironmentTemplate", + "DevsyUpgrade", + "DevsyWorkspacePreset", + "DevsyWorkspaceTemplate", "DirectClusterEndpointToken", "Event", "Feature", "IngressAuthToken", "License", "LicenseToken", - "DevsyUpgrade", "NodeProvider", "NodeType", "OIDCClient", diff --git a/pkg/auth/types.go b/pkg/auth/types.go index 282f7af..8ea8999 100644 --- a/pkg/auth/types.go +++ b/pkg/auth/types.go @@ -112,8 +112,8 @@ type Version struct { Major string `json:"major,omitempty"` Minor string `json:"minor,omitempty"` - KubeVersion string `json:"kubeVersion,omitempty"` - DevPodVersion string `json:"devPodVersion,omitempty"` + KubeVersion string `json:"kubeVersion,omitempty"` + DevsyVersion string `json:"devPodVersion,omitempty"` NewerVersion string `json:"newerVersion,omitempty"` ShouldUpgrade bool `json:"shouldUpgrade,omitempty"` diff --git a/pkg/clientset/versioned/fake/clientset_generated.go b/pkg/clientset/versioned/fake/clientset_generated.go index 245ff55..745263f 100644 --- a/pkg/clientset/versioned/fake/clientset_generated.go +++ b/pkg/clientset/versioned/fake/clientset_generated.go @@ -22,10 +22,6 @@ import ( // It's backed by a very simple object tracker that processes creates, updates and deletions as-is, // without applying any field management, validations and/or defaults. It shouldn't be considered a replacement // for a real clientset and is mostly useful in simple unit tests. -// -// DEPRECATED: NewClientset replaces this with support for field management, which significantly improves -// server side apply testing. NewClientset is only available when apply configurations are generated (e.g. -// via --with-applyconfig). func NewSimpleClientset(objects ...runtime.Object) *Clientset { o := testing.NewObjectTracker(scheme, codecs.UniversalDecoder()) for _, obj := range objects { @@ -39,8 +35,8 @@ func NewSimpleClientset(objects ...runtime.Object) *Clientset { cs.AddReactor("*", "*", testing.ObjectReaction(o)) cs.AddWatchReactor("*", func(action testing.Action) (handled bool, ret watch.Interface, err error) { var opts metav1.ListOptions - if watchActcion, ok := action.(testing.WatchActionImpl); ok { - opts = watchActcion.ListOptions + if watchAction, ok := action.(testing.WatchActionImpl); ok { + opts = watchAction.ListOptions } gvr := action.GetResource() ns := action.GetNamespace() @@ -71,6 +67,17 @@ func (c *Clientset) Tracker() testing.ObjectTracker { return c.tracker } +// IsWatchListSemanticsSupported informs the reflector that this client +// doesn't support WatchList semantics. +// +// This is a synthetic method whose sole purpose is to satisfy the optional +// interface check performed by the reflector. +// Returning true signals that WatchList can NOT be used. +// No additional logic is implemented here. +func (c *Clientset) IsWatchListSemanticsUnSupported() bool { + return true +} + var ( _ clientset.Interface = &Clientset{} _ testing.FakeClient = &Clientset{} diff --git a/pkg/clientset/versioned/typed/management/v1/devpodenvironmenttemplate.go b/pkg/clientset/versioned/typed/management/v1/devpodenvironmenttemplate.go deleted file mode 100644 index f45dc6c..0000000 --- a/pkg/clientset/versioned/typed/management/v1/devpodenvironmenttemplate.go +++ /dev/null @@ -1,54 +0,0 @@ -// Code generated by client-gen. DO NOT EDIT. - -package v1 - -import ( - context "context" - - managementv1 "github.com/devsy-org/api/pkg/apis/management/v1" - scheme "github.com/devsy-org/api/pkg/clientset/versioned/scheme" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" - types "k8s.io/apimachinery/pkg/types" - watch "k8s.io/apimachinery/pkg/watch" - gentype "k8s.io/client-go/gentype" -) - -// DevPodEnvironmentTemplatesGetter has a method to return a DevPodEnvironmentTemplateInterface. -// A group's client should implement this interface. -type DevPodEnvironmentTemplatesGetter interface { - DevPodEnvironmentTemplates() DevPodEnvironmentTemplateInterface -} - -// DevPodEnvironmentTemplateInterface has methods to work with DevPodEnvironmentTemplate resources. -type DevPodEnvironmentTemplateInterface interface { - Create(ctx context.Context, devPodEnvironmentTemplate *managementv1.DevPodEnvironmentTemplate, opts metav1.CreateOptions) (*managementv1.DevPodEnvironmentTemplate, error) - Update(ctx context.Context, devPodEnvironmentTemplate *managementv1.DevPodEnvironmentTemplate, opts metav1.UpdateOptions) (*managementv1.DevPodEnvironmentTemplate, error) - Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error - DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error - Get(ctx context.Context, name string, opts metav1.GetOptions) (*managementv1.DevPodEnvironmentTemplate, error) - List(ctx context.Context, opts metav1.ListOptions) (*managementv1.DevPodEnvironmentTemplateList, error) - Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error) - Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *managementv1.DevPodEnvironmentTemplate, err error) - DevPodEnvironmentTemplateExpansion -} - -// devPodEnvironmentTemplates implements DevPodEnvironmentTemplateInterface -type devPodEnvironmentTemplates struct { - *gentype.ClientWithList[*managementv1.DevPodEnvironmentTemplate, *managementv1.DevPodEnvironmentTemplateList] -} - -// newDevPodEnvironmentTemplates returns a DevPodEnvironmentTemplates -func newDevPodEnvironmentTemplates(c *ManagementV1Client) *devPodEnvironmentTemplates { - return &devPodEnvironmentTemplates{ - gentype.NewClientWithList[*managementv1.DevPodEnvironmentTemplate, *managementv1.DevPodEnvironmentTemplateList]( - "devpodenvironmenttemplates", - c.RESTClient(), - scheme.ParameterCodec, - "", - func() *managementv1.DevPodEnvironmentTemplate { return &managementv1.DevPodEnvironmentTemplate{} }, - func() *managementv1.DevPodEnvironmentTemplateList { - return &managementv1.DevPodEnvironmentTemplateList{} - }, - ), - } -} diff --git a/pkg/clientset/versioned/typed/management/v1/devpodworkspaceinstance.go b/pkg/clientset/versioned/typed/management/v1/devpodworkspaceinstance.go deleted file mode 100644 index 99b027f..0000000 --- a/pkg/clientset/versioned/typed/management/v1/devpodworkspaceinstance.go +++ /dev/null @@ -1,116 +0,0 @@ -// Code generated by client-gen. DO NOT EDIT. - -package v1 - -import ( - context "context" - - managementv1 "github.com/devsy-org/api/pkg/apis/management/v1" - scheme "github.com/devsy-org/api/pkg/clientset/versioned/scheme" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" - types "k8s.io/apimachinery/pkg/types" - watch "k8s.io/apimachinery/pkg/watch" - gentype "k8s.io/client-go/gentype" -) - -// DevPodWorkspaceInstancesGetter has a method to return a DevPodWorkspaceInstanceInterface. -// A group's client should implement this interface. -type DevPodWorkspaceInstancesGetter interface { - DevPodWorkspaceInstances(namespace string) DevPodWorkspaceInstanceInterface -} - -// DevPodWorkspaceInstanceInterface has methods to work with DevPodWorkspaceInstance resources. -type DevPodWorkspaceInstanceInterface interface { - Create(ctx context.Context, devPodWorkspaceInstance *managementv1.DevPodWorkspaceInstance, opts metav1.CreateOptions) (*managementv1.DevPodWorkspaceInstance, error) - Update(ctx context.Context, devPodWorkspaceInstance *managementv1.DevPodWorkspaceInstance, opts metav1.UpdateOptions) (*managementv1.DevPodWorkspaceInstance, error) - Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error - DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error - Get(ctx context.Context, name string, opts metav1.GetOptions) (*managementv1.DevPodWorkspaceInstance, error) - List(ctx context.Context, opts metav1.ListOptions) (*managementv1.DevPodWorkspaceInstanceList, error) - Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error) - Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *managementv1.DevPodWorkspaceInstance, err error) - Up(ctx context.Context, devPodWorkspaceInstanceName string, devPodWorkspaceInstanceUp *managementv1.DevPodWorkspaceInstanceUp, opts metav1.CreateOptions) (*managementv1.DevPodWorkspaceInstanceUp, error) - Stop(ctx context.Context, devPodWorkspaceInstanceName string, devPodWorkspaceInstanceStop *managementv1.DevPodWorkspaceInstanceStop, opts metav1.CreateOptions) (*managementv1.DevPodWorkspaceInstanceStop, error) - Troubleshoot(ctx context.Context, devPodWorkspaceInstanceName string, options metav1.GetOptions) (*managementv1.DevPodWorkspaceInstanceTroubleshoot, error) - Cancel(ctx context.Context, devPodWorkspaceInstanceName string, devPodWorkspaceInstanceCancel *managementv1.DevPodWorkspaceInstanceCancel, opts metav1.CreateOptions) (*managementv1.DevPodWorkspaceInstanceCancel, error) - - DevPodWorkspaceInstanceExpansion -} - -// devPodWorkspaceInstances implements DevPodWorkspaceInstanceInterface -type devPodWorkspaceInstances struct { - *gentype.ClientWithList[*managementv1.DevPodWorkspaceInstance, *managementv1.DevPodWorkspaceInstanceList] -} - -// newDevPodWorkspaceInstances returns a DevPodWorkspaceInstances -func newDevPodWorkspaceInstances(c *ManagementV1Client, namespace string) *devPodWorkspaceInstances { - return &devPodWorkspaceInstances{ - gentype.NewClientWithList[*managementv1.DevPodWorkspaceInstance, *managementv1.DevPodWorkspaceInstanceList]( - "devpodworkspaceinstances", - c.RESTClient(), - scheme.ParameterCodec, - namespace, - func() *managementv1.DevPodWorkspaceInstance { return &managementv1.DevPodWorkspaceInstance{} }, - func() *managementv1.DevPodWorkspaceInstanceList { return &managementv1.DevPodWorkspaceInstanceList{} }, - ), - } -} - -// Up takes the representation of a devPodWorkspaceInstanceUp and creates it. Returns the server's representation of the devPodWorkspaceInstanceUp, and an error, if there is any. -func (c *devPodWorkspaceInstances) Up(ctx context.Context, devPodWorkspaceInstanceName string, devPodWorkspaceInstanceUp *managementv1.DevPodWorkspaceInstanceUp, opts metav1.CreateOptions) (result *managementv1.DevPodWorkspaceInstanceUp, err error) { - result = &managementv1.DevPodWorkspaceInstanceUp{} - err = c.GetClient().Post(). - Namespace(c.GetNamespace()). - Resource("devpodworkspaceinstances"). - Name(devPodWorkspaceInstanceName). - SubResource("up"). - VersionedParams(&opts, scheme.ParameterCodec). - Body(devPodWorkspaceInstanceUp). - Do(ctx). - Into(result) - return -} - -// Stop takes the representation of a devPodWorkspaceInstanceStop and creates it. Returns the server's representation of the devPodWorkspaceInstanceStop, and an error, if there is any. -func (c *devPodWorkspaceInstances) Stop(ctx context.Context, devPodWorkspaceInstanceName string, devPodWorkspaceInstanceStop *managementv1.DevPodWorkspaceInstanceStop, opts metav1.CreateOptions) (result *managementv1.DevPodWorkspaceInstanceStop, err error) { - result = &managementv1.DevPodWorkspaceInstanceStop{} - err = c.GetClient().Post(). - Namespace(c.GetNamespace()). - Resource("devpodworkspaceinstances"). - Name(devPodWorkspaceInstanceName). - SubResource("stop"). - VersionedParams(&opts, scheme.ParameterCodec). - Body(devPodWorkspaceInstanceStop). - Do(ctx). - Into(result) - return -} - -// Troubleshoot takes name of the devPodWorkspaceInstance, and returns the corresponding managementv1.DevPodWorkspaceInstanceTroubleshoot object, and an error if there is any. -func (c *devPodWorkspaceInstances) Troubleshoot(ctx context.Context, devPodWorkspaceInstanceName string, options metav1.GetOptions) (result *managementv1.DevPodWorkspaceInstanceTroubleshoot, err error) { - result = &managementv1.DevPodWorkspaceInstanceTroubleshoot{} - err = c.GetClient().Get(). - Namespace(c.GetNamespace()). - Resource("devpodworkspaceinstances"). - Name(devPodWorkspaceInstanceName). - SubResource("troubleshoot"). - VersionedParams(&options, scheme.ParameterCodec). - Do(ctx). - Into(result) - return -} - -// Cancel takes the representation of a devPodWorkspaceInstanceCancel and creates it. Returns the server's representation of the devPodWorkspaceInstanceCancel, and an error, if there is any. -func (c *devPodWorkspaceInstances) Cancel(ctx context.Context, devPodWorkspaceInstanceName string, devPodWorkspaceInstanceCancel *managementv1.DevPodWorkspaceInstanceCancel, opts metav1.CreateOptions) (result *managementv1.DevPodWorkspaceInstanceCancel, err error) { - result = &managementv1.DevPodWorkspaceInstanceCancel{} - err = c.GetClient().Post(). - Namespace(c.GetNamespace()). - Resource("devpodworkspaceinstances"). - Name(devPodWorkspaceInstanceName). - SubResource("cancel"). - VersionedParams(&opts, scheme.ParameterCodec). - Body(devPodWorkspaceInstanceCancel). - Do(ctx). - Into(result) - return -} diff --git a/pkg/clientset/versioned/typed/management/v1/devpodworkspacepreset.go b/pkg/clientset/versioned/typed/management/v1/devpodworkspacepreset.go deleted file mode 100644 index 55e495d..0000000 --- a/pkg/clientset/versioned/typed/management/v1/devpodworkspacepreset.go +++ /dev/null @@ -1,54 +0,0 @@ -// Code generated by client-gen. DO NOT EDIT. - -package v1 - -import ( - context "context" - - managementv1 "github.com/devsy-org/api/pkg/apis/management/v1" - scheme "github.com/devsy-org/api/pkg/clientset/versioned/scheme" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" - types "k8s.io/apimachinery/pkg/types" - watch "k8s.io/apimachinery/pkg/watch" - gentype "k8s.io/client-go/gentype" -) - -// DevPodWorkspacePresetsGetter has a method to return a DevPodWorkspacePresetInterface. -// A group's client should implement this interface. -type DevPodWorkspacePresetsGetter interface { - DevPodWorkspacePresets() DevPodWorkspacePresetInterface -} - -// DevPodWorkspacePresetInterface has methods to work with DevPodWorkspacePreset resources. -type DevPodWorkspacePresetInterface interface { - Create(ctx context.Context, devPodWorkspacePreset *managementv1.DevPodWorkspacePreset, opts metav1.CreateOptions) (*managementv1.DevPodWorkspacePreset, error) - Update(ctx context.Context, devPodWorkspacePreset *managementv1.DevPodWorkspacePreset, opts metav1.UpdateOptions) (*managementv1.DevPodWorkspacePreset, error) - // Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus(). - UpdateStatus(ctx context.Context, devPodWorkspacePreset *managementv1.DevPodWorkspacePreset, opts metav1.UpdateOptions) (*managementv1.DevPodWorkspacePreset, error) - Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error - DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error - Get(ctx context.Context, name string, opts metav1.GetOptions) (*managementv1.DevPodWorkspacePreset, error) - List(ctx context.Context, opts metav1.ListOptions) (*managementv1.DevPodWorkspacePresetList, error) - Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error) - Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *managementv1.DevPodWorkspacePreset, err error) - DevPodWorkspacePresetExpansion -} - -// devPodWorkspacePresets implements DevPodWorkspacePresetInterface -type devPodWorkspacePresets struct { - *gentype.ClientWithList[*managementv1.DevPodWorkspacePreset, *managementv1.DevPodWorkspacePresetList] -} - -// newDevPodWorkspacePresets returns a DevPodWorkspacePresets -func newDevPodWorkspacePresets(c *ManagementV1Client) *devPodWorkspacePresets { - return &devPodWorkspacePresets{ - gentype.NewClientWithList[*managementv1.DevPodWorkspacePreset, *managementv1.DevPodWorkspacePresetList]( - "devpodworkspacepresets", - c.RESTClient(), - scheme.ParameterCodec, - "", - func() *managementv1.DevPodWorkspacePreset { return &managementv1.DevPodWorkspacePreset{} }, - func() *managementv1.DevPodWorkspacePresetList { return &managementv1.DevPodWorkspacePresetList{} }, - ), - } -} diff --git a/pkg/clientset/versioned/typed/management/v1/devpodworkspacetemplate.go b/pkg/clientset/versioned/typed/management/v1/devpodworkspacetemplate.go deleted file mode 100644 index 1c8ab9c..0000000 --- a/pkg/clientset/versioned/typed/management/v1/devpodworkspacetemplate.go +++ /dev/null @@ -1,54 +0,0 @@ -// Code generated by client-gen. DO NOT EDIT. - -package v1 - -import ( - context "context" - - managementv1 "github.com/devsy-org/api/pkg/apis/management/v1" - scheme "github.com/devsy-org/api/pkg/clientset/versioned/scheme" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" - types "k8s.io/apimachinery/pkg/types" - watch "k8s.io/apimachinery/pkg/watch" - gentype "k8s.io/client-go/gentype" -) - -// DevPodWorkspaceTemplatesGetter has a method to return a DevPodWorkspaceTemplateInterface. -// A group's client should implement this interface. -type DevPodWorkspaceTemplatesGetter interface { - DevPodWorkspaceTemplates() DevPodWorkspaceTemplateInterface -} - -// DevPodWorkspaceTemplateInterface has methods to work with DevPodWorkspaceTemplate resources. -type DevPodWorkspaceTemplateInterface interface { - Create(ctx context.Context, devPodWorkspaceTemplate *managementv1.DevPodWorkspaceTemplate, opts metav1.CreateOptions) (*managementv1.DevPodWorkspaceTemplate, error) - Update(ctx context.Context, devPodWorkspaceTemplate *managementv1.DevPodWorkspaceTemplate, opts metav1.UpdateOptions) (*managementv1.DevPodWorkspaceTemplate, error) - // Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus(). - UpdateStatus(ctx context.Context, devPodWorkspaceTemplate *managementv1.DevPodWorkspaceTemplate, opts metav1.UpdateOptions) (*managementv1.DevPodWorkspaceTemplate, error) - Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error - DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error - Get(ctx context.Context, name string, opts metav1.GetOptions) (*managementv1.DevPodWorkspaceTemplate, error) - List(ctx context.Context, opts metav1.ListOptions) (*managementv1.DevPodWorkspaceTemplateList, error) - Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error) - Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *managementv1.DevPodWorkspaceTemplate, err error) - DevPodWorkspaceTemplateExpansion -} - -// devPodWorkspaceTemplates implements DevPodWorkspaceTemplateInterface -type devPodWorkspaceTemplates struct { - *gentype.ClientWithList[*managementv1.DevPodWorkspaceTemplate, *managementv1.DevPodWorkspaceTemplateList] -} - -// newDevPodWorkspaceTemplates returns a DevPodWorkspaceTemplates -func newDevPodWorkspaceTemplates(c *ManagementV1Client) *devPodWorkspaceTemplates { - return &devPodWorkspaceTemplates{ - gentype.NewClientWithList[*managementv1.DevPodWorkspaceTemplate, *managementv1.DevPodWorkspaceTemplateList]( - "devpodworkspacetemplates", - c.RESTClient(), - scheme.ParameterCodec, - "", - func() *managementv1.DevPodWorkspaceTemplate { return &managementv1.DevPodWorkspaceTemplate{} }, - func() *managementv1.DevPodWorkspaceTemplateList { return &managementv1.DevPodWorkspaceTemplateList{} }, - ), - } -} diff --git a/pkg/clientset/versioned/typed/management/v1/devsyenvironmenttemplate.go b/pkg/clientset/versioned/typed/management/v1/devsyenvironmenttemplate.go new file mode 100644 index 0000000..73cd291 --- /dev/null +++ b/pkg/clientset/versioned/typed/management/v1/devsyenvironmenttemplate.go @@ -0,0 +1,52 @@ +// Code generated by client-gen. DO NOT EDIT. + +package v1 + +import ( + context "context" + + managementv1 "github.com/devsy-org/api/pkg/apis/management/v1" + scheme "github.com/devsy-org/api/pkg/clientset/versioned/scheme" + metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" + types "k8s.io/apimachinery/pkg/types" + watch "k8s.io/apimachinery/pkg/watch" + gentype "k8s.io/client-go/gentype" +) + +// DevsyEnvironmentTemplatesGetter has a method to return a DevsyEnvironmentTemplateInterface. +// A group's client should implement this interface. +type DevsyEnvironmentTemplatesGetter interface { + DevsyEnvironmentTemplates() DevsyEnvironmentTemplateInterface +} + +// DevsyEnvironmentTemplateInterface has methods to work with DevsyEnvironmentTemplate resources. +type DevsyEnvironmentTemplateInterface interface { + Create(ctx context.Context, devsyEnvironmentTemplate *managementv1.DevsyEnvironmentTemplate, opts metav1.CreateOptions) (*managementv1.DevsyEnvironmentTemplate, error) + Update(ctx context.Context, devsyEnvironmentTemplate *managementv1.DevsyEnvironmentTemplate, opts metav1.UpdateOptions) (*managementv1.DevsyEnvironmentTemplate, error) + Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error + DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error + Get(ctx context.Context, name string, opts metav1.GetOptions) (*managementv1.DevsyEnvironmentTemplate, error) + List(ctx context.Context, opts metav1.ListOptions) (*managementv1.DevsyEnvironmentTemplateList, error) + Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error) + Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *managementv1.DevsyEnvironmentTemplate, err error) + DevsyEnvironmentTemplateExpansion +} + +// devsyEnvironmentTemplates implements DevsyEnvironmentTemplateInterface +type devsyEnvironmentTemplates struct { + *gentype.ClientWithList[*managementv1.DevsyEnvironmentTemplate, *managementv1.DevsyEnvironmentTemplateList] +} + +// newDevsyEnvironmentTemplates returns a DevsyEnvironmentTemplates +func newDevsyEnvironmentTemplates(c *ManagementV1Client) *devsyEnvironmentTemplates { + return &devsyEnvironmentTemplates{ + gentype.NewClientWithList[*managementv1.DevsyEnvironmentTemplate, *managementv1.DevsyEnvironmentTemplateList]( + "devsyenvironmenttemplates", + c.RESTClient(), + scheme.ParameterCodec, + "", + func() *managementv1.DevsyEnvironmentTemplate { return &managementv1.DevsyEnvironmentTemplate{} }, + func() *managementv1.DevsyEnvironmentTemplateList { return &managementv1.DevsyEnvironmentTemplateList{} }, + ), + } +} diff --git a/pkg/clientset/versioned/typed/management/v1/devsyupgrade.go b/pkg/clientset/versioned/typed/management/v1/devsyupgrade.go index aa9a38a..d6a968f 100644 --- a/pkg/clientset/versioned/typed/management/v1/devsyupgrade.go +++ b/pkg/clientset/versioned/typed/management/v1/devsyupgrade.go @@ -21,10 +21,10 @@ type DevsyUpgradesGetter interface { // DevsyUpgradeInterface has methods to work with DevsyUpgrade resources. type DevsyUpgradeInterface interface { - Create(ctx context.Context, loftUpgrade *managementv1.DevsyUpgrade, opts metav1.CreateOptions) (*managementv1.DevsyUpgrade, error) - Update(ctx context.Context, loftUpgrade *managementv1.DevsyUpgrade, opts metav1.UpdateOptions) (*managementv1.DevsyUpgrade, error) + Create(ctx context.Context, devsyUpgrade *managementv1.DevsyUpgrade, opts metav1.CreateOptions) (*managementv1.DevsyUpgrade, error) + Update(ctx context.Context, devsyUpgrade *managementv1.DevsyUpgrade, opts metav1.UpdateOptions) (*managementv1.DevsyUpgrade, error) // Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus(). - UpdateStatus(ctx context.Context, loftUpgrade *managementv1.DevsyUpgrade, opts metav1.UpdateOptions) (*managementv1.DevsyUpgrade, error) + UpdateStatus(ctx context.Context, devsyUpgrade *managementv1.DevsyUpgrade, opts metav1.UpdateOptions) (*managementv1.DevsyUpgrade, error) Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error Get(ctx context.Context, name string, opts metav1.GetOptions) (*managementv1.DevsyUpgrade, error) @@ -34,14 +34,14 @@ type DevsyUpgradeInterface interface { DevsyUpgradeExpansion } -// loftUpgrades implements DevsyUpgradeInterface -type loftUpgrades struct { +// devsyUpgrades implements DevsyUpgradeInterface +type devsyUpgrades struct { *gentype.ClientWithList[*managementv1.DevsyUpgrade, *managementv1.DevsyUpgradeList] } // newDevsyUpgrades returns a DevsyUpgrades -func newDevsyUpgrades(c *ManagementV1Client) *loftUpgrades { - return &loftUpgrades{ +func newDevsyUpgrades(c *ManagementV1Client) *devsyUpgrades { + return &devsyUpgrades{ gentype.NewClientWithList[*managementv1.DevsyUpgrade, *managementv1.DevsyUpgradeList]( "devsyupgrades", c.RESTClient(), diff --git a/pkg/clientset/versioned/typed/management/v1/devsyworkspaceinstance.go b/pkg/clientset/versioned/typed/management/v1/devsyworkspaceinstance.go new file mode 100644 index 0000000..c369048 --- /dev/null +++ b/pkg/clientset/versioned/typed/management/v1/devsyworkspaceinstance.go @@ -0,0 +1,116 @@ +// Code generated by client-gen. DO NOT EDIT. + +package v1 + +import ( + context "context" + + managementv1 "github.com/devsy-org/api/pkg/apis/management/v1" + scheme "github.com/devsy-org/api/pkg/clientset/versioned/scheme" + metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" + types "k8s.io/apimachinery/pkg/types" + watch "k8s.io/apimachinery/pkg/watch" + gentype "k8s.io/client-go/gentype" +) + +// DevsyWorkspaceInstancesGetter has a method to return a DevsyWorkspaceInstanceInterface. +// A group's client should implement this interface. +type DevsyWorkspaceInstancesGetter interface { + DevsyWorkspaceInstances(namespace string) DevsyWorkspaceInstanceInterface +} + +// DevsyWorkspaceInstanceInterface has methods to work with DevsyWorkspaceInstance resources. +type DevsyWorkspaceInstanceInterface interface { + Create(ctx context.Context, devsyWorkspaceInstance *managementv1.DevsyWorkspaceInstance, opts metav1.CreateOptions) (*managementv1.DevsyWorkspaceInstance, error) + Update(ctx context.Context, devsyWorkspaceInstance *managementv1.DevsyWorkspaceInstance, opts metav1.UpdateOptions) (*managementv1.DevsyWorkspaceInstance, error) + Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error + DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error + Get(ctx context.Context, name string, opts metav1.GetOptions) (*managementv1.DevsyWorkspaceInstance, error) + List(ctx context.Context, opts metav1.ListOptions) (*managementv1.DevsyWorkspaceInstanceList, error) + Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error) + Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *managementv1.DevsyWorkspaceInstance, err error) + Up(ctx context.Context, devsyWorkspaceInstanceName string, devsyWorkspaceInstanceUp *managementv1.DevsyWorkspaceInstanceUp, opts metav1.CreateOptions) (*managementv1.DevsyWorkspaceInstanceUp, error) + Stop(ctx context.Context, devsyWorkspaceInstanceName string, devsyWorkspaceInstanceStop *managementv1.DevsyWorkspaceInstanceStop, opts metav1.CreateOptions) (*managementv1.DevsyWorkspaceInstanceStop, error) + Troubleshoot(ctx context.Context, devsyWorkspaceInstanceName string, options metav1.GetOptions) (*managementv1.DevsyWorkspaceInstanceTroubleshoot, error) + Cancel(ctx context.Context, devsyWorkspaceInstanceName string, devsyWorkspaceInstanceCancel *managementv1.DevsyWorkspaceInstanceCancel, opts metav1.CreateOptions) (*managementv1.DevsyWorkspaceInstanceCancel, error) + + DevsyWorkspaceInstanceExpansion +} + +// devsyWorkspaceInstances implements DevsyWorkspaceInstanceInterface +type devsyWorkspaceInstances struct { + *gentype.ClientWithList[*managementv1.DevsyWorkspaceInstance, *managementv1.DevsyWorkspaceInstanceList] +} + +// newDevsyWorkspaceInstances returns a DevsyWorkspaceInstances +func newDevsyWorkspaceInstances(c *ManagementV1Client, namespace string) *devsyWorkspaceInstances { + return &devsyWorkspaceInstances{ + gentype.NewClientWithList[*managementv1.DevsyWorkspaceInstance, *managementv1.DevsyWorkspaceInstanceList]( + "devsyworkspaceinstances", + c.RESTClient(), + scheme.ParameterCodec, + namespace, + func() *managementv1.DevsyWorkspaceInstance { return &managementv1.DevsyWorkspaceInstance{} }, + func() *managementv1.DevsyWorkspaceInstanceList { return &managementv1.DevsyWorkspaceInstanceList{} }, + ), + } +} + +// Up takes the representation of a devsyWorkspaceInstanceUp and creates it. Returns the server's representation of the devsyWorkspaceInstanceUp, and an error, if there is any. +func (c *devsyWorkspaceInstances) Up(ctx context.Context, devsyWorkspaceInstanceName string, devsyWorkspaceInstanceUp *managementv1.DevsyWorkspaceInstanceUp, opts metav1.CreateOptions) (result *managementv1.DevsyWorkspaceInstanceUp, err error) { + result = &managementv1.DevsyWorkspaceInstanceUp{} + err = c.GetClient().Post(). + Namespace(c.GetNamespace()). + Resource("devsyworkspaceinstances"). + Name(devsyWorkspaceInstanceName). + SubResource("up"). + VersionedParams(&opts, scheme.ParameterCodec). + Body(devsyWorkspaceInstanceUp). + Do(ctx). + Into(result) + return +} + +// Stop takes the representation of a devsyWorkspaceInstanceStop and creates it. Returns the server's representation of the devsyWorkspaceInstanceStop, and an error, if there is any. +func (c *devsyWorkspaceInstances) Stop(ctx context.Context, devsyWorkspaceInstanceName string, devsyWorkspaceInstanceStop *managementv1.DevsyWorkspaceInstanceStop, opts metav1.CreateOptions) (result *managementv1.DevsyWorkspaceInstanceStop, err error) { + result = &managementv1.DevsyWorkspaceInstanceStop{} + err = c.GetClient().Post(). + Namespace(c.GetNamespace()). + Resource("devsyworkspaceinstances"). + Name(devsyWorkspaceInstanceName). + SubResource("stop"). + VersionedParams(&opts, scheme.ParameterCodec). + Body(devsyWorkspaceInstanceStop). + Do(ctx). + Into(result) + return +} + +// Troubleshoot takes name of the devsyWorkspaceInstance, and returns the corresponding managementv1.DevsyWorkspaceInstanceTroubleshoot object, and an error if there is any. +func (c *devsyWorkspaceInstances) Troubleshoot(ctx context.Context, devsyWorkspaceInstanceName string, options metav1.GetOptions) (result *managementv1.DevsyWorkspaceInstanceTroubleshoot, err error) { + result = &managementv1.DevsyWorkspaceInstanceTroubleshoot{} + err = c.GetClient().Get(). + Namespace(c.GetNamespace()). + Resource("devsyworkspaceinstances"). + Name(devsyWorkspaceInstanceName). + SubResource("troubleshoot"). + VersionedParams(&options, scheme.ParameterCodec). + Do(ctx). + Into(result) + return +} + +// Cancel takes the representation of a devsyWorkspaceInstanceCancel and creates it. Returns the server's representation of the devsyWorkspaceInstanceCancel, and an error, if there is any. +func (c *devsyWorkspaceInstances) Cancel(ctx context.Context, devsyWorkspaceInstanceName string, devsyWorkspaceInstanceCancel *managementv1.DevsyWorkspaceInstanceCancel, opts metav1.CreateOptions) (result *managementv1.DevsyWorkspaceInstanceCancel, err error) { + result = &managementv1.DevsyWorkspaceInstanceCancel{} + err = c.GetClient().Post(). + Namespace(c.GetNamespace()). + Resource("devsyworkspaceinstances"). + Name(devsyWorkspaceInstanceName). + SubResource("cancel"). + VersionedParams(&opts, scheme.ParameterCodec). + Body(devsyWorkspaceInstanceCancel). + Do(ctx). + Into(result) + return +} diff --git a/pkg/clientset/versioned/typed/management/v1/devsyworkspacepreset.go b/pkg/clientset/versioned/typed/management/v1/devsyworkspacepreset.go new file mode 100644 index 0000000..25aee64 --- /dev/null +++ b/pkg/clientset/versioned/typed/management/v1/devsyworkspacepreset.go @@ -0,0 +1,54 @@ +// Code generated by client-gen. DO NOT EDIT. + +package v1 + +import ( + context "context" + + managementv1 "github.com/devsy-org/api/pkg/apis/management/v1" + scheme "github.com/devsy-org/api/pkg/clientset/versioned/scheme" + metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" + types "k8s.io/apimachinery/pkg/types" + watch "k8s.io/apimachinery/pkg/watch" + gentype "k8s.io/client-go/gentype" +) + +// DevsyWorkspacePresetsGetter has a method to return a DevsyWorkspacePresetInterface. +// A group's client should implement this interface. +type DevsyWorkspacePresetsGetter interface { + DevsyWorkspacePresets() DevsyWorkspacePresetInterface +} + +// DevsyWorkspacePresetInterface has methods to work with DevsyWorkspacePreset resources. +type DevsyWorkspacePresetInterface interface { + Create(ctx context.Context, devsyWorkspacePreset *managementv1.DevsyWorkspacePreset, opts metav1.CreateOptions) (*managementv1.DevsyWorkspacePreset, error) + Update(ctx context.Context, devsyWorkspacePreset *managementv1.DevsyWorkspacePreset, opts metav1.UpdateOptions) (*managementv1.DevsyWorkspacePreset, error) + // Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus(). + UpdateStatus(ctx context.Context, devsyWorkspacePreset *managementv1.DevsyWorkspacePreset, opts metav1.UpdateOptions) (*managementv1.DevsyWorkspacePreset, error) + Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error + DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error + Get(ctx context.Context, name string, opts metav1.GetOptions) (*managementv1.DevsyWorkspacePreset, error) + List(ctx context.Context, opts metav1.ListOptions) (*managementv1.DevsyWorkspacePresetList, error) + Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error) + Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *managementv1.DevsyWorkspacePreset, err error) + DevsyWorkspacePresetExpansion +} + +// devsyWorkspacePresets implements DevsyWorkspacePresetInterface +type devsyWorkspacePresets struct { + *gentype.ClientWithList[*managementv1.DevsyWorkspacePreset, *managementv1.DevsyWorkspacePresetList] +} + +// newDevsyWorkspacePresets returns a DevsyWorkspacePresets +func newDevsyWorkspacePresets(c *ManagementV1Client) *devsyWorkspacePresets { + return &devsyWorkspacePresets{ + gentype.NewClientWithList[*managementv1.DevsyWorkspacePreset, *managementv1.DevsyWorkspacePresetList]( + "devsyworkspacepresets", + c.RESTClient(), + scheme.ParameterCodec, + "", + func() *managementv1.DevsyWorkspacePreset { return &managementv1.DevsyWorkspacePreset{} }, + func() *managementv1.DevsyWorkspacePresetList { return &managementv1.DevsyWorkspacePresetList{} }, + ), + } +} diff --git a/pkg/clientset/versioned/typed/management/v1/devsyworkspacetemplate.go b/pkg/clientset/versioned/typed/management/v1/devsyworkspacetemplate.go new file mode 100644 index 0000000..9449e5e --- /dev/null +++ b/pkg/clientset/versioned/typed/management/v1/devsyworkspacetemplate.go @@ -0,0 +1,54 @@ +// Code generated by client-gen. DO NOT EDIT. + +package v1 + +import ( + context "context" + + managementv1 "github.com/devsy-org/api/pkg/apis/management/v1" + scheme "github.com/devsy-org/api/pkg/clientset/versioned/scheme" + metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" + types "k8s.io/apimachinery/pkg/types" + watch "k8s.io/apimachinery/pkg/watch" + gentype "k8s.io/client-go/gentype" +) + +// DevsyWorkspaceTemplatesGetter has a method to return a DevsyWorkspaceTemplateInterface. +// A group's client should implement this interface. +type DevsyWorkspaceTemplatesGetter interface { + DevsyWorkspaceTemplates() DevsyWorkspaceTemplateInterface +} + +// DevsyWorkspaceTemplateInterface has methods to work with DevsyWorkspaceTemplate resources. +type DevsyWorkspaceTemplateInterface interface { + Create(ctx context.Context, devsyWorkspaceTemplate *managementv1.DevsyWorkspaceTemplate, opts metav1.CreateOptions) (*managementv1.DevsyWorkspaceTemplate, error) + Update(ctx context.Context, devsyWorkspaceTemplate *managementv1.DevsyWorkspaceTemplate, opts metav1.UpdateOptions) (*managementv1.DevsyWorkspaceTemplate, error) + // Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus(). + UpdateStatus(ctx context.Context, devsyWorkspaceTemplate *managementv1.DevsyWorkspaceTemplate, opts metav1.UpdateOptions) (*managementv1.DevsyWorkspaceTemplate, error) + Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error + DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error + Get(ctx context.Context, name string, opts metav1.GetOptions) (*managementv1.DevsyWorkspaceTemplate, error) + List(ctx context.Context, opts metav1.ListOptions) (*managementv1.DevsyWorkspaceTemplateList, error) + Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error) + Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *managementv1.DevsyWorkspaceTemplate, err error) + DevsyWorkspaceTemplateExpansion +} + +// devsyWorkspaceTemplates implements DevsyWorkspaceTemplateInterface +type devsyWorkspaceTemplates struct { + *gentype.ClientWithList[*managementv1.DevsyWorkspaceTemplate, *managementv1.DevsyWorkspaceTemplateList] +} + +// newDevsyWorkspaceTemplates returns a DevsyWorkspaceTemplates +func newDevsyWorkspaceTemplates(c *ManagementV1Client) *devsyWorkspaceTemplates { + return &devsyWorkspaceTemplates{ + gentype.NewClientWithList[*managementv1.DevsyWorkspaceTemplate, *managementv1.DevsyWorkspaceTemplateList]( + "devsyworkspacetemplates", + c.RESTClient(), + scheme.ParameterCodec, + "", + func() *managementv1.DevsyWorkspaceTemplate { return &managementv1.DevsyWorkspaceTemplate{} }, + func() *managementv1.DevsyWorkspaceTemplateList { return &managementv1.DevsyWorkspaceTemplateList{} }, + ), + } +} diff --git a/pkg/clientset/versioned/typed/management/v1/fake/fake_devpodenvironmenttemplate.go b/pkg/clientset/versioned/typed/management/v1/fake/fake_devpodenvironmenttemplate.go deleted file mode 100644 index 0d5d708..0000000 --- a/pkg/clientset/versioned/typed/management/v1/fake/fake_devpodenvironmenttemplate.go +++ /dev/null @@ -1,36 +0,0 @@ -// Code generated by client-gen. DO NOT EDIT. - -package fake - -import ( - v1 "github.com/devsy-org/api/pkg/apis/management/v1" - managementv1 "github.com/devsy-org/api/pkg/clientset/versioned/typed/management/v1" - gentype "k8s.io/client-go/gentype" -) - -// fakeDevPodEnvironmentTemplates implements DevPodEnvironmentTemplateInterface -type fakeDevPodEnvironmentTemplates struct { - *gentype.FakeClientWithList[*v1.DevPodEnvironmentTemplate, *v1.DevPodEnvironmentTemplateList] - Fake *FakeManagementV1 -} - -func newFakeDevPodEnvironmentTemplates(fake *FakeManagementV1) managementv1.DevPodEnvironmentTemplateInterface { - return &fakeDevPodEnvironmentTemplates{ - gentype.NewFakeClientWithList[*v1.DevPodEnvironmentTemplate, *v1.DevPodEnvironmentTemplateList]( - fake.Fake, - "", - v1.SchemeGroupVersion.WithResource("devpodenvironmenttemplates"), - v1.SchemeGroupVersion.WithKind("DevPodEnvironmentTemplate"), - func() *v1.DevPodEnvironmentTemplate { return &v1.DevPodEnvironmentTemplate{} }, - func() *v1.DevPodEnvironmentTemplateList { return &v1.DevPodEnvironmentTemplateList{} }, - func(dst, src *v1.DevPodEnvironmentTemplateList) { dst.ListMeta = src.ListMeta }, - func(list *v1.DevPodEnvironmentTemplateList) []*v1.DevPodEnvironmentTemplate { - return gentype.ToPointerSlice(list.Items) - }, - func(list *v1.DevPodEnvironmentTemplateList, items []*v1.DevPodEnvironmentTemplate) { - list.Items = gentype.FromPointerSlice(items) - }, - ), - fake, - } -} diff --git a/pkg/clientset/versioned/typed/management/v1/fake/fake_devpodworkspaceinstance.go b/pkg/clientset/versioned/typed/management/v1/fake/fake_devpodworkspaceinstance.go deleted file mode 100644 index 968d9b3..0000000 --- a/pkg/clientset/versioned/typed/management/v1/fake/fake_devpodworkspaceinstance.go +++ /dev/null @@ -1,88 +0,0 @@ -// Code generated by client-gen. DO NOT EDIT. - -package fake - -import ( - context "context" - - v1 "github.com/devsy-org/api/pkg/apis/management/v1" - managementv1 "github.com/devsy-org/api/pkg/clientset/versioned/typed/management/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" - gentype "k8s.io/client-go/gentype" - testing "k8s.io/client-go/testing" -) - -// fakeDevPodWorkspaceInstances implements DevPodWorkspaceInstanceInterface -type fakeDevPodWorkspaceInstances struct { - *gentype.FakeClientWithList[*v1.DevPodWorkspaceInstance, *v1.DevPodWorkspaceInstanceList] - Fake *FakeManagementV1 -} - -func newFakeDevPodWorkspaceInstances(fake *FakeManagementV1, namespace string) managementv1.DevPodWorkspaceInstanceInterface { - return &fakeDevPodWorkspaceInstances{ - gentype.NewFakeClientWithList[*v1.DevPodWorkspaceInstance, *v1.DevPodWorkspaceInstanceList]( - fake.Fake, - namespace, - v1.SchemeGroupVersion.WithResource("devpodworkspaceinstances"), - v1.SchemeGroupVersion.WithKind("DevPodWorkspaceInstance"), - func() *v1.DevPodWorkspaceInstance { return &v1.DevPodWorkspaceInstance{} }, - func() *v1.DevPodWorkspaceInstanceList { return &v1.DevPodWorkspaceInstanceList{} }, - func(dst, src *v1.DevPodWorkspaceInstanceList) { dst.ListMeta = src.ListMeta }, - func(list *v1.DevPodWorkspaceInstanceList) []*v1.DevPodWorkspaceInstance { - return gentype.ToPointerSlice(list.Items) - }, - func(list *v1.DevPodWorkspaceInstanceList, items []*v1.DevPodWorkspaceInstance) { - list.Items = gentype.FromPointerSlice(items) - }, - ), - fake, - } -} - -// Up takes the representation of a devPodWorkspaceInstanceUp and creates it. Returns the server's representation of the devPodWorkspaceInstanceUp, and an error, if there is any. -func (c *fakeDevPodWorkspaceInstances) Up(ctx context.Context, devPodWorkspaceInstanceName string, devPodWorkspaceInstanceUp *v1.DevPodWorkspaceInstanceUp, opts metav1.CreateOptions) (result *v1.DevPodWorkspaceInstanceUp, err error) { - emptyResult := &v1.DevPodWorkspaceInstanceUp{} - obj, err := c.Fake. - Invokes(testing.NewCreateSubresourceActionWithOptions(c.Resource(), devPodWorkspaceInstanceName, "up", c.Namespace(), devPodWorkspaceInstanceUp, opts), emptyResult) - - if obj == nil { - return emptyResult, err - } - return obj.(*v1.DevPodWorkspaceInstanceUp), err -} - -// Stop takes the representation of a devPodWorkspaceInstanceStop and creates it. Returns the server's representation of the devPodWorkspaceInstanceStop, and an error, if there is any. -func (c *fakeDevPodWorkspaceInstances) Stop(ctx context.Context, devPodWorkspaceInstanceName string, devPodWorkspaceInstanceStop *v1.DevPodWorkspaceInstanceStop, opts metav1.CreateOptions) (result *v1.DevPodWorkspaceInstanceStop, err error) { - emptyResult := &v1.DevPodWorkspaceInstanceStop{} - obj, err := c.Fake. - Invokes(testing.NewCreateSubresourceActionWithOptions(c.Resource(), devPodWorkspaceInstanceName, "stop", c.Namespace(), devPodWorkspaceInstanceStop, opts), emptyResult) - - if obj == nil { - return emptyResult, err - } - return obj.(*v1.DevPodWorkspaceInstanceStop), err -} - -// Troubleshoot takes name of the devPodWorkspaceInstance, and returns the corresponding devPodWorkspaceInstanceTroubleshoot object, and an error if there is any. -func (c *fakeDevPodWorkspaceInstances) Troubleshoot(ctx context.Context, devPodWorkspaceInstanceName string, options metav1.GetOptions) (result *v1.DevPodWorkspaceInstanceTroubleshoot, err error) { - emptyResult := &v1.DevPodWorkspaceInstanceTroubleshoot{} - obj, err := c.Fake. - Invokes(testing.NewGetSubresourceActionWithOptions(c.Resource(), c.Namespace(), "troubleshoot", devPodWorkspaceInstanceName, options), emptyResult) - - if obj == nil { - return emptyResult, err - } - return obj.(*v1.DevPodWorkspaceInstanceTroubleshoot), err -} - -// Cancel takes the representation of a devPodWorkspaceInstanceCancel and creates it. Returns the server's representation of the devPodWorkspaceInstanceCancel, and an error, if there is any. -func (c *fakeDevPodWorkspaceInstances) Cancel(ctx context.Context, devPodWorkspaceInstanceName string, devPodWorkspaceInstanceCancel *v1.DevPodWorkspaceInstanceCancel, opts metav1.CreateOptions) (result *v1.DevPodWorkspaceInstanceCancel, err error) { - emptyResult := &v1.DevPodWorkspaceInstanceCancel{} - obj, err := c.Fake. - Invokes(testing.NewCreateSubresourceActionWithOptions(c.Resource(), devPodWorkspaceInstanceName, "cancel", c.Namespace(), devPodWorkspaceInstanceCancel, opts), emptyResult) - - if obj == nil { - return emptyResult, err - } - return obj.(*v1.DevPodWorkspaceInstanceCancel), err -} diff --git a/pkg/clientset/versioned/typed/management/v1/fake/fake_devpodworkspacepreset.go b/pkg/clientset/versioned/typed/management/v1/fake/fake_devpodworkspacepreset.go deleted file mode 100644 index 040c444..0000000 --- a/pkg/clientset/versioned/typed/management/v1/fake/fake_devpodworkspacepreset.go +++ /dev/null @@ -1,36 +0,0 @@ -// Code generated by client-gen. DO NOT EDIT. - -package fake - -import ( - v1 "github.com/devsy-org/api/pkg/apis/management/v1" - managementv1 "github.com/devsy-org/api/pkg/clientset/versioned/typed/management/v1" - gentype "k8s.io/client-go/gentype" -) - -// fakeDevPodWorkspacePresets implements DevPodWorkspacePresetInterface -type fakeDevPodWorkspacePresets struct { - *gentype.FakeClientWithList[*v1.DevPodWorkspacePreset, *v1.DevPodWorkspacePresetList] - Fake *FakeManagementV1 -} - -func newFakeDevPodWorkspacePresets(fake *FakeManagementV1) managementv1.DevPodWorkspacePresetInterface { - return &fakeDevPodWorkspacePresets{ - gentype.NewFakeClientWithList[*v1.DevPodWorkspacePreset, *v1.DevPodWorkspacePresetList]( - fake.Fake, - "", - v1.SchemeGroupVersion.WithResource("devpodworkspacepresets"), - v1.SchemeGroupVersion.WithKind("DevPodWorkspacePreset"), - func() *v1.DevPodWorkspacePreset { return &v1.DevPodWorkspacePreset{} }, - func() *v1.DevPodWorkspacePresetList { return &v1.DevPodWorkspacePresetList{} }, - func(dst, src *v1.DevPodWorkspacePresetList) { dst.ListMeta = src.ListMeta }, - func(list *v1.DevPodWorkspacePresetList) []*v1.DevPodWorkspacePreset { - return gentype.ToPointerSlice(list.Items) - }, - func(list *v1.DevPodWorkspacePresetList, items []*v1.DevPodWorkspacePreset) { - list.Items = gentype.FromPointerSlice(items) - }, - ), - fake, - } -} diff --git a/pkg/clientset/versioned/typed/management/v1/fake/fake_devpodworkspacetemplate.go b/pkg/clientset/versioned/typed/management/v1/fake/fake_devpodworkspacetemplate.go deleted file mode 100644 index 862256b..0000000 --- a/pkg/clientset/versioned/typed/management/v1/fake/fake_devpodworkspacetemplate.go +++ /dev/null @@ -1,36 +0,0 @@ -// Code generated by client-gen. DO NOT EDIT. - -package fake - -import ( - v1 "github.com/devsy-org/api/pkg/apis/management/v1" - managementv1 "github.com/devsy-org/api/pkg/clientset/versioned/typed/management/v1" - gentype "k8s.io/client-go/gentype" -) - -// fakeDevPodWorkspaceTemplates implements DevPodWorkspaceTemplateInterface -type fakeDevPodWorkspaceTemplates struct { - *gentype.FakeClientWithList[*v1.DevPodWorkspaceTemplate, *v1.DevPodWorkspaceTemplateList] - Fake *FakeManagementV1 -} - -func newFakeDevPodWorkspaceTemplates(fake *FakeManagementV1) managementv1.DevPodWorkspaceTemplateInterface { - return &fakeDevPodWorkspaceTemplates{ - gentype.NewFakeClientWithList[*v1.DevPodWorkspaceTemplate, *v1.DevPodWorkspaceTemplateList]( - fake.Fake, - "", - v1.SchemeGroupVersion.WithResource("devpodworkspacetemplates"), - v1.SchemeGroupVersion.WithKind("DevPodWorkspaceTemplate"), - func() *v1.DevPodWorkspaceTemplate { return &v1.DevPodWorkspaceTemplate{} }, - func() *v1.DevPodWorkspaceTemplateList { return &v1.DevPodWorkspaceTemplateList{} }, - func(dst, src *v1.DevPodWorkspaceTemplateList) { dst.ListMeta = src.ListMeta }, - func(list *v1.DevPodWorkspaceTemplateList) []*v1.DevPodWorkspaceTemplate { - return gentype.ToPointerSlice(list.Items) - }, - func(list *v1.DevPodWorkspaceTemplateList, items []*v1.DevPodWorkspaceTemplate) { - list.Items = gentype.FromPointerSlice(items) - }, - ), - fake, - } -} diff --git a/pkg/clientset/versioned/typed/management/v1/fake/fake_devsyenvironmenttemplate.go b/pkg/clientset/versioned/typed/management/v1/fake/fake_devsyenvironmenttemplate.go new file mode 100644 index 0000000..21a14eb --- /dev/null +++ b/pkg/clientset/versioned/typed/management/v1/fake/fake_devsyenvironmenttemplate.go @@ -0,0 +1,36 @@ +// Code generated by client-gen. DO NOT EDIT. + +package fake + +import ( + v1 "github.com/devsy-org/api/pkg/apis/management/v1" + managementv1 "github.com/devsy-org/api/pkg/clientset/versioned/typed/management/v1" + gentype "k8s.io/client-go/gentype" +) + +// fakeDevsyEnvironmentTemplates implements DevsyEnvironmentTemplateInterface +type fakeDevsyEnvironmentTemplates struct { + *gentype.FakeClientWithList[*v1.DevsyEnvironmentTemplate, *v1.DevsyEnvironmentTemplateList] + Fake *FakeManagementV1 +} + +func newFakeDevsyEnvironmentTemplates(fake *FakeManagementV1) managementv1.DevsyEnvironmentTemplateInterface { + return &fakeDevsyEnvironmentTemplates{ + gentype.NewFakeClientWithList[*v1.DevsyEnvironmentTemplate, *v1.DevsyEnvironmentTemplateList]( + fake.Fake, + "", + v1.SchemeGroupVersion.WithResource("devsyenvironmenttemplates"), + v1.SchemeGroupVersion.WithKind("DevsyEnvironmentTemplate"), + func() *v1.DevsyEnvironmentTemplate { return &v1.DevsyEnvironmentTemplate{} }, + func() *v1.DevsyEnvironmentTemplateList { return &v1.DevsyEnvironmentTemplateList{} }, + func(dst, src *v1.DevsyEnvironmentTemplateList) { dst.ListMeta = src.ListMeta }, + func(list *v1.DevsyEnvironmentTemplateList) []*v1.DevsyEnvironmentTemplate { + return gentype.ToPointerSlice(list.Items) + }, + func(list *v1.DevsyEnvironmentTemplateList, items []*v1.DevsyEnvironmentTemplate) { + list.Items = gentype.FromPointerSlice(items) + }, + ), + fake, + } +} diff --git a/pkg/clientset/versioned/typed/management/v1/fake/fake_devsyupgrade.go b/pkg/clientset/versioned/typed/management/v1/fake/fake_devsyupgrade.go index 030b805..bf246c3 100644 --- a/pkg/clientset/versioned/typed/management/v1/fake/fake_devsyupgrade.go +++ b/pkg/clientset/versioned/typed/management/v1/fake/fake_devsyupgrade.go @@ -25,7 +25,9 @@ func newFakeDevsyUpgrades(fake *FakeManagementV1) managementv1.DevsyUpgradeInter func() *v1.DevsyUpgradeList { return &v1.DevsyUpgradeList{} }, func(dst, src *v1.DevsyUpgradeList) { dst.ListMeta = src.ListMeta }, func(list *v1.DevsyUpgradeList) []*v1.DevsyUpgrade { return gentype.ToPointerSlice(list.Items) }, - func(list *v1.DevsyUpgradeList, items []*v1.DevsyUpgrade) { list.Items = gentype.FromPointerSlice(items) }, + func(list *v1.DevsyUpgradeList, items []*v1.DevsyUpgrade) { + list.Items = gentype.FromPointerSlice(items) + }, ), fake, } diff --git a/pkg/clientset/versioned/typed/management/v1/fake/fake_devsyworkspaceinstance.go b/pkg/clientset/versioned/typed/management/v1/fake/fake_devsyworkspaceinstance.go new file mode 100644 index 0000000..b76680f --- /dev/null +++ b/pkg/clientset/versioned/typed/management/v1/fake/fake_devsyworkspaceinstance.go @@ -0,0 +1,88 @@ +// Code generated by client-gen. DO NOT EDIT. + +package fake + +import ( + context "context" + + v1 "github.com/devsy-org/api/pkg/apis/management/v1" + managementv1 "github.com/devsy-org/api/pkg/clientset/versioned/typed/management/v1" + metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" + gentype "k8s.io/client-go/gentype" + testing "k8s.io/client-go/testing" +) + +// fakeDevsyWorkspaceInstances implements DevsyWorkspaceInstanceInterface +type fakeDevsyWorkspaceInstances struct { + *gentype.FakeClientWithList[*v1.DevsyWorkspaceInstance, *v1.DevsyWorkspaceInstanceList] + Fake *FakeManagementV1 +} + +func newFakeDevsyWorkspaceInstances(fake *FakeManagementV1, namespace string) managementv1.DevsyWorkspaceInstanceInterface { + return &fakeDevsyWorkspaceInstances{ + gentype.NewFakeClientWithList[*v1.DevsyWorkspaceInstance, *v1.DevsyWorkspaceInstanceList]( + fake.Fake, + namespace, + v1.SchemeGroupVersion.WithResource("devsyworkspaceinstances"), + v1.SchemeGroupVersion.WithKind("DevsyWorkspaceInstance"), + func() *v1.DevsyWorkspaceInstance { return &v1.DevsyWorkspaceInstance{} }, + func() *v1.DevsyWorkspaceInstanceList { return &v1.DevsyWorkspaceInstanceList{} }, + func(dst, src *v1.DevsyWorkspaceInstanceList) { dst.ListMeta = src.ListMeta }, + func(list *v1.DevsyWorkspaceInstanceList) []*v1.DevsyWorkspaceInstance { + return gentype.ToPointerSlice(list.Items) + }, + func(list *v1.DevsyWorkspaceInstanceList, items []*v1.DevsyWorkspaceInstance) { + list.Items = gentype.FromPointerSlice(items) + }, + ), + fake, + } +} + +// Up takes the representation of a devsyWorkspaceInstanceUp and creates it. Returns the server's representation of the devsyWorkspaceInstanceUp, and an error, if there is any. +func (c *fakeDevsyWorkspaceInstances) Up(ctx context.Context, devsyWorkspaceInstanceName string, devsyWorkspaceInstanceUp *v1.DevsyWorkspaceInstanceUp, opts metav1.CreateOptions) (result *v1.DevsyWorkspaceInstanceUp, err error) { + emptyResult := &v1.DevsyWorkspaceInstanceUp{} + obj, err := c.Fake. + Invokes(testing.NewCreateSubresourceActionWithOptions(c.Resource(), devsyWorkspaceInstanceName, "up", c.Namespace(), devsyWorkspaceInstanceUp, opts), emptyResult) + + if obj == nil { + return emptyResult, err + } + return obj.(*v1.DevsyWorkspaceInstanceUp), err +} + +// Stop takes the representation of a devsyWorkspaceInstanceStop and creates it. Returns the server's representation of the devsyWorkspaceInstanceStop, and an error, if there is any. +func (c *fakeDevsyWorkspaceInstances) Stop(ctx context.Context, devsyWorkspaceInstanceName string, devsyWorkspaceInstanceStop *v1.DevsyWorkspaceInstanceStop, opts metav1.CreateOptions) (result *v1.DevsyWorkspaceInstanceStop, err error) { + emptyResult := &v1.DevsyWorkspaceInstanceStop{} + obj, err := c.Fake. + Invokes(testing.NewCreateSubresourceActionWithOptions(c.Resource(), devsyWorkspaceInstanceName, "stop", c.Namespace(), devsyWorkspaceInstanceStop, opts), emptyResult) + + if obj == nil { + return emptyResult, err + } + return obj.(*v1.DevsyWorkspaceInstanceStop), err +} + +// Troubleshoot takes name of the devsyWorkspaceInstance, and returns the corresponding devsyWorkspaceInstanceTroubleshoot object, and an error if there is any. +func (c *fakeDevsyWorkspaceInstances) Troubleshoot(ctx context.Context, devsyWorkspaceInstanceName string, options metav1.GetOptions) (result *v1.DevsyWorkspaceInstanceTroubleshoot, err error) { + emptyResult := &v1.DevsyWorkspaceInstanceTroubleshoot{} + obj, err := c.Fake. + Invokes(testing.NewGetSubresourceActionWithOptions(c.Resource(), c.Namespace(), "troubleshoot", devsyWorkspaceInstanceName, options), emptyResult) + + if obj == nil { + return emptyResult, err + } + return obj.(*v1.DevsyWorkspaceInstanceTroubleshoot), err +} + +// Cancel takes the representation of a devsyWorkspaceInstanceCancel and creates it. Returns the server's representation of the devsyWorkspaceInstanceCancel, and an error, if there is any. +func (c *fakeDevsyWorkspaceInstances) Cancel(ctx context.Context, devsyWorkspaceInstanceName string, devsyWorkspaceInstanceCancel *v1.DevsyWorkspaceInstanceCancel, opts metav1.CreateOptions) (result *v1.DevsyWorkspaceInstanceCancel, err error) { + emptyResult := &v1.DevsyWorkspaceInstanceCancel{} + obj, err := c.Fake. + Invokes(testing.NewCreateSubresourceActionWithOptions(c.Resource(), devsyWorkspaceInstanceName, "cancel", c.Namespace(), devsyWorkspaceInstanceCancel, opts), emptyResult) + + if obj == nil { + return emptyResult, err + } + return obj.(*v1.DevsyWorkspaceInstanceCancel), err +} diff --git a/pkg/clientset/versioned/typed/management/v1/fake/fake_devsyworkspacepreset.go b/pkg/clientset/versioned/typed/management/v1/fake/fake_devsyworkspacepreset.go new file mode 100644 index 0000000..63d6a70 --- /dev/null +++ b/pkg/clientset/versioned/typed/management/v1/fake/fake_devsyworkspacepreset.go @@ -0,0 +1,36 @@ +// Code generated by client-gen. DO NOT EDIT. + +package fake + +import ( + v1 "github.com/devsy-org/api/pkg/apis/management/v1" + managementv1 "github.com/devsy-org/api/pkg/clientset/versioned/typed/management/v1" + gentype "k8s.io/client-go/gentype" +) + +// fakeDevsyWorkspacePresets implements DevsyWorkspacePresetInterface +type fakeDevsyWorkspacePresets struct { + *gentype.FakeClientWithList[*v1.DevsyWorkspacePreset, *v1.DevsyWorkspacePresetList] + Fake *FakeManagementV1 +} + +func newFakeDevsyWorkspacePresets(fake *FakeManagementV1) managementv1.DevsyWorkspacePresetInterface { + return &fakeDevsyWorkspacePresets{ + gentype.NewFakeClientWithList[*v1.DevsyWorkspacePreset, *v1.DevsyWorkspacePresetList]( + fake.Fake, + "", + v1.SchemeGroupVersion.WithResource("devsyworkspacepresets"), + v1.SchemeGroupVersion.WithKind("DevsyWorkspacePreset"), + func() *v1.DevsyWorkspacePreset { return &v1.DevsyWorkspacePreset{} }, + func() *v1.DevsyWorkspacePresetList { return &v1.DevsyWorkspacePresetList{} }, + func(dst, src *v1.DevsyWorkspacePresetList) { dst.ListMeta = src.ListMeta }, + func(list *v1.DevsyWorkspacePresetList) []*v1.DevsyWorkspacePreset { + return gentype.ToPointerSlice(list.Items) + }, + func(list *v1.DevsyWorkspacePresetList, items []*v1.DevsyWorkspacePreset) { + list.Items = gentype.FromPointerSlice(items) + }, + ), + fake, + } +} diff --git a/pkg/clientset/versioned/typed/management/v1/fake/fake_devsyworkspacetemplate.go b/pkg/clientset/versioned/typed/management/v1/fake/fake_devsyworkspacetemplate.go new file mode 100644 index 0000000..fbbc09a --- /dev/null +++ b/pkg/clientset/versioned/typed/management/v1/fake/fake_devsyworkspacetemplate.go @@ -0,0 +1,36 @@ +// Code generated by client-gen. DO NOT EDIT. + +package fake + +import ( + v1 "github.com/devsy-org/api/pkg/apis/management/v1" + managementv1 "github.com/devsy-org/api/pkg/clientset/versioned/typed/management/v1" + gentype "k8s.io/client-go/gentype" +) + +// fakeDevsyWorkspaceTemplates implements DevsyWorkspaceTemplateInterface +type fakeDevsyWorkspaceTemplates struct { + *gentype.FakeClientWithList[*v1.DevsyWorkspaceTemplate, *v1.DevsyWorkspaceTemplateList] + Fake *FakeManagementV1 +} + +func newFakeDevsyWorkspaceTemplates(fake *FakeManagementV1) managementv1.DevsyWorkspaceTemplateInterface { + return &fakeDevsyWorkspaceTemplates{ + gentype.NewFakeClientWithList[*v1.DevsyWorkspaceTemplate, *v1.DevsyWorkspaceTemplateList]( + fake.Fake, + "", + v1.SchemeGroupVersion.WithResource("devsyworkspacetemplates"), + v1.SchemeGroupVersion.WithKind("DevsyWorkspaceTemplate"), + func() *v1.DevsyWorkspaceTemplate { return &v1.DevsyWorkspaceTemplate{} }, + func() *v1.DevsyWorkspaceTemplateList { return &v1.DevsyWorkspaceTemplateList{} }, + func(dst, src *v1.DevsyWorkspaceTemplateList) { dst.ListMeta = src.ListMeta }, + func(list *v1.DevsyWorkspaceTemplateList) []*v1.DevsyWorkspaceTemplate { + return gentype.ToPointerSlice(list.Items) + }, + func(list *v1.DevsyWorkspaceTemplateList, items []*v1.DevsyWorkspaceTemplate) { + list.Items = gentype.FromPointerSlice(items) + }, + ), + fake, + } +} diff --git a/pkg/clientset/versioned/typed/management/v1/fake/fake_management_client.go b/pkg/clientset/versioned/typed/management/v1/fake/fake_management_client.go index c4b89f5..22c7e51 100644 --- a/pkg/clientset/versioned/typed/management/v1/fake/fake_management_client.go +++ b/pkg/clientset/versioned/typed/management/v1/fake/fake_management_client.go @@ -52,20 +52,24 @@ func (c *FakeManagementV1) DatabaseConnectors() v1.DatabaseConnectorInterface { return newFakeDatabaseConnectors(c) } -func (c *FakeManagementV1) DevPodEnvironmentTemplates() v1.DevPodEnvironmentTemplateInterface { - return newFakeDevPodEnvironmentTemplates(c) +func (c *FakeManagementV1) DevsyEnvironmentTemplates() v1.DevsyEnvironmentTemplateInterface { + return newFakeDevsyEnvironmentTemplates(c) } -func (c *FakeManagementV1) DevPodWorkspaceInstances(namespace string) v1.DevPodWorkspaceInstanceInterface { - return newFakeDevPodWorkspaceInstances(c, namespace) +func (c *FakeManagementV1) DevsyUpgrades() v1.DevsyUpgradeInterface { + return newFakeDevsyUpgrades(c) +} + +func (c *FakeManagementV1) DevsyWorkspaceInstances(namespace string) v1.DevsyWorkspaceInstanceInterface { + return newFakeDevsyWorkspaceInstances(c, namespace) } -func (c *FakeManagementV1) DevPodWorkspacePresets() v1.DevPodWorkspacePresetInterface { - return newFakeDevPodWorkspacePresets(c) +func (c *FakeManagementV1) DevsyWorkspacePresets() v1.DevsyWorkspacePresetInterface { + return newFakeDevsyWorkspacePresets(c) } -func (c *FakeManagementV1) DevPodWorkspaceTemplates() v1.DevPodWorkspaceTemplateInterface { - return newFakeDevPodWorkspaceTemplates(c) +func (c *FakeManagementV1) DevsyWorkspaceTemplates() v1.DevsyWorkspaceTemplateInterface { + return newFakeDevsyWorkspaceTemplates(c) } func (c *FakeManagementV1) DirectClusterEndpointTokens() v1.DirectClusterEndpointTokenInterface { @@ -92,10 +96,6 @@ func (c *FakeManagementV1) LicenseTokens() v1.LicenseTokenInterface { return newFakeLicenseTokens(c) } -func (c *FakeManagementV1) DevsyUpgrades() v1.DevsyUpgradeInterface { - return newFakeDevsyUpgrades(c) -} - func (c *FakeManagementV1) NodeClaims(namespace string) v1.NodeClaimInterface { return newFakeNodeClaims(c, namespace) } diff --git a/pkg/clientset/versioned/typed/management/v1/generated_expansion.go b/pkg/clientset/versioned/typed/management/v1/generated_expansion.go index 49d2f81..9c6c909 100644 --- a/pkg/clientset/versioned/typed/management/v1/generated_expansion.go +++ b/pkg/clientset/versioned/typed/management/v1/generated_expansion.go @@ -22,13 +22,15 @@ type ConvertVirtualClusterConfigExpansion interface{} type DatabaseConnectorExpansion interface{} -type DevPodEnvironmentTemplateExpansion interface{} +type DevsyEnvironmentTemplateExpansion interface{} -type DevPodWorkspaceInstanceExpansion interface{} +type DevsyUpgradeExpansion interface{} + +type DevsyWorkspaceInstanceExpansion interface{} -type DevPodWorkspacePresetExpansion interface{} +type DevsyWorkspacePresetExpansion interface{} -type DevPodWorkspaceTemplateExpansion interface{} +type DevsyWorkspaceTemplateExpansion interface{} type DirectClusterEndpointTokenExpansion interface{} @@ -42,8 +44,6 @@ type LicenseExpansion interface{} type LicenseTokenExpansion interface{} -type DevsyUpgradeExpansion interface{} - type NodeClaimExpansion interface{} type NodeEnvironmentExpansion interface{} diff --git a/pkg/clientset/versioned/typed/management/v1/management_client.go b/pkg/clientset/versioned/typed/management/v1/management_client.go index 8571c39..e2ffa4e 100644 --- a/pkg/clientset/versioned/typed/management/v1/management_client.go +++ b/pkg/clientset/versioned/typed/management/v1/management_client.go @@ -22,17 +22,17 @@ type ManagementV1Interface interface { ConfigsGetter ConvertVirtualClusterConfigsGetter DatabaseConnectorsGetter - DevPodEnvironmentTemplatesGetter - DevPodWorkspaceInstancesGetter - DevPodWorkspacePresetsGetter - DevPodWorkspaceTemplatesGetter + DevsyEnvironmentTemplatesGetter + DevsyUpgradesGetter + DevsyWorkspaceInstancesGetter + DevsyWorkspacePresetsGetter + DevsyWorkspaceTemplatesGetter DirectClusterEndpointTokensGetter EventsGetter FeaturesGetter IngressAuthTokensGetter LicensesGetter LicenseTokensGetter - DevsyUpgradesGetter NodeClaimsGetter NodeEnvironmentsGetter NodeProvidersGetter @@ -105,20 +105,24 @@ func (c *ManagementV1Client) DatabaseConnectors() DatabaseConnectorInterface { return newDatabaseConnectors(c) } -func (c *ManagementV1Client) DevPodEnvironmentTemplates() DevPodEnvironmentTemplateInterface { - return newDevPodEnvironmentTemplates(c) +func (c *ManagementV1Client) DevsyEnvironmentTemplates() DevsyEnvironmentTemplateInterface { + return newDevsyEnvironmentTemplates(c) +} + +func (c *ManagementV1Client) DevsyUpgrades() DevsyUpgradeInterface { + return newDevsyUpgrades(c) } -func (c *ManagementV1Client) DevPodWorkspaceInstances(namespace string) DevPodWorkspaceInstanceInterface { - return newDevPodWorkspaceInstances(c, namespace) +func (c *ManagementV1Client) DevsyWorkspaceInstances(namespace string) DevsyWorkspaceInstanceInterface { + return newDevsyWorkspaceInstances(c, namespace) } -func (c *ManagementV1Client) DevPodWorkspacePresets() DevPodWorkspacePresetInterface { - return newDevPodWorkspacePresets(c) +func (c *ManagementV1Client) DevsyWorkspacePresets() DevsyWorkspacePresetInterface { + return newDevsyWorkspacePresets(c) } -func (c *ManagementV1Client) DevPodWorkspaceTemplates() DevPodWorkspaceTemplateInterface { - return newDevPodWorkspaceTemplates(c) +func (c *ManagementV1Client) DevsyWorkspaceTemplates() DevsyWorkspaceTemplateInterface { + return newDevsyWorkspaceTemplates(c) } func (c *ManagementV1Client) DirectClusterEndpointTokens() DirectClusterEndpointTokenInterface { @@ -145,10 +149,6 @@ func (c *ManagementV1Client) LicenseTokens() LicenseTokenInterface { return newLicenseTokens(c) } -func (c *ManagementV1Client) DevsyUpgrades() DevsyUpgradeInterface { - return newDevsyUpgrades(c) -} - func (c *ManagementV1Client) NodeClaims(namespace string) NodeClaimInterface { return newNodeClaims(c, namespace) } diff --git a/pkg/clientset/versioned/typed/management/v1/translatedevsyresourcename.go b/pkg/clientset/versioned/typed/management/v1/translatedevsyresourcename.go index 6adec6c..c527219 100644 --- a/pkg/clientset/versioned/typed/management/v1/translatedevsyresourcename.go +++ b/pkg/clientset/versioned/typed/management/v1/translatedevsyresourcename.go @@ -47,9 +47,7 @@ func newTranslateDevsyResourceNames(c *ManagementV1Client) *translateDevsyResour c.RESTClient(), scheme.ParameterCodec, "", - func() *managementv1.TranslateDevsyResourceName { - return &managementv1.TranslateDevsyResourceName{} - }, + func() *managementv1.TranslateDevsyResourceName { return &managementv1.TranslateDevsyResourceName{} }, func() *managementv1.TranslateDevsyResourceNameList { return &managementv1.TranslateDevsyResourceNameList{} }, diff --git a/pkg/clientset/versioned/typed/storage/v1/devpodenvironmenttemplate.go b/pkg/clientset/versioned/typed/storage/v1/devpodenvironmenttemplate.go deleted file mode 100644 index 96f5b7b..0000000 --- a/pkg/clientset/versioned/typed/storage/v1/devpodenvironmenttemplate.go +++ /dev/null @@ -1,52 +0,0 @@ -// Code generated by client-gen. DO NOT EDIT. - -package v1 - -import ( - context "context" - - storagev1 "github.com/devsy-org/api/pkg/apis/storage/v1" - scheme "github.com/devsy-org/api/pkg/clientset/versioned/scheme" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" - types "k8s.io/apimachinery/pkg/types" - watch "k8s.io/apimachinery/pkg/watch" - gentype "k8s.io/client-go/gentype" -) - -// DevPodEnvironmentTemplatesGetter has a method to return a DevPodEnvironmentTemplateInterface. -// A group's client should implement this interface. -type DevPodEnvironmentTemplatesGetter interface { - DevPodEnvironmentTemplates() DevPodEnvironmentTemplateInterface -} - -// DevPodEnvironmentTemplateInterface has methods to work with DevPodEnvironmentTemplate resources. -type DevPodEnvironmentTemplateInterface interface { - Create(ctx context.Context, devPodEnvironmentTemplate *storagev1.DevPodEnvironmentTemplate, opts metav1.CreateOptions) (*storagev1.DevPodEnvironmentTemplate, error) - Update(ctx context.Context, devPodEnvironmentTemplate *storagev1.DevPodEnvironmentTemplate, opts metav1.UpdateOptions) (*storagev1.DevPodEnvironmentTemplate, error) - Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error - DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error - Get(ctx context.Context, name string, opts metav1.GetOptions) (*storagev1.DevPodEnvironmentTemplate, error) - List(ctx context.Context, opts metav1.ListOptions) (*storagev1.DevPodEnvironmentTemplateList, error) - Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error) - Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *storagev1.DevPodEnvironmentTemplate, err error) - DevPodEnvironmentTemplateExpansion -} - -// devPodEnvironmentTemplates implements DevPodEnvironmentTemplateInterface -type devPodEnvironmentTemplates struct { - *gentype.ClientWithList[*storagev1.DevPodEnvironmentTemplate, *storagev1.DevPodEnvironmentTemplateList] -} - -// newDevPodEnvironmentTemplates returns a DevPodEnvironmentTemplates -func newDevPodEnvironmentTemplates(c *StorageV1Client) *devPodEnvironmentTemplates { - return &devPodEnvironmentTemplates{ - gentype.NewClientWithList[*storagev1.DevPodEnvironmentTemplate, *storagev1.DevPodEnvironmentTemplateList]( - "devpodenvironmenttemplates", - c.RESTClient(), - scheme.ParameterCodec, - "", - func() *storagev1.DevPodEnvironmentTemplate { return &storagev1.DevPodEnvironmentTemplate{} }, - func() *storagev1.DevPodEnvironmentTemplateList { return &storagev1.DevPodEnvironmentTemplateList{} }, - ), - } -} diff --git a/pkg/clientset/versioned/typed/storage/v1/devpodworkspaceinstance.go b/pkg/clientset/versioned/typed/storage/v1/devpodworkspaceinstance.go deleted file mode 100644 index 72cdd83..0000000 --- a/pkg/clientset/versioned/typed/storage/v1/devpodworkspaceinstance.go +++ /dev/null @@ -1,52 +0,0 @@ -// Code generated by client-gen. DO NOT EDIT. - -package v1 - -import ( - context "context" - - storagev1 "github.com/devsy-org/api/pkg/apis/storage/v1" - scheme "github.com/devsy-org/api/pkg/clientset/versioned/scheme" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" - types "k8s.io/apimachinery/pkg/types" - watch "k8s.io/apimachinery/pkg/watch" - gentype "k8s.io/client-go/gentype" -) - -// DevPodWorkspaceInstancesGetter has a method to return a DevPodWorkspaceInstanceInterface. -// A group's client should implement this interface. -type DevPodWorkspaceInstancesGetter interface { - DevPodWorkspaceInstances(namespace string) DevPodWorkspaceInstanceInterface -} - -// DevPodWorkspaceInstanceInterface has methods to work with DevPodWorkspaceInstance resources. -type DevPodWorkspaceInstanceInterface interface { - Create(ctx context.Context, devPodWorkspaceInstance *storagev1.DevPodWorkspaceInstance, opts metav1.CreateOptions) (*storagev1.DevPodWorkspaceInstance, error) - Update(ctx context.Context, devPodWorkspaceInstance *storagev1.DevPodWorkspaceInstance, opts metav1.UpdateOptions) (*storagev1.DevPodWorkspaceInstance, error) - Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error - DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error - Get(ctx context.Context, name string, opts metav1.GetOptions) (*storagev1.DevPodWorkspaceInstance, error) - List(ctx context.Context, opts metav1.ListOptions) (*storagev1.DevPodWorkspaceInstanceList, error) - Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error) - Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *storagev1.DevPodWorkspaceInstance, err error) - DevPodWorkspaceInstanceExpansion -} - -// devPodWorkspaceInstances implements DevPodWorkspaceInstanceInterface -type devPodWorkspaceInstances struct { - *gentype.ClientWithList[*storagev1.DevPodWorkspaceInstance, *storagev1.DevPodWorkspaceInstanceList] -} - -// newDevPodWorkspaceInstances returns a DevPodWorkspaceInstances -func newDevPodWorkspaceInstances(c *StorageV1Client, namespace string) *devPodWorkspaceInstances { - return &devPodWorkspaceInstances{ - gentype.NewClientWithList[*storagev1.DevPodWorkspaceInstance, *storagev1.DevPodWorkspaceInstanceList]( - "devpodworkspaceinstances", - c.RESTClient(), - scheme.ParameterCodec, - namespace, - func() *storagev1.DevPodWorkspaceInstance { return &storagev1.DevPodWorkspaceInstance{} }, - func() *storagev1.DevPodWorkspaceInstanceList { return &storagev1.DevPodWorkspaceInstanceList{} }, - ), - } -} diff --git a/pkg/clientset/versioned/typed/storage/v1/devpodworkspacepreset.go b/pkg/clientset/versioned/typed/storage/v1/devpodworkspacepreset.go deleted file mode 100644 index da87f48..0000000 --- a/pkg/clientset/versioned/typed/storage/v1/devpodworkspacepreset.go +++ /dev/null @@ -1,52 +0,0 @@ -// Code generated by client-gen. DO NOT EDIT. - -package v1 - -import ( - context "context" - - storagev1 "github.com/devsy-org/api/pkg/apis/storage/v1" - scheme "github.com/devsy-org/api/pkg/clientset/versioned/scheme" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" - types "k8s.io/apimachinery/pkg/types" - watch "k8s.io/apimachinery/pkg/watch" - gentype "k8s.io/client-go/gentype" -) - -// DevPodWorkspacePresetsGetter has a method to return a DevPodWorkspacePresetInterface. -// A group's client should implement this interface. -type DevPodWorkspacePresetsGetter interface { - DevPodWorkspacePresets() DevPodWorkspacePresetInterface -} - -// DevPodWorkspacePresetInterface has methods to work with DevPodWorkspacePreset resources. -type DevPodWorkspacePresetInterface interface { - Create(ctx context.Context, devPodWorkspacePreset *storagev1.DevPodWorkspacePreset, opts metav1.CreateOptions) (*storagev1.DevPodWorkspacePreset, error) - Update(ctx context.Context, devPodWorkspacePreset *storagev1.DevPodWorkspacePreset, opts metav1.UpdateOptions) (*storagev1.DevPodWorkspacePreset, error) - Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error - DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error - Get(ctx context.Context, name string, opts metav1.GetOptions) (*storagev1.DevPodWorkspacePreset, error) - List(ctx context.Context, opts metav1.ListOptions) (*storagev1.DevPodWorkspacePresetList, error) - Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error) - Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *storagev1.DevPodWorkspacePreset, err error) - DevPodWorkspacePresetExpansion -} - -// devPodWorkspacePresets implements DevPodWorkspacePresetInterface -type devPodWorkspacePresets struct { - *gentype.ClientWithList[*storagev1.DevPodWorkspacePreset, *storagev1.DevPodWorkspacePresetList] -} - -// newDevPodWorkspacePresets returns a DevPodWorkspacePresets -func newDevPodWorkspacePresets(c *StorageV1Client) *devPodWorkspacePresets { - return &devPodWorkspacePresets{ - gentype.NewClientWithList[*storagev1.DevPodWorkspacePreset, *storagev1.DevPodWorkspacePresetList]( - "devpodworkspacepresets", - c.RESTClient(), - scheme.ParameterCodec, - "", - func() *storagev1.DevPodWorkspacePreset { return &storagev1.DevPodWorkspacePreset{} }, - func() *storagev1.DevPodWorkspacePresetList { return &storagev1.DevPodWorkspacePresetList{} }, - ), - } -} diff --git a/pkg/clientset/versioned/typed/storage/v1/devpodworkspacetemplate.go b/pkg/clientset/versioned/typed/storage/v1/devpodworkspacetemplate.go deleted file mode 100644 index a662a8b..0000000 --- a/pkg/clientset/versioned/typed/storage/v1/devpodworkspacetemplate.go +++ /dev/null @@ -1,54 +0,0 @@ -// Code generated by client-gen. DO NOT EDIT. - -package v1 - -import ( - context "context" - - storagev1 "github.com/devsy-org/api/pkg/apis/storage/v1" - scheme "github.com/devsy-org/api/pkg/clientset/versioned/scheme" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" - types "k8s.io/apimachinery/pkg/types" - watch "k8s.io/apimachinery/pkg/watch" - gentype "k8s.io/client-go/gentype" -) - -// DevPodWorkspaceTemplatesGetter has a method to return a DevPodWorkspaceTemplateInterface. -// A group's client should implement this interface. -type DevPodWorkspaceTemplatesGetter interface { - DevPodWorkspaceTemplates() DevPodWorkspaceTemplateInterface -} - -// DevPodWorkspaceTemplateInterface has methods to work with DevPodWorkspaceTemplate resources. -type DevPodWorkspaceTemplateInterface interface { - Create(ctx context.Context, devPodWorkspaceTemplate *storagev1.DevPodWorkspaceTemplate, opts metav1.CreateOptions) (*storagev1.DevPodWorkspaceTemplate, error) - Update(ctx context.Context, devPodWorkspaceTemplate *storagev1.DevPodWorkspaceTemplate, opts metav1.UpdateOptions) (*storagev1.DevPodWorkspaceTemplate, error) - // Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus(). - UpdateStatus(ctx context.Context, devPodWorkspaceTemplate *storagev1.DevPodWorkspaceTemplate, opts metav1.UpdateOptions) (*storagev1.DevPodWorkspaceTemplate, error) - Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error - DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error - Get(ctx context.Context, name string, opts metav1.GetOptions) (*storagev1.DevPodWorkspaceTemplate, error) - List(ctx context.Context, opts metav1.ListOptions) (*storagev1.DevPodWorkspaceTemplateList, error) - Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error) - Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *storagev1.DevPodWorkspaceTemplate, err error) - DevPodWorkspaceTemplateExpansion -} - -// devPodWorkspaceTemplates implements DevPodWorkspaceTemplateInterface -type devPodWorkspaceTemplates struct { - *gentype.ClientWithList[*storagev1.DevPodWorkspaceTemplate, *storagev1.DevPodWorkspaceTemplateList] -} - -// newDevPodWorkspaceTemplates returns a DevPodWorkspaceTemplates -func newDevPodWorkspaceTemplates(c *StorageV1Client) *devPodWorkspaceTemplates { - return &devPodWorkspaceTemplates{ - gentype.NewClientWithList[*storagev1.DevPodWorkspaceTemplate, *storagev1.DevPodWorkspaceTemplateList]( - "devpodworkspacetemplates", - c.RESTClient(), - scheme.ParameterCodec, - "", - func() *storagev1.DevPodWorkspaceTemplate { return &storagev1.DevPodWorkspaceTemplate{} }, - func() *storagev1.DevPodWorkspaceTemplateList { return &storagev1.DevPodWorkspaceTemplateList{} }, - ), - } -} diff --git a/pkg/clientset/versioned/typed/storage/v1/devsyenvironmenttemplate.go b/pkg/clientset/versioned/typed/storage/v1/devsyenvironmenttemplate.go new file mode 100644 index 0000000..da8796b --- /dev/null +++ b/pkg/clientset/versioned/typed/storage/v1/devsyenvironmenttemplate.go @@ -0,0 +1,52 @@ +// Code generated by client-gen. DO NOT EDIT. + +package v1 + +import ( + context "context" + + storagev1 "github.com/devsy-org/api/pkg/apis/storage/v1" + scheme "github.com/devsy-org/api/pkg/clientset/versioned/scheme" + metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" + types "k8s.io/apimachinery/pkg/types" + watch "k8s.io/apimachinery/pkg/watch" + gentype "k8s.io/client-go/gentype" +) + +// DevsyEnvironmentTemplatesGetter has a method to return a DevsyEnvironmentTemplateInterface. +// A group's client should implement this interface. +type DevsyEnvironmentTemplatesGetter interface { + DevsyEnvironmentTemplates() DevsyEnvironmentTemplateInterface +} + +// DevsyEnvironmentTemplateInterface has methods to work with DevsyEnvironmentTemplate resources. +type DevsyEnvironmentTemplateInterface interface { + Create(ctx context.Context, devsyEnvironmentTemplate *storagev1.DevsyEnvironmentTemplate, opts metav1.CreateOptions) (*storagev1.DevsyEnvironmentTemplate, error) + Update(ctx context.Context, devsyEnvironmentTemplate *storagev1.DevsyEnvironmentTemplate, opts metav1.UpdateOptions) (*storagev1.DevsyEnvironmentTemplate, error) + Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error + DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error + Get(ctx context.Context, name string, opts metav1.GetOptions) (*storagev1.DevsyEnvironmentTemplate, error) + List(ctx context.Context, opts metav1.ListOptions) (*storagev1.DevsyEnvironmentTemplateList, error) + Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error) + Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *storagev1.DevsyEnvironmentTemplate, err error) + DevsyEnvironmentTemplateExpansion +} + +// devsyEnvironmentTemplates implements DevsyEnvironmentTemplateInterface +type devsyEnvironmentTemplates struct { + *gentype.ClientWithList[*storagev1.DevsyEnvironmentTemplate, *storagev1.DevsyEnvironmentTemplateList] +} + +// newDevsyEnvironmentTemplates returns a DevsyEnvironmentTemplates +func newDevsyEnvironmentTemplates(c *StorageV1Client) *devsyEnvironmentTemplates { + return &devsyEnvironmentTemplates{ + gentype.NewClientWithList[*storagev1.DevsyEnvironmentTemplate, *storagev1.DevsyEnvironmentTemplateList]( + "devsyenvironmenttemplates", + c.RESTClient(), + scheme.ParameterCodec, + "", + func() *storagev1.DevsyEnvironmentTemplate { return &storagev1.DevsyEnvironmentTemplate{} }, + func() *storagev1.DevsyEnvironmentTemplateList { return &storagev1.DevsyEnvironmentTemplateList{} }, + ), + } +} diff --git a/pkg/clientset/versioned/typed/storage/v1/devsyworkspaceinstance.go b/pkg/clientset/versioned/typed/storage/v1/devsyworkspaceinstance.go new file mode 100644 index 0000000..773d662 --- /dev/null +++ b/pkg/clientset/versioned/typed/storage/v1/devsyworkspaceinstance.go @@ -0,0 +1,52 @@ +// Code generated by client-gen. DO NOT EDIT. + +package v1 + +import ( + context "context" + + storagev1 "github.com/devsy-org/api/pkg/apis/storage/v1" + scheme "github.com/devsy-org/api/pkg/clientset/versioned/scheme" + metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" + types "k8s.io/apimachinery/pkg/types" + watch "k8s.io/apimachinery/pkg/watch" + gentype "k8s.io/client-go/gentype" +) + +// DevsyWorkspaceInstancesGetter has a method to return a DevsyWorkspaceInstanceInterface. +// A group's client should implement this interface. +type DevsyWorkspaceInstancesGetter interface { + DevsyWorkspaceInstances(namespace string) DevsyWorkspaceInstanceInterface +} + +// DevsyWorkspaceInstanceInterface has methods to work with DevsyWorkspaceInstance resources. +type DevsyWorkspaceInstanceInterface interface { + Create(ctx context.Context, devsyWorkspaceInstance *storagev1.DevsyWorkspaceInstance, opts metav1.CreateOptions) (*storagev1.DevsyWorkspaceInstance, error) + Update(ctx context.Context, devsyWorkspaceInstance *storagev1.DevsyWorkspaceInstance, opts metav1.UpdateOptions) (*storagev1.DevsyWorkspaceInstance, error) + Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error + DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error + Get(ctx context.Context, name string, opts metav1.GetOptions) (*storagev1.DevsyWorkspaceInstance, error) + List(ctx context.Context, opts metav1.ListOptions) (*storagev1.DevsyWorkspaceInstanceList, error) + Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error) + Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *storagev1.DevsyWorkspaceInstance, err error) + DevsyWorkspaceInstanceExpansion +} + +// devsyWorkspaceInstances implements DevsyWorkspaceInstanceInterface +type devsyWorkspaceInstances struct { + *gentype.ClientWithList[*storagev1.DevsyWorkspaceInstance, *storagev1.DevsyWorkspaceInstanceList] +} + +// newDevsyWorkspaceInstances returns a DevsyWorkspaceInstances +func newDevsyWorkspaceInstances(c *StorageV1Client, namespace string) *devsyWorkspaceInstances { + return &devsyWorkspaceInstances{ + gentype.NewClientWithList[*storagev1.DevsyWorkspaceInstance, *storagev1.DevsyWorkspaceInstanceList]( + "devsyworkspaceinstances", + c.RESTClient(), + scheme.ParameterCodec, + namespace, + func() *storagev1.DevsyWorkspaceInstance { return &storagev1.DevsyWorkspaceInstance{} }, + func() *storagev1.DevsyWorkspaceInstanceList { return &storagev1.DevsyWorkspaceInstanceList{} }, + ), + } +} diff --git a/pkg/clientset/versioned/typed/storage/v1/devsyworkspacepreset.go b/pkg/clientset/versioned/typed/storage/v1/devsyworkspacepreset.go new file mode 100644 index 0000000..9998c1a --- /dev/null +++ b/pkg/clientset/versioned/typed/storage/v1/devsyworkspacepreset.go @@ -0,0 +1,52 @@ +// Code generated by client-gen. DO NOT EDIT. + +package v1 + +import ( + context "context" + + storagev1 "github.com/devsy-org/api/pkg/apis/storage/v1" + scheme "github.com/devsy-org/api/pkg/clientset/versioned/scheme" + metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" + types "k8s.io/apimachinery/pkg/types" + watch "k8s.io/apimachinery/pkg/watch" + gentype "k8s.io/client-go/gentype" +) + +// DevsyWorkspacePresetsGetter has a method to return a DevsyWorkspacePresetInterface. +// A group's client should implement this interface. +type DevsyWorkspacePresetsGetter interface { + DevsyWorkspacePresets() DevsyWorkspacePresetInterface +} + +// DevsyWorkspacePresetInterface has methods to work with DevsyWorkspacePreset resources. +type DevsyWorkspacePresetInterface interface { + Create(ctx context.Context, devsyWorkspacePreset *storagev1.DevsyWorkspacePreset, opts metav1.CreateOptions) (*storagev1.DevsyWorkspacePreset, error) + Update(ctx context.Context, devsyWorkspacePreset *storagev1.DevsyWorkspacePreset, opts metav1.UpdateOptions) (*storagev1.DevsyWorkspacePreset, error) + Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error + DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error + Get(ctx context.Context, name string, opts metav1.GetOptions) (*storagev1.DevsyWorkspacePreset, error) + List(ctx context.Context, opts metav1.ListOptions) (*storagev1.DevsyWorkspacePresetList, error) + Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error) + Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *storagev1.DevsyWorkspacePreset, err error) + DevsyWorkspacePresetExpansion +} + +// devsyWorkspacePresets implements DevsyWorkspacePresetInterface +type devsyWorkspacePresets struct { + *gentype.ClientWithList[*storagev1.DevsyWorkspacePreset, *storagev1.DevsyWorkspacePresetList] +} + +// newDevsyWorkspacePresets returns a DevsyWorkspacePresets +func newDevsyWorkspacePresets(c *StorageV1Client) *devsyWorkspacePresets { + return &devsyWorkspacePresets{ + gentype.NewClientWithList[*storagev1.DevsyWorkspacePreset, *storagev1.DevsyWorkspacePresetList]( + "devsyworkspacepresets", + c.RESTClient(), + scheme.ParameterCodec, + "", + func() *storagev1.DevsyWorkspacePreset { return &storagev1.DevsyWorkspacePreset{} }, + func() *storagev1.DevsyWorkspacePresetList { return &storagev1.DevsyWorkspacePresetList{} }, + ), + } +} diff --git a/pkg/clientset/versioned/typed/storage/v1/devsyworkspacetemplate.go b/pkg/clientset/versioned/typed/storage/v1/devsyworkspacetemplate.go new file mode 100644 index 0000000..4639d83 --- /dev/null +++ b/pkg/clientset/versioned/typed/storage/v1/devsyworkspacetemplate.go @@ -0,0 +1,54 @@ +// Code generated by client-gen. DO NOT EDIT. + +package v1 + +import ( + context "context" + + storagev1 "github.com/devsy-org/api/pkg/apis/storage/v1" + scheme "github.com/devsy-org/api/pkg/clientset/versioned/scheme" + metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" + types "k8s.io/apimachinery/pkg/types" + watch "k8s.io/apimachinery/pkg/watch" + gentype "k8s.io/client-go/gentype" +) + +// DevsyWorkspaceTemplatesGetter has a method to return a DevsyWorkspaceTemplateInterface. +// A group's client should implement this interface. +type DevsyWorkspaceTemplatesGetter interface { + DevsyWorkspaceTemplates() DevsyWorkspaceTemplateInterface +} + +// DevsyWorkspaceTemplateInterface has methods to work with DevsyWorkspaceTemplate resources. +type DevsyWorkspaceTemplateInterface interface { + Create(ctx context.Context, devsyWorkspaceTemplate *storagev1.DevsyWorkspaceTemplate, opts metav1.CreateOptions) (*storagev1.DevsyWorkspaceTemplate, error) + Update(ctx context.Context, devsyWorkspaceTemplate *storagev1.DevsyWorkspaceTemplate, opts metav1.UpdateOptions) (*storagev1.DevsyWorkspaceTemplate, error) + // Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus(). + UpdateStatus(ctx context.Context, devsyWorkspaceTemplate *storagev1.DevsyWorkspaceTemplate, opts metav1.UpdateOptions) (*storagev1.DevsyWorkspaceTemplate, error) + Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error + DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error + Get(ctx context.Context, name string, opts metav1.GetOptions) (*storagev1.DevsyWorkspaceTemplate, error) + List(ctx context.Context, opts metav1.ListOptions) (*storagev1.DevsyWorkspaceTemplateList, error) + Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error) + Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *storagev1.DevsyWorkspaceTemplate, err error) + DevsyWorkspaceTemplateExpansion +} + +// devsyWorkspaceTemplates implements DevsyWorkspaceTemplateInterface +type devsyWorkspaceTemplates struct { + *gentype.ClientWithList[*storagev1.DevsyWorkspaceTemplate, *storagev1.DevsyWorkspaceTemplateList] +} + +// newDevsyWorkspaceTemplates returns a DevsyWorkspaceTemplates +func newDevsyWorkspaceTemplates(c *StorageV1Client) *devsyWorkspaceTemplates { + return &devsyWorkspaceTemplates{ + gentype.NewClientWithList[*storagev1.DevsyWorkspaceTemplate, *storagev1.DevsyWorkspaceTemplateList]( + "devsyworkspacetemplates", + c.RESTClient(), + scheme.ParameterCodec, + "", + func() *storagev1.DevsyWorkspaceTemplate { return &storagev1.DevsyWorkspaceTemplate{} }, + func() *storagev1.DevsyWorkspaceTemplateList { return &storagev1.DevsyWorkspaceTemplateList{} }, + ), + } +} diff --git a/pkg/clientset/versioned/typed/storage/v1/fake/fake_devpodenvironmenttemplate.go b/pkg/clientset/versioned/typed/storage/v1/fake/fake_devpodenvironmenttemplate.go deleted file mode 100644 index 83b8095..0000000 --- a/pkg/clientset/versioned/typed/storage/v1/fake/fake_devpodenvironmenttemplate.go +++ /dev/null @@ -1,36 +0,0 @@ -// Code generated by client-gen. DO NOT EDIT. - -package fake - -import ( - v1 "github.com/devsy-org/api/pkg/apis/storage/v1" - storagev1 "github.com/devsy-org/api/pkg/clientset/versioned/typed/storage/v1" - gentype "k8s.io/client-go/gentype" -) - -// fakeDevPodEnvironmentTemplates implements DevPodEnvironmentTemplateInterface -type fakeDevPodEnvironmentTemplates struct { - *gentype.FakeClientWithList[*v1.DevPodEnvironmentTemplate, *v1.DevPodEnvironmentTemplateList] - Fake *FakeStorageV1 -} - -func newFakeDevPodEnvironmentTemplates(fake *FakeStorageV1) storagev1.DevPodEnvironmentTemplateInterface { - return &fakeDevPodEnvironmentTemplates{ - gentype.NewFakeClientWithList[*v1.DevPodEnvironmentTemplate, *v1.DevPodEnvironmentTemplateList]( - fake.Fake, - "", - v1.SchemeGroupVersion.WithResource("devpodenvironmenttemplates"), - v1.SchemeGroupVersion.WithKind("DevPodEnvironmentTemplate"), - func() *v1.DevPodEnvironmentTemplate { return &v1.DevPodEnvironmentTemplate{} }, - func() *v1.DevPodEnvironmentTemplateList { return &v1.DevPodEnvironmentTemplateList{} }, - func(dst, src *v1.DevPodEnvironmentTemplateList) { dst.ListMeta = src.ListMeta }, - func(list *v1.DevPodEnvironmentTemplateList) []*v1.DevPodEnvironmentTemplate { - return gentype.ToPointerSlice(list.Items) - }, - func(list *v1.DevPodEnvironmentTemplateList, items []*v1.DevPodEnvironmentTemplate) { - list.Items = gentype.FromPointerSlice(items) - }, - ), - fake, - } -} diff --git a/pkg/clientset/versioned/typed/storage/v1/fake/fake_devpodworkspaceinstance.go b/pkg/clientset/versioned/typed/storage/v1/fake/fake_devpodworkspaceinstance.go deleted file mode 100644 index 646a89d..0000000 --- a/pkg/clientset/versioned/typed/storage/v1/fake/fake_devpodworkspaceinstance.go +++ /dev/null @@ -1,36 +0,0 @@ -// Code generated by client-gen. DO NOT EDIT. - -package fake - -import ( - v1 "github.com/devsy-org/api/pkg/apis/storage/v1" - storagev1 "github.com/devsy-org/api/pkg/clientset/versioned/typed/storage/v1" - gentype "k8s.io/client-go/gentype" -) - -// fakeDevPodWorkspaceInstances implements DevPodWorkspaceInstanceInterface -type fakeDevPodWorkspaceInstances struct { - *gentype.FakeClientWithList[*v1.DevPodWorkspaceInstance, *v1.DevPodWorkspaceInstanceList] - Fake *FakeStorageV1 -} - -func newFakeDevPodWorkspaceInstances(fake *FakeStorageV1, namespace string) storagev1.DevPodWorkspaceInstanceInterface { - return &fakeDevPodWorkspaceInstances{ - gentype.NewFakeClientWithList[*v1.DevPodWorkspaceInstance, *v1.DevPodWorkspaceInstanceList]( - fake.Fake, - namespace, - v1.SchemeGroupVersion.WithResource("devpodworkspaceinstances"), - v1.SchemeGroupVersion.WithKind("DevPodWorkspaceInstance"), - func() *v1.DevPodWorkspaceInstance { return &v1.DevPodWorkspaceInstance{} }, - func() *v1.DevPodWorkspaceInstanceList { return &v1.DevPodWorkspaceInstanceList{} }, - func(dst, src *v1.DevPodWorkspaceInstanceList) { dst.ListMeta = src.ListMeta }, - func(list *v1.DevPodWorkspaceInstanceList) []*v1.DevPodWorkspaceInstance { - return gentype.ToPointerSlice(list.Items) - }, - func(list *v1.DevPodWorkspaceInstanceList, items []*v1.DevPodWorkspaceInstance) { - list.Items = gentype.FromPointerSlice(items) - }, - ), - fake, - } -} diff --git a/pkg/clientset/versioned/typed/storage/v1/fake/fake_devpodworkspacepreset.go b/pkg/clientset/versioned/typed/storage/v1/fake/fake_devpodworkspacepreset.go deleted file mode 100644 index f3b535e..0000000 --- a/pkg/clientset/versioned/typed/storage/v1/fake/fake_devpodworkspacepreset.go +++ /dev/null @@ -1,36 +0,0 @@ -// Code generated by client-gen. DO NOT EDIT. - -package fake - -import ( - v1 "github.com/devsy-org/api/pkg/apis/storage/v1" - storagev1 "github.com/devsy-org/api/pkg/clientset/versioned/typed/storage/v1" - gentype "k8s.io/client-go/gentype" -) - -// fakeDevPodWorkspacePresets implements DevPodWorkspacePresetInterface -type fakeDevPodWorkspacePresets struct { - *gentype.FakeClientWithList[*v1.DevPodWorkspacePreset, *v1.DevPodWorkspacePresetList] - Fake *FakeStorageV1 -} - -func newFakeDevPodWorkspacePresets(fake *FakeStorageV1) storagev1.DevPodWorkspacePresetInterface { - return &fakeDevPodWorkspacePresets{ - gentype.NewFakeClientWithList[*v1.DevPodWorkspacePreset, *v1.DevPodWorkspacePresetList]( - fake.Fake, - "", - v1.SchemeGroupVersion.WithResource("devpodworkspacepresets"), - v1.SchemeGroupVersion.WithKind("DevPodWorkspacePreset"), - func() *v1.DevPodWorkspacePreset { return &v1.DevPodWorkspacePreset{} }, - func() *v1.DevPodWorkspacePresetList { return &v1.DevPodWorkspacePresetList{} }, - func(dst, src *v1.DevPodWorkspacePresetList) { dst.ListMeta = src.ListMeta }, - func(list *v1.DevPodWorkspacePresetList) []*v1.DevPodWorkspacePreset { - return gentype.ToPointerSlice(list.Items) - }, - func(list *v1.DevPodWorkspacePresetList, items []*v1.DevPodWorkspacePreset) { - list.Items = gentype.FromPointerSlice(items) - }, - ), - fake, - } -} diff --git a/pkg/clientset/versioned/typed/storage/v1/fake/fake_devpodworkspacetemplate.go b/pkg/clientset/versioned/typed/storage/v1/fake/fake_devpodworkspacetemplate.go deleted file mode 100644 index d31838c..0000000 --- a/pkg/clientset/versioned/typed/storage/v1/fake/fake_devpodworkspacetemplate.go +++ /dev/null @@ -1,36 +0,0 @@ -// Code generated by client-gen. DO NOT EDIT. - -package fake - -import ( - v1 "github.com/devsy-org/api/pkg/apis/storage/v1" - storagev1 "github.com/devsy-org/api/pkg/clientset/versioned/typed/storage/v1" - gentype "k8s.io/client-go/gentype" -) - -// fakeDevPodWorkspaceTemplates implements DevPodWorkspaceTemplateInterface -type fakeDevPodWorkspaceTemplates struct { - *gentype.FakeClientWithList[*v1.DevPodWorkspaceTemplate, *v1.DevPodWorkspaceTemplateList] - Fake *FakeStorageV1 -} - -func newFakeDevPodWorkspaceTemplates(fake *FakeStorageV1) storagev1.DevPodWorkspaceTemplateInterface { - return &fakeDevPodWorkspaceTemplates{ - gentype.NewFakeClientWithList[*v1.DevPodWorkspaceTemplate, *v1.DevPodWorkspaceTemplateList]( - fake.Fake, - "", - v1.SchemeGroupVersion.WithResource("devpodworkspacetemplates"), - v1.SchemeGroupVersion.WithKind("DevPodWorkspaceTemplate"), - func() *v1.DevPodWorkspaceTemplate { return &v1.DevPodWorkspaceTemplate{} }, - func() *v1.DevPodWorkspaceTemplateList { return &v1.DevPodWorkspaceTemplateList{} }, - func(dst, src *v1.DevPodWorkspaceTemplateList) { dst.ListMeta = src.ListMeta }, - func(list *v1.DevPodWorkspaceTemplateList) []*v1.DevPodWorkspaceTemplate { - return gentype.ToPointerSlice(list.Items) - }, - func(list *v1.DevPodWorkspaceTemplateList, items []*v1.DevPodWorkspaceTemplate) { - list.Items = gentype.FromPointerSlice(items) - }, - ), - fake, - } -} diff --git a/pkg/clientset/versioned/typed/storage/v1/fake/fake_devsyenvironmenttemplate.go b/pkg/clientset/versioned/typed/storage/v1/fake/fake_devsyenvironmenttemplate.go new file mode 100644 index 0000000..3a4d78f --- /dev/null +++ b/pkg/clientset/versioned/typed/storage/v1/fake/fake_devsyenvironmenttemplate.go @@ -0,0 +1,36 @@ +// Code generated by client-gen. DO NOT EDIT. + +package fake + +import ( + v1 "github.com/devsy-org/api/pkg/apis/storage/v1" + storagev1 "github.com/devsy-org/api/pkg/clientset/versioned/typed/storage/v1" + gentype "k8s.io/client-go/gentype" +) + +// fakeDevsyEnvironmentTemplates implements DevsyEnvironmentTemplateInterface +type fakeDevsyEnvironmentTemplates struct { + *gentype.FakeClientWithList[*v1.DevsyEnvironmentTemplate, *v1.DevsyEnvironmentTemplateList] + Fake *FakeStorageV1 +} + +func newFakeDevsyEnvironmentTemplates(fake *FakeStorageV1) storagev1.DevsyEnvironmentTemplateInterface { + return &fakeDevsyEnvironmentTemplates{ + gentype.NewFakeClientWithList[*v1.DevsyEnvironmentTemplate, *v1.DevsyEnvironmentTemplateList]( + fake.Fake, + "", + v1.SchemeGroupVersion.WithResource("devsyenvironmenttemplates"), + v1.SchemeGroupVersion.WithKind("DevsyEnvironmentTemplate"), + func() *v1.DevsyEnvironmentTemplate { return &v1.DevsyEnvironmentTemplate{} }, + func() *v1.DevsyEnvironmentTemplateList { return &v1.DevsyEnvironmentTemplateList{} }, + func(dst, src *v1.DevsyEnvironmentTemplateList) { dst.ListMeta = src.ListMeta }, + func(list *v1.DevsyEnvironmentTemplateList) []*v1.DevsyEnvironmentTemplate { + return gentype.ToPointerSlice(list.Items) + }, + func(list *v1.DevsyEnvironmentTemplateList, items []*v1.DevsyEnvironmentTemplate) { + list.Items = gentype.FromPointerSlice(items) + }, + ), + fake, + } +} diff --git a/pkg/clientset/versioned/typed/storage/v1/fake/fake_devsyworkspaceinstance.go b/pkg/clientset/versioned/typed/storage/v1/fake/fake_devsyworkspaceinstance.go new file mode 100644 index 0000000..90ad3c8 --- /dev/null +++ b/pkg/clientset/versioned/typed/storage/v1/fake/fake_devsyworkspaceinstance.go @@ -0,0 +1,36 @@ +// Code generated by client-gen. DO NOT EDIT. + +package fake + +import ( + v1 "github.com/devsy-org/api/pkg/apis/storage/v1" + storagev1 "github.com/devsy-org/api/pkg/clientset/versioned/typed/storage/v1" + gentype "k8s.io/client-go/gentype" +) + +// fakeDevsyWorkspaceInstances implements DevsyWorkspaceInstanceInterface +type fakeDevsyWorkspaceInstances struct { + *gentype.FakeClientWithList[*v1.DevsyWorkspaceInstance, *v1.DevsyWorkspaceInstanceList] + Fake *FakeStorageV1 +} + +func newFakeDevsyWorkspaceInstances(fake *FakeStorageV1, namespace string) storagev1.DevsyWorkspaceInstanceInterface { + return &fakeDevsyWorkspaceInstances{ + gentype.NewFakeClientWithList[*v1.DevsyWorkspaceInstance, *v1.DevsyWorkspaceInstanceList]( + fake.Fake, + namespace, + v1.SchemeGroupVersion.WithResource("devsyworkspaceinstances"), + v1.SchemeGroupVersion.WithKind("DevsyWorkspaceInstance"), + func() *v1.DevsyWorkspaceInstance { return &v1.DevsyWorkspaceInstance{} }, + func() *v1.DevsyWorkspaceInstanceList { return &v1.DevsyWorkspaceInstanceList{} }, + func(dst, src *v1.DevsyWorkspaceInstanceList) { dst.ListMeta = src.ListMeta }, + func(list *v1.DevsyWorkspaceInstanceList) []*v1.DevsyWorkspaceInstance { + return gentype.ToPointerSlice(list.Items) + }, + func(list *v1.DevsyWorkspaceInstanceList, items []*v1.DevsyWorkspaceInstance) { + list.Items = gentype.FromPointerSlice(items) + }, + ), + fake, + } +} diff --git a/pkg/clientset/versioned/typed/storage/v1/fake/fake_devsyworkspacepreset.go b/pkg/clientset/versioned/typed/storage/v1/fake/fake_devsyworkspacepreset.go new file mode 100644 index 0000000..d133832 --- /dev/null +++ b/pkg/clientset/versioned/typed/storage/v1/fake/fake_devsyworkspacepreset.go @@ -0,0 +1,36 @@ +// Code generated by client-gen. DO NOT EDIT. + +package fake + +import ( + v1 "github.com/devsy-org/api/pkg/apis/storage/v1" + storagev1 "github.com/devsy-org/api/pkg/clientset/versioned/typed/storage/v1" + gentype "k8s.io/client-go/gentype" +) + +// fakeDevsyWorkspacePresets implements DevsyWorkspacePresetInterface +type fakeDevsyWorkspacePresets struct { + *gentype.FakeClientWithList[*v1.DevsyWorkspacePreset, *v1.DevsyWorkspacePresetList] + Fake *FakeStorageV1 +} + +func newFakeDevsyWorkspacePresets(fake *FakeStorageV1) storagev1.DevsyWorkspacePresetInterface { + return &fakeDevsyWorkspacePresets{ + gentype.NewFakeClientWithList[*v1.DevsyWorkspacePreset, *v1.DevsyWorkspacePresetList]( + fake.Fake, + "", + v1.SchemeGroupVersion.WithResource("devsyworkspacepresets"), + v1.SchemeGroupVersion.WithKind("DevsyWorkspacePreset"), + func() *v1.DevsyWorkspacePreset { return &v1.DevsyWorkspacePreset{} }, + func() *v1.DevsyWorkspacePresetList { return &v1.DevsyWorkspacePresetList{} }, + func(dst, src *v1.DevsyWorkspacePresetList) { dst.ListMeta = src.ListMeta }, + func(list *v1.DevsyWorkspacePresetList) []*v1.DevsyWorkspacePreset { + return gentype.ToPointerSlice(list.Items) + }, + func(list *v1.DevsyWorkspacePresetList, items []*v1.DevsyWorkspacePreset) { + list.Items = gentype.FromPointerSlice(items) + }, + ), + fake, + } +} diff --git a/pkg/clientset/versioned/typed/storage/v1/fake/fake_devsyworkspacetemplate.go b/pkg/clientset/versioned/typed/storage/v1/fake/fake_devsyworkspacetemplate.go new file mode 100644 index 0000000..19f8701 --- /dev/null +++ b/pkg/clientset/versioned/typed/storage/v1/fake/fake_devsyworkspacetemplate.go @@ -0,0 +1,36 @@ +// Code generated by client-gen. DO NOT EDIT. + +package fake + +import ( + v1 "github.com/devsy-org/api/pkg/apis/storage/v1" + storagev1 "github.com/devsy-org/api/pkg/clientset/versioned/typed/storage/v1" + gentype "k8s.io/client-go/gentype" +) + +// fakeDevsyWorkspaceTemplates implements DevsyWorkspaceTemplateInterface +type fakeDevsyWorkspaceTemplates struct { + *gentype.FakeClientWithList[*v1.DevsyWorkspaceTemplate, *v1.DevsyWorkspaceTemplateList] + Fake *FakeStorageV1 +} + +func newFakeDevsyWorkspaceTemplates(fake *FakeStorageV1) storagev1.DevsyWorkspaceTemplateInterface { + return &fakeDevsyWorkspaceTemplates{ + gentype.NewFakeClientWithList[*v1.DevsyWorkspaceTemplate, *v1.DevsyWorkspaceTemplateList]( + fake.Fake, + "", + v1.SchemeGroupVersion.WithResource("devsyworkspacetemplates"), + v1.SchemeGroupVersion.WithKind("DevsyWorkspaceTemplate"), + func() *v1.DevsyWorkspaceTemplate { return &v1.DevsyWorkspaceTemplate{} }, + func() *v1.DevsyWorkspaceTemplateList { return &v1.DevsyWorkspaceTemplateList{} }, + func(dst, src *v1.DevsyWorkspaceTemplateList) { dst.ListMeta = src.ListMeta }, + func(list *v1.DevsyWorkspaceTemplateList) []*v1.DevsyWorkspaceTemplate { + return gentype.ToPointerSlice(list.Items) + }, + func(list *v1.DevsyWorkspaceTemplateList, items []*v1.DevsyWorkspaceTemplate) { + list.Items = gentype.FromPointerSlice(items) + }, + ), + fake, + } +} diff --git a/pkg/clientset/versioned/typed/storage/v1/fake/fake_storage_client.go b/pkg/clientset/versioned/typed/storage/v1/fake/fake_storage_client.go index 2c861c2..4b75e97 100644 --- a/pkg/clientset/versioned/typed/storage/v1/fake/fake_storage_client.go +++ b/pkg/clientset/versioned/typed/storage/v1/fake/fake_storage_client.go @@ -32,20 +32,20 @@ func (c *FakeStorageV1) ClusterRoleTemplates() v1.ClusterRoleTemplateInterface { return newFakeClusterRoleTemplates(c) } -func (c *FakeStorageV1) DevPodEnvironmentTemplates() v1.DevPodEnvironmentTemplateInterface { - return newFakeDevPodEnvironmentTemplates(c) +func (c *FakeStorageV1) DevsyEnvironmentTemplates() v1.DevsyEnvironmentTemplateInterface { + return newFakeDevsyEnvironmentTemplates(c) } -func (c *FakeStorageV1) DevPodWorkspaceInstances(namespace string) v1.DevPodWorkspaceInstanceInterface { - return newFakeDevPodWorkspaceInstances(c, namespace) +func (c *FakeStorageV1) DevsyWorkspaceInstances(namespace string) v1.DevsyWorkspaceInstanceInterface { + return newFakeDevsyWorkspaceInstances(c, namespace) } -func (c *FakeStorageV1) DevPodWorkspacePresets() v1.DevPodWorkspacePresetInterface { - return newFakeDevPodWorkspacePresets(c) +func (c *FakeStorageV1) DevsyWorkspacePresets() v1.DevsyWorkspacePresetInterface { + return newFakeDevsyWorkspacePresets(c) } -func (c *FakeStorageV1) DevPodWorkspaceTemplates() v1.DevPodWorkspaceTemplateInterface { - return newFakeDevPodWorkspaceTemplates(c) +func (c *FakeStorageV1) DevsyWorkspaceTemplates() v1.DevsyWorkspaceTemplateInterface { + return newFakeDevsyWorkspaceTemplates(c) } func (c *FakeStorageV1) NetworkPeers() v1.NetworkPeerInterface { diff --git a/pkg/clientset/versioned/typed/storage/v1/generated_expansion.go b/pkg/clientset/versioned/typed/storage/v1/generated_expansion.go index a0d9657..0909f42 100644 --- a/pkg/clientset/versioned/typed/storage/v1/generated_expansion.go +++ b/pkg/clientset/versioned/typed/storage/v1/generated_expansion.go @@ -12,13 +12,13 @@ type ClusterAccessExpansion interface{} type ClusterRoleTemplateExpansion interface{} -type DevPodEnvironmentTemplateExpansion interface{} +type DevsyEnvironmentTemplateExpansion interface{} -type DevPodWorkspaceInstanceExpansion interface{} +type DevsyWorkspaceInstanceExpansion interface{} -type DevPodWorkspacePresetExpansion interface{} +type DevsyWorkspacePresetExpansion interface{} -type DevPodWorkspaceTemplateExpansion interface{} +type DevsyWorkspaceTemplateExpansion interface{} type NetworkPeerExpansion interface{} diff --git a/pkg/clientset/versioned/typed/storage/v1/storage_client.go b/pkg/clientset/versioned/typed/storage/v1/storage_client.go index 4d4a57c..f98ead4 100644 --- a/pkg/clientset/versioned/typed/storage/v1/storage_client.go +++ b/pkg/clientset/versioned/typed/storage/v1/storage_client.go @@ -17,10 +17,10 @@ type StorageV1Interface interface { ClustersGetter ClusterAccessesGetter ClusterRoleTemplatesGetter - DevPodEnvironmentTemplatesGetter - DevPodWorkspaceInstancesGetter - DevPodWorkspacePresetsGetter - DevPodWorkspaceTemplatesGetter + DevsyEnvironmentTemplatesGetter + DevsyWorkspaceInstancesGetter + DevsyWorkspacePresetsGetter + DevsyWorkspaceTemplatesGetter NetworkPeersGetter NodeClaimsGetter NodeEnvironmentsGetter @@ -62,20 +62,20 @@ func (c *StorageV1Client) ClusterRoleTemplates() ClusterRoleTemplateInterface { return newClusterRoleTemplates(c) } -func (c *StorageV1Client) DevPodEnvironmentTemplates() DevPodEnvironmentTemplateInterface { - return newDevPodEnvironmentTemplates(c) +func (c *StorageV1Client) DevsyEnvironmentTemplates() DevsyEnvironmentTemplateInterface { + return newDevsyEnvironmentTemplates(c) } -func (c *StorageV1Client) DevPodWorkspaceInstances(namespace string) DevPodWorkspaceInstanceInterface { - return newDevPodWorkspaceInstances(c, namespace) +func (c *StorageV1Client) DevsyWorkspaceInstances(namespace string) DevsyWorkspaceInstanceInterface { + return newDevsyWorkspaceInstances(c, namespace) } -func (c *StorageV1Client) DevPodWorkspacePresets() DevPodWorkspacePresetInterface { - return newDevPodWorkspacePresets(c) +func (c *StorageV1Client) DevsyWorkspacePresets() DevsyWorkspacePresetInterface { + return newDevsyWorkspacePresets(c) } -func (c *StorageV1Client) DevPodWorkspaceTemplates() DevPodWorkspaceTemplateInterface { - return newDevPodWorkspaceTemplates(c) +func (c *StorageV1Client) DevsyWorkspaceTemplates() DevsyWorkspaceTemplateInterface { + return newDevsyWorkspaceTemplates(c) } func (c *StorageV1Client) NetworkPeers() NetworkPeerInterface { diff --git a/pkg/devsy/platformoptions.go b/pkg/devsy/platformoptions.go index 6c687ea..afd3f95 100644 --- a/pkg/devsy/platformoptions.go +++ b/pkg/devsy/platformoptions.go @@ -9,7 +9,7 @@ type PlatformOptions struct { // when executed on the platform side and not if a platform workspace is used locally. Enabled bool `json:"enabled,omitempty"` - // DevPodWorkspaceInstance information + // DevsyWorkspaceInstance information InstanceName string `json:"instanceName,omitempty"` InstanceProject string `json:"instanceProject,omitempty"` InstanceNamespace string `json:"instanceNamespace,omitempty"` diff --git a/pkg/informers/externalversions/factory.go b/pkg/informers/externalversions/factory.go index 684c909..9143473 100644 --- a/pkg/informers/externalversions/factory.go +++ b/pkg/informers/externalversions/factory.go @@ -83,6 +83,7 @@ func NewSharedInformerFactory(client versioned.Interface, defaultResync time.Dur // NewFilteredSharedInformerFactory constructs a new instance of sharedInformerFactory. // Listers obtained via this SharedInformerFactory will be subject to the same filters // as specified here. +// // Deprecated: Please use NewSharedInformerFactoryWithOptions instead func NewFilteredSharedInformerFactory(client versioned.Interface, defaultResync time.Duration, namespace string, tweakListOptions internalinterfaces.TweakListOptionsFunc) SharedInformerFactory { return NewSharedInformerFactoryWithOptions(client, defaultResync, WithNamespace(namespace), WithTweakListOptions(tweakListOptions)) @@ -190,7 +191,7 @@ func (f *sharedInformerFactory) InformerFor(obj runtime.Object, newFunc internal // // It is typically used like this: // -// ctx, cancel := context.Background() +// ctx, cancel := context.WithCancel(context.Background()) // defer cancel() // factory := NewSharedInformerFactory(client, resyncPeriod) // defer factory.WaitForStop() // Returns immediately if nothing was started. diff --git a/pkg/informers/externalversions/generic.go b/pkg/informers/externalversions/generic.go index d8766e1..ac71e36 100644 --- a/pkg/informers/externalversions/generic.go +++ b/pkg/informers/externalversions/generic.go @@ -59,14 +59,16 @@ func (f *sharedInformerFactory) ForResource(resource schema.GroupVersionResource return &genericInformer{resource: resource.GroupResource(), informer: f.Management().V1().ConvertVirtualClusterConfigs().Informer()}, nil case v1.SchemeGroupVersion.WithResource("databaseconnectors"): return &genericInformer{resource: resource.GroupResource(), informer: f.Management().V1().DatabaseConnectors().Informer()}, nil - case v1.SchemeGroupVersion.WithResource("devpodenvironmenttemplates"): - return &genericInformer{resource: resource.GroupResource(), informer: f.Management().V1().DevPodEnvironmentTemplates().Informer()}, nil - case v1.SchemeGroupVersion.WithResource("devpodworkspaceinstances"): - return &genericInformer{resource: resource.GroupResource(), informer: f.Management().V1().DevPodWorkspaceInstances().Informer()}, nil - case v1.SchemeGroupVersion.WithResource("devpodworkspacepresets"): - return &genericInformer{resource: resource.GroupResource(), informer: f.Management().V1().DevPodWorkspacePresets().Informer()}, nil - case v1.SchemeGroupVersion.WithResource("devpodworkspacetemplates"): - return &genericInformer{resource: resource.GroupResource(), informer: f.Management().V1().DevPodWorkspaceTemplates().Informer()}, nil + case v1.SchemeGroupVersion.WithResource("devsyenvironmenttemplates"): + return &genericInformer{resource: resource.GroupResource(), informer: f.Management().V1().DevsyEnvironmentTemplates().Informer()}, nil + case v1.SchemeGroupVersion.WithResource("devsyupgrades"): + return &genericInformer{resource: resource.GroupResource(), informer: f.Management().V1().DevsyUpgrades().Informer()}, nil + case v1.SchemeGroupVersion.WithResource("devsyworkspaceinstances"): + return &genericInformer{resource: resource.GroupResource(), informer: f.Management().V1().DevsyWorkspaceInstances().Informer()}, nil + case v1.SchemeGroupVersion.WithResource("devsyworkspacepresets"): + return &genericInformer{resource: resource.GroupResource(), informer: f.Management().V1().DevsyWorkspacePresets().Informer()}, nil + case v1.SchemeGroupVersion.WithResource("devsyworkspacetemplates"): + return &genericInformer{resource: resource.GroupResource(), informer: f.Management().V1().DevsyWorkspaceTemplates().Informer()}, nil case v1.SchemeGroupVersion.WithResource("directclusterendpointtokens"): return &genericInformer{resource: resource.GroupResource(), informer: f.Management().V1().DirectClusterEndpointTokens().Informer()}, nil case v1.SchemeGroupVersion.WithResource("events"): @@ -79,8 +81,6 @@ func (f *sharedInformerFactory) ForResource(resource schema.GroupVersionResource return &genericInformer{resource: resource.GroupResource(), informer: f.Management().V1().Licenses().Informer()}, nil case v1.SchemeGroupVersion.WithResource("licensetokens"): return &genericInformer{resource: resource.GroupResource(), informer: f.Management().V1().LicenseTokens().Informer()}, nil - case v1.SchemeGroupVersion.WithResource("devsyupgrades"): - return &genericInformer{resource: resource.GroupResource(), informer: f.Management().V1().DevsyUpgrades().Informer()}, nil case v1.SchemeGroupVersion.WithResource("nodeclaims"): return &genericInformer{resource: resource.GroupResource(), informer: f.Management().V1().NodeClaims().Informer()}, nil case v1.SchemeGroupVersion.WithResource("nodeenvironments"): @@ -143,14 +143,14 @@ func (f *sharedInformerFactory) ForResource(resource schema.GroupVersionResource return &genericInformer{resource: resource.GroupResource(), informer: f.Storage().V1().ClusterAccesses().Informer()}, nil case storagev1.SchemeGroupVersion.WithResource("clusterroletemplates"): return &genericInformer{resource: resource.GroupResource(), informer: f.Storage().V1().ClusterRoleTemplates().Informer()}, nil - case storagev1.SchemeGroupVersion.WithResource("devpodenvironmenttemplates"): - return &genericInformer{resource: resource.GroupResource(), informer: f.Storage().V1().DevPodEnvironmentTemplates().Informer()}, nil - case storagev1.SchemeGroupVersion.WithResource("devpodworkspaceinstances"): - return &genericInformer{resource: resource.GroupResource(), informer: f.Storage().V1().DevPodWorkspaceInstances().Informer()}, nil - case storagev1.SchemeGroupVersion.WithResource("devpodworkspacepresets"): - return &genericInformer{resource: resource.GroupResource(), informer: f.Storage().V1().DevPodWorkspacePresets().Informer()}, nil - case storagev1.SchemeGroupVersion.WithResource("devpodworkspacetemplates"): - return &genericInformer{resource: resource.GroupResource(), informer: f.Storage().V1().DevPodWorkspaceTemplates().Informer()}, nil + case storagev1.SchemeGroupVersion.WithResource("devsyenvironmenttemplates"): + return &genericInformer{resource: resource.GroupResource(), informer: f.Storage().V1().DevsyEnvironmentTemplates().Informer()}, nil + case storagev1.SchemeGroupVersion.WithResource("devsyworkspaceinstances"): + return &genericInformer{resource: resource.GroupResource(), informer: f.Storage().V1().DevsyWorkspaceInstances().Informer()}, nil + case storagev1.SchemeGroupVersion.WithResource("devsyworkspacepresets"): + return &genericInformer{resource: resource.GroupResource(), informer: f.Storage().V1().DevsyWorkspacePresets().Informer()}, nil + case storagev1.SchemeGroupVersion.WithResource("devsyworkspacetemplates"): + return &genericInformer{resource: resource.GroupResource(), informer: f.Storage().V1().DevsyWorkspaceTemplates().Informer()}, nil case storagev1.SchemeGroupVersion.WithResource("networkpeers"): return &genericInformer{resource: resource.GroupResource(), informer: f.Storage().V1().NetworkPeers().Informer()}, nil case storagev1.SchemeGroupVersion.WithResource("nodeclaims"): diff --git a/pkg/informers/externalversions/management/v1/agentauditevent.go b/pkg/informers/externalversions/management/v1/agentauditevent.go index 05e71d0..3250f26 100644 --- a/pkg/informers/externalversions/management/v1/agentauditevent.go +++ b/pkg/informers/externalversions/management/v1/agentauditevent.go @@ -40,7 +40,7 @@ func NewAgentAuditEventInformer(client versioned.Interface, resyncPeriod time.Du // one. This reduces memory footprint and number of connections to the server. func NewFilteredAgentAuditEventInformer(client versioned.Interface, resyncPeriod time.Duration, indexers cache.Indexers, tweakListOptions internalinterfaces.TweakListOptionsFunc) cache.SharedIndexInformer { return cache.NewSharedIndexInformer( - &cache.ListWatch{ + cache.ToListWatcherWithWatchListSemantics(&cache.ListWatch{ ListFunc: func(options metav1.ListOptions) (runtime.Object, error) { if tweakListOptions != nil { tweakListOptions(&options) @@ -65,7 +65,7 @@ func NewFilteredAgentAuditEventInformer(client versioned.Interface, resyncPeriod } return client.ManagementV1().AgentAuditEvents().Watch(ctx, options) }, - }, + }, client), &apismanagementv1.AgentAuditEvent{}, resyncPeriod, indexers, diff --git a/pkg/informers/externalversions/management/v1/announcement.go b/pkg/informers/externalversions/management/v1/announcement.go index eea2355..bd8a4a1 100644 --- a/pkg/informers/externalversions/management/v1/announcement.go +++ b/pkg/informers/externalversions/management/v1/announcement.go @@ -40,7 +40,7 @@ func NewAnnouncementInformer(client versioned.Interface, resyncPeriod time.Durat // one. This reduces memory footprint and number of connections to the server. func NewFilteredAnnouncementInformer(client versioned.Interface, resyncPeriod time.Duration, indexers cache.Indexers, tweakListOptions internalinterfaces.TweakListOptionsFunc) cache.SharedIndexInformer { return cache.NewSharedIndexInformer( - &cache.ListWatch{ + cache.ToListWatcherWithWatchListSemantics(&cache.ListWatch{ ListFunc: func(options metav1.ListOptions) (runtime.Object, error) { if tweakListOptions != nil { tweakListOptions(&options) @@ -65,7 +65,7 @@ func NewFilteredAnnouncementInformer(client versioned.Interface, resyncPeriod ti } return client.ManagementV1().Announcements().Watch(ctx, options) }, - }, + }, client), &apismanagementv1.Announcement{}, resyncPeriod, indexers, diff --git a/pkg/informers/externalversions/management/v1/app.go b/pkg/informers/externalversions/management/v1/app.go index 8c4ab19..bcf661a 100644 --- a/pkg/informers/externalversions/management/v1/app.go +++ b/pkg/informers/externalversions/management/v1/app.go @@ -40,7 +40,7 @@ func NewAppInformer(client versioned.Interface, resyncPeriod time.Duration, inde // one. This reduces memory footprint and number of connections to the server. func NewFilteredAppInformer(client versioned.Interface, resyncPeriod time.Duration, indexers cache.Indexers, tweakListOptions internalinterfaces.TweakListOptionsFunc) cache.SharedIndexInformer { return cache.NewSharedIndexInformer( - &cache.ListWatch{ + cache.ToListWatcherWithWatchListSemantics(&cache.ListWatch{ ListFunc: func(options metav1.ListOptions) (runtime.Object, error) { if tweakListOptions != nil { tweakListOptions(&options) @@ -65,7 +65,7 @@ func NewFilteredAppInformer(client versioned.Interface, resyncPeriod time.Durati } return client.ManagementV1().Apps().Watch(ctx, options) }, - }, + }, client), &apismanagementv1.App{}, resyncPeriod, indexers, diff --git a/pkg/informers/externalversions/management/v1/backup.go b/pkg/informers/externalversions/management/v1/backup.go index 05e02c1..9a155b9 100644 --- a/pkg/informers/externalversions/management/v1/backup.go +++ b/pkg/informers/externalversions/management/v1/backup.go @@ -40,7 +40,7 @@ func NewBackupInformer(client versioned.Interface, resyncPeriod time.Duration, i // one. This reduces memory footprint and number of connections to the server. func NewFilteredBackupInformer(client versioned.Interface, resyncPeriod time.Duration, indexers cache.Indexers, tweakListOptions internalinterfaces.TweakListOptionsFunc) cache.SharedIndexInformer { return cache.NewSharedIndexInformer( - &cache.ListWatch{ + cache.ToListWatcherWithWatchListSemantics(&cache.ListWatch{ ListFunc: func(options metav1.ListOptions) (runtime.Object, error) { if tweakListOptions != nil { tweakListOptions(&options) @@ -65,7 +65,7 @@ func NewFilteredBackupInformer(client versioned.Interface, resyncPeriod time.Dur } return client.ManagementV1().Backups().Watch(ctx, options) }, - }, + }, client), &apismanagementv1.Backup{}, resyncPeriod, indexers, diff --git a/pkg/informers/externalversions/management/v1/cluster.go b/pkg/informers/externalversions/management/v1/cluster.go index 4c6abcd..b1f12eb 100644 --- a/pkg/informers/externalversions/management/v1/cluster.go +++ b/pkg/informers/externalversions/management/v1/cluster.go @@ -40,7 +40,7 @@ func NewClusterInformer(client versioned.Interface, resyncPeriod time.Duration, // one. This reduces memory footprint and number of connections to the server. func NewFilteredClusterInformer(client versioned.Interface, resyncPeriod time.Duration, indexers cache.Indexers, tweakListOptions internalinterfaces.TweakListOptionsFunc) cache.SharedIndexInformer { return cache.NewSharedIndexInformer( - &cache.ListWatch{ + cache.ToListWatcherWithWatchListSemantics(&cache.ListWatch{ ListFunc: func(options metav1.ListOptions) (runtime.Object, error) { if tweakListOptions != nil { tweakListOptions(&options) @@ -65,7 +65,7 @@ func NewFilteredClusterInformer(client versioned.Interface, resyncPeriod time.Du } return client.ManagementV1().Clusters().Watch(ctx, options) }, - }, + }, client), &apismanagementv1.Cluster{}, resyncPeriod, indexers, diff --git a/pkg/informers/externalversions/management/v1/clusteraccess.go b/pkg/informers/externalversions/management/v1/clusteraccess.go index b7df24e..2172801 100644 --- a/pkg/informers/externalversions/management/v1/clusteraccess.go +++ b/pkg/informers/externalversions/management/v1/clusteraccess.go @@ -40,7 +40,7 @@ func NewClusterAccessInformer(client versioned.Interface, resyncPeriod time.Dura // one. This reduces memory footprint and number of connections to the server. func NewFilteredClusterAccessInformer(client versioned.Interface, resyncPeriod time.Duration, indexers cache.Indexers, tweakListOptions internalinterfaces.TweakListOptionsFunc) cache.SharedIndexInformer { return cache.NewSharedIndexInformer( - &cache.ListWatch{ + cache.ToListWatcherWithWatchListSemantics(&cache.ListWatch{ ListFunc: func(options metav1.ListOptions) (runtime.Object, error) { if tweakListOptions != nil { tweakListOptions(&options) @@ -65,7 +65,7 @@ func NewFilteredClusterAccessInformer(client versioned.Interface, resyncPeriod t } return client.ManagementV1().ClusterAccesses().Watch(ctx, options) }, - }, + }, client), &apismanagementv1.ClusterAccess{}, resyncPeriod, indexers, diff --git a/pkg/informers/externalversions/management/v1/clusterroletemplate.go b/pkg/informers/externalversions/management/v1/clusterroletemplate.go index bd2f3a1..88b9107 100644 --- a/pkg/informers/externalversions/management/v1/clusterroletemplate.go +++ b/pkg/informers/externalversions/management/v1/clusterroletemplate.go @@ -40,7 +40,7 @@ func NewClusterRoleTemplateInformer(client versioned.Interface, resyncPeriod tim // one. This reduces memory footprint and number of connections to the server. func NewFilteredClusterRoleTemplateInformer(client versioned.Interface, resyncPeriod time.Duration, indexers cache.Indexers, tweakListOptions internalinterfaces.TweakListOptionsFunc) cache.SharedIndexInformer { return cache.NewSharedIndexInformer( - &cache.ListWatch{ + cache.ToListWatcherWithWatchListSemantics(&cache.ListWatch{ ListFunc: func(options metav1.ListOptions) (runtime.Object, error) { if tweakListOptions != nil { tweakListOptions(&options) @@ -65,7 +65,7 @@ func NewFilteredClusterRoleTemplateInformer(client versioned.Interface, resyncPe } return client.ManagementV1().ClusterRoleTemplates().Watch(ctx, options) }, - }, + }, client), &apismanagementv1.ClusterRoleTemplate{}, resyncPeriod, indexers, diff --git a/pkg/informers/externalversions/management/v1/config.go b/pkg/informers/externalversions/management/v1/config.go index 9b108fd..0879acd 100644 --- a/pkg/informers/externalversions/management/v1/config.go +++ b/pkg/informers/externalversions/management/v1/config.go @@ -40,7 +40,7 @@ func NewConfigInformer(client versioned.Interface, resyncPeriod time.Duration, i // one. This reduces memory footprint and number of connections to the server. func NewFilteredConfigInformer(client versioned.Interface, resyncPeriod time.Duration, indexers cache.Indexers, tweakListOptions internalinterfaces.TweakListOptionsFunc) cache.SharedIndexInformer { return cache.NewSharedIndexInformer( - &cache.ListWatch{ + cache.ToListWatcherWithWatchListSemantics(&cache.ListWatch{ ListFunc: func(options metav1.ListOptions) (runtime.Object, error) { if tweakListOptions != nil { tweakListOptions(&options) @@ -65,7 +65,7 @@ func NewFilteredConfigInformer(client versioned.Interface, resyncPeriod time.Dur } return client.ManagementV1().Configs().Watch(ctx, options) }, - }, + }, client), &apismanagementv1.Config{}, resyncPeriod, indexers, diff --git a/pkg/informers/externalversions/management/v1/convertvirtualclusterconfig.go b/pkg/informers/externalversions/management/v1/convertvirtualclusterconfig.go index 2b2bc1b..02f52ed 100644 --- a/pkg/informers/externalversions/management/v1/convertvirtualclusterconfig.go +++ b/pkg/informers/externalversions/management/v1/convertvirtualclusterconfig.go @@ -40,7 +40,7 @@ func NewConvertVirtualClusterConfigInformer(client versioned.Interface, resyncPe // one. This reduces memory footprint and number of connections to the server. func NewFilteredConvertVirtualClusterConfigInformer(client versioned.Interface, resyncPeriod time.Duration, indexers cache.Indexers, tweakListOptions internalinterfaces.TweakListOptionsFunc) cache.SharedIndexInformer { return cache.NewSharedIndexInformer( - &cache.ListWatch{ + cache.ToListWatcherWithWatchListSemantics(&cache.ListWatch{ ListFunc: func(options metav1.ListOptions) (runtime.Object, error) { if tweakListOptions != nil { tweakListOptions(&options) @@ -65,7 +65,7 @@ func NewFilteredConvertVirtualClusterConfigInformer(client versioned.Interface, } return client.ManagementV1().ConvertVirtualClusterConfigs().Watch(ctx, options) }, - }, + }, client), &apismanagementv1.ConvertVirtualClusterConfig{}, resyncPeriod, indexers, diff --git a/pkg/informers/externalversions/management/v1/databaseconnector.go b/pkg/informers/externalversions/management/v1/databaseconnector.go index c58b8c7..45ac445 100644 --- a/pkg/informers/externalversions/management/v1/databaseconnector.go +++ b/pkg/informers/externalversions/management/v1/databaseconnector.go @@ -40,7 +40,7 @@ func NewDatabaseConnectorInformer(client versioned.Interface, resyncPeriod time. // one. This reduces memory footprint and number of connections to the server. func NewFilteredDatabaseConnectorInformer(client versioned.Interface, resyncPeriod time.Duration, indexers cache.Indexers, tweakListOptions internalinterfaces.TweakListOptionsFunc) cache.SharedIndexInformer { return cache.NewSharedIndexInformer( - &cache.ListWatch{ + cache.ToListWatcherWithWatchListSemantics(&cache.ListWatch{ ListFunc: func(options metav1.ListOptions) (runtime.Object, error) { if tweakListOptions != nil { tweakListOptions(&options) @@ -65,7 +65,7 @@ func NewFilteredDatabaseConnectorInformer(client versioned.Interface, resyncPeri } return client.ManagementV1().DatabaseConnectors().Watch(ctx, options) }, - }, + }, client), &apismanagementv1.DatabaseConnector{}, resyncPeriod, indexers, diff --git a/pkg/informers/externalversions/management/v1/devpodenvironmenttemplate.go b/pkg/informers/externalversions/management/v1/devpodenvironmenttemplate.go deleted file mode 100644 index 1e377b2..0000000 --- a/pkg/informers/externalversions/management/v1/devpodenvironmenttemplate.go +++ /dev/null @@ -1,85 +0,0 @@ -// Code generated by informer-gen. DO NOT EDIT. - -package v1 - -import ( - context "context" - time "time" - - apismanagementv1 "github.com/devsy-org/api/pkg/apis/management/v1" - versioned "github.com/devsy-org/api/pkg/clientset/versioned" - internalinterfaces "github.com/devsy-org/api/pkg/informers/externalversions/internalinterfaces" - managementv1 "github.com/devsy-org/api/pkg/listers/management/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" - runtime "k8s.io/apimachinery/pkg/runtime" - watch "k8s.io/apimachinery/pkg/watch" - cache "k8s.io/client-go/tools/cache" -) - -// DevPodEnvironmentTemplateInformer provides access to a shared informer and lister for -// DevPodEnvironmentTemplates. -type DevPodEnvironmentTemplateInformer interface { - Informer() cache.SharedIndexInformer - Lister() managementv1.DevPodEnvironmentTemplateLister -} - -type devPodEnvironmentTemplateInformer struct { - factory internalinterfaces.SharedInformerFactory - tweakListOptions internalinterfaces.TweakListOptionsFunc -} - -// NewDevPodEnvironmentTemplateInformer constructs a new informer for DevPodEnvironmentTemplate type. -// Always prefer using an informer factory to get a shared informer instead of getting an independent -// one. This reduces memory footprint and number of connections to the server. -func NewDevPodEnvironmentTemplateInformer(client versioned.Interface, resyncPeriod time.Duration, indexers cache.Indexers) cache.SharedIndexInformer { - return NewFilteredDevPodEnvironmentTemplateInformer(client, resyncPeriod, indexers, nil) -} - -// NewFilteredDevPodEnvironmentTemplateInformer constructs a new informer for DevPodEnvironmentTemplate type. -// Always prefer using an informer factory to get a shared informer instead of getting an independent -// one. This reduces memory footprint and number of connections to the server. -func NewFilteredDevPodEnvironmentTemplateInformer(client versioned.Interface, resyncPeriod time.Duration, indexers cache.Indexers, tweakListOptions internalinterfaces.TweakListOptionsFunc) cache.SharedIndexInformer { - return cache.NewSharedIndexInformer( - &cache.ListWatch{ - ListFunc: func(options metav1.ListOptions) (runtime.Object, error) { - if tweakListOptions != nil { - tweakListOptions(&options) - } - return client.ManagementV1().DevPodEnvironmentTemplates().List(context.Background(), options) - }, - WatchFunc: func(options metav1.ListOptions) (watch.Interface, error) { - if tweakListOptions != nil { - tweakListOptions(&options) - } - return client.ManagementV1().DevPodEnvironmentTemplates().Watch(context.Background(), options) - }, - ListWithContextFunc: func(ctx context.Context, options metav1.ListOptions) (runtime.Object, error) { - if tweakListOptions != nil { - tweakListOptions(&options) - } - return client.ManagementV1().DevPodEnvironmentTemplates().List(ctx, options) - }, - WatchFuncWithContext: func(ctx context.Context, options metav1.ListOptions) (watch.Interface, error) { - if tweakListOptions != nil { - tweakListOptions(&options) - } - return client.ManagementV1().DevPodEnvironmentTemplates().Watch(ctx, options) - }, - }, - &apismanagementv1.DevPodEnvironmentTemplate{}, - resyncPeriod, - indexers, - ) -} - -func (f *devPodEnvironmentTemplateInformer) defaultInformer(client versioned.Interface, resyncPeriod time.Duration) cache.SharedIndexInformer { - return NewFilteredDevPodEnvironmentTemplateInformer(client, resyncPeriod, cache.Indexers{cache.NamespaceIndex: cache.MetaNamespaceIndexFunc}, f.tweakListOptions) -} - -func (f *devPodEnvironmentTemplateInformer) Informer() cache.SharedIndexInformer { - return f.factory.InformerFor(&apismanagementv1.DevPodEnvironmentTemplate{}, f.defaultInformer) -} - -func (f *devPodEnvironmentTemplateInformer) Lister() managementv1.DevPodEnvironmentTemplateLister { - return managementv1.NewDevPodEnvironmentTemplateLister(f.Informer().GetIndexer()) -} diff --git a/pkg/informers/externalversions/management/v1/devpodworkspaceinstance.go b/pkg/informers/externalversions/management/v1/devpodworkspaceinstance.go deleted file mode 100644 index 6f45bd1..0000000 --- a/pkg/informers/externalversions/management/v1/devpodworkspaceinstance.go +++ /dev/null @@ -1,86 +0,0 @@ -// Code generated by informer-gen. DO NOT EDIT. - -package v1 - -import ( - context "context" - time "time" - - apismanagementv1 "github.com/devsy-org/api/pkg/apis/management/v1" - versioned "github.com/devsy-org/api/pkg/clientset/versioned" - internalinterfaces "github.com/devsy-org/api/pkg/informers/externalversions/internalinterfaces" - managementv1 "github.com/devsy-org/api/pkg/listers/management/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" - runtime "k8s.io/apimachinery/pkg/runtime" - watch "k8s.io/apimachinery/pkg/watch" - cache "k8s.io/client-go/tools/cache" -) - -// DevPodWorkspaceInstanceInformer provides access to a shared informer and lister for -// DevPodWorkspaceInstances. -type DevPodWorkspaceInstanceInformer interface { - Informer() cache.SharedIndexInformer - Lister() managementv1.DevPodWorkspaceInstanceLister -} - -type devPodWorkspaceInstanceInformer struct { - factory internalinterfaces.SharedInformerFactory - tweakListOptions internalinterfaces.TweakListOptionsFunc - namespace string -} - -// NewDevPodWorkspaceInstanceInformer constructs a new informer for DevPodWorkspaceInstance type. -// Always prefer using an informer factory to get a shared informer instead of getting an independent -// one. This reduces memory footprint and number of connections to the server. -func NewDevPodWorkspaceInstanceInformer(client versioned.Interface, namespace string, resyncPeriod time.Duration, indexers cache.Indexers) cache.SharedIndexInformer { - return NewFilteredDevPodWorkspaceInstanceInformer(client, namespace, resyncPeriod, indexers, nil) -} - -// NewFilteredDevPodWorkspaceInstanceInformer constructs a new informer for DevPodWorkspaceInstance type. -// Always prefer using an informer factory to get a shared informer instead of getting an independent -// one. This reduces memory footprint and number of connections to the server. -func NewFilteredDevPodWorkspaceInstanceInformer(client versioned.Interface, namespace string, resyncPeriod time.Duration, indexers cache.Indexers, tweakListOptions internalinterfaces.TweakListOptionsFunc) cache.SharedIndexInformer { - return cache.NewSharedIndexInformer( - &cache.ListWatch{ - ListFunc: func(options metav1.ListOptions) (runtime.Object, error) { - if tweakListOptions != nil { - tweakListOptions(&options) - } - return client.ManagementV1().DevPodWorkspaceInstances(namespace).List(context.Background(), options) - }, - WatchFunc: func(options metav1.ListOptions) (watch.Interface, error) { - if tweakListOptions != nil { - tweakListOptions(&options) - } - return client.ManagementV1().DevPodWorkspaceInstances(namespace).Watch(context.Background(), options) - }, - ListWithContextFunc: func(ctx context.Context, options metav1.ListOptions) (runtime.Object, error) { - if tweakListOptions != nil { - tweakListOptions(&options) - } - return client.ManagementV1().DevPodWorkspaceInstances(namespace).List(ctx, options) - }, - WatchFuncWithContext: func(ctx context.Context, options metav1.ListOptions) (watch.Interface, error) { - if tweakListOptions != nil { - tweakListOptions(&options) - } - return client.ManagementV1().DevPodWorkspaceInstances(namespace).Watch(ctx, options) - }, - }, - &apismanagementv1.DevPodWorkspaceInstance{}, - resyncPeriod, - indexers, - ) -} - -func (f *devPodWorkspaceInstanceInformer) defaultInformer(client versioned.Interface, resyncPeriod time.Duration) cache.SharedIndexInformer { - return NewFilteredDevPodWorkspaceInstanceInformer(client, f.namespace, resyncPeriod, cache.Indexers{cache.NamespaceIndex: cache.MetaNamespaceIndexFunc}, f.tweakListOptions) -} - -func (f *devPodWorkspaceInstanceInformer) Informer() cache.SharedIndexInformer { - return f.factory.InformerFor(&apismanagementv1.DevPodWorkspaceInstance{}, f.defaultInformer) -} - -func (f *devPodWorkspaceInstanceInformer) Lister() managementv1.DevPodWorkspaceInstanceLister { - return managementv1.NewDevPodWorkspaceInstanceLister(f.Informer().GetIndexer()) -} diff --git a/pkg/informers/externalversions/management/v1/devpodworkspacepreset.go b/pkg/informers/externalversions/management/v1/devpodworkspacepreset.go deleted file mode 100644 index bf9a37d..0000000 --- a/pkg/informers/externalversions/management/v1/devpodworkspacepreset.go +++ /dev/null @@ -1,85 +0,0 @@ -// Code generated by informer-gen. DO NOT EDIT. - -package v1 - -import ( - context "context" - time "time" - - apismanagementv1 "github.com/devsy-org/api/pkg/apis/management/v1" - versioned "github.com/devsy-org/api/pkg/clientset/versioned" - internalinterfaces "github.com/devsy-org/api/pkg/informers/externalversions/internalinterfaces" - managementv1 "github.com/devsy-org/api/pkg/listers/management/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" - runtime "k8s.io/apimachinery/pkg/runtime" - watch "k8s.io/apimachinery/pkg/watch" - cache "k8s.io/client-go/tools/cache" -) - -// DevPodWorkspacePresetInformer provides access to a shared informer and lister for -// DevPodWorkspacePresets. -type DevPodWorkspacePresetInformer interface { - Informer() cache.SharedIndexInformer - Lister() managementv1.DevPodWorkspacePresetLister -} - -type devPodWorkspacePresetInformer struct { - factory internalinterfaces.SharedInformerFactory - tweakListOptions internalinterfaces.TweakListOptionsFunc -} - -// NewDevPodWorkspacePresetInformer constructs a new informer for DevPodWorkspacePreset type. -// Always prefer using an informer factory to get a shared informer instead of getting an independent -// one. This reduces memory footprint and number of connections to the server. -func NewDevPodWorkspacePresetInformer(client versioned.Interface, resyncPeriod time.Duration, indexers cache.Indexers) cache.SharedIndexInformer { - return NewFilteredDevPodWorkspacePresetInformer(client, resyncPeriod, indexers, nil) -} - -// NewFilteredDevPodWorkspacePresetInformer constructs a new informer for DevPodWorkspacePreset type. -// Always prefer using an informer factory to get a shared informer instead of getting an independent -// one. This reduces memory footprint and number of connections to the server. -func NewFilteredDevPodWorkspacePresetInformer(client versioned.Interface, resyncPeriod time.Duration, indexers cache.Indexers, tweakListOptions internalinterfaces.TweakListOptionsFunc) cache.SharedIndexInformer { - return cache.NewSharedIndexInformer( - &cache.ListWatch{ - ListFunc: func(options metav1.ListOptions) (runtime.Object, error) { - if tweakListOptions != nil { - tweakListOptions(&options) - } - return client.ManagementV1().DevPodWorkspacePresets().List(context.Background(), options) - }, - WatchFunc: func(options metav1.ListOptions) (watch.Interface, error) { - if tweakListOptions != nil { - tweakListOptions(&options) - } - return client.ManagementV1().DevPodWorkspacePresets().Watch(context.Background(), options) - }, - ListWithContextFunc: func(ctx context.Context, options metav1.ListOptions) (runtime.Object, error) { - if tweakListOptions != nil { - tweakListOptions(&options) - } - return client.ManagementV1().DevPodWorkspacePresets().List(ctx, options) - }, - WatchFuncWithContext: func(ctx context.Context, options metav1.ListOptions) (watch.Interface, error) { - if tweakListOptions != nil { - tweakListOptions(&options) - } - return client.ManagementV1().DevPodWorkspacePresets().Watch(ctx, options) - }, - }, - &apismanagementv1.DevPodWorkspacePreset{}, - resyncPeriod, - indexers, - ) -} - -func (f *devPodWorkspacePresetInformer) defaultInformer(client versioned.Interface, resyncPeriod time.Duration) cache.SharedIndexInformer { - return NewFilteredDevPodWorkspacePresetInformer(client, resyncPeriod, cache.Indexers{cache.NamespaceIndex: cache.MetaNamespaceIndexFunc}, f.tweakListOptions) -} - -func (f *devPodWorkspacePresetInformer) Informer() cache.SharedIndexInformer { - return f.factory.InformerFor(&apismanagementv1.DevPodWorkspacePreset{}, f.defaultInformer) -} - -func (f *devPodWorkspacePresetInformer) Lister() managementv1.DevPodWorkspacePresetLister { - return managementv1.NewDevPodWorkspacePresetLister(f.Informer().GetIndexer()) -} diff --git a/pkg/informers/externalversions/management/v1/devpodworkspacetemplate.go b/pkg/informers/externalversions/management/v1/devpodworkspacetemplate.go deleted file mode 100644 index 409e0e5..0000000 --- a/pkg/informers/externalversions/management/v1/devpodworkspacetemplate.go +++ /dev/null @@ -1,85 +0,0 @@ -// Code generated by informer-gen. DO NOT EDIT. - -package v1 - -import ( - context "context" - time "time" - - apismanagementv1 "github.com/devsy-org/api/pkg/apis/management/v1" - versioned "github.com/devsy-org/api/pkg/clientset/versioned" - internalinterfaces "github.com/devsy-org/api/pkg/informers/externalversions/internalinterfaces" - managementv1 "github.com/devsy-org/api/pkg/listers/management/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" - runtime "k8s.io/apimachinery/pkg/runtime" - watch "k8s.io/apimachinery/pkg/watch" - cache "k8s.io/client-go/tools/cache" -) - -// DevPodWorkspaceTemplateInformer provides access to a shared informer and lister for -// DevPodWorkspaceTemplates. -type DevPodWorkspaceTemplateInformer interface { - Informer() cache.SharedIndexInformer - Lister() managementv1.DevPodWorkspaceTemplateLister -} - -type devPodWorkspaceTemplateInformer struct { - factory internalinterfaces.SharedInformerFactory - tweakListOptions internalinterfaces.TweakListOptionsFunc -} - -// NewDevPodWorkspaceTemplateInformer constructs a new informer for DevPodWorkspaceTemplate type. -// Always prefer using an informer factory to get a shared informer instead of getting an independent -// one. This reduces memory footprint and number of connections to the server. -func NewDevPodWorkspaceTemplateInformer(client versioned.Interface, resyncPeriod time.Duration, indexers cache.Indexers) cache.SharedIndexInformer { - return NewFilteredDevPodWorkspaceTemplateInformer(client, resyncPeriod, indexers, nil) -} - -// NewFilteredDevPodWorkspaceTemplateInformer constructs a new informer for DevPodWorkspaceTemplate type. -// Always prefer using an informer factory to get a shared informer instead of getting an independent -// one. This reduces memory footprint and number of connections to the server. -func NewFilteredDevPodWorkspaceTemplateInformer(client versioned.Interface, resyncPeriod time.Duration, indexers cache.Indexers, tweakListOptions internalinterfaces.TweakListOptionsFunc) cache.SharedIndexInformer { - return cache.NewSharedIndexInformer( - &cache.ListWatch{ - ListFunc: func(options metav1.ListOptions) (runtime.Object, error) { - if tweakListOptions != nil { - tweakListOptions(&options) - } - return client.ManagementV1().DevPodWorkspaceTemplates().List(context.Background(), options) - }, - WatchFunc: func(options metav1.ListOptions) (watch.Interface, error) { - if tweakListOptions != nil { - tweakListOptions(&options) - } - return client.ManagementV1().DevPodWorkspaceTemplates().Watch(context.Background(), options) - }, - ListWithContextFunc: func(ctx context.Context, options metav1.ListOptions) (runtime.Object, error) { - if tweakListOptions != nil { - tweakListOptions(&options) - } - return client.ManagementV1().DevPodWorkspaceTemplates().List(ctx, options) - }, - WatchFuncWithContext: func(ctx context.Context, options metav1.ListOptions) (watch.Interface, error) { - if tweakListOptions != nil { - tweakListOptions(&options) - } - return client.ManagementV1().DevPodWorkspaceTemplates().Watch(ctx, options) - }, - }, - &apismanagementv1.DevPodWorkspaceTemplate{}, - resyncPeriod, - indexers, - ) -} - -func (f *devPodWorkspaceTemplateInformer) defaultInformer(client versioned.Interface, resyncPeriod time.Duration) cache.SharedIndexInformer { - return NewFilteredDevPodWorkspaceTemplateInformer(client, resyncPeriod, cache.Indexers{cache.NamespaceIndex: cache.MetaNamespaceIndexFunc}, f.tweakListOptions) -} - -func (f *devPodWorkspaceTemplateInformer) Informer() cache.SharedIndexInformer { - return f.factory.InformerFor(&apismanagementv1.DevPodWorkspaceTemplate{}, f.defaultInformer) -} - -func (f *devPodWorkspaceTemplateInformer) Lister() managementv1.DevPodWorkspaceTemplateLister { - return managementv1.NewDevPodWorkspaceTemplateLister(f.Informer().GetIndexer()) -} diff --git a/pkg/informers/externalversions/management/v1/devsyenvironmenttemplate.go b/pkg/informers/externalversions/management/v1/devsyenvironmenttemplate.go new file mode 100644 index 0000000..376f964 --- /dev/null +++ b/pkg/informers/externalversions/management/v1/devsyenvironmenttemplate.go @@ -0,0 +1,85 @@ +// Code generated by informer-gen. DO NOT EDIT. + +package v1 + +import ( + context "context" + time "time" + + apismanagementv1 "github.com/devsy-org/api/pkg/apis/management/v1" + versioned "github.com/devsy-org/api/pkg/clientset/versioned" + internalinterfaces "github.com/devsy-org/api/pkg/informers/externalversions/internalinterfaces" + managementv1 "github.com/devsy-org/api/pkg/listers/management/v1" + metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" + runtime "k8s.io/apimachinery/pkg/runtime" + watch "k8s.io/apimachinery/pkg/watch" + cache "k8s.io/client-go/tools/cache" +) + +// DevsyEnvironmentTemplateInformer provides access to a shared informer and lister for +// DevsyEnvironmentTemplates. +type DevsyEnvironmentTemplateInformer interface { + Informer() cache.SharedIndexInformer + Lister() managementv1.DevsyEnvironmentTemplateLister +} + +type devsyEnvironmentTemplateInformer struct { + factory internalinterfaces.SharedInformerFactory + tweakListOptions internalinterfaces.TweakListOptionsFunc +} + +// NewDevsyEnvironmentTemplateInformer constructs a new informer for DevsyEnvironmentTemplate type. +// Always prefer using an informer factory to get a shared informer instead of getting an independent +// one. This reduces memory footprint and number of connections to the server. +func NewDevsyEnvironmentTemplateInformer(client versioned.Interface, resyncPeriod time.Duration, indexers cache.Indexers) cache.SharedIndexInformer { + return NewFilteredDevsyEnvironmentTemplateInformer(client, resyncPeriod, indexers, nil) +} + +// NewFilteredDevsyEnvironmentTemplateInformer constructs a new informer for DevsyEnvironmentTemplate type. +// Always prefer using an informer factory to get a shared informer instead of getting an independent +// one. This reduces memory footprint and number of connections to the server. +func NewFilteredDevsyEnvironmentTemplateInformer(client versioned.Interface, resyncPeriod time.Duration, indexers cache.Indexers, tweakListOptions internalinterfaces.TweakListOptionsFunc) cache.SharedIndexInformer { + return cache.NewSharedIndexInformer( + cache.ToListWatcherWithWatchListSemantics(&cache.ListWatch{ + ListFunc: func(options metav1.ListOptions) (runtime.Object, error) { + if tweakListOptions != nil { + tweakListOptions(&options) + } + return client.ManagementV1().DevsyEnvironmentTemplates().List(context.Background(), options) + }, + WatchFunc: func(options metav1.ListOptions) (watch.Interface, error) { + if tweakListOptions != nil { + tweakListOptions(&options) + } + return client.ManagementV1().DevsyEnvironmentTemplates().Watch(context.Background(), options) + }, + ListWithContextFunc: func(ctx context.Context, options metav1.ListOptions) (runtime.Object, error) { + if tweakListOptions != nil { + tweakListOptions(&options) + } + return client.ManagementV1().DevsyEnvironmentTemplates().List(ctx, options) + }, + WatchFuncWithContext: func(ctx context.Context, options metav1.ListOptions) (watch.Interface, error) { + if tweakListOptions != nil { + tweakListOptions(&options) + } + return client.ManagementV1().DevsyEnvironmentTemplates().Watch(ctx, options) + }, + }, client), + &apismanagementv1.DevsyEnvironmentTemplate{}, + resyncPeriod, + indexers, + ) +} + +func (f *devsyEnvironmentTemplateInformer) defaultInformer(client versioned.Interface, resyncPeriod time.Duration) cache.SharedIndexInformer { + return NewFilteredDevsyEnvironmentTemplateInformer(client, resyncPeriod, cache.Indexers{cache.NamespaceIndex: cache.MetaNamespaceIndexFunc}, f.tweakListOptions) +} + +func (f *devsyEnvironmentTemplateInformer) Informer() cache.SharedIndexInformer { + return f.factory.InformerFor(&apismanagementv1.DevsyEnvironmentTemplate{}, f.defaultInformer) +} + +func (f *devsyEnvironmentTemplateInformer) Lister() managementv1.DevsyEnvironmentTemplateLister { + return managementv1.NewDevsyEnvironmentTemplateLister(f.Informer().GetIndexer()) +} diff --git a/pkg/informers/externalversions/management/v1/devsyupgrade.go b/pkg/informers/externalversions/management/v1/devsyupgrade.go index f22099d..261451c 100644 --- a/pkg/informers/externalversions/management/v1/devsyupgrade.go +++ b/pkg/informers/externalversions/management/v1/devsyupgrade.go @@ -23,7 +23,7 @@ type DevsyUpgradeInformer interface { Lister() managementv1.DevsyUpgradeLister } -type loftUpgradeInformer struct { +type devsyUpgradeInformer struct { factory internalinterfaces.SharedInformerFactory tweakListOptions internalinterfaces.TweakListOptionsFunc } @@ -40,7 +40,7 @@ func NewDevsyUpgradeInformer(client versioned.Interface, resyncPeriod time.Durat // one. This reduces memory footprint and number of connections to the server. func NewFilteredDevsyUpgradeInformer(client versioned.Interface, resyncPeriod time.Duration, indexers cache.Indexers, tweakListOptions internalinterfaces.TweakListOptionsFunc) cache.SharedIndexInformer { return cache.NewSharedIndexInformer( - &cache.ListWatch{ + cache.ToListWatcherWithWatchListSemantics(&cache.ListWatch{ ListFunc: func(options metav1.ListOptions) (runtime.Object, error) { if tweakListOptions != nil { tweakListOptions(&options) @@ -65,21 +65,21 @@ func NewFilteredDevsyUpgradeInformer(client versioned.Interface, resyncPeriod ti } return client.ManagementV1().DevsyUpgrades().Watch(ctx, options) }, - }, + }, client), &apismanagementv1.DevsyUpgrade{}, resyncPeriod, indexers, ) } -func (f *loftUpgradeInformer) defaultInformer(client versioned.Interface, resyncPeriod time.Duration) cache.SharedIndexInformer { +func (f *devsyUpgradeInformer) defaultInformer(client versioned.Interface, resyncPeriod time.Duration) cache.SharedIndexInformer { return NewFilteredDevsyUpgradeInformer(client, resyncPeriod, cache.Indexers{cache.NamespaceIndex: cache.MetaNamespaceIndexFunc}, f.tweakListOptions) } -func (f *loftUpgradeInformer) Informer() cache.SharedIndexInformer { +func (f *devsyUpgradeInformer) Informer() cache.SharedIndexInformer { return f.factory.InformerFor(&apismanagementv1.DevsyUpgrade{}, f.defaultInformer) } -func (f *loftUpgradeInformer) Lister() managementv1.DevsyUpgradeLister { +func (f *devsyUpgradeInformer) Lister() managementv1.DevsyUpgradeLister { return managementv1.NewDevsyUpgradeLister(f.Informer().GetIndexer()) } diff --git a/pkg/informers/externalversions/management/v1/devsyworkspaceinstance.go b/pkg/informers/externalversions/management/v1/devsyworkspaceinstance.go new file mode 100644 index 0000000..84282b2 --- /dev/null +++ b/pkg/informers/externalversions/management/v1/devsyworkspaceinstance.go @@ -0,0 +1,86 @@ +// Code generated by informer-gen. DO NOT EDIT. + +package v1 + +import ( + context "context" + time "time" + + apismanagementv1 "github.com/devsy-org/api/pkg/apis/management/v1" + versioned "github.com/devsy-org/api/pkg/clientset/versioned" + internalinterfaces "github.com/devsy-org/api/pkg/informers/externalversions/internalinterfaces" + managementv1 "github.com/devsy-org/api/pkg/listers/management/v1" + metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" + runtime "k8s.io/apimachinery/pkg/runtime" + watch "k8s.io/apimachinery/pkg/watch" + cache "k8s.io/client-go/tools/cache" +) + +// DevsyWorkspaceInstanceInformer provides access to a shared informer and lister for +// DevsyWorkspaceInstances. +type DevsyWorkspaceInstanceInformer interface { + Informer() cache.SharedIndexInformer + Lister() managementv1.DevsyWorkspaceInstanceLister +} + +type devsyWorkspaceInstanceInformer struct { + factory internalinterfaces.SharedInformerFactory + tweakListOptions internalinterfaces.TweakListOptionsFunc + namespace string +} + +// NewDevsyWorkspaceInstanceInformer constructs a new informer for DevsyWorkspaceInstance type. +// Always prefer using an informer factory to get a shared informer instead of getting an independent +// one. This reduces memory footprint and number of connections to the server. +func NewDevsyWorkspaceInstanceInformer(client versioned.Interface, namespace string, resyncPeriod time.Duration, indexers cache.Indexers) cache.SharedIndexInformer { + return NewFilteredDevsyWorkspaceInstanceInformer(client, namespace, resyncPeriod, indexers, nil) +} + +// NewFilteredDevsyWorkspaceInstanceInformer constructs a new informer for DevsyWorkspaceInstance type. +// Always prefer using an informer factory to get a shared informer instead of getting an independent +// one. This reduces memory footprint and number of connections to the server. +func NewFilteredDevsyWorkspaceInstanceInformer(client versioned.Interface, namespace string, resyncPeriod time.Duration, indexers cache.Indexers, tweakListOptions internalinterfaces.TweakListOptionsFunc) cache.SharedIndexInformer { + return cache.NewSharedIndexInformer( + cache.ToListWatcherWithWatchListSemantics(&cache.ListWatch{ + ListFunc: func(options metav1.ListOptions) (runtime.Object, error) { + if tweakListOptions != nil { + tweakListOptions(&options) + } + return client.ManagementV1().DevsyWorkspaceInstances(namespace).List(context.Background(), options) + }, + WatchFunc: func(options metav1.ListOptions) (watch.Interface, error) { + if tweakListOptions != nil { + tweakListOptions(&options) + } + return client.ManagementV1().DevsyWorkspaceInstances(namespace).Watch(context.Background(), options) + }, + ListWithContextFunc: func(ctx context.Context, options metav1.ListOptions) (runtime.Object, error) { + if tweakListOptions != nil { + tweakListOptions(&options) + } + return client.ManagementV1().DevsyWorkspaceInstances(namespace).List(ctx, options) + }, + WatchFuncWithContext: func(ctx context.Context, options metav1.ListOptions) (watch.Interface, error) { + if tweakListOptions != nil { + tweakListOptions(&options) + } + return client.ManagementV1().DevsyWorkspaceInstances(namespace).Watch(ctx, options) + }, + }, client), + &apismanagementv1.DevsyWorkspaceInstance{}, + resyncPeriod, + indexers, + ) +} + +func (f *devsyWorkspaceInstanceInformer) defaultInformer(client versioned.Interface, resyncPeriod time.Duration) cache.SharedIndexInformer { + return NewFilteredDevsyWorkspaceInstanceInformer(client, f.namespace, resyncPeriod, cache.Indexers{cache.NamespaceIndex: cache.MetaNamespaceIndexFunc}, f.tweakListOptions) +} + +func (f *devsyWorkspaceInstanceInformer) Informer() cache.SharedIndexInformer { + return f.factory.InformerFor(&apismanagementv1.DevsyWorkspaceInstance{}, f.defaultInformer) +} + +func (f *devsyWorkspaceInstanceInformer) Lister() managementv1.DevsyWorkspaceInstanceLister { + return managementv1.NewDevsyWorkspaceInstanceLister(f.Informer().GetIndexer()) +} diff --git a/pkg/informers/externalversions/management/v1/devsyworkspacepreset.go b/pkg/informers/externalversions/management/v1/devsyworkspacepreset.go new file mode 100644 index 0000000..247d57e --- /dev/null +++ b/pkg/informers/externalversions/management/v1/devsyworkspacepreset.go @@ -0,0 +1,85 @@ +// Code generated by informer-gen. DO NOT EDIT. + +package v1 + +import ( + context "context" + time "time" + + apismanagementv1 "github.com/devsy-org/api/pkg/apis/management/v1" + versioned "github.com/devsy-org/api/pkg/clientset/versioned" + internalinterfaces "github.com/devsy-org/api/pkg/informers/externalversions/internalinterfaces" + managementv1 "github.com/devsy-org/api/pkg/listers/management/v1" + metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" + runtime "k8s.io/apimachinery/pkg/runtime" + watch "k8s.io/apimachinery/pkg/watch" + cache "k8s.io/client-go/tools/cache" +) + +// DevsyWorkspacePresetInformer provides access to a shared informer and lister for +// DevsyWorkspacePresets. +type DevsyWorkspacePresetInformer interface { + Informer() cache.SharedIndexInformer + Lister() managementv1.DevsyWorkspacePresetLister +} + +type devsyWorkspacePresetInformer struct { + factory internalinterfaces.SharedInformerFactory + tweakListOptions internalinterfaces.TweakListOptionsFunc +} + +// NewDevsyWorkspacePresetInformer constructs a new informer for DevsyWorkspacePreset type. +// Always prefer using an informer factory to get a shared informer instead of getting an independent +// one. This reduces memory footprint and number of connections to the server. +func NewDevsyWorkspacePresetInformer(client versioned.Interface, resyncPeriod time.Duration, indexers cache.Indexers) cache.SharedIndexInformer { + return NewFilteredDevsyWorkspacePresetInformer(client, resyncPeriod, indexers, nil) +} + +// NewFilteredDevsyWorkspacePresetInformer constructs a new informer for DevsyWorkspacePreset type. +// Always prefer using an informer factory to get a shared informer instead of getting an independent +// one. This reduces memory footprint and number of connections to the server. +func NewFilteredDevsyWorkspacePresetInformer(client versioned.Interface, resyncPeriod time.Duration, indexers cache.Indexers, tweakListOptions internalinterfaces.TweakListOptionsFunc) cache.SharedIndexInformer { + return cache.NewSharedIndexInformer( + cache.ToListWatcherWithWatchListSemantics(&cache.ListWatch{ + ListFunc: func(options metav1.ListOptions) (runtime.Object, error) { + if tweakListOptions != nil { + tweakListOptions(&options) + } + return client.ManagementV1().DevsyWorkspacePresets().List(context.Background(), options) + }, + WatchFunc: func(options metav1.ListOptions) (watch.Interface, error) { + if tweakListOptions != nil { + tweakListOptions(&options) + } + return client.ManagementV1().DevsyWorkspacePresets().Watch(context.Background(), options) + }, + ListWithContextFunc: func(ctx context.Context, options metav1.ListOptions) (runtime.Object, error) { + if tweakListOptions != nil { + tweakListOptions(&options) + } + return client.ManagementV1().DevsyWorkspacePresets().List(ctx, options) + }, + WatchFuncWithContext: func(ctx context.Context, options metav1.ListOptions) (watch.Interface, error) { + if tweakListOptions != nil { + tweakListOptions(&options) + } + return client.ManagementV1().DevsyWorkspacePresets().Watch(ctx, options) + }, + }, client), + &apismanagementv1.DevsyWorkspacePreset{}, + resyncPeriod, + indexers, + ) +} + +func (f *devsyWorkspacePresetInformer) defaultInformer(client versioned.Interface, resyncPeriod time.Duration) cache.SharedIndexInformer { + return NewFilteredDevsyWorkspacePresetInformer(client, resyncPeriod, cache.Indexers{cache.NamespaceIndex: cache.MetaNamespaceIndexFunc}, f.tweakListOptions) +} + +func (f *devsyWorkspacePresetInformer) Informer() cache.SharedIndexInformer { + return f.factory.InformerFor(&apismanagementv1.DevsyWorkspacePreset{}, f.defaultInformer) +} + +func (f *devsyWorkspacePresetInformer) Lister() managementv1.DevsyWorkspacePresetLister { + return managementv1.NewDevsyWorkspacePresetLister(f.Informer().GetIndexer()) +} diff --git a/pkg/informers/externalversions/management/v1/devsyworkspacetemplate.go b/pkg/informers/externalversions/management/v1/devsyworkspacetemplate.go new file mode 100644 index 0000000..996a28d --- /dev/null +++ b/pkg/informers/externalversions/management/v1/devsyworkspacetemplate.go @@ -0,0 +1,85 @@ +// Code generated by informer-gen. DO NOT EDIT. + +package v1 + +import ( + context "context" + time "time" + + apismanagementv1 "github.com/devsy-org/api/pkg/apis/management/v1" + versioned "github.com/devsy-org/api/pkg/clientset/versioned" + internalinterfaces "github.com/devsy-org/api/pkg/informers/externalversions/internalinterfaces" + managementv1 "github.com/devsy-org/api/pkg/listers/management/v1" + metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" + runtime "k8s.io/apimachinery/pkg/runtime" + watch "k8s.io/apimachinery/pkg/watch" + cache "k8s.io/client-go/tools/cache" +) + +// DevsyWorkspaceTemplateInformer provides access to a shared informer and lister for +// DevsyWorkspaceTemplates. +type DevsyWorkspaceTemplateInformer interface { + Informer() cache.SharedIndexInformer + Lister() managementv1.DevsyWorkspaceTemplateLister +} + +type devsyWorkspaceTemplateInformer struct { + factory internalinterfaces.SharedInformerFactory + tweakListOptions internalinterfaces.TweakListOptionsFunc +} + +// NewDevsyWorkspaceTemplateInformer constructs a new informer for DevsyWorkspaceTemplate type. +// Always prefer using an informer factory to get a shared informer instead of getting an independent +// one. This reduces memory footprint and number of connections to the server. +func NewDevsyWorkspaceTemplateInformer(client versioned.Interface, resyncPeriod time.Duration, indexers cache.Indexers) cache.SharedIndexInformer { + return NewFilteredDevsyWorkspaceTemplateInformer(client, resyncPeriod, indexers, nil) +} + +// NewFilteredDevsyWorkspaceTemplateInformer constructs a new informer for DevsyWorkspaceTemplate type. +// Always prefer using an informer factory to get a shared informer instead of getting an independent +// one. This reduces memory footprint and number of connections to the server. +func NewFilteredDevsyWorkspaceTemplateInformer(client versioned.Interface, resyncPeriod time.Duration, indexers cache.Indexers, tweakListOptions internalinterfaces.TweakListOptionsFunc) cache.SharedIndexInformer { + return cache.NewSharedIndexInformer( + cache.ToListWatcherWithWatchListSemantics(&cache.ListWatch{ + ListFunc: func(options metav1.ListOptions) (runtime.Object, error) { + if tweakListOptions != nil { + tweakListOptions(&options) + } + return client.ManagementV1().DevsyWorkspaceTemplates().List(context.Background(), options) + }, + WatchFunc: func(options metav1.ListOptions) (watch.Interface, error) { + if tweakListOptions != nil { + tweakListOptions(&options) + } + return client.ManagementV1().DevsyWorkspaceTemplates().Watch(context.Background(), options) + }, + ListWithContextFunc: func(ctx context.Context, options metav1.ListOptions) (runtime.Object, error) { + if tweakListOptions != nil { + tweakListOptions(&options) + } + return client.ManagementV1().DevsyWorkspaceTemplates().List(ctx, options) + }, + WatchFuncWithContext: func(ctx context.Context, options metav1.ListOptions) (watch.Interface, error) { + if tweakListOptions != nil { + tweakListOptions(&options) + } + return client.ManagementV1().DevsyWorkspaceTemplates().Watch(ctx, options) + }, + }, client), + &apismanagementv1.DevsyWorkspaceTemplate{}, + resyncPeriod, + indexers, + ) +} + +func (f *devsyWorkspaceTemplateInformer) defaultInformer(client versioned.Interface, resyncPeriod time.Duration) cache.SharedIndexInformer { + return NewFilteredDevsyWorkspaceTemplateInformer(client, resyncPeriod, cache.Indexers{cache.NamespaceIndex: cache.MetaNamespaceIndexFunc}, f.tweakListOptions) +} + +func (f *devsyWorkspaceTemplateInformer) Informer() cache.SharedIndexInformer { + return f.factory.InformerFor(&apismanagementv1.DevsyWorkspaceTemplate{}, f.defaultInformer) +} + +func (f *devsyWorkspaceTemplateInformer) Lister() managementv1.DevsyWorkspaceTemplateLister { + return managementv1.NewDevsyWorkspaceTemplateLister(f.Informer().GetIndexer()) +} diff --git a/pkg/informers/externalversions/management/v1/directclusterendpointtoken.go b/pkg/informers/externalversions/management/v1/directclusterendpointtoken.go index f25f177..2e430f5 100644 --- a/pkg/informers/externalversions/management/v1/directclusterendpointtoken.go +++ b/pkg/informers/externalversions/management/v1/directclusterendpointtoken.go @@ -40,7 +40,7 @@ func NewDirectClusterEndpointTokenInformer(client versioned.Interface, resyncPer // one. This reduces memory footprint and number of connections to the server. func NewFilteredDirectClusterEndpointTokenInformer(client versioned.Interface, resyncPeriod time.Duration, indexers cache.Indexers, tweakListOptions internalinterfaces.TweakListOptionsFunc) cache.SharedIndexInformer { return cache.NewSharedIndexInformer( - &cache.ListWatch{ + cache.ToListWatcherWithWatchListSemantics(&cache.ListWatch{ ListFunc: func(options metav1.ListOptions) (runtime.Object, error) { if tweakListOptions != nil { tweakListOptions(&options) @@ -65,7 +65,7 @@ func NewFilteredDirectClusterEndpointTokenInformer(client versioned.Interface, r } return client.ManagementV1().DirectClusterEndpointTokens().Watch(ctx, options) }, - }, + }, client), &apismanagementv1.DirectClusterEndpointToken{}, resyncPeriod, indexers, diff --git a/pkg/informers/externalversions/management/v1/event.go b/pkg/informers/externalversions/management/v1/event.go index 396c061..2791f50 100644 --- a/pkg/informers/externalversions/management/v1/event.go +++ b/pkg/informers/externalversions/management/v1/event.go @@ -40,7 +40,7 @@ func NewEventInformer(client versioned.Interface, resyncPeriod time.Duration, in // one. This reduces memory footprint and number of connections to the server. func NewFilteredEventInformer(client versioned.Interface, resyncPeriod time.Duration, indexers cache.Indexers, tweakListOptions internalinterfaces.TweakListOptionsFunc) cache.SharedIndexInformer { return cache.NewSharedIndexInformer( - &cache.ListWatch{ + cache.ToListWatcherWithWatchListSemantics(&cache.ListWatch{ ListFunc: func(options metav1.ListOptions) (runtime.Object, error) { if tweakListOptions != nil { tweakListOptions(&options) @@ -65,7 +65,7 @@ func NewFilteredEventInformer(client versioned.Interface, resyncPeriod time.Dura } return client.ManagementV1().Events().Watch(ctx, options) }, - }, + }, client), &apismanagementv1.Event{}, resyncPeriod, indexers, diff --git a/pkg/informers/externalversions/management/v1/feature.go b/pkg/informers/externalversions/management/v1/feature.go index 7a65f0d..4e778d0 100644 --- a/pkg/informers/externalversions/management/v1/feature.go +++ b/pkg/informers/externalversions/management/v1/feature.go @@ -40,7 +40,7 @@ func NewFeatureInformer(client versioned.Interface, resyncPeriod time.Duration, // one. This reduces memory footprint and number of connections to the server. func NewFilteredFeatureInformer(client versioned.Interface, resyncPeriod time.Duration, indexers cache.Indexers, tweakListOptions internalinterfaces.TweakListOptionsFunc) cache.SharedIndexInformer { return cache.NewSharedIndexInformer( - &cache.ListWatch{ + cache.ToListWatcherWithWatchListSemantics(&cache.ListWatch{ ListFunc: func(options metav1.ListOptions) (runtime.Object, error) { if tweakListOptions != nil { tweakListOptions(&options) @@ -65,7 +65,7 @@ func NewFilteredFeatureInformer(client versioned.Interface, resyncPeriod time.Du } return client.ManagementV1().Features().Watch(ctx, options) }, - }, + }, client), &apismanagementv1.Feature{}, resyncPeriod, indexers, diff --git a/pkg/informers/externalversions/management/v1/ingressauthtoken.go b/pkg/informers/externalversions/management/v1/ingressauthtoken.go index 75c3c2a..8997fbc 100644 --- a/pkg/informers/externalversions/management/v1/ingressauthtoken.go +++ b/pkg/informers/externalversions/management/v1/ingressauthtoken.go @@ -40,7 +40,7 @@ func NewIngressAuthTokenInformer(client versioned.Interface, resyncPeriod time.D // one. This reduces memory footprint and number of connections to the server. func NewFilteredIngressAuthTokenInformer(client versioned.Interface, resyncPeriod time.Duration, indexers cache.Indexers, tweakListOptions internalinterfaces.TweakListOptionsFunc) cache.SharedIndexInformer { return cache.NewSharedIndexInformer( - &cache.ListWatch{ + cache.ToListWatcherWithWatchListSemantics(&cache.ListWatch{ ListFunc: func(options metav1.ListOptions) (runtime.Object, error) { if tweakListOptions != nil { tweakListOptions(&options) @@ -65,7 +65,7 @@ func NewFilteredIngressAuthTokenInformer(client versioned.Interface, resyncPerio } return client.ManagementV1().IngressAuthTokens().Watch(ctx, options) }, - }, + }, client), &apismanagementv1.IngressAuthToken{}, resyncPeriod, indexers, diff --git a/pkg/informers/externalversions/management/v1/interface.go b/pkg/informers/externalversions/management/v1/interface.go index cc541eb..93fd3be 100644 --- a/pkg/informers/externalversions/management/v1/interface.go +++ b/pkg/informers/externalversions/management/v1/interface.go @@ -28,14 +28,16 @@ type Interface interface { ConvertVirtualClusterConfigs() ConvertVirtualClusterConfigInformer // DatabaseConnectors returns a DatabaseConnectorInformer. DatabaseConnectors() DatabaseConnectorInformer - // DevPodEnvironmentTemplates returns a DevPodEnvironmentTemplateInformer. - DevPodEnvironmentTemplates() DevPodEnvironmentTemplateInformer - // DevPodWorkspaceInstances returns a DevPodWorkspaceInstanceInformer. - DevPodWorkspaceInstances() DevPodWorkspaceInstanceInformer - // DevPodWorkspacePresets returns a DevPodWorkspacePresetInformer. - DevPodWorkspacePresets() DevPodWorkspacePresetInformer - // DevPodWorkspaceTemplates returns a DevPodWorkspaceTemplateInformer. - DevPodWorkspaceTemplates() DevPodWorkspaceTemplateInformer + // DevsyEnvironmentTemplates returns a DevsyEnvironmentTemplateInformer. + DevsyEnvironmentTemplates() DevsyEnvironmentTemplateInformer + // DevsyUpgrades returns a DevsyUpgradeInformer. + DevsyUpgrades() DevsyUpgradeInformer + // DevsyWorkspaceInstances returns a DevsyWorkspaceInstanceInformer. + DevsyWorkspaceInstances() DevsyWorkspaceInstanceInformer + // DevsyWorkspacePresets returns a DevsyWorkspacePresetInformer. + DevsyWorkspacePresets() DevsyWorkspacePresetInformer + // DevsyWorkspaceTemplates returns a DevsyWorkspaceTemplateInformer. + DevsyWorkspaceTemplates() DevsyWorkspaceTemplateInformer // DirectClusterEndpointTokens returns a DirectClusterEndpointTokenInformer. DirectClusterEndpointTokens() DirectClusterEndpointTokenInformer // Events returns a EventInformer. @@ -48,8 +50,6 @@ type Interface interface { Licenses() LicenseInformer // LicenseTokens returns a LicenseTokenInformer. LicenseTokens() LicenseTokenInformer - // DevsyUpgrades returns a DevsyUpgradeInformer. - DevsyUpgrades() DevsyUpgradeInformer // NodeClaims returns a NodeClaimInformer. NodeClaims() NodeClaimInformer // NodeEnvironments returns a NodeEnvironmentInformer. @@ -163,24 +163,29 @@ func (v *version) DatabaseConnectors() DatabaseConnectorInformer { return &databaseConnectorInformer{factory: v.factory, tweakListOptions: v.tweakListOptions} } -// DevPodEnvironmentTemplates returns a DevPodEnvironmentTemplateInformer. -func (v *version) DevPodEnvironmentTemplates() DevPodEnvironmentTemplateInformer { - return &devPodEnvironmentTemplateInformer{factory: v.factory, tweakListOptions: v.tweakListOptions} +// DevsyEnvironmentTemplates returns a DevsyEnvironmentTemplateInformer. +func (v *version) DevsyEnvironmentTemplates() DevsyEnvironmentTemplateInformer { + return &devsyEnvironmentTemplateInformer{factory: v.factory, tweakListOptions: v.tweakListOptions} +} + +// DevsyUpgrades returns a DevsyUpgradeInformer. +func (v *version) DevsyUpgrades() DevsyUpgradeInformer { + return &devsyUpgradeInformer{factory: v.factory, tweakListOptions: v.tweakListOptions} } -// DevPodWorkspaceInstances returns a DevPodWorkspaceInstanceInformer. -func (v *version) DevPodWorkspaceInstances() DevPodWorkspaceInstanceInformer { - return &devPodWorkspaceInstanceInformer{factory: v.factory, namespace: v.namespace, tweakListOptions: v.tweakListOptions} +// DevsyWorkspaceInstances returns a DevsyWorkspaceInstanceInformer. +func (v *version) DevsyWorkspaceInstances() DevsyWorkspaceInstanceInformer { + return &devsyWorkspaceInstanceInformer{factory: v.factory, namespace: v.namespace, tweakListOptions: v.tweakListOptions} } -// DevPodWorkspacePresets returns a DevPodWorkspacePresetInformer. -func (v *version) DevPodWorkspacePresets() DevPodWorkspacePresetInformer { - return &devPodWorkspacePresetInformer{factory: v.factory, tweakListOptions: v.tweakListOptions} +// DevsyWorkspacePresets returns a DevsyWorkspacePresetInformer. +func (v *version) DevsyWorkspacePresets() DevsyWorkspacePresetInformer { + return &devsyWorkspacePresetInformer{factory: v.factory, tweakListOptions: v.tweakListOptions} } -// DevPodWorkspaceTemplates returns a DevPodWorkspaceTemplateInformer. -func (v *version) DevPodWorkspaceTemplates() DevPodWorkspaceTemplateInformer { - return &devPodWorkspaceTemplateInformer{factory: v.factory, tweakListOptions: v.tweakListOptions} +// DevsyWorkspaceTemplates returns a DevsyWorkspaceTemplateInformer. +func (v *version) DevsyWorkspaceTemplates() DevsyWorkspaceTemplateInformer { + return &devsyWorkspaceTemplateInformer{factory: v.factory, tweakListOptions: v.tweakListOptions} } // DirectClusterEndpointTokens returns a DirectClusterEndpointTokenInformer. @@ -213,11 +218,6 @@ func (v *version) LicenseTokens() LicenseTokenInformer { return &licenseTokenInformer{factory: v.factory, tweakListOptions: v.tweakListOptions} } -// DevsyUpgrades returns a DevsyUpgradeInformer. -func (v *version) DevsyUpgrades() DevsyUpgradeInformer { - return &loftUpgradeInformer{factory: v.factory, tweakListOptions: v.tweakListOptions} -} - // NodeClaims returns a NodeClaimInformer. func (v *version) NodeClaims() NodeClaimInformer { return &nodeClaimInformer{factory: v.factory, namespace: v.namespace, tweakListOptions: v.tweakListOptions} diff --git a/pkg/informers/externalversions/management/v1/license.go b/pkg/informers/externalversions/management/v1/license.go index 8eebd80..d1961cf 100644 --- a/pkg/informers/externalversions/management/v1/license.go +++ b/pkg/informers/externalversions/management/v1/license.go @@ -40,7 +40,7 @@ func NewLicenseInformer(client versioned.Interface, resyncPeriod time.Duration, // one. This reduces memory footprint and number of connections to the server. func NewFilteredLicenseInformer(client versioned.Interface, resyncPeriod time.Duration, indexers cache.Indexers, tweakListOptions internalinterfaces.TweakListOptionsFunc) cache.SharedIndexInformer { return cache.NewSharedIndexInformer( - &cache.ListWatch{ + cache.ToListWatcherWithWatchListSemantics(&cache.ListWatch{ ListFunc: func(options metav1.ListOptions) (runtime.Object, error) { if tweakListOptions != nil { tweakListOptions(&options) @@ -65,7 +65,7 @@ func NewFilteredLicenseInformer(client versioned.Interface, resyncPeriod time.Du } return client.ManagementV1().Licenses().Watch(ctx, options) }, - }, + }, client), &apismanagementv1.License{}, resyncPeriod, indexers, diff --git a/pkg/informers/externalversions/management/v1/licensetoken.go b/pkg/informers/externalversions/management/v1/licensetoken.go index 6f42802..e94c0fb 100644 --- a/pkg/informers/externalversions/management/v1/licensetoken.go +++ b/pkg/informers/externalversions/management/v1/licensetoken.go @@ -40,7 +40,7 @@ func NewLicenseTokenInformer(client versioned.Interface, resyncPeriod time.Durat // one. This reduces memory footprint and number of connections to the server. func NewFilteredLicenseTokenInformer(client versioned.Interface, resyncPeriod time.Duration, indexers cache.Indexers, tweakListOptions internalinterfaces.TweakListOptionsFunc) cache.SharedIndexInformer { return cache.NewSharedIndexInformer( - &cache.ListWatch{ + cache.ToListWatcherWithWatchListSemantics(&cache.ListWatch{ ListFunc: func(options metav1.ListOptions) (runtime.Object, error) { if tweakListOptions != nil { tweakListOptions(&options) @@ -65,7 +65,7 @@ func NewFilteredLicenseTokenInformer(client versioned.Interface, resyncPeriod ti } return client.ManagementV1().LicenseTokens().Watch(ctx, options) }, - }, + }, client), &apismanagementv1.LicenseToken{}, resyncPeriod, indexers, diff --git a/pkg/informers/externalversions/management/v1/nodeclaim.go b/pkg/informers/externalversions/management/v1/nodeclaim.go index 770597a..37f8a36 100644 --- a/pkg/informers/externalversions/management/v1/nodeclaim.go +++ b/pkg/informers/externalversions/management/v1/nodeclaim.go @@ -41,7 +41,7 @@ func NewNodeClaimInformer(client versioned.Interface, namespace string, resyncPe // one. This reduces memory footprint and number of connections to the server. func NewFilteredNodeClaimInformer(client versioned.Interface, namespace string, resyncPeriod time.Duration, indexers cache.Indexers, tweakListOptions internalinterfaces.TweakListOptionsFunc) cache.SharedIndexInformer { return cache.NewSharedIndexInformer( - &cache.ListWatch{ + cache.ToListWatcherWithWatchListSemantics(&cache.ListWatch{ ListFunc: func(options metav1.ListOptions) (runtime.Object, error) { if tweakListOptions != nil { tweakListOptions(&options) @@ -66,7 +66,7 @@ func NewFilteredNodeClaimInformer(client versioned.Interface, namespace string, } return client.ManagementV1().NodeClaims(namespace).Watch(ctx, options) }, - }, + }, client), &apismanagementv1.NodeClaim{}, resyncPeriod, indexers, diff --git a/pkg/informers/externalversions/management/v1/nodeenvironment.go b/pkg/informers/externalversions/management/v1/nodeenvironment.go index 8def6ed..882f7aa 100644 --- a/pkg/informers/externalversions/management/v1/nodeenvironment.go +++ b/pkg/informers/externalversions/management/v1/nodeenvironment.go @@ -41,7 +41,7 @@ func NewNodeEnvironmentInformer(client versioned.Interface, namespace string, re // one. This reduces memory footprint and number of connections to the server. func NewFilteredNodeEnvironmentInformer(client versioned.Interface, namespace string, resyncPeriod time.Duration, indexers cache.Indexers, tweakListOptions internalinterfaces.TweakListOptionsFunc) cache.SharedIndexInformer { return cache.NewSharedIndexInformer( - &cache.ListWatch{ + cache.ToListWatcherWithWatchListSemantics(&cache.ListWatch{ ListFunc: func(options metav1.ListOptions) (runtime.Object, error) { if tweakListOptions != nil { tweakListOptions(&options) @@ -66,7 +66,7 @@ func NewFilteredNodeEnvironmentInformer(client versioned.Interface, namespace st } return client.ManagementV1().NodeEnvironments(namespace).Watch(ctx, options) }, - }, + }, client), &apismanagementv1.NodeEnvironment{}, resyncPeriod, indexers, diff --git a/pkg/informers/externalversions/management/v1/nodeprovider.go b/pkg/informers/externalversions/management/v1/nodeprovider.go index 4dc22b4..b6909b0 100644 --- a/pkg/informers/externalversions/management/v1/nodeprovider.go +++ b/pkg/informers/externalversions/management/v1/nodeprovider.go @@ -40,7 +40,7 @@ func NewNodeProviderInformer(client versioned.Interface, resyncPeriod time.Durat // one. This reduces memory footprint and number of connections to the server. func NewFilteredNodeProviderInformer(client versioned.Interface, resyncPeriod time.Duration, indexers cache.Indexers, tweakListOptions internalinterfaces.TweakListOptionsFunc) cache.SharedIndexInformer { return cache.NewSharedIndexInformer( - &cache.ListWatch{ + cache.ToListWatcherWithWatchListSemantics(&cache.ListWatch{ ListFunc: func(options metav1.ListOptions) (runtime.Object, error) { if tweakListOptions != nil { tweakListOptions(&options) @@ -65,7 +65,7 @@ func NewFilteredNodeProviderInformer(client versioned.Interface, resyncPeriod ti } return client.ManagementV1().NodeProviders().Watch(ctx, options) }, - }, + }, client), &apismanagementv1.NodeProvider{}, resyncPeriod, indexers, diff --git a/pkg/informers/externalversions/management/v1/nodetype.go b/pkg/informers/externalversions/management/v1/nodetype.go index 5c94b61..6d95ec8 100644 --- a/pkg/informers/externalversions/management/v1/nodetype.go +++ b/pkg/informers/externalversions/management/v1/nodetype.go @@ -40,7 +40,7 @@ func NewNodeTypeInformer(client versioned.Interface, resyncPeriod time.Duration, // one. This reduces memory footprint and number of connections to the server. func NewFilteredNodeTypeInformer(client versioned.Interface, resyncPeriod time.Duration, indexers cache.Indexers, tweakListOptions internalinterfaces.TweakListOptionsFunc) cache.SharedIndexInformer { return cache.NewSharedIndexInformer( - &cache.ListWatch{ + cache.ToListWatcherWithWatchListSemantics(&cache.ListWatch{ ListFunc: func(options metav1.ListOptions) (runtime.Object, error) { if tweakListOptions != nil { tweakListOptions(&options) @@ -65,7 +65,7 @@ func NewFilteredNodeTypeInformer(client versioned.Interface, resyncPeriod time.D } return client.ManagementV1().NodeTypes().Watch(ctx, options) }, - }, + }, client), &apismanagementv1.NodeType{}, resyncPeriod, indexers, diff --git a/pkg/informers/externalversions/management/v1/oidcclient.go b/pkg/informers/externalversions/management/v1/oidcclient.go index 48fb04c..5d2d061 100644 --- a/pkg/informers/externalversions/management/v1/oidcclient.go +++ b/pkg/informers/externalversions/management/v1/oidcclient.go @@ -40,7 +40,7 @@ func NewOIDCClientInformer(client versioned.Interface, resyncPeriod time.Duratio // one. This reduces memory footprint and number of connections to the server. func NewFilteredOIDCClientInformer(client versioned.Interface, resyncPeriod time.Duration, indexers cache.Indexers, tweakListOptions internalinterfaces.TweakListOptionsFunc) cache.SharedIndexInformer { return cache.NewSharedIndexInformer( - &cache.ListWatch{ + cache.ToListWatcherWithWatchListSemantics(&cache.ListWatch{ ListFunc: func(options metav1.ListOptions) (runtime.Object, error) { if tweakListOptions != nil { tweakListOptions(&options) @@ -65,7 +65,7 @@ func NewFilteredOIDCClientInformer(client versioned.Interface, resyncPeriod time } return client.ManagementV1().OIDCClients().Watch(ctx, options) }, - }, + }, client), &apismanagementv1.OIDCClient{}, resyncPeriod, indexers, diff --git a/pkg/informers/externalversions/management/v1/ownedaccesskey.go b/pkg/informers/externalversions/management/v1/ownedaccesskey.go index 716ceac..d12355f 100644 --- a/pkg/informers/externalversions/management/v1/ownedaccesskey.go +++ b/pkg/informers/externalversions/management/v1/ownedaccesskey.go @@ -40,7 +40,7 @@ func NewOwnedAccessKeyInformer(client versioned.Interface, resyncPeriod time.Dur // one. This reduces memory footprint and number of connections to the server. func NewFilteredOwnedAccessKeyInformer(client versioned.Interface, resyncPeriod time.Duration, indexers cache.Indexers, tweakListOptions internalinterfaces.TweakListOptionsFunc) cache.SharedIndexInformer { return cache.NewSharedIndexInformer( - &cache.ListWatch{ + cache.ToListWatcherWithWatchListSemantics(&cache.ListWatch{ ListFunc: func(options metav1.ListOptions) (runtime.Object, error) { if tweakListOptions != nil { tweakListOptions(&options) @@ -65,7 +65,7 @@ func NewFilteredOwnedAccessKeyInformer(client versioned.Interface, resyncPeriod } return client.ManagementV1().OwnedAccessKeys().Watch(ctx, options) }, - }, + }, client), &apismanagementv1.OwnedAccessKey{}, resyncPeriod, indexers, diff --git a/pkg/informers/externalversions/management/v1/project.go b/pkg/informers/externalversions/management/v1/project.go index 4b843dd..e22defd 100644 --- a/pkg/informers/externalversions/management/v1/project.go +++ b/pkg/informers/externalversions/management/v1/project.go @@ -40,7 +40,7 @@ func NewProjectInformer(client versioned.Interface, resyncPeriod time.Duration, // one. This reduces memory footprint and number of connections to the server. func NewFilteredProjectInformer(client versioned.Interface, resyncPeriod time.Duration, indexers cache.Indexers, tweakListOptions internalinterfaces.TweakListOptionsFunc) cache.SharedIndexInformer { return cache.NewSharedIndexInformer( - &cache.ListWatch{ + cache.ToListWatcherWithWatchListSemantics(&cache.ListWatch{ ListFunc: func(options metav1.ListOptions) (runtime.Object, error) { if tweakListOptions != nil { tweakListOptions(&options) @@ -65,7 +65,7 @@ func NewFilteredProjectInformer(client versioned.Interface, resyncPeriod time.Du } return client.ManagementV1().Projects().Watch(ctx, options) }, - }, + }, client), &apismanagementv1.Project{}, resyncPeriod, indexers, diff --git a/pkg/informers/externalversions/management/v1/projectsecret.go b/pkg/informers/externalversions/management/v1/projectsecret.go index 31be83f..d49403b 100644 --- a/pkg/informers/externalversions/management/v1/projectsecret.go +++ b/pkg/informers/externalversions/management/v1/projectsecret.go @@ -41,7 +41,7 @@ func NewProjectSecretInformer(client versioned.Interface, namespace string, resy // one. This reduces memory footprint and number of connections to the server. func NewFilteredProjectSecretInformer(client versioned.Interface, namespace string, resyncPeriod time.Duration, indexers cache.Indexers, tweakListOptions internalinterfaces.TweakListOptionsFunc) cache.SharedIndexInformer { return cache.NewSharedIndexInformer( - &cache.ListWatch{ + cache.ToListWatcherWithWatchListSemantics(&cache.ListWatch{ ListFunc: func(options metav1.ListOptions) (runtime.Object, error) { if tweakListOptions != nil { tweakListOptions(&options) @@ -66,7 +66,7 @@ func NewFilteredProjectSecretInformer(client versioned.Interface, namespace stri } return client.ManagementV1().ProjectSecrets(namespace).Watch(ctx, options) }, - }, + }, client), &apismanagementv1.ProjectSecret{}, resyncPeriod, indexers, diff --git a/pkg/informers/externalversions/management/v1/redirecttoken.go b/pkg/informers/externalversions/management/v1/redirecttoken.go index 598d0db..d253c69 100644 --- a/pkg/informers/externalversions/management/v1/redirecttoken.go +++ b/pkg/informers/externalversions/management/v1/redirecttoken.go @@ -40,7 +40,7 @@ func NewRedirectTokenInformer(client versioned.Interface, resyncPeriod time.Dura // one. This reduces memory footprint and number of connections to the server. func NewFilteredRedirectTokenInformer(client versioned.Interface, resyncPeriod time.Duration, indexers cache.Indexers, tweakListOptions internalinterfaces.TweakListOptionsFunc) cache.SharedIndexInformer { return cache.NewSharedIndexInformer( - &cache.ListWatch{ + cache.ToListWatcherWithWatchListSemantics(&cache.ListWatch{ ListFunc: func(options metav1.ListOptions) (runtime.Object, error) { if tweakListOptions != nil { tweakListOptions(&options) @@ -65,7 +65,7 @@ func NewFilteredRedirectTokenInformer(client versioned.Interface, resyncPeriod t } return client.ManagementV1().RedirectTokens().Watch(ctx, options) }, - }, + }, client), &apismanagementv1.RedirectToken{}, resyncPeriod, indexers, diff --git a/pkg/informers/externalversions/management/v1/registervirtualcluster.go b/pkg/informers/externalversions/management/v1/registervirtualcluster.go index a8562f6..95f1b37 100644 --- a/pkg/informers/externalversions/management/v1/registervirtualcluster.go +++ b/pkg/informers/externalversions/management/v1/registervirtualcluster.go @@ -40,7 +40,7 @@ func NewRegisterVirtualClusterInformer(client versioned.Interface, resyncPeriod // one. This reduces memory footprint and number of connections to the server. func NewFilteredRegisterVirtualClusterInformer(client versioned.Interface, resyncPeriod time.Duration, indexers cache.Indexers, tweakListOptions internalinterfaces.TweakListOptionsFunc) cache.SharedIndexInformer { return cache.NewSharedIndexInformer( - &cache.ListWatch{ + cache.ToListWatcherWithWatchListSemantics(&cache.ListWatch{ ListFunc: func(options metav1.ListOptions) (runtime.Object, error) { if tweakListOptions != nil { tweakListOptions(&options) @@ -65,7 +65,7 @@ func NewFilteredRegisterVirtualClusterInformer(client versioned.Interface, resyn } return client.ManagementV1().RegisterVirtualClusters().Watch(ctx, options) }, - }, + }, client), &apismanagementv1.RegisterVirtualCluster{}, resyncPeriod, indexers, diff --git a/pkg/informers/externalversions/management/v1/resetaccesskey.go b/pkg/informers/externalversions/management/v1/resetaccesskey.go index 0d4e3ce..a70f301 100644 --- a/pkg/informers/externalversions/management/v1/resetaccesskey.go +++ b/pkg/informers/externalversions/management/v1/resetaccesskey.go @@ -40,7 +40,7 @@ func NewResetAccessKeyInformer(client versioned.Interface, resyncPeriod time.Dur // one. This reduces memory footprint and number of connections to the server. func NewFilteredResetAccessKeyInformer(client versioned.Interface, resyncPeriod time.Duration, indexers cache.Indexers, tweakListOptions internalinterfaces.TweakListOptionsFunc) cache.SharedIndexInformer { return cache.NewSharedIndexInformer( - &cache.ListWatch{ + cache.ToListWatcherWithWatchListSemantics(&cache.ListWatch{ ListFunc: func(options metav1.ListOptions) (runtime.Object, error) { if tweakListOptions != nil { tweakListOptions(&options) @@ -65,7 +65,7 @@ func NewFilteredResetAccessKeyInformer(client versioned.Interface, resyncPeriod } return client.ManagementV1().ResetAccessKeys().Watch(ctx, options) }, - }, + }, client), &apismanagementv1.ResetAccessKey{}, resyncPeriod, indexers, diff --git a/pkg/informers/externalversions/management/v1/self.go b/pkg/informers/externalversions/management/v1/self.go index 1d1583a..d1693dd 100644 --- a/pkg/informers/externalversions/management/v1/self.go +++ b/pkg/informers/externalversions/management/v1/self.go @@ -40,7 +40,7 @@ func NewSelfInformer(client versioned.Interface, resyncPeriod time.Duration, ind // one. This reduces memory footprint and number of connections to the server. func NewFilteredSelfInformer(client versioned.Interface, resyncPeriod time.Duration, indexers cache.Indexers, tweakListOptions internalinterfaces.TweakListOptionsFunc) cache.SharedIndexInformer { return cache.NewSharedIndexInformer( - &cache.ListWatch{ + cache.ToListWatcherWithWatchListSemantics(&cache.ListWatch{ ListFunc: func(options metav1.ListOptions) (runtime.Object, error) { if tweakListOptions != nil { tweakListOptions(&options) @@ -65,7 +65,7 @@ func NewFilteredSelfInformer(client versioned.Interface, resyncPeriod time.Durat } return client.ManagementV1().Selves().Watch(ctx, options) }, - }, + }, client), &apismanagementv1.Self{}, resyncPeriod, indexers, diff --git a/pkg/informers/externalversions/management/v1/selfsubjectaccessreview.go b/pkg/informers/externalversions/management/v1/selfsubjectaccessreview.go index d8f5857..5510f46 100644 --- a/pkg/informers/externalversions/management/v1/selfsubjectaccessreview.go +++ b/pkg/informers/externalversions/management/v1/selfsubjectaccessreview.go @@ -40,7 +40,7 @@ func NewSelfSubjectAccessReviewInformer(client versioned.Interface, resyncPeriod // one. This reduces memory footprint and number of connections to the server. func NewFilteredSelfSubjectAccessReviewInformer(client versioned.Interface, resyncPeriod time.Duration, indexers cache.Indexers, tweakListOptions internalinterfaces.TweakListOptionsFunc) cache.SharedIndexInformer { return cache.NewSharedIndexInformer( - &cache.ListWatch{ + cache.ToListWatcherWithWatchListSemantics(&cache.ListWatch{ ListFunc: func(options metav1.ListOptions) (runtime.Object, error) { if tweakListOptions != nil { tweakListOptions(&options) @@ -65,7 +65,7 @@ func NewFilteredSelfSubjectAccessReviewInformer(client versioned.Interface, resy } return client.ManagementV1().SelfSubjectAccessReviews().Watch(ctx, options) }, - }, + }, client), &apismanagementv1.SelfSubjectAccessReview{}, resyncPeriod, indexers, diff --git a/pkg/informers/externalversions/management/v1/sharedsecret.go b/pkg/informers/externalversions/management/v1/sharedsecret.go index 645d61e..1a9d711 100644 --- a/pkg/informers/externalversions/management/v1/sharedsecret.go +++ b/pkg/informers/externalversions/management/v1/sharedsecret.go @@ -41,7 +41,7 @@ func NewSharedSecretInformer(client versioned.Interface, namespace string, resyn // one. This reduces memory footprint and number of connections to the server. func NewFilteredSharedSecretInformer(client versioned.Interface, namespace string, resyncPeriod time.Duration, indexers cache.Indexers, tweakListOptions internalinterfaces.TweakListOptionsFunc) cache.SharedIndexInformer { return cache.NewSharedIndexInformer( - &cache.ListWatch{ + cache.ToListWatcherWithWatchListSemantics(&cache.ListWatch{ ListFunc: func(options metav1.ListOptions) (runtime.Object, error) { if tweakListOptions != nil { tweakListOptions(&options) @@ -66,7 +66,7 @@ func NewFilteredSharedSecretInformer(client versioned.Interface, namespace strin } return client.ManagementV1().SharedSecrets(namespace).Watch(ctx, options) }, - }, + }, client), &apismanagementv1.SharedSecret{}, resyncPeriod, indexers, diff --git a/pkg/informers/externalversions/management/v1/spaceinstance.go b/pkg/informers/externalversions/management/v1/spaceinstance.go index 88e1d06..37cbe2a 100644 --- a/pkg/informers/externalversions/management/v1/spaceinstance.go +++ b/pkg/informers/externalversions/management/v1/spaceinstance.go @@ -41,7 +41,7 @@ func NewSpaceInstanceInformer(client versioned.Interface, namespace string, resy // one. This reduces memory footprint and number of connections to the server. func NewFilteredSpaceInstanceInformer(client versioned.Interface, namespace string, resyncPeriod time.Duration, indexers cache.Indexers, tweakListOptions internalinterfaces.TweakListOptionsFunc) cache.SharedIndexInformer { return cache.NewSharedIndexInformer( - &cache.ListWatch{ + cache.ToListWatcherWithWatchListSemantics(&cache.ListWatch{ ListFunc: func(options metav1.ListOptions) (runtime.Object, error) { if tweakListOptions != nil { tweakListOptions(&options) @@ -66,7 +66,7 @@ func NewFilteredSpaceInstanceInformer(client versioned.Interface, namespace stri } return client.ManagementV1().SpaceInstances(namespace).Watch(ctx, options) }, - }, + }, client), &apismanagementv1.SpaceInstance{}, resyncPeriod, indexers, diff --git a/pkg/informers/externalversions/management/v1/spacetemplate.go b/pkg/informers/externalversions/management/v1/spacetemplate.go index bf94f06..d10c21d 100644 --- a/pkg/informers/externalversions/management/v1/spacetemplate.go +++ b/pkg/informers/externalversions/management/v1/spacetemplate.go @@ -40,7 +40,7 @@ func NewSpaceTemplateInformer(client versioned.Interface, resyncPeriod time.Dura // one. This reduces memory footprint and number of connections to the server. func NewFilteredSpaceTemplateInformer(client versioned.Interface, resyncPeriod time.Duration, indexers cache.Indexers, tweakListOptions internalinterfaces.TweakListOptionsFunc) cache.SharedIndexInformer { return cache.NewSharedIndexInformer( - &cache.ListWatch{ + cache.ToListWatcherWithWatchListSemantics(&cache.ListWatch{ ListFunc: func(options metav1.ListOptions) (runtime.Object, error) { if tweakListOptions != nil { tweakListOptions(&options) @@ -65,7 +65,7 @@ func NewFilteredSpaceTemplateInformer(client versioned.Interface, resyncPeriod t } return client.ManagementV1().SpaceTemplates().Watch(ctx, options) }, - }, + }, client), &apismanagementv1.SpaceTemplate{}, resyncPeriod, indexers, diff --git a/pkg/informers/externalversions/management/v1/subjectaccessreview.go b/pkg/informers/externalversions/management/v1/subjectaccessreview.go index bd7f733..856c221 100644 --- a/pkg/informers/externalversions/management/v1/subjectaccessreview.go +++ b/pkg/informers/externalversions/management/v1/subjectaccessreview.go @@ -40,7 +40,7 @@ func NewSubjectAccessReviewInformer(client versioned.Interface, resyncPeriod tim // one. This reduces memory footprint and number of connections to the server. func NewFilteredSubjectAccessReviewInformer(client versioned.Interface, resyncPeriod time.Duration, indexers cache.Indexers, tweakListOptions internalinterfaces.TweakListOptionsFunc) cache.SharedIndexInformer { return cache.NewSharedIndexInformer( - &cache.ListWatch{ + cache.ToListWatcherWithWatchListSemantics(&cache.ListWatch{ ListFunc: func(options metav1.ListOptions) (runtime.Object, error) { if tweakListOptions != nil { tweakListOptions(&options) @@ -65,7 +65,7 @@ func NewFilteredSubjectAccessReviewInformer(client versioned.Interface, resyncPe } return client.ManagementV1().SubjectAccessReviews().Watch(ctx, options) }, - }, + }, client), &apismanagementv1.SubjectAccessReview{}, resyncPeriod, indexers, diff --git a/pkg/informers/externalversions/management/v1/task.go b/pkg/informers/externalversions/management/v1/task.go index 7d277fc..94077e7 100644 --- a/pkg/informers/externalversions/management/v1/task.go +++ b/pkg/informers/externalversions/management/v1/task.go @@ -40,7 +40,7 @@ func NewTaskInformer(client versioned.Interface, resyncPeriod time.Duration, ind // one. This reduces memory footprint and number of connections to the server. func NewFilteredTaskInformer(client versioned.Interface, resyncPeriod time.Duration, indexers cache.Indexers, tweakListOptions internalinterfaces.TweakListOptionsFunc) cache.SharedIndexInformer { return cache.NewSharedIndexInformer( - &cache.ListWatch{ + cache.ToListWatcherWithWatchListSemantics(&cache.ListWatch{ ListFunc: func(options metav1.ListOptions) (runtime.Object, error) { if tweakListOptions != nil { tweakListOptions(&options) @@ -65,7 +65,7 @@ func NewFilteredTaskInformer(client versioned.Interface, resyncPeriod time.Durat } return client.ManagementV1().Tasks().Watch(ctx, options) }, - }, + }, client), &apismanagementv1.Task{}, resyncPeriod, indexers, diff --git a/pkg/informers/externalversions/management/v1/team.go b/pkg/informers/externalversions/management/v1/team.go index 9d5c5a2..dec0935 100644 --- a/pkg/informers/externalversions/management/v1/team.go +++ b/pkg/informers/externalversions/management/v1/team.go @@ -40,7 +40,7 @@ func NewTeamInformer(client versioned.Interface, resyncPeriod time.Duration, ind // one. This reduces memory footprint and number of connections to the server. func NewFilteredTeamInformer(client versioned.Interface, resyncPeriod time.Duration, indexers cache.Indexers, tweakListOptions internalinterfaces.TweakListOptionsFunc) cache.SharedIndexInformer { return cache.NewSharedIndexInformer( - &cache.ListWatch{ + cache.ToListWatcherWithWatchListSemantics(&cache.ListWatch{ ListFunc: func(options metav1.ListOptions) (runtime.Object, error) { if tweakListOptions != nil { tweakListOptions(&options) @@ -65,7 +65,7 @@ func NewFilteredTeamInformer(client versioned.Interface, resyncPeriod time.Durat } return client.ManagementV1().Teams().Watch(ctx, options) }, - }, + }, client), &apismanagementv1.Team{}, resyncPeriod, indexers, diff --git a/pkg/informers/externalversions/management/v1/translatedevsyresourcename.go b/pkg/informers/externalversions/management/v1/translatedevsyresourcename.go index 4cbe131..4f6def4 100644 --- a/pkg/informers/externalversions/management/v1/translatedevsyresourcename.go +++ b/pkg/informers/externalversions/management/v1/translatedevsyresourcename.go @@ -40,7 +40,7 @@ func NewTranslateDevsyResourceNameInformer(client versioned.Interface, resyncPer // one. This reduces memory footprint and number of connections to the server. func NewFilteredTranslateDevsyResourceNameInformer(client versioned.Interface, resyncPeriod time.Duration, indexers cache.Indexers, tweakListOptions internalinterfaces.TweakListOptionsFunc) cache.SharedIndexInformer { return cache.NewSharedIndexInformer( - &cache.ListWatch{ + cache.ToListWatcherWithWatchListSemantics(&cache.ListWatch{ ListFunc: func(options metav1.ListOptions) (runtime.Object, error) { if tweakListOptions != nil { tweakListOptions(&options) @@ -65,7 +65,7 @@ func NewFilteredTranslateDevsyResourceNameInformer(client versioned.Interface, r } return client.ManagementV1().TranslateDevsyResourceNames().Watch(ctx, options) }, - }, + }, client), &apismanagementv1.TranslateDevsyResourceName{}, resyncPeriod, indexers, diff --git a/pkg/informers/externalversions/management/v1/usagedownload.go b/pkg/informers/externalversions/management/v1/usagedownload.go index 68835b2..d9c1057 100644 --- a/pkg/informers/externalversions/management/v1/usagedownload.go +++ b/pkg/informers/externalversions/management/v1/usagedownload.go @@ -40,7 +40,7 @@ func NewUsageDownloadInformer(client versioned.Interface, resyncPeriod time.Dura // one. This reduces memory footprint and number of connections to the server. func NewFilteredUsageDownloadInformer(client versioned.Interface, resyncPeriod time.Duration, indexers cache.Indexers, tweakListOptions internalinterfaces.TweakListOptionsFunc) cache.SharedIndexInformer { return cache.NewSharedIndexInformer( - &cache.ListWatch{ + cache.ToListWatcherWithWatchListSemantics(&cache.ListWatch{ ListFunc: func(options metav1.ListOptions) (runtime.Object, error) { if tweakListOptions != nil { tweakListOptions(&options) @@ -65,7 +65,7 @@ func NewFilteredUsageDownloadInformer(client versioned.Interface, resyncPeriod t } return client.ManagementV1().UsageDownloads().Watch(ctx, options) }, - }, + }, client), &apismanagementv1.UsageDownload{}, resyncPeriod, indexers, diff --git a/pkg/informers/externalversions/management/v1/user.go b/pkg/informers/externalversions/management/v1/user.go index 7e64d49..7a25a03 100644 --- a/pkg/informers/externalversions/management/v1/user.go +++ b/pkg/informers/externalversions/management/v1/user.go @@ -40,7 +40,7 @@ func NewUserInformer(client versioned.Interface, resyncPeriod time.Duration, ind // one. This reduces memory footprint and number of connections to the server. func NewFilteredUserInformer(client versioned.Interface, resyncPeriod time.Duration, indexers cache.Indexers, tweakListOptions internalinterfaces.TweakListOptionsFunc) cache.SharedIndexInformer { return cache.NewSharedIndexInformer( - &cache.ListWatch{ + cache.ToListWatcherWithWatchListSemantics(&cache.ListWatch{ ListFunc: func(options metav1.ListOptions) (runtime.Object, error) { if tweakListOptions != nil { tweakListOptions(&options) @@ -65,7 +65,7 @@ func NewFilteredUserInformer(client versioned.Interface, resyncPeriod time.Durat } return client.ManagementV1().Users().Watch(ctx, options) }, - }, + }, client), &apismanagementv1.User{}, resyncPeriod, indexers, diff --git a/pkg/informers/externalversions/management/v1/virtualclusterinstance.go b/pkg/informers/externalversions/management/v1/virtualclusterinstance.go index 19341ba..7b3f273 100644 --- a/pkg/informers/externalversions/management/v1/virtualclusterinstance.go +++ b/pkg/informers/externalversions/management/v1/virtualclusterinstance.go @@ -41,7 +41,7 @@ func NewVirtualClusterInstanceInformer(client versioned.Interface, namespace str // one. This reduces memory footprint and number of connections to the server. func NewFilteredVirtualClusterInstanceInformer(client versioned.Interface, namespace string, resyncPeriod time.Duration, indexers cache.Indexers, tweakListOptions internalinterfaces.TweakListOptionsFunc) cache.SharedIndexInformer { return cache.NewSharedIndexInformer( - &cache.ListWatch{ + cache.ToListWatcherWithWatchListSemantics(&cache.ListWatch{ ListFunc: func(options metav1.ListOptions) (runtime.Object, error) { if tweakListOptions != nil { tweakListOptions(&options) @@ -66,7 +66,7 @@ func NewFilteredVirtualClusterInstanceInformer(client versioned.Interface, names } return client.ManagementV1().VirtualClusterInstances(namespace).Watch(ctx, options) }, - }, + }, client), &apismanagementv1.VirtualClusterInstance{}, resyncPeriod, indexers, diff --git a/pkg/informers/externalversions/management/v1/virtualclusterschema.go b/pkg/informers/externalversions/management/v1/virtualclusterschema.go index 9115751..84812b2 100644 --- a/pkg/informers/externalversions/management/v1/virtualclusterschema.go +++ b/pkg/informers/externalversions/management/v1/virtualclusterschema.go @@ -40,7 +40,7 @@ func NewVirtualClusterSchemaInformer(client versioned.Interface, resyncPeriod ti // one. This reduces memory footprint and number of connections to the server. func NewFilteredVirtualClusterSchemaInformer(client versioned.Interface, resyncPeriod time.Duration, indexers cache.Indexers, tweakListOptions internalinterfaces.TweakListOptionsFunc) cache.SharedIndexInformer { return cache.NewSharedIndexInformer( - &cache.ListWatch{ + cache.ToListWatcherWithWatchListSemantics(&cache.ListWatch{ ListFunc: func(options metav1.ListOptions) (runtime.Object, error) { if tweakListOptions != nil { tweakListOptions(&options) @@ -65,7 +65,7 @@ func NewFilteredVirtualClusterSchemaInformer(client versioned.Interface, resyncP } return client.ManagementV1().VirtualClusterSchemas().Watch(ctx, options) }, - }, + }, client), &apismanagementv1.VirtualClusterSchema{}, resyncPeriod, indexers, diff --git a/pkg/informers/externalversions/management/v1/virtualclustertemplate.go b/pkg/informers/externalversions/management/v1/virtualclustertemplate.go index 405095e..fa1b9e3 100644 --- a/pkg/informers/externalversions/management/v1/virtualclustertemplate.go +++ b/pkg/informers/externalversions/management/v1/virtualclustertemplate.go @@ -40,7 +40,7 @@ func NewVirtualClusterTemplateInformer(client versioned.Interface, resyncPeriod // one. This reduces memory footprint and number of connections to the server. func NewFilteredVirtualClusterTemplateInformer(client versioned.Interface, resyncPeriod time.Duration, indexers cache.Indexers, tweakListOptions internalinterfaces.TweakListOptionsFunc) cache.SharedIndexInformer { return cache.NewSharedIndexInformer( - &cache.ListWatch{ + cache.ToListWatcherWithWatchListSemantics(&cache.ListWatch{ ListFunc: func(options metav1.ListOptions) (runtime.Object, error) { if tweakListOptions != nil { tweakListOptions(&options) @@ -65,7 +65,7 @@ func NewFilteredVirtualClusterTemplateInformer(client versioned.Interface, resyn } return client.ManagementV1().VirtualClusterTemplates().Watch(ctx, options) }, - }, + }, client), &apismanagementv1.VirtualClusterTemplate{}, resyncPeriod, indexers, diff --git a/pkg/informers/externalversions/storage/v1/accesskey.go b/pkg/informers/externalversions/storage/v1/accesskey.go index 8518306..932e4ed 100644 --- a/pkg/informers/externalversions/storage/v1/accesskey.go +++ b/pkg/informers/externalversions/storage/v1/accesskey.go @@ -40,7 +40,7 @@ func NewAccessKeyInformer(client versioned.Interface, resyncPeriod time.Duration // one. This reduces memory footprint and number of connections to the server. func NewFilteredAccessKeyInformer(client versioned.Interface, resyncPeriod time.Duration, indexers cache.Indexers, tweakListOptions internalinterfaces.TweakListOptionsFunc) cache.SharedIndexInformer { return cache.NewSharedIndexInformer( - &cache.ListWatch{ + cache.ToListWatcherWithWatchListSemantics(&cache.ListWatch{ ListFunc: func(options metav1.ListOptions) (runtime.Object, error) { if tweakListOptions != nil { tweakListOptions(&options) @@ -65,7 +65,7 @@ func NewFilteredAccessKeyInformer(client versioned.Interface, resyncPeriod time. } return client.StorageV1().AccessKeys().Watch(ctx, options) }, - }, + }, client), &apisstoragev1.AccessKey{}, resyncPeriod, indexers, diff --git a/pkg/informers/externalversions/storage/v1/app.go b/pkg/informers/externalversions/storage/v1/app.go index a1f08c2..3b8e14d 100644 --- a/pkg/informers/externalversions/storage/v1/app.go +++ b/pkg/informers/externalversions/storage/v1/app.go @@ -40,7 +40,7 @@ func NewAppInformer(client versioned.Interface, resyncPeriod time.Duration, inde // one. This reduces memory footprint and number of connections to the server. func NewFilteredAppInformer(client versioned.Interface, resyncPeriod time.Duration, indexers cache.Indexers, tweakListOptions internalinterfaces.TweakListOptionsFunc) cache.SharedIndexInformer { return cache.NewSharedIndexInformer( - &cache.ListWatch{ + cache.ToListWatcherWithWatchListSemantics(&cache.ListWatch{ ListFunc: func(options metav1.ListOptions) (runtime.Object, error) { if tweakListOptions != nil { tweakListOptions(&options) @@ -65,7 +65,7 @@ func NewFilteredAppInformer(client versioned.Interface, resyncPeriod time.Durati } return client.StorageV1().Apps().Watch(ctx, options) }, - }, + }, client), &apisstoragev1.App{}, resyncPeriod, indexers, diff --git a/pkg/informers/externalversions/storage/v1/cluster.go b/pkg/informers/externalversions/storage/v1/cluster.go index 607ea4b..fee70cc 100644 --- a/pkg/informers/externalversions/storage/v1/cluster.go +++ b/pkg/informers/externalversions/storage/v1/cluster.go @@ -40,7 +40,7 @@ func NewClusterInformer(client versioned.Interface, resyncPeriod time.Duration, // one. This reduces memory footprint and number of connections to the server. func NewFilteredClusterInformer(client versioned.Interface, resyncPeriod time.Duration, indexers cache.Indexers, tweakListOptions internalinterfaces.TweakListOptionsFunc) cache.SharedIndexInformer { return cache.NewSharedIndexInformer( - &cache.ListWatch{ + cache.ToListWatcherWithWatchListSemantics(&cache.ListWatch{ ListFunc: func(options metav1.ListOptions) (runtime.Object, error) { if tweakListOptions != nil { tweakListOptions(&options) @@ -65,7 +65,7 @@ func NewFilteredClusterInformer(client versioned.Interface, resyncPeriod time.Du } return client.StorageV1().Clusters().Watch(ctx, options) }, - }, + }, client), &apisstoragev1.Cluster{}, resyncPeriod, indexers, diff --git a/pkg/informers/externalversions/storage/v1/clusteraccess.go b/pkg/informers/externalversions/storage/v1/clusteraccess.go index f7eef20..e7509ac 100644 --- a/pkg/informers/externalversions/storage/v1/clusteraccess.go +++ b/pkg/informers/externalversions/storage/v1/clusteraccess.go @@ -40,7 +40,7 @@ func NewClusterAccessInformer(client versioned.Interface, resyncPeriod time.Dura // one. This reduces memory footprint and number of connections to the server. func NewFilteredClusterAccessInformer(client versioned.Interface, resyncPeriod time.Duration, indexers cache.Indexers, tweakListOptions internalinterfaces.TweakListOptionsFunc) cache.SharedIndexInformer { return cache.NewSharedIndexInformer( - &cache.ListWatch{ + cache.ToListWatcherWithWatchListSemantics(&cache.ListWatch{ ListFunc: func(options metav1.ListOptions) (runtime.Object, error) { if tweakListOptions != nil { tweakListOptions(&options) @@ -65,7 +65,7 @@ func NewFilteredClusterAccessInformer(client versioned.Interface, resyncPeriod t } return client.StorageV1().ClusterAccesses().Watch(ctx, options) }, - }, + }, client), &apisstoragev1.ClusterAccess{}, resyncPeriod, indexers, diff --git a/pkg/informers/externalversions/storage/v1/clusterroletemplate.go b/pkg/informers/externalversions/storage/v1/clusterroletemplate.go index 7a1000b..b50483e 100644 --- a/pkg/informers/externalversions/storage/v1/clusterroletemplate.go +++ b/pkg/informers/externalversions/storage/v1/clusterroletemplate.go @@ -40,7 +40,7 @@ func NewClusterRoleTemplateInformer(client versioned.Interface, resyncPeriod tim // one. This reduces memory footprint and number of connections to the server. func NewFilteredClusterRoleTemplateInformer(client versioned.Interface, resyncPeriod time.Duration, indexers cache.Indexers, tweakListOptions internalinterfaces.TweakListOptionsFunc) cache.SharedIndexInformer { return cache.NewSharedIndexInformer( - &cache.ListWatch{ + cache.ToListWatcherWithWatchListSemantics(&cache.ListWatch{ ListFunc: func(options metav1.ListOptions) (runtime.Object, error) { if tweakListOptions != nil { tweakListOptions(&options) @@ -65,7 +65,7 @@ func NewFilteredClusterRoleTemplateInformer(client versioned.Interface, resyncPe } return client.StorageV1().ClusterRoleTemplates().Watch(ctx, options) }, - }, + }, client), &apisstoragev1.ClusterRoleTemplate{}, resyncPeriod, indexers, diff --git a/pkg/informers/externalversions/storage/v1/devpodenvironmenttemplate.go b/pkg/informers/externalversions/storage/v1/devpodenvironmenttemplate.go deleted file mode 100644 index 2188c3e..0000000 --- a/pkg/informers/externalversions/storage/v1/devpodenvironmenttemplate.go +++ /dev/null @@ -1,85 +0,0 @@ -// Code generated by informer-gen. DO NOT EDIT. - -package v1 - -import ( - context "context" - time "time" - - apisstoragev1 "github.com/devsy-org/api/pkg/apis/storage/v1" - versioned "github.com/devsy-org/api/pkg/clientset/versioned" - internalinterfaces "github.com/devsy-org/api/pkg/informers/externalversions/internalinterfaces" - storagev1 "github.com/devsy-org/api/pkg/listers/storage/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" - runtime "k8s.io/apimachinery/pkg/runtime" - watch "k8s.io/apimachinery/pkg/watch" - cache "k8s.io/client-go/tools/cache" -) - -// DevPodEnvironmentTemplateInformer provides access to a shared informer and lister for -// DevPodEnvironmentTemplates. -type DevPodEnvironmentTemplateInformer interface { - Informer() cache.SharedIndexInformer - Lister() storagev1.DevPodEnvironmentTemplateLister -} - -type devPodEnvironmentTemplateInformer struct { - factory internalinterfaces.SharedInformerFactory - tweakListOptions internalinterfaces.TweakListOptionsFunc -} - -// NewDevPodEnvironmentTemplateInformer constructs a new informer for DevPodEnvironmentTemplate type. -// Always prefer using an informer factory to get a shared informer instead of getting an independent -// one. This reduces memory footprint and number of connections to the server. -func NewDevPodEnvironmentTemplateInformer(client versioned.Interface, resyncPeriod time.Duration, indexers cache.Indexers) cache.SharedIndexInformer { - return NewFilteredDevPodEnvironmentTemplateInformer(client, resyncPeriod, indexers, nil) -} - -// NewFilteredDevPodEnvironmentTemplateInformer constructs a new informer for DevPodEnvironmentTemplate type. -// Always prefer using an informer factory to get a shared informer instead of getting an independent -// one. This reduces memory footprint and number of connections to the server. -func NewFilteredDevPodEnvironmentTemplateInformer(client versioned.Interface, resyncPeriod time.Duration, indexers cache.Indexers, tweakListOptions internalinterfaces.TweakListOptionsFunc) cache.SharedIndexInformer { - return cache.NewSharedIndexInformer( - &cache.ListWatch{ - ListFunc: func(options metav1.ListOptions) (runtime.Object, error) { - if tweakListOptions != nil { - tweakListOptions(&options) - } - return client.StorageV1().DevPodEnvironmentTemplates().List(context.Background(), options) - }, - WatchFunc: func(options metav1.ListOptions) (watch.Interface, error) { - if tweakListOptions != nil { - tweakListOptions(&options) - } - return client.StorageV1().DevPodEnvironmentTemplates().Watch(context.Background(), options) - }, - ListWithContextFunc: func(ctx context.Context, options metav1.ListOptions) (runtime.Object, error) { - if tweakListOptions != nil { - tweakListOptions(&options) - } - return client.StorageV1().DevPodEnvironmentTemplates().List(ctx, options) - }, - WatchFuncWithContext: func(ctx context.Context, options metav1.ListOptions) (watch.Interface, error) { - if tweakListOptions != nil { - tweakListOptions(&options) - } - return client.StorageV1().DevPodEnvironmentTemplates().Watch(ctx, options) - }, - }, - &apisstoragev1.DevPodEnvironmentTemplate{}, - resyncPeriod, - indexers, - ) -} - -func (f *devPodEnvironmentTemplateInformer) defaultInformer(client versioned.Interface, resyncPeriod time.Duration) cache.SharedIndexInformer { - return NewFilteredDevPodEnvironmentTemplateInformer(client, resyncPeriod, cache.Indexers{cache.NamespaceIndex: cache.MetaNamespaceIndexFunc}, f.tweakListOptions) -} - -func (f *devPodEnvironmentTemplateInformer) Informer() cache.SharedIndexInformer { - return f.factory.InformerFor(&apisstoragev1.DevPodEnvironmentTemplate{}, f.defaultInformer) -} - -func (f *devPodEnvironmentTemplateInformer) Lister() storagev1.DevPodEnvironmentTemplateLister { - return storagev1.NewDevPodEnvironmentTemplateLister(f.Informer().GetIndexer()) -} diff --git a/pkg/informers/externalversions/storage/v1/devpodworkspaceinstance.go b/pkg/informers/externalversions/storage/v1/devpodworkspaceinstance.go deleted file mode 100644 index 5f2e519..0000000 --- a/pkg/informers/externalversions/storage/v1/devpodworkspaceinstance.go +++ /dev/null @@ -1,86 +0,0 @@ -// Code generated by informer-gen. DO NOT EDIT. - -package v1 - -import ( - context "context" - time "time" - - apisstoragev1 "github.com/devsy-org/api/pkg/apis/storage/v1" - versioned "github.com/devsy-org/api/pkg/clientset/versioned" - internalinterfaces "github.com/devsy-org/api/pkg/informers/externalversions/internalinterfaces" - storagev1 "github.com/devsy-org/api/pkg/listers/storage/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" - runtime "k8s.io/apimachinery/pkg/runtime" - watch "k8s.io/apimachinery/pkg/watch" - cache "k8s.io/client-go/tools/cache" -) - -// DevPodWorkspaceInstanceInformer provides access to a shared informer and lister for -// DevPodWorkspaceInstances. -type DevPodWorkspaceInstanceInformer interface { - Informer() cache.SharedIndexInformer - Lister() storagev1.DevPodWorkspaceInstanceLister -} - -type devPodWorkspaceInstanceInformer struct { - factory internalinterfaces.SharedInformerFactory - tweakListOptions internalinterfaces.TweakListOptionsFunc - namespace string -} - -// NewDevPodWorkspaceInstanceInformer constructs a new informer for DevPodWorkspaceInstance type. -// Always prefer using an informer factory to get a shared informer instead of getting an independent -// one. This reduces memory footprint and number of connections to the server. -func NewDevPodWorkspaceInstanceInformer(client versioned.Interface, namespace string, resyncPeriod time.Duration, indexers cache.Indexers) cache.SharedIndexInformer { - return NewFilteredDevPodWorkspaceInstanceInformer(client, namespace, resyncPeriod, indexers, nil) -} - -// NewFilteredDevPodWorkspaceInstanceInformer constructs a new informer for DevPodWorkspaceInstance type. -// Always prefer using an informer factory to get a shared informer instead of getting an independent -// one. This reduces memory footprint and number of connections to the server. -func NewFilteredDevPodWorkspaceInstanceInformer(client versioned.Interface, namespace string, resyncPeriod time.Duration, indexers cache.Indexers, tweakListOptions internalinterfaces.TweakListOptionsFunc) cache.SharedIndexInformer { - return cache.NewSharedIndexInformer( - &cache.ListWatch{ - ListFunc: func(options metav1.ListOptions) (runtime.Object, error) { - if tweakListOptions != nil { - tweakListOptions(&options) - } - return client.StorageV1().DevPodWorkspaceInstances(namespace).List(context.Background(), options) - }, - WatchFunc: func(options metav1.ListOptions) (watch.Interface, error) { - if tweakListOptions != nil { - tweakListOptions(&options) - } - return client.StorageV1().DevPodWorkspaceInstances(namespace).Watch(context.Background(), options) - }, - ListWithContextFunc: func(ctx context.Context, options metav1.ListOptions) (runtime.Object, error) { - if tweakListOptions != nil { - tweakListOptions(&options) - } - return client.StorageV1().DevPodWorkspaceInstances(namespace).List(ctx, options) - }, - WatchFuncWithContext: func(ctx context.Context, options metav1.ListOptions) (watch.Interface, error) { - if tweakListOptions != nil { - tweakListOptions(&options) - } - return client.StorageV1().DevPodWorkspaceInstances(namespace).Watch(ctx, options) - }, - }, - &apisstoragev1.DevPodWorkspaceInstance{}, - resyncPeriod, - indexers, - ) -} - -func (f *devPodWorkspaceInstanceInformer) defaultInformer(client versioned.Interface, resyncPeriod time.Duration) cache.SharedIndexInformer { - return NewFilteredDevPodWorkspaceInstanceInformer(client, f.namespace, resyncPeriod, cache.Indexers{cache.NamespaceIndex: cache.MetaNamespaceIndexFunc}, f.tweakListOptions) -} - -func (f *devPodWorkspaceInstanceInformer) Informer() cache.SharedIndexInformer { - return f.factory.InformerFor(&apisstoragev1.DevPodWorkspaceInstance{}, f.defaultInformer) -} - -func (f *devPodWorkspaceInstanceInformer) Lister() storagev1.DevPodWorkspaceInstanceLister { - return storagev1.NewDevPodWorkspaceInstanceLister(f.Informer().GetIndexer()) -} diff --git a/pkg/informers/externalversions/storage/v1/devpodworkspacepreset.go b/pkg/informers/externalversions/storage/v1/devpodworkspacepreset.go deleted file mode 100644 index 1ae692d..0000000 --- a/pkg/informers/externalversions/storage/v1/devpodworkspacepreset.go +++ /dev/null @@ -1,85 +0,0 @@ -// Code generated by informer-gen. DO NOT EDIT. - -package v1 - -import ( - context "context" - time "time" - - apisstoragev1 "github.com/devsy-org/api/pkg/apis/storage/v1" - versioned "github.com/devsy-org/api/pkg/clientset/versioned" - internalinterfaces "github.com/devsy-org/api/pkg/informers/externalversions/internalinterfaces" - storagev1 "github.com/devsy-org/api/pkg/listers/storage/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" - runtime "k8s.io/apimachinery/pkg/runtime" - watch "k8s.io/apimachinery/pkg/watch" - cache "k8s.io/client-go/tools/cache" -) - -// DevPodWorkspacePresetInformer provides access to a shared informer and lister for -// DevPodWorkspacePresets. -type DevPodWorkspacePresetInformer interface { - Informer() cache.SharedIndexInformer - Lister() storagev1.DevPodWorkspacePresetLister -} - -type devPodWorkspacePresetInformer struct { - factory internalinterfaces.SharedInformerFactory - tweakListOptions internalinterfaces.TweakListOptionsFunc -} - -// NewDevPodWorkspacePresetInformer constructs a new informer for DevPodWorkspacePreset type. -// Always prefer using an informer factory to get a shared informer instead of getting an independent -// one. This reduces memory footprint and number of connections to the server. -func NewDevPodWorkspacePresetInformer(client versioned.Interface, resyncPeriod time.Duration, indexers cache.Indexers) cache.SharedIndexInformer { - return NewFilteredDevPodWorkspacePresetInformer(client, resyncPeriod, indexers, nil) -} - -// NewFilteredDevPodWorkspacePresetInformer constructs a new informer for DevPodWorkspacePreset type. -// Always prefer using an informer factory to get a shared informer instead of getting an independent -// one. This reduces memory footprint and number of connections to the server. -func NewFilteredDevPodWorkspacePresetInformer(client versioned.Interface, resyncPeriod time.Duration, indexers cache.Indexers, tweakListOptions internalinterfaces.TweakListOptionsFunc) cache.SharedIndexInformer { - return cache.NewSharedIndexInformer( - &cache.ListWatch{ - ListFunc: func(options metav1.ListOptions) (runtime.Object, error) { - if tweakListOptions != nil { - tweakListOptions(&options) - } - return client.StorageV1().DevPodWorkspacePresets().List(context.Background(), options) - }, - WatchFunc: func(options metav1.ListOptions) (watch.Interface, error) { - if tweakListOptions != nil { - tweakListOptions(&options) - } - return client.StorageV1().DevPodWorkspacePresets().Watch(context.Background(), options) - }, - ListWithContextFunc: func(ctx context.Context, options metav1.ListOptions) (runtime.Object, error) { - if tweakListOptions != nil { - tweakListOptions(&options) - } - return client.StorageV1().DevPodWorkspacePresets().List(ctx, options) - }, - WatchFuncWithContext: func(ctx context.Context, options metav1.ListOptions) (watch.Interface, error) { - if tweakListOptions != nil { - tweakListOptions(&options) - } - return client.StorageV1().DevPodWorkspacePresets().Watch(ctx, options) - }, - }, - &apisstoragev1.DevPodWorkspacePreset{}, - resyncPeriod, - indexers, - ) -} - -func (f *devPodWorkspacePresetInformer) defaultInformer(client versioned.Interface, resyncPeriod time.Duration) cache.SharedIndexInformer { - return NewFilteredDevPodWorkspacePresetInformer(client, resyncPeriod, cache.Indexers{cache.NamespaceIndex: cache.MetaNamespaceIndexFunc}, f.tweakListOptions) -} - -func (f *devPodWorkspacePresetInformer) Informer() cache.SharedIndexInformer { - return f.factory.InformerFor(&apisstoragev1.DevPodWorkspacePreset{}, f.defaultInformer) -} - -func (f *devPodWorkspacePresetInformer) Lister() storagev1.DevPodWorkspacePresetLister { - return storagev1.NewDevPodWorkspacePresetLister(f.Informer().GetIndexer()) -} diff --git a/pkg/informers/externalversions/storage/v1/devpodworkspacetemplate.go b/pkg/informers/externalversions/storage/v1/devpodworkspacetemplate.go deleted file mode 100644 index 4f8f8a6..0000000 --- a/pkg/informers/externalversions/storage/v1/devpodworkspacetemplate.go +++ /dev/null @@ -1,85 +0,0 @@ -// Code generated by informer-gen. DO NOT EDIT. - -package v1 - -import ( - context "context" - time "time" - - apisstoragev1 "github.com/devsy-org/api/pkg/apis/storage/v1" - versioned "github.com/devsy-org/api/pkg/clientset/versioned" - internalinterfaces "github.com/devsy-org/api/pkg/informers/externalversions/internalinterfaces" - storagev1 "github.com/devsy-org/api/pkg/listers/storage/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" - runtime "k8s.io/apimachinery/pkg/runtime" - watch "k8s.io/apimachinery/pkg/watch" - cache "k8s.io/client-go/tools/cache" -) - -// DevPodWorkspaceTemplateInformer provides access to a shared informer and lister for -// DevPodWorkspaceTemplates. -type DevPodWorkspaceTemplateInformer interface { - Informer() cache.SharedIndexInformer - Lister() storagev1.DevPodWorkspaceTemplateLister -} - -type devPodWorkspaceTemplateInformer struct { - factory internalinterfaces.SharedInformerFactory - tweakListOptions internalinterfaces.TweakListOptionsFunc -} - -// NewDevPodWorkspaceTemplateInformer constructs a new informer for DevPodWorkspaceTemplate type. -// Always prefer using an informer factory to get a shared informer instead of getting an independent -// one. This reduces memory footprint and number of connections to the server. -func NewDevPodWorkspaceTemplateInformer(client versioned.Interface, resyncPeriod time.Duration, indexers cache.Indexers) cache.SharedIndexInformer { - return NewFilteredDevPodWorkspaceTemplateInformer(client, resyncPeriod, indexers, nil) -} - -// NewFilteredDevPodWorkspaceTemplateInformer constructs a new informer for DevPodWorkspaceTemplate type. -// Always prefer using an informer factory to get a shared informer instead of getting an independent -// one. This reduces memory footprint and number of connections to the server. -func NewFilteredDevPodWorkspaceTemplateInformer(client versioned.Interface, resyncPeriod time.Duration, indexers cache.Indexers, tweakListOptions internalinterfaces.TweakListOptionsFunc) cache.SharedIndexInformer { - return cache.NewSharedIndexInformer( - &cache.ListWatch{ - ListFunc: func(options metav1.ListOptions) (runtime.Object, error) { - if tweakListOptions != nil { - tweakListOptions(&options) - } - return client.StorageV1().DevPodWorkspaceTemplates().List(context.Background(), options) - }, - WatchFunc: func(options metav1.ListOptions) (watch.Interface, error) { - if tweakListOptions != nil { - tweakListOptions(&options) - } - return client.StorageV1().DevPodWorkspaceTemplates().Watch(context.Background(), options) - }, - ListWithContextFunc: func(ctx context.Context, options metav1.ListOptions) (runtime.Object, error) { - if tweakListOptions != nil { - tweakListOptions(&options) - } - return client.StorageV1().DevPodWorkspaceTemplates().List(ctx, options) - }, - WatchFuncWithContext: func(ctx context.Context, options metav1.ListOptions) (watch.Interface, error) { - if tweakListOptions != nil { - tweakListOptions(&options) - } - return client.StorageV1().DevPodWorkspaceTemplates().Watch(ctx, options) - }, - }, - &apisstoragev1.DevPodWorkspaceTemplate{}, - resyncPeriod, - indexers, - ) -} - -func (f *devPodWorkspaceTemplateInformer) defaultInformer(client versioned.Interface, resyncPeriod time.Duration) cache.SharedIndexInformer { - return NewFilteredDevPodWorkspaceTemplateInformer(client, resyncPeriod, cache.Indexers{cache.NamespaceIndex: cache.MetaNamespaceIndexFunc}, f.tweakListOptions) -} - -func (f *devPodWorkspaceTemplateInformer) Informer() cache.SharedIndexInformer { - return f.factory.InformerFor(&apisstoragev1.DevPodWorkspaceTemplate{}, f.defaultInformer) -} - -func (f *devPodWorkspaceTemplateInformer) Lister() storagev1.DevPodWorkspaceTemplateLister { - return storagev1.NewDevPodWorkspaceTemplateLister(f.Informer().GetIndexer()) -} diff --git a/pkg/informers/externalversions/storage/v1/devsyenvironmenttemplate.go b/pkg/informers/externalversions/storage/v1/devsyenvironmenttemplate.go new file mode 100644 index 0000000..0b77074 --- /dev/null +++ b/pkg/informers/externalversions/storage/v1/devsyenvironmenttemplate.go @@ -0,0 +1,85 @@ +// Code generated by informer-gen. DO NOT EDIT. + +package v1 + +import ( + context "context" + time "time" + + apisstoragev1 "github.com/devsy-org/api/pkg/apis/storage/v1" + versioned "github.com/devsy-org/api/pkg/clientset/versioned" + internalinterfaces "github.com/devsy-org/api/pkg/informers/externalversions/internalinterfaces" + storagev1 "github.com/devsy-org/api/pkg/listers/storage/v1" + metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" + runtime "k8s.io/apimachinery/pkg/runtime" + watch "k8s.io/apimachinery/pkg/watch" + cache "k8s.io/client-go/tools/cache" +) + +// DevsyEnvironmentTemplateInformer provides access to a shared informer and lister for +// DevsyEnvironmentTemplates. +type DevsyEnvironmentTemplateInformer interface { + Informer() cache.SharedIndexInformer + Lister() storagev1.DevsyEnvironmentTemplateLister +} + +type devsyEnvironmentTemplateInformer struct { + factory internalinterfaces.SharedInformerFactory + tweakListOptions internalinterfaces.TweakListOptionsFunc +} + +// NewDevsyEnvironmentTemplateInformer constructs a new informer for DevsyEnvironmentTemplate type. +// Always prefer using an informer factory to get a shared informer instead of getting an independent +// one. This reduces memory footprint and number of connections to the server. +func NewDevsyEnvironmentTemplateInformer(client versioned.Interface, resyncPeriod time.Duration, indexers cache.Indexers) cache.SharedIndexInformer { + return NewFilteredDevsyEnvironmentTemplateInformer(client, resyncPeriod, indexers, nil) +} + +// NewFilteredDevsyEnvironmentTemplateInformer constructs a new informer for DevsyEnvironmentTemplate type. +// Always prefer using an informer factory to get a shared informer instead of getting an independent +// one. This reduces memory footprint and number of connections to the server. +func NewFilteredDevsyEnvironmentTemplateInformer(client versioned.Interface, resyncPeriod time.Duration, indexers cache.Indexers, tweakListOptions internalinterfaces.TweakListOptionsFunc) cache.SharedIndexInformer { + return cache.NewSharedIndexInformer( + cache.ToListWatcherWithWatchListSemantics(&cache.ListWatch{ + ListFunc: func(options metav1.ListOptions) (runtime.Object, error) { + if tweakListOptions != nil { + tweakListOptions(&options) + } + return client.StorageV1().DevsyEnvironmentTemplates().List(context.Background(), options) + }, + WatchFunc: func(options metav1.ListOptions) (watch.Interface, error) { + if tweakListOptions != nil { + tweakListOptions(&options) + } + return client.StorageV1().DevsyEnvironmentTemplates().Watch(context.Background(), options) + }, + ListWithContextFunc: func(ctx context.Context, options metav1.ListOptions) (runtime.Object, error) { + if tweakListOptions != nil { + tweakListOptions(&options) + } + return client.StorageV1().DevsyEnvironmentTemplates().List(ctx, options) + }, + WatchFuncWithContext: func(ctx context.Context, options metav1.ListOptions) (watch.Interface, error) { + if tweakListOptions != nil { + tweakListOptions(&options) + } + return client.StorageV1().DevsyEnvironmentTemplates().Watch(ctx, options) + }, + }, client), + &apisstoragev1.DevsyEnvironmentTemplate{}, + resyncPeriod, + indexers, + ) +} + +func (f *devsyEnvironmentTemplateInformer) defaultInformer(client versioned.Interface, resyncPeriod time.Duration) cache.SharedIndexInformer { + return NewFilteredDevsyEnvironmentTemplateInformer(client, resyncPeriod, cache.Indexers{cache.NamespaceIndex: cache.MetaNamespaceIndexFunc}, f.tweakListOptions) +} + +func (f *devsyEnvironmentTemplateInformer) Informer() cache.SharedIndexInformer { + return f.factory.InformerFor(&apisstoragev1.DevsyEnvironmentTemplate{}, f.defaultInformer) +} + +func (f *devsyEnvironmentTemplateInformer) Lister() storagev1.DevsyEnvironmentTemplateLister { + return storagev1.NewDevsyEnvironmentTemplateLister(f.Informer().GetIndexer()) +} diff --git a/pkg/informers/externalversions/storage/v1/devsyworkspaceinstance.go b/pkg/informers/externalversions/storage/v1/devsyworkspaceinstance.go new file mode 100644 index 0000000..ee2856b --- /dev/null +++ b/pkg/informers/externalversions/storage/v1/devsyworkspaceinstance.go @@ -0,0 +1,86 @@ +// Code generated by informer-gen. DO NOT EDIT. + +package v1 + +import ( + context "context" + time "time" + + apisstoragev1 "github.com/devsy-org/api/pkg/apis/storage/v1" + versioned "github.com/devsy-org/api/pkg/clientset/versioned" + internalinterfaces "github.com/devsy-org/api/pkg/informers/externalversions/internalinterfaces" + storagev1 "github.com/devsy-org/api/pkg/listers/storage/v1" + metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" + runtime "k8s.io/apimachinery/pkg/runtime" + watch "k8s.io/apimachinery/pkg/watch" + cache "k8s.io/client-go/tools/cache" +) + +// DevsyWorkspaceInstanceInformer provides access to a shared informer and lister for +// DevsyWorkspaceInstances. +type DevsyWorkspaceInstanceInformer interface { + Informer() cache.SharedIndexInformer + Lister() storagev1.DevsyWorkspaceInstanceLister +} + +type devsyWorkspaceInstanceInformer struct { + factory internalinterfaces.SharedInformerFactory + tweakListOptions internalinterfaces.TweakListOptionsFunc + namespace string +} + +// NewDevsyWorkspaceInstanceInformer constructs a new informer for DevsyWorkspaceInstance type. +// Always prefer using an informer factory to get a shared informer instead of getting an independent +// one. This reduces memory footprint and number of connections to the server. +func NewDevsyWorkspaceInstanceInformer(client versioned.Interface, namespace string, resyncPeriod time.Duration, indexers cache.Indexers) cache.SharedIndexInformer { + return NewFilteredDevsyWorkspaceInstanceInformer(client, namespace, resyncPeriod, indexers, nil) +} + +// NewFilteredDevsyWorkspaceInstanceInformer constructs a new informer for DevsyWorkspaceInstance type. +// Always prefer using an informer factory to get a shared informer instead of getting an independent +// one. This reduces memory footprint and number of connections to the server. +func NewFilteredDevsyWorkspaceInstanceInformer(client versioned.Interface, namespace string, resyncPeriod time.Duration, indexers cache.Indexers, tweakListOptions internalinterfaces.TweakListOptionsFunc) cache.SharedIndexInformer { + return cache.NewSharedIndexInformer( + cache.ToListWatcherWithWatchListSemantics(&cache.ListWatch{ + ListFunc: func(options metav1.ListOptions) (runtime.Object, error) { + if tweakListOptions != nil { + tweakListOptions(&options) + } + return client.StorageV1().DevsyWorkspaceInstances(namespace).List(context.Background(), options) + }, + WatchFunc: func(options metav1.ListOptions) (watch.Interface, error) { + if tweakListOptions != nil { + tweakListOptions(&options) + } + return client.StorageV1().DevsyWorkspaceInstances(namespace).Watch(context.Background(), options) + }, + ListWithContextFunc: func(ctx context.Context, options metav1.ListOptions) (runtime.Object, error) { + if tweakListOptions != nil { + tweakListOptions(&options) + } + return client.StorageV1().DevsyWorkspaceInstances(namespace).List(ctx, options) + }, + WatchFuncWithContext: func(ctx context.Context, options metav1.ListOptions) (watch.Interface, error) { + if tweakListOptions != nil { + tweakListOptions(&options) + } + return client.StorageV1().DevsyWorkspaceInstances(namespace).Watch(ctx, options) + }, + }, client), + &apisstoragev1.DevsyWorkspaceInstance{}, + resyncPeriod, + indexers, + ) +} + +func (f *devsyWorkspaceInstanceInformer) defaultInformer(client versioned.Interface, resyncPeriod time.Duration) cache.SharedIndexInformer { + return NewFilteredDevsyWorkspaceInstanceInformer(client, f.namespace, resyncPeriod, cache.Indexers{cache.NamespaceIndex: cache.MetaNamespaceIndexFunc}, f.tweakListOptions) +} + +func (f *devsyWorkspaceInstanceInformer) Informer() cache.SharedIndexInformer { + return f.factory.InformerFor(&apisstoragev1.DevsyWorkspaceInstance{}, f.defaultInformer) +} + +func (f *devsyWorkspaceInstanceInformer) Lister() storagev1.DevsyWorkspaceInstanceLister { + return storagev1.NewDevsyWorkspaceInstanceLister(f.Informer().GetIndexer()) +} diff --git a/pkg/informers/externalversions/storage/v1/devsyworkspacepreset.go b/pkg/informers/externalversions/storage/v1/devsyworkspacepreset.go new file mode 100644 index 0000000..9028873 --- /dev/null +++ b/pkg/informers/externalversions/storage/v1/devsyworkspacepreset.go @@ -0,0 +1,85 @@ +// Code generated by informer-gen. DO NOT EDIT. + +package v1 + +import ( + context "context" + time "time" + + apisstoragev1 "github.com/devsy-org/api/pkg/apis/storage/v1" + versioned "github.com/devsy-org/api/pkg/clientset/versioned" + internalinterfaces "github.com/devsy-org/api/pkg/informers/externalversions/internalinterfaces" + storagev1 "github.com/devsy-org/api/pkg/listers/storage/v1" + metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" + runtime "k8s.io/apimachinery/pkg/runtime" + watch "k8s.io/apimachinery/pkg/watch" + cache "k8s.io/client-go/tools/cache" +) + +// DevsyWorkspacePresetInformer provides access to a shared informer and lister for +// DevsyWorkspacePresets. +type DevsyWorkspacePresetInformer interface { + Informer() cache.SharedIndexInformer + Lister() storagev1.DevsyWorkspacePresetLister +} + +type devsyWorkspacePresetInformer struct { + factory internalinterfaces.SharedInformerFactory + tweakListOptions internalinterfaces.TweakListOptionsFunc +} + +// NewDevsyWorkspacePresetInformer constructs a new informer for DevsyWorkspacePreset type. +// Always prefer using an informer factory to get a shared informer instead of getting an independent +// one. This reduces memory footprint and number of connections to the server. +func NewDevsyWorkspacePresetInformer(client versioned.Interface, resyncPeriod time.Duration, indexers cache.Indexers) cache.SharedIndexInformer { + return NewFilteredDevsyWorkspacePresetInformer(client, resyncPeriod, indexers, nil) +} + +// NewFilteredDevsyWorkspacePresetInformer constructs a new informer for DevsyWorkspacePreset type. +// Always prefer using an informer factory to get a shared informer instead of getting an independent +// one. This reduces memory footprint and number of connections to the server. +func NewFilteredDevsyWorkspacePresetInformer(client versioned.Interface, resyncPeriod time.Duration, indexers cache.Indexers, tweakListOptions internalinterfaces.TweakListOptionsFunc) cache.SharedIndexInformer { + return cache.NewSharedIndexInformer( + cache.ToListWatcherWithWatchListSemantics(&cache.ListWatch{ + ListFunc: func(options metav1.ListOptions) (runtime.Object, error) { + if tweakListOptions != nil { + tweakListOptions(&options) + } + return client.StorageV1().DevsyWorkspacePresets().List(context.Background(), options) + }, + WatchFunc: func(options metav1.ListOptions) (watch.Interface, error) { + if tweakListOptions != nil { + tweakListOptions(&options) + } + return client.StorageV1().DevsyWorkspacePresets().Watch(context.Background(), options) + }, + ListWithContextFunc: func(ctx context.Context, options metav1.ListOptions) (runtime.Object, error) { + if tweakListOptions != nil { + tweakListOptions(&options) + } + return client.StorageV1().DevsyWorkspacePresets().List(ctx, options) + }, + WatchFuncWithContext: func(ctx context.Context, options metav1.ListOptions) (watch.Interface, error) { + if tweakListOptions != nil { + tweakListOptions(&options) + } + return client.StorageV1().DevsyWorkspacePresets().Watch(ctx, options) + }, + }, client), + &apisstoragev1.DevsyWorkspacePreset{}, + resyncPeriod, + indexers, + ) +} + +func (f *devsyWorkspacePresetInformer) defaultInformer(client versioned.Interface, resyncPeriod time.Duration) cache.SharedIndexInformer { + return NewFilteredDevsyWorkspacePresetInformer(client, resyncPeriod, cache.Indexers{cache.NamespaceIndex: cache.MetaNamespaceIndexFunc}, f.tweakListOptions) +} + +func (f *devsyWorkspacePresetInformer) Informer() cache.SharedIndexInformer { + return f.factory.InformerFor(&apisstoragev1.DevsyWorkspacePreset{}, f.defaultInformer) +} + +func (f *devsyWorkspacePresetInformer) Lister() storagev1.DevsyWorkspacePresetLister { + return storagev1.NewDevsyWorkspacePresetLister(f.Informer().GetIndexer()) +} diff --git a/pkg/informers/externalversions/storage/v1/devsyworkspacetemplate.go b/pkg/informers/externalversions/storage/v1/devsyworkspacetemplate.go new file mode 100644 index 0000000..f1c1a1f --- /dev/null +++ b/pkg/informers/externalversions/storage/v1/devsyworkspacetemplate.go @@ -0,0 +1,85 @@ +// Code generated by informer-gen. DO NOT EDIT. + +package v1 + +import ( + context "context" + time "time" + + apisstoragev1 "github.com/devsy-org/api/pkg/apis/storage/v1" + versioned "github.com/devsy-org/api/pkg/clientset/versioned" + internalinterfaces "github.com/devsy-org/api/pkg/informers/externalversions/internalinterfaces" + storagev1 "github.com/devsy-org/api/pkg/listers/storage/v1" + metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" + runtime "k8s.io/apimachinery/pkg/runtime" + watch "k8s.io/apimachinery/pkg/watch" + cache "k8s.io/client-go/tools/cache" +) + +// DevsyWorkspaceTemplateInformer provides access to a shared informer and lister for +// DevsyWorkspaceTemplates. +type DevsyWorkspaceTemplateInformer interface { + Informer() cache.SharedIndexInformer + Lister() storagev1.DevsyWorkspaceTemplateLister +} + +type devsyWorkspaceTemplateInformer struct { + factory internalinterfaces.SharedInformerFactory + tweakListOptions internalinterfaces.TweakListOptionsFunc +} + +// NewDevsyWorkspaceTemplateInformer constructs a new informer for DevsyWorkspaceTemplate type. +// Always prefer using an informer factory to get a shared informer instead of getting an independent +// one. This reduces memory footprint and number of connections to the server. +func NewDevsyWorkspaceTemplateInformer(client versioned.Interface, resyncPeriod time.Duration, indexers cache.Indexers) cache.SharedIndexInformer { + return NewFilteredDevsyWorkspaceTemplateInformer(client, resyncPeriod, indexers, nil) +} + +// NewFilteredDevsyWorkspaceTemplateInformer constructs a new informer for DevsyWorkspaceTemplate type. +// Always prefer using an informer factory to get a shared informer instead of getting an independent +// one. This reduces memory footprint and number of connections to the server. +func NewFilteredDevsyWorkspaceTemplateInformer(client versioned.Interface, resyncPeriod time.Duration, indexers cache.Indexers, tweakListOptions internalinterfaces.TweakListOptionsFunc) cache.SharedIndexInformer { + return cache.NewSharedIndexInformer( + cache.ToListWatcherWithWatchListSemantics(&cache.ListWatch{ + ListFunc: func(options metav1.ListOptions) (runtime.Object, error) { + if tweakListOptions != nil { + tweakListOptions(&options) + } + return client.StorageV1().DevsyWorkspaceTemplates().List(context.Background(), options) + }, + WatchFunc: func(options metav1.ListOptions) (watch.Interface, error) { + if tweakListOptions != nil { + tweakListOptions(&options) + } + return client.StorageV1().DevsyWorkspaceTemplates().Watch(context.Background(), options) + }, + ListWithContextFunc: func(ctx context.Context, options metav1.ListOptions) (runtime.Object, error) { + if tweakListOptions != nil { + tweakListOptions(&options) + } + return client.StorageV1().DevsyWorkspaceTemplates().List(ctx, options) + }, + WatchFuncWithContext: func(ctx context.Context, options metav1.ListOptions) (watch.Interface, error) { + if tweakListOptions != nil { + tweakListOptions(&options) + } + return client.StorageV1().DevsyWorkspaceTemplates().Watch(ctx, options) + }, + }, client), + &apisstoragev1.DevsyWorkspaceTemplate{}, + resyncPeriod, + indexers, + ) +} + +func (f *devsyWorkspaceTemplateInformer) defaultInformer(client versioned.Interface, resyncPeriod time.Duration) cache.SharedIndexInformer { + return NewFilteredDevsyWorkspaceTemplateInformer(client, resyncPeriod, cache.Indexers{cache.NamespaceIndex: cache.MetaNamespaceIndexFunc}, f.tweakListOptions) +} + +func (f *devsyWorkspaceTemplateInformer) Informer() cache.SharedIndexInformer { + return f.factory.InformerFor(&apisstoragev1.DevsyWorkspaceTemplate{}, f.defaultInformer) +} + +func (f *devsyWorkspaceTemplateInformer) Lister() storagev1.DevsyWorkspaceTemplateLister { + return storagev1.NewDevsyWorkspaceTemplateLister(f.Informer().GetIndexer()) +} diff --git a/pkg/informers/externalversions/storage/v1/interface.go b/pkg/informers/externalversions/storage/v1/interface.go index 8eb63e4..b79fcbd 100644 --- a/pkg/informers/externalversions/storage/v1/interface.go +++ b/pkg/informers/externalversions/storage/v1/interface.go @@ -18,14 +18,14 @@ type Interface interface { ClusterAccesses() ClusterAccessInformer // ClusterRoleTemplates returns a ClusterRoleTemplateInformer. ClusterRoleTemplates() ClusterRoleTemplateInformer - // DevPodEnvironmentTemplates returns a DevPodEnvironmentTemplateInformer. - DevPodEnvironmentTemplates() DevPodEnvironmentTemplateInformer - // DevPodWorkspaceInstances returns a DevPodWorkspaceInstanceInformer. - DevPodWorkspaceInstances() DevPodWorkspaceInstanceInformer - // DevPodWorkspacePresets returns a DevPodWorkspacePresetInformer. - DevPodWorkspacePresets() DevPodWorkspacePresetInformer - // DevPodWorkspaceTemplates returns a DevPodWorkspaceTemplateInformer. - DevPodWorkspaceTemplates() DevPodWorkspaceTemplateInformer + // DevsyEnvironmentTemplates returns a DevsyEnvironmentTemplateInformer. + DevsyEnvironmentTemplates() DevsyEnvironmentTemplateInformer + // DevsyWorkspaceInstances returns a DevsyWorkspaceInstanceInformer. + DevsyWorkspaceInstances() DevsyWorkspaceInstanceInformer + // DevsyWorkspacePresets returns a DevsyWorkspacePresetInformer. + DevsyWorkspacePresets() DevsyWorkspacePresetInformer + // DevsyWorkspaceTemplates returns a DevsyWorkspaceTemplateInformer. + DevsyWorkspaceTemplates() DevsyWorkspaceTemplateInformer // NetworkPeers returns a NetworkPeerInformer. NetworkPeers() NetworkPeerInformer // NodeClaims returns a NodeClaimInformer. @@ -92,24 +92,24 @@ func (v *version) ClusterRoleTemplates() ClusterRoleTemplateInformer { return &clusterRoleTemplateInformer{factory: v.factory, tweakListOptions: v.tweakListOptions} } -// DevPodEnvironmentTemplates returns a DevPodEnvironmentTemplateInformer. -func (v *version) DevPodEnvironmentTemplates() DevPodEnvironmentTemplateInformer { - return &devPodEnvironmentTemplateInformer{factory: v.factory, tweakListOptions: v.tweakListOptions} +// DevsyEnvironmentTemplates returns a DevsyEnvironmentTemplateInformer. +func (v *version) DevsyEnvironmentTemplates() DevsyEnvironmentTemplateInformer { + return &devsyEnvironmentTemplateInformer{factory: v.factory, tweakListOptions: v.tweakListOptions} } -// DevPodWorkspaceInstances returns a DevPodWorkspaceInstanceInformer. -func (v *version) DevPodWorkspaceInstances() DevPodWorkspaceInstanceInformer { - return &devPodWorkspaceInstanceInformer{factory: v.factory, namespace: v.namespace, tweakListOptions: v.tweakListOptions} +// DevsyWorkspaceInstances returns a DevsyWorkspaceInstanceInformer. +func (v *version) DevsyWorkspaceInstances() DevsyWorkspaceInstanceInformer { + return &devsyWorkspaceInstanceInformer{factory: v.factory, namespace: v.namespace, tweakListOptions: v.tweakListOptions} } -// DevPodWorkspacePresets returns a DevPodWorkspacePresetInformer. -func (v *version) DevPodWorkspacePresets() DevPodWorkspacePresetInformer { - return &devPodWorkspacePresetInformer{factory: v.factory, tweakListOptions: v.tweakListOptions} +// DevsyWorkspacePresets returns a DevsyWorkspacePresetInformer. +func (v *version) DevsyWorkspacePresets() DevsyWorkspacePresetInformer { + return &devsyWorkspacePresetInformer{factory: v.factory, tweakListOptions: v.tweakListOptions} } -// DevPodWorkspaceTemplates returns a DevPodWorkspaceTemplateInformer. -func (v *version) DevPodWorkspaceTemplates() DevPodWorkspaceTemplateInformer { - return &devPodWorkspaceTemplateInformer{factory: v.factory, tweakListOptions: v.tweakListOptions} +// DevsyWorkspaceTemplates returns a DevsyWorkspaceTemplateInformer. +func (v *version) DevsyWorkspaceTemplates() DevsyWorkspaceTemplateInformer { + return &devsyWorkspaceTemplateInformer{factory: v.factory, tweakListOptions: v.tweakListOptions} } // NetworkPeers returns a NetworkPeerInformer. diff --git a/pkg/informers/externalversions/storage/v1/networkpeer.go b/pkg/informers/externalversions/storage/v1/networkpeer.go index c8c3d88..84ed601 100644 --- a/pkg/informers/externalversions/storage/v1/networkpeer.go +++ b/pkg/informers/externalversions/storage/v1/networkpeer.go @@ -40,7 +40,7 @@ func NewNetworkPeerInformer(client versioned.Interface, resyncPeriod time.Durati // one. This reduces memory footprint and number of connections to the server. func NewFilteredNetworkPeerInformer(client versioned.Interface, resyncPeriod time.Duration, indexers cache.Indexers, tweakListOptions internalinterfaces.TweakListOptionsFunc) cache.SharedIndexInformer { return cache.NewSharedIndexInformer( - &cache.ListWatch{ + cache.ToListWatcherWithWatchListSemantics(&cache.ListWatch{ ListFunc: func(options metav1.ListOptions) (runtime.Object, error) { if tweakListOptions != nil { tweakListOptions(&options) @@ -65,7 +65,7 @@ func NewFilteredNetworkPeerInformer(client versioned.Interface, resyncPeriod tim } return client.StorageV1().NetworkPeers().Watch(ctx, options) }, - }, + }, client), &apisstoragev1.NetworkPeer{}, resyncPeriod, indexers, diff --git a/pkg/informers/externalversions/storage/v1/nodeclaim.go b/pkg/informers/externalversions/storage/v1/nodeclaim.go index d21cf83..60dbcc9 100644 --- a/pkg/informers/externalversions/storage/v1/nodeclaim.go +++ b/pkg/informers/externalversions/storage/v1/nodeclaim.go @@ -41,7 +41,7 @@ func NewNodeClaimInformer(client versioned.Interface, namespace string, resyncPe // one. This reduces memory footprint and number of connections to the server. func NewFilteredNodeClaimInformer(client versioned.Interface, namespace string, resyncPeriod time.Duration, indexers cache.Indexers, tweakListOptions internalinterfaces.TweakListOptionsFunc) cache.SharedIndexInformer { return cache.NewSharedIndexInformer( - &cache.ListWatch{ + cache.ToListWatcherWithWatchListSemantics(&cache.ListWatch{ ListFunc: func(options metav1.ListOptions) (runtime.Object, error) { if tweakListOptions != nil { tweakListOptions(&options) @@ -66,7 +66,7 @@ func NewFilteredNodeClaimInformer(client versioned.Interface, namespace string, } return client.StorageV1().NodeClaims(namespace).Watch(ctx, options) }, - }, + }, client), &apisstoragev1.NodeClaim{}, resyncPeriod, indexers, diff --git a/pkg/informers/externalversions/storage/v1/nodeenvironment.go b/pkg/informers/externalversions/storage/v1/nodeenvironment.go index 09a7c5c..6d4a021 100644 --- a/pkg/informers/externalversions/storage/v1/nodeenvironment.go +++ b/pkg/informers/externalversions/storage/v1/nodeenvironment.go @@ -41,7 +41,7 @@ func NewNodeEnvironmentInformer(client versioned.Interface, namespace string, re // one. This reduces memory footprint and number of connections to the server. func NewFilteredNodeEnvironmentInformer(client versioned.Interface, namespace string, resyncPeriod time.Duration, indexers cache.Indexers, tweakListOptions internalinterfaces.TweakListOptionsFunc) cache.SharedIndexInformer { return cache.NewSharedIndexInformer( - &cache.ListWatch{ + cache.ToListWatcherWithWatchListSemantics(&cache.ListWatch{ ListFunc: func(options metav1.ListOptions) (runtime.Object, error) { if tweakListOptions != nil { tweakListOptions(&options) @@ -66,7 +66,7 @@ func NewFilteredNodeEnvironmentInformer(client versioned.Interface, namespace st } return client.StorageV1().NodeEnvironments(namespace).Watch(ctx, options) }, - }, + }, client), &apisstoragev1.NodeEnvironment{}, resyncPeriod, indexers, diff --git a/pkg/informers/externalversions/storage/v1/nodeprovider.go b/pkg/informers/externalversions/storage/v1/nodeprovider.go index f254cce..9b657c7 100644 --- a/pkg/informers/externalversions/storage/v1/nodeprovider.go +++ b/pkg/informers/externalversions/storage/v1/nodeprovider.go @@ -40,7 +40,7 @@ func NewNodeProviderInformer(client versioned.Interface, resyncPeriod time.Durat // one. This reduces memory footprint and number of connections to the server. func NewFilteredNodeProviderInformer(client versioned.Interface, resyncPeriod time.Duration, indexers cache.Indexers, tweakListOptions internalinterfaces.TweakListOptionsFunc) cache.SharedIndexInformer { return cache.NewSharedIndexInformer( - &cache.ListWatch{ + cache.ToListWatcherWithWatchListSemantics(&cache.ListWatch{ ListFunc: func(options metav1.ListOptions) (runtime.Object, error) { if tweakListOptions != nil { tweakListOptions(&options) @@ -65,7 +65,7 @@ func NewFilteredNodeProviderInformer(client versioned.Interface, resyncPeriod ti } return client.StorageV1().NodeProviders().Watch(ctx, options) }, - }, + }, client), &apisstoragev1.NodeProvider{}, resyncPeriod, indexers, diff --git a/pkg/informers/externalversions/storage/v1/nodetype.go b/pkg/informers/externalversions/storage/v1/nodetype.go index b58d008..ff4c92f 100644 --- a/pkg/informers/externalversions/storage/v1/nodetype.go +++ b/pkg/informers/externalversions/storage/v1/nodetype.go @@ -40,7 +40,7 @@ func NewNodeTypeInformer(client versioned.Interface, resyncPeriod time.Duration, // one. This reduces memory footprint and number of connections to the server. func NewFilteredNodeTypeInformer(client versioned.Interface, resyncPeriod time.Duration, indexers cache.Indexers, tweakListOptions internalinterfaces.TweakListOptionsFunc) cache.SharedIndexInformer { return cache.NewSharedIndexInformer( - &cache.ListWatch{ + cache.ToListWatcherWithWatchListSemantics(&cache.ListWatch{ ListFunc: func(options metav1.ListOptions) (runtime.Object, error) { if tweakListOptions != nil { tweakListOptions(&options) @@ -65,7 +65,7 @@ func NewFilteredNodeTypeInformer(client versioned.Interface, resyncPeriod time.D } return client.StorageV1().NodeTypes().Watch(ctx, options) }, - }, + }, client), &apisstoragev1.NodeType{}, resyncPeriod, indexers, diff --git a/pkg/informers/externalversions/storage/v1/project.go b/pkg/informers/externalversions/storage/v1/project.go index 46f4ac7..847e366 100644 --- a/pkg/informers/externalversions/storage/v1/project.go +++ b/pkg/informers/externalversions/storage/v1/project.go @@ -40,7 +40,7 @@ func NewProjectInformer(client versioned.Interface, resyncPeriod time.Duration, // one. This reduces memory footprint and number of connections to the server. func NewFilteredProjectInformer(client versioned.Interface, resyncPeriod time.Duration, indexers cache.Indexers, tweakListOptions internalinterfaces.TweakListOptionsFunc) cache.SharedIndexInformer { return cache.NewSharedIndexInformer( - &cache.ListWatch{ + cache.ToListWatcherWithWatchListSemantics(&cache.ListWatch{ ListFunc: func(options metav1.ListOptions) (runtime.Object, error) { if tweakListOptions != nil { tweakListOptions(&options) @@ -65,7 +65,7 @@ func NewFilteredProjectInformer(client versioned.Interface, resyncPeriod time.Du } return client.StorageV1().Projects().Watch(ctx, options) }, - }, + }, client), &apisstoragev1.Project{}, resyncPeriod, indexers, diff --git a/pkg/informers/externalversions/storage/v1/sharedsecret.go b/pkg/informers/externalversions/storage/v1/sharedsecret.go index 69abfa9..3ea7361 100644 --- a/pkg/informers/externalversions/storage/v1/sharedsecret.go +++ b/pkg/informers/externalversions/storage/v1/sharedsecret.go @@ -41,7 +41,7 @@ func NewSharedSecretInformer(client versioned.Interface, namespace string, resyn // one. This reduces memory footprint and number of connections to the server. func NewFilteredSharedSecretInformer(client versioned.Interface, namespace string, resyncPeriod time.Duration, indexers cache.Indexers, tweakListOptions internalinterfaces.TweakListOptionsFunc) cache.SharedIndexInformer { return cache.NewSharedIndexInformer( - &cache.ListWatch{ + cache.ToListWatcherWithWatchListSemantics(&cache.ListWatch{ ListFunc: func(options metav1.ListOptions) (runtime.Object, error) { if tweakListOptions != nil { tweakListOptions(&options) @@ -66,7 +66,7 @@ func NewFilteredSharedSecretInformer(client versioned.Interface, namespace strin } return client.StorageV1().SharedSecrets(namespace).Watch(ctx, options) }, - }, + }, client), &apisstoragev1.SharedSecret{}, resyncPeriod, indexers, diff --git a/pkg/informers/externalversions/storage/v1/spaceinstance.go b/pkg/informers/externalversions/storage/v1/spaceinstance.go index 0cd9448..432e8ee 100644 --- a/pkg/informers/externalversions/storage/v1/spaceinstance.go +++ b/pkg/informers/externalversions/storage/v1/spaceinstance.go @@ -41,7 +41,7 @@ func NewSpaceInstanceInformer(client versioned.Interface, namespace string, resy // one. This reduces memory footprint and number of connections to the server. func NewFilteredSpaceInstanceInformer(client versioned.Interface, namespace string, resyncPeriod time.Duration, indexers cache.Indexers, tweakListOptions internalinterfaces.TweakListOptionsFunc) cache.SharedIndexInformer { return cache.NewSharedIndexInformer( - &cache.ListWatch{ + cache.ToListWatcherWithWatchListSemantics(&cache.ListWatch{ ListFunc: func(options metav1.ListOptions) (runtime.Object, error) { if tweakListOptions != nil { tweakListOptions(&options) @@ -66,7 +66,7 @@ func NewFilteredSpaceInstanceInformer(client versioned.Interface, namespace stri } return client.StorageV1().SpaceInstances(namespace).Watch(ctx, options) }, - }, + }, client), &apisstoragev1.SpaceInstance{}, resyncPeriod, indexers, diff --git a/pkg/informers/externalversions/storage/v1/spacetemplate.go b/pkg/informers/externalversions/storage/v1/spacetemplate.go index 54b784f..15e5179 100644 --- a/pkg/informers/externalversions/storage/v1/spacetemplate.go +++ b/pkg/informers/externalversions/storage/v1/spacetemplate.go @@ -40,7 +40,7 @@ func NewSpaceTemplateInformer(client versioned.Interface, resyncPeriod time.Dura // one. This reduces memory footprint and number of connections to the server. func NewFilteredSpaceTemplateInformer(client versioned.Interface, resyncPeriod time.Duration, indexers cache.Indexers, tweakListOptions internalinterfaces.TweakListOptionsFunc) cache.SharedIndexInformer { return cache.NewSharedIndexInformer( - &cache.ListWatch{ + cache.ToListWatcherWithWatchListSemantics(&cache.ListWatch{ ListFunc: func(options metav1.ListOptions) (runtime.Object, error) { if tweakListOptions != nil { tweakListOptions(&options) @@ -65,7 +65,7 @@ func NewFilteredSpaceTemplateInformer(client versioned.Interface, resyncPeriod t } return client.StorageV1().SpaceTemplates().Watch(ctx, options) }, - }, + }, client), &apisstoragev1.SpaceTemplate{}, resyncPeriod, indexers, diff --git a/pkg/informers/externalversions/storage/v1/task.go b/pkg/informers/externalversions/storage/v1/task.go index 8fd88ec..9bd29e7 100644 --- a/pkg/informers/externalversions/storage/v1/task.go +++ b/pkg/informers/externalversions/storage/v1/task.go @@ -40,7 +40,7 @@ func NewTaskInformer(client versioned.Interface, resyncPeriod time.Duration, ind // one. This reduces memory footprint and number of connections to the server. func NewFilteredTaskInformer(client versioned.Interface, resyncPeriod time.Duration, indexers cache.Indexers, tweakListOptions internalinterfaces.TweakListOptionsFunc) cache.SharedIndexInformer { return cache.NewSharedIndexInformer( - &cache.ListWatch{ + cache.ToListWatcherWithWatchListSemantics(&cache.ListWatch{ ListFunc: func(options metav1.ListOptions) (runtime.Object, error) { if tweakListOptions != nil { tweakListOptions(&options) @@ -65,7 +65,7 @@ func NewFilteredTaskInformer(client versioned.Interface, resyncPeriod time.Durat } return client.StorageV1().Tasks().Watch(ctx, options) }, - }, + }, client), &apisstoragev1.Task{}, resyncPeriod, indexers, diff --git a/pkg/informers/externalversions/storage/v1/team.go b/pkg/informers/externalversions/storage/v1/team.go index 0e12137..081acb8 100644 --- a/pkg/informers/externalversions/storage/v1/team.go +++ b/pkg/informers/externalversions/storage/v1/team.go @@ -40,7 +40,7 @@ func NewTeamInformer(client versioned.Interface, resyncPeriod time.Duration, ind // one. This reduces memory footprint and number of connections to the server. func NewFilteredTeamInformer(client versioned.Interface, resyncPeriod time.Duration, indexers cache.Indexers, tweakListOptions internalinterfaces.TweakListOptionsFunc) cache.SharedIndexInformer { return cache.NewSharedIndexInformer( - &cache.ListWatch{ + cache.ToListWatcherWithWatchListSemantics(&cache.ListWatch{ ListFunc: func(options metav1.ListOptions) (runtime.Object, error) { if tweakListOptions != nil { tweakListOptions(&options) @@ -65,7 +65,7 @@ func NewFilteredTeamInformer(client versioned.Interface, resyncPeriod time.Durat } return client.StorageV1().Teams().Watch(ctx, options) }, - }, + }, client), &apisstoragev1.Team{}, resyncPeriod, indexers, diff --git a/pkg/informers/externalversions/storage/v1/user.go b/pkg/informers/externalversions/storage/v1/user.go index 6a6434f..c5910d5 100644 --- a/pkg/informers/externalversions/storage/v1/user.go +++ b/pkg/informers/externalversions/storage/v1/user.go @@ -40,7 +40,7 @@ func NewUserInformer(client versioned.Interface, resyncPeriod time.Duration, ind // one. This reduces memory footprint and number of connections to the server. func NewFilteredUserInformer(client versioned.Interface, resyncPeriod time.Duration, indexers cache.Indexers, tweakListOptions internalinterfaces.TweakListOptionsFunc) cache.SharedIndexInformer { return cache.NewSharedIndexInformer( - &cache.ListWatch{ + cache.ToListWatcherWithWatchListSemantics(&cache.ListWatch{ ListFunc: func(options metav1.ListOptions) (runtime.Object, error) { if tweakListOptions != nil { tweakListOptions(&options) @@ -65,7 +65,7 @@ func NewFilteredUserInformer(client versioned.Interface, resyncPeriod time.Durat } return client.StorageV1().Users().Watch(ctx, options) }, - }, + }, client), &apisstoragev1.User{}, resyncPeriod, indexers, diff --git a/pkg/informers/externalversions/storage/v1/virtualclusterinstance.go b/pkg/informers/externalversions/storage/v1/virtualclusterinstance.go index 4c872cf..e79c528 100644 --- a/pkg/informers/externalversions/storage/v1/virtualclusterinstance.go +++ b/pkg/informers/externalversions/storage/v1/virtualclusterinstance.go @@ -41,7 +41,7 @@ func NewVirtualClusterInstanceInformer(client versioned.Interface, namespace str // one. This reduces memory footprint and number of connections to the server. func NewFilteredVirtualClusterInstanceInformer(client versioned.Interface, namespace string, resyncPeriod time.Duration, indexers cache.Indexers, tweakListOptions internalinterfaces.TweakListOptionsFunc) cache.SharedIndexInformer { return cache.NewSharedIndexInformer( - &cache.ListWatch{ + cache.ToListWatcherWithWatchListSemantics(&cache.ListWatch{ ListFunc: func(options metav1.ListOptions) (runtime.Object, error) { if tweakListOptions != nil { tweakListOptions(&options) @@ -66,7 +66,7 @@ func NewFilteredVirtualClusterInstanceInformer(client versioned.Interface, names } return client.StorageV1().VirtualClusterInstances(namespace).Watch(ctx, options) }, - }, + }, client), &apisstoragev1.VirtualClusterInstance{}, resyncPeriod, indexers, diff --git a/pkg/informers/externalversions/storage/v1/virtualclustertemplate.go b/pkg/informers/externalversions/storage/v1/virtualclustertemplate.go index 679c7d8..bbd6ee9 100644 --- a/pkg/informers/externalversions/storage/v1/virtualclustertemplate.go +++ b/pkg/informers/externalversions/storage/v1/virtualclustertemplate.go @@ -40,7 +40,7 @@ func NewVirtualClusterTemplateInformer(client versioned.Interface, resyncPeriod // one. This reduces memory footprint and number of connections to the server. func NewFilteredVirtualClusterTemplateInformer(client versioned.Interface, resyncPeriod time.Duration, indexers cache.Indexers, tweakListOptions internalinterfaces.TweakListOptionsFunc) cache.SharedIndexInformer { return cache.NewSharedIndexInformer( - &cache.ListWatch{ + cache.ToListWatcherWithWatchListSemantics(&cache.ListWatch{ ListFunc: func(options metav1.ListOptions) (runtime.Object, error) { if tweakListOptions != nil { tweakListOptions(&options) @@ -65,7 +65,7 @@ func NewFilteredVirtualClusterTemplateInformer(client versioned.Interface, resyn } return client.StorageV1().VirtualClusterTemplates().Watch(ctx, options) }, - }, + }, client), &apisstoragev1.VirtualClusterTemplate{}, resyncPeriod, indexers, diff --git a/pkg/informers/externalversions/virtualcluster/v1/helmrelease.go b/pkg/informers/externalversions/virtualcluster/v1/helmrelease.go index ddd7401..4a1dfa5 100644 --- a/pkg/informers/externalversions/virtualcluster/v1/helmrelease.go +++ b/pkg/informers/externalversions/virtualcluster/v1/helmrelease.go @@ -41,7 +41,7 @@ func NewHelmReleaseInformer(client versioned.Interface, namespace string, resync // one. This reduces memory footprint and number of connections to the server. func NewFilteredHelmReleaseInformer(client versioned.Interface, namespace string, resyncPeriod time.Duration, indexers cache.Indexers, tweakListOptions internalinterfaces.TweakListOptionsFunc) cache.SharedIndexInformer { return cache.NewSharedIndexInformer( - &cache.ListWatch{ + cache.ToListWatcherWithWatchListSemantics(&cache.ListWatch{ ListFunc: func(options metav1.ListOptions) (runtime.Object, error) { if tweakListOptions != nil { tweakListOptions(&options) @@ -66,7 +66,7 @@ func NewFilteredHelmReleaseInformer(client versioned.Interface, namespace string } return client.VirtualclusterV1().HelmReleases(namespace).Watch(ctx, options) }, - }, + }, client), &apisvirtualclusterv1.HelmRelease{}, resyncPeriod, indexers, diff --git a/pkg/listers/management/v1/devpodenvironmenttemplate.go b/pkg/listers/management/v1/devpodenvironmenttemplate.go deleted file mode 100644 index 47063f0..0000000 --- a/pkg/listers/management/v1/devpodenvironmenttemplate.go +++ /dev/null @@ -1,32 +0,0 @@ -// Code generated by lister-gen. DO NOT EDIT. - -package v1 - -import ( - managementv1 "github.com/devsy-org/api/pkg/apis/management/v1" - labels "k8s.io/apimachinery/pkg/labels" - listers "k8s.io/client-go/listers" - cache "k8s.io/client-go/tools/cache" -) - -// DevPodEnvironmentTemplateLister helps list DevPodEnvironmentTemplates. -// All objects returned here must be treated as read-only. -type DevPodEnvironmentTemplateLister interface { - // List lists all DevPodEnvironmentTemplates in the indexer. - // Objects returned here must be treated as read-only. - List(selector labels.Selector) (ret []*managementv1.DevPodEnvironmentTemplate, err error) - // Get retrieves the DevPodEnvironmentTemplate from the index for a given name. - // Objects returned here must be treated as read-only. - Get(name string) (*managementv1.DevPodEnvironmentTemplate, error) - DevPodEnvironmentTemplateListerExpansion -} - -// devPodEnvironmentTemplateLister implements the DevPodEnvironmentTemplateLister interface. -type devPodEnvironmentTemplateLister struct { - listers.ResourceIndexer[*managementv1.DevPodEnvironmentTemplate] -} - -// NewDevPodEnvironmentTemplateLister returns a new DevPodEnvironmentTemplateLister. -func NewDevPodEnvironmentTemplateLister(indexer cache.Indexer) DevPodEnvironmentTemplateLister { - return &devPodEnvironmentTemplateLister{listers.New[*managementv1.DevPodEnvironmentTemplate](indexer, managementv1.Resource("devpodenvironmenttemplate"))} -} diff --git a/pkg/listers/management/v1/devpodworkspaceinstance.go b/pkg/listers/management/v1/devpodworkspaceinstance.go deleted file mode 100644 index 2593028..0000000 --- a/pkg/listers/management/v1/devpodworkspaceinstance.go +++ /dev/null @@ -1,54 +0,0 @@ -// Code generated by lister-gen. DO NOT EDIT. - -package v1 - -import ( - managementv1 "github.com/devsy-org/api/pkg/apis/management/v1" - labels "k8s.io/apimachinery/pkg/labels" - listers "k8s.io/client-go/listers" - cache "k8s.io/client-go/tools/cache" -) - -// DevPodWorkspaceInstanceLister helps list DevPodWorkspaceInstances. -// All objects returned here must be treated as read-only. -type DevPodWorkspaceInstanceLister interface { - // List lists all DevPodWorkspaceInstances in the indexer. - // Objects returned here must be treated as read-only. - List(selector labels.Selector) (ret []*managementv1.DevPodWorkspaceInstance, err error) - // DevPodWorkspaceInstances returns an object that can list and get DevPodWorkspaceInstances. - DevPodWorkspaceInstances(namespace string) DevPodWorkspaceInstanceNamespaceLister - DevPodWorkspaceInstanceListerExpansion -} - -// devPodWorkspaceInstanceLister implements the DevPodWorkspaceInstanceLister interface. -type devPodWorkspaceInstanceLister struct { - listers.ResourceIndexer[*managementv1.DevPodWorkspaceInstance] -} - -// NewDevPodWorkspaceInstanceLister returns a new DevPodWorkspaceInstanceLister. -func NewDevPodWorkspaceInstanceLister(indexer cache.Indexer) DevPodWorkspaceInstanceLister { - return &devPodWorkspaceInstanceLister{listers.New[*managementv1.DevPodWorkspaceInstance](indexer, managementv1.Resource("devpodworkspaceinstance"))} -} - -// DevPodWorkspaceInstances returns an object that can list and get DevPodWorkspaceInstances. -func (s *devPodWorkspaceInstanceLister) DevPodWorkspaceInstances(namespace string) DevPodWorkspaceInstanceNamespaceLister { - return devPodWorkspaceInstanceNamespaceLister{listers.NewNamespaced[*managementv1.DevPodWorkspaceInstance](s.ResourceIndexer, namespace)} -} - -// DevPodWorkspaceInstanceNamespaceLister helps list and get DevPodWorkspaceInstances. -// All objects returned here must be treated as read-only. -type DevPodWorkspaceInstanceNamespaceLister interface { - // List lists all DevPodWorkspaceInstances in the indexer for a given namespace. - // Objects returned here must be treated as read-only. - List(selector labels.Selector) (ret []*managementv1.DevPodWorkspaceInstance, err error) - // Get retrieves the DevPodWorkspaceInstance from the indexer for a given namespace and name. - // Objects returned here must be treated as read-only. - Get(name string) (*managementv1.DevPodWorkspaceInstance, error) - DevPodWorkspaceInstanceNamespaceListerExpansion -} - -// devPodWorkspaceInstanceNamespaceLister implements the DevPodWorkspaceInstanceNamespaceLister -// interface. -type devPodWorkspaceInstanceNamespaceLister struct { - listers.ResourceIndexer[*managementv1.DevPodWorkspaceInstance] -} diff --git a/pkg/listers/management/v1/devpodworkspacepreset.go b/pkg/listers/management/v1/devpodworkspacepreset.go deleted file mode 100644 index fbe6ada..0000000 --- a/pkg/listers/management/v1/devpodworkspacepreset.go +++ /dev/null @@ -1,32 +0,0 @@ -// Code generated by lister-gen. DO NOT EDIT. - -package v1 - -import ( - managementv1 "github.com/devsy-org/api/pkg/apis/management/v1" - labels "k8s.io/apimachinery/pkg/labels" - listers "k8s.io/client-go/listers" - cache "k8s.io/client-go/tools/cache" -) - -// DevPodWorkspacePresetLister helps list DevPodWorkspacePresets. -// All objects returned here must be treated as read-only. -type DevPodWorkspacePresetLister interface { - // List lists all DevPodWorkspacePresets in the indexer. - // Objects returned here must be treated as read-only. - List(selector labels.Selector) (ret []*managementv1.DevPodWorkspacePreset, err error) - // Get retrieves the DevPodWorkspacePreset from the index for a given name. - // Objects returned here must be treated as read-only. - Get(name string) (*managementv1.DevPodWorkspacePreset, error) - DevPodWorkspacePresetListerExpansion -} - -// devPodWorkspacePresetLister implements the DevPodWorkspacePresetLister interface. -type devPodWorkspacePresetLister struct { - listers.ResourceIndexer[*managementv1.DevPodWorkspacePreset] -} - -// NewDevPodWorkspacePresetLister returns a new DevPodWorkspacePresetLister. -func NewDevPodWorkspacePresetLister(indexer cache.Indexer) DevPodWorkspacePresetLister { - return &devPodWorkspacePresetLister{listers.New[*managementv1.DevPodWorkspacePreset](indexer, managementv1.Resource("devpodworkspacepreset"))} -} diff --git a/pkg/listers/management/v1/devpodworkspacetemplate.go b/pkg/listers/management/v1/devpodworkspacetemplate.go deleted file mode 100644 index ec4f458..0000000 --- a/pkg/listers/management/v1/devpodworkspacetemplate.go +++ /dev/null @@ -1,32 +0,0 @@ -// Code generated by lister-gen. DO NOT EDIT. - -package v1 - -import ( - managementv1 "github.com/devsy-org/api/pkg/apis/management/v1" - labels "k8s.io/apimachinery/pkg/labels" - listers "k8s.io/client-go/listers" - cache "k8s.io/client-go/tools/cache" -) - -// DevPodWorkspaceTemplateLister helps list DevPodWorkspaceTemplates. -// All objects returned here must be treated as read-only. -type DevPodWorkspaceTemplateLister interface { - // List lists all DevPodWorkspaceTemplates in the indexer. - // Objects returned here must be treated as read-only. - List(selector labels.Selector) (ret []*managementv1.DevPodWorkspaceTemplate, err error) - // Get retrieves the DevPodWorkspaceTemplate from the index for a given name. - // Objects returned here must be treated as read-only. - Get(name string) (*managementv1.DevPodWorkspaceTemplate, error) - DevPodWorkspaceTemplateListerExpansion -} - -// devPodWorkspaceTemplateLister implements the DevPodWorkspaceTemplateLister interface. -type devPodWorkspaceTemplateLister struct { - listers.ResourceIndexer[*managementv1.DevPodWorkspaceTemplate] -} - -// NewDevPodWorkspaceTemplateLister returns a new DevPodWorkspaceTemplateLister. -func NewDevPodWorkspaceTemplateLister(indexer cache.Indexer) DevPodWorkspaceTemplateLister { - return &devPodWorkspaceTemplateLister{listers.New[*managementv1.DevPodWorkspaceTemplate](indexer, managementv1.Resource("devpodworkspacetemplate"))} -} diff --git a/pkg/listers/management/v1/devsyenvironmenttemplate.go b/pkg/listers/management/v1/devsyenvironmenttemplate.go new file mode 100644 index 0000000..96fefab --- /dev/null +++ b/pkg/listers/management/v1/devsyenvironmenttemplate.go @@ -0,0 +1,32 @@ +// Code generated by lister-gen. DO NOT EDIT. + +package v1 + +import ( + managementv1 "github.com/devsy-org/api/pkg/apis/management/v1" + labels "k8s.io/apimachinery/pkg/labels" + listers "k8s.io/client-go/listers" + cache "k8s.io/client-go/tools/cache" +) + +// DevsyEnvironmentTemplateLister helps list DevsyEnvironmentTemplates. +// All objects returned here must be treated as read-only. +type DevsyEnvironmentTemplateLister interface { + // List lists all DevsyEnvironmentTemplates in the indexer. + // Objects returned here must be treated as read-only. + List(selector labels.Selector) (ret []*managementv1.DevsyEnvironmentTemplate, err error) + // Get retrieves the DevsyEnvironmentTemplate from the index for a given name. + // Objects returned here must be treated as read-only. + Get(name string) (*managementv1.DevsyEnvironmentTemplate, error) + DevsyEnvironmentTemplateListerExpansion +} + +// devsyEnvironmentTemplateLister implements the DevsyEnvironmentTemplateLister interface. +type devsyEnvironmentTemplateLister struct { + listers.ResourceIndexer[*managementv1.DevsyEnvironmentTemplate] +} + +// NewDevsyEnvironmentTemplateLister returns a new DevsyEnvironmentTemplateLister. +func NewDevsyEnvironmentTemplateLister(indexer cache.Indexer) DevsyEnvironmentTemplateLister { + return &devsyEnvironmentTemplateLister{listers.New[*managementv1.DevsyEnvironmentTemplate](indexer, managementv1.Resource("devsyenvironmenttemplate"))} +} diff --git a/pkg/listers/management/v1/devsyupgrade.go b/pkg/listers/management/v1/devsyupgrade.go index 8cece98..ec967b4 100644 --- a/pkg/listers/management/v1/devsyupgrade.go +++ b/pkg/listers/management/v1/devsyupgrade.go @@ -21,12 +21,12 @@ type DevsyUpgradeLister interface { DevsyUpgradeListerExpansion } -// loftUpgradeLister implements the DevsyUpgradeLister interface. -type loftUpgradeLister struct { +// devsyUpgradeLister implements the DevsyUpgradeLister interface. +type devsyUpgradeLister struct { listers.ResourceIndexer[*managementv1.DevsyUpgrade] } // NewDevsyUpgradeLister returns a new DevsyUpgradeLister. func NewDevsyUpgradeLister(indexer cache.Indexer) DevsyUpgradeLister { - return &loftUpgradeLister{listers.New[*managementv1.DevsyUpgrade](indexer, managementv1.Resource("devsyupgrade"))} + return &devsyUpgradeLister{listers.New[*managementv1.DevsyUpgrade](indexer, managementv1.Resource("devsyupgrade"))} } diff --git a/pkg/listers/management/v1/devsyworkspaceinstance.go b/pkg/listers/management/v1/devsyworkspaceinstance.go new file mode 100644 index 0000000..a84465b --- /dev/null +++ b/pkg/listers/management/v1/devsyworkspaceinstance.go @@ -0,0 +1,54 @@ +// Code generated by lister-gen. DO NOT EDIT. + +package v1 + +import ( + managementv1 "github.com/devsy-org/api/pkg/apis/management/v1" + labels "k8s.io/apimachinery/pkg/labels" + listers "k8s.io/client-go/listers" + cache "k8s.io/client-go/tools/cache" +) + +// DevsyWorkspaceInstanceLister helps list DevsyWorkspaceInstances. +// All objects returned here must be treated as read-only. +type DevsyWorkspaceInstanceLister interface { + // List lists all DevsyWorkspaceInstances in the indexer. + // Objects returned here must be treated as read-only. + List(selector labels.Selector) (ret []*managementv1.DevsyWorkspaceInstance, err error) + // DevsyWorkspaceInstances returns an object that can list and get DevsyWorkspaceInstances. + DevsyWorkspaceInstances(namespace string) DevsyWorkspaceInstanceNamespaceLister + DevsyWorkspaceInstanceListerExpansion +} + +// devsyWorkspaceInstanceLister implements the DevsyWorkspaceInstanceLister interface. +type devsyWorkspaceInstanceLister struct { + listers.ResourceIndexer[*managementv1.DevsyWorkspaceInstance] +} + +// NewDevsyWorkspaceInstanceLister returns a new DevsyWorkspaceInstanceLister. +func NewDevsyWorkspaceInstanceLister(indexer cache.Indexer) DevsyWorkspaceInstanceLister { + return &devsyWorkspaceInstanceLister{listers.New[*managementv1.DevsyWorkspaceInstance](indexer, managementv1.Resource("devsyworkspaceinstance"))} +} + +// DevsyWorkspaceInstances returns an object that can list and get DevsyWorkspaceInstances. +func (s *devsyWorkspaceInstanceLister) DevsyWorkspaceInstances(namespace string) DevsyWorkspaceInstanceNamespaceLister { + return devsyWorkspaceInstanceNamespaceLister{listers.NewNamespaced[*managementv1.DevsyWorkspaceInstance](s.ResourceIndexer, namespace)} +} + +// DevsyWorkspaceInstanceNamespaceLister helps list and get DevsyWorkspaceInstances. +// All objects returned here must be treated as read-only. +type DevsyWorkspaceInstanceNamespaceLister interface { + // List lists all DevsyWorkspaceInstances in the indexer for a given namespace. + // Objects returned here must be treated as read-only. + List(selector labels.Selector) (ret []*managementv1.DevsyWorkspaceInstance, err error) + // Get retrieves the DevsyWorkspaceInstance from the indexer for a given namespace and name. + // Objects returned here must be treated as read-only. + Get(name string) (*managementv1.DevsyWorkspaceInstance, error) + DevsyWorkspaceInstanceNamespaceListerExpansion +} + +// devsyWorkspaceInstanceNamespaceLister implements the DevsyWorkspaceInstanceNamespaceLister +// interface. +type devsyWorkspaceInstanceNamespaceLister struct { + listers.ResourceIndexer[*managementv1.DevsyWorkspaceInstance] +} diff --git a/pkg/listers/management/v1/devsyworkspacepreset.go b/pkg/listers/management/v1/devsyworkspacepreset.go new file mode 100644 index 0000000..28d3e1f --- /dev/null +++ b/pkg/listers/management/v1/devsyworkspacepreset.go @@ -0,0 +1,32 @@ +// Code generated by lister-gen. DO NOT EDIT. + +package v1 + +import ( + managementv1 "github.com/devsy-org/api/pkg/apis/management/v1" + labels "k8s.io/apimachinery/pkg/labels" + listers "k8s.io/client-go/listers" + cache "k8s.io/client-go/tools/cache" +) + +// DevsyWorkspacePresetLister helps list DevsyWorkspacePresets. +// All objects returned here must be treated as read-only. +type DevsyWorkspacePresetLister interface { + // List lists all DevsyWorkspacePresets in the indexer. + // Objects returned here must be treated as read-only. + List(selector labels.Selector) (ret []*managementv1.DevsyWorkspacePreset, err error) + // Get retrieves the DevsyWorkspacePreset from the index for a given name. + // Objects returned here must be treated as read-only. + Get(name string) (*managementv1.DevsyWorkspacePreset, error) + DevsyWorkspacePresetListerExpansion +} + +// devsyWorkspacePresetLister implements the DevsyWorkspacePresetLister interface. +type devsyWorkspacePresetLister struct { + listers.ResourceIndexer[*managementv1.DevsyWorkspacePreset] +} + +// NewDevsyWorkspacePresetLister returns a new DevsyWorkspacePresetLister. +func NewDevsyWorkspacePresetLister(indexer cache.Indexer) DevsyWorkspacePresetLister { + return &devsyWorkspacePresetLister{listers.New[*managementv1.DevsyWorkspacePreset](indexer, managementv1.Resource("devsyworkspacepreset"))} +} diff --git a/pkg/listers/management/v1/devsyworkspacetemplate.go b/pkg/listers/management/v1/devsyworkspacetemplate.go new file mode 100644 index 0000000..2eec0b9 --- /dev/null +++ b/pkg/listers/management/v1/devsyworkspacetemplate.go @@ -0,0 +1,32 @@ +// Code generated by lister-gen. DO NOT EDIT. + +package v1 + +import ( + managementv1 "github.com/devsy-org/api/pkg/apis/management/v1" + labels "k8s.io/apimachinery/pkg/labels" + listers "k8s.io/client-go/listers" + cache "k8s.io/client-go/tools/cache" +) + +// DevsyWorkspaceTemplateLister helps list DevsyWorkspaceTemplates. +// All objects returned here must be treated as read-only. +type DevsyWorkspaceTemplateLister interface { + // List lists all DevsyWorkspaceTemplates in the indexer. + // Objects returned here must be treated as read-only. + List(selector labels.Selector) (ret []*managementv1.DevsyWorkspaceTemplate, err error) + // Get retrieves the DevsyWorkspaceTemplate from the index for a given name. + // Objects returned here must be treated as read-only. + Get(name string) (*managementv1.DevsyWorkspaceTemplate, error) + DevsyWorkspaceTemplateListerExpansion +} + +// devsyWorkspaceTemplateLister implements the DevsyWorkspaceTemplateLister interface. +type devsyWorkspaceTemplateLister struct { + listers.ResourceIndexer[*managementv1.DevsyWorkspaceTemplate] +} + +// NewDevsyWorkspaceTemplateLister returns a new DevsyWorkspaceTemplateLister. +func NewDevsyWorkspaceTemplateLister(indexer cache.Indexer) DevsyWorkspaceTemplateLister { + return &devsyWorkspaceTemplateLister{listers.New[*managementv1.DevsyWorkspaceTemplate](indexer, managementv1.Resource("devsyworkspacetemplate"))} +} diff --git a/pkg/listers/management/v1/expansion_generated.go b/pkg/listers/management/v1/expansion_generated.go index 9539b37..128e520 100644 --- a/pkg/listers/management/v1/expansion_generated.go +++ b/pkg/listers/management/v1/expansion_generated.go @@ -42,25 +42,29 @@ type ConvertVirtualClusterConfigListerExpansion interface{} // DatabaseConnectorLister. type DatabaseConnectorListerExpansion interface{} -// DevPodEnvironmentTemplateListerExpansion allows custom methods to be added to -// DevPodEnvironmentTemplateLister. -type DevPodEnvironmentTemplateListerExpansion interface{} +// DevsyEnvironmentTemplateListerExpansion allows custom methods to be added to +// DevsyEnvironmentTemplateLister. +type DevsyEnvironmentTemplateListerExpansion interface{} -// DevPodWorkspaceInstanceListerExpansion allows custom methods to be added to -// DevPodWorkspaceInstanceLister. -type DevPodWorkspaceInstanceListerExpansion interface{} +// DevsyUpgradeListerExpansion allows custom methods to be added to +// DevsyUpgradeLister. +type DevsyUpgradeListerExpansion interface{} + +// DevsyWorkspaceInstanceListerExpansion allows custom methods to be added to +// DevsyWorkspaceInstanceLister. +type DevsyWorkspaceInstanceListerExpansion interface{} -// DevPodWorkspaceInstanceNamespaceListerExpansion allows custom methods to be added to -// DevPodWorkspaceInstanceNamespaceLister. -type DevPodWorkspaceInstanceNamespaceListerExpansion interface{} +// DevsyWorkspaceInstanceNamespaceListerExpansion allows custom methods to be added to +// DevsyWorkspaceInstanceNamespaceLister. +type DevsyWorkspaceInstanceNamespaceListerExpansion interface{} -// DevPodWorkspacePresetListerExpansion allows custom methods to be added to -// DevPodWorkspacePresetLister. -type DevPodWorkspacePresetListerExpansion interface{} +// DevsyWorkspacePresetListerExpansion allows custom methods to be added to +// DevsyWorkspacePresetLister. +type DevsyWorkspacePresetListerExpansion interface{} -// DevPodWorkspaceTemplateListerExpansion allows custom methods to be added to -// DevPodWorkspaceTemplateLister. -type DevPodWorkspaceTemplateListerExpansion interface{} +// DevsyWorkspaceTemplateListerExpansion allows custom methods to be added to +// DevsyWorkspaceTemplateLister. +type DevsyWorkspaceTemplateListerExpansion interface{} // DirectClusterEndpointTokenListerExpansion allows custom methods to be added to // DirectClusterEndpointTokenLister. @@ -86,10 +90,6 @@ type LicenseListerExpansion interface{} // LicenseTokenLister. type LicenseTokenListerExpansion interface{} -// DevsyUpgradeListerExpansion allows custom methods to be added to -// DevsyUpgradeLister. -type DevsyUpgradeListerExpansion interface{} - // NodeClaimListerExpansion allows custom methods to be added to // NodeClaimLister. type NodeClaimListerExpansion interface{} diff --git a/pkg/listers/storage/v1/devpodenvironmenttemplate.go b/pkg/listers/storage/v1/devpodenvironmenttemplate.go deleted file mode 100644 index 638cfd3..0000000 --- a/pkg/listers/storage/v1/devpodenvironmenttemplate.go +++ /dev/null @@ -1,32 +0,0 @@ -// Code generated by lister-gen. DO NOT EDIT. - -package v1 - -import ( - storagev1 "github.com/devsy-org/api/pkg/apis/storage/v1" - labels "k8s.io/apimachinery/pkg/labels" - listers "k8s.io/client-go/listers" - cache "k8s.io/client-go/tools/cache" -) - -// DevPodEnvironmentTemplateLister helps list DevPodEnvironmentTemplates. -// All objects returned here must be treated as read-only. -type DevPodEnvironmentTemplateLister interface { - // List lists all DevPodEnvironmentTemplates in the indexer. - // Objects returned here must be treated as read-only. - List(selector labels.Selector) (ret []*storagev1.DevPodEnvironmentTemplate, err error) - // Get retrieves the DevPodEnvironmentTemplate from the index for a given name. - // Objects returned here must be treated as read-only. - Get(name string) (*storagev1.DevPodEnvironmentTemplate, error) - DevPodEnvironmentTemplateListerExpansion -} - -// devPodEnvironmentTemplateLister implements the DevPodEnvironmentTemplateLister interface. -type devPodEnvironmentTemplateLister struct { - listers.ResourceIndexer[*storagev1.DevPodEnvironmentTemplate] -} - -// NewDevPodEnvironmentTemplateLister returns a new DevPodEnvironmentTemplateLister. -func NewDevPodEnvironmentTemplateLister(indexer cache.Indexer) DevPodEnvironmentTemplateLister { - return &devPodEnvironmentTemplateLister{listers.New[*storagev1.DevPodEnvironmentTemplate](indexer, storagev1.Resource("devpodenvironmenttemplate"))} -} diff --git a/pkg/listers/storage/v1/devpodworkspaceinstance.go b/pkg/listers/storage/v1/devpodworkspaceinstance.go deleted file mode 100644 index c700044..0000000 --- a/pkg/listers/storage/v1/devpodworkspaceinstance.go +++ /dev/null @@ -1,54 +0,0 @@ -// Code generated by lister-gen. DO NOT EDIT. - -package v1 - -import ( - storagev1 "github.com/devsy-org/api/pkg/apis/storage/v1" - labels "k8s.io/apimachinery/pkg/labels" - listers "k8s.io/client-go/listers" - cache "k8s.io/client-go/tools/cache" -) - -// DevPodWorkspaceInstanceLister helps list DevPodWorkspaceInstances. -// All objects returned here must be treated as read-only. -type DevPodWorkspaceInstanceLister interface { - // List lists all DevPodWorkspaceInstances in the indexer. - // Objects returned here must be treated as read-only. - List(selector labels.Selector) (ret []*storagev1.DevPodWorkspaceInstance, err error) - // DevPodWorkspaceInstances returns an object that can list and get DevPodWorkspaceInstances. - DevPodWorkspaceInstances(namespace string) DevPodWorkspaceInstanceNamespaceLister - DevPodWorkspaceInstanceListerExpansion -} - -// devPodWorkspaceInstanceLister implements the DevPodWorkspaceInstanceLister interface. -type devPodWorkspaceInstanceLister struct { - listers.ResourceIndexer[*storagev1.DevPodWorkspaceInstance] -} - -// NewDevPodWorkspaceInstanceLister returns a new DevPodWorkspaceInstanceLister. -func NewDevPodWorkspaceInstanceLister(indexer cache.Indexer) DevPodWorkspaceInstanceLister { - return &devPodWorkspaceInstanceLister{listers.New[*storagev1.DevPodWorkspaceInstance](indexer, storagev1.Resource("devpodworkspaceinstance"))} -} - -// DevPodWorkspaceInstances returns an object that can list and get DevPodWorkspaceInstances. -func (s *devPodWorkspaceInstanceLister) DevPodWorkspaceInstances(namespace string) DevPodWorkspaceInstanceNamespaceLister { - return devPodWorkspaceInstanceNamespaceLister{listers.NewNamespaced[*storagev1.DevPodWorkspaceInstance](s.ResourceIndexer, namespace)} -} - -// DevPodWorkspaceInstanceNamespaceLister helps list and get DevPodWorkspaceInstances. -// All objects returned here must be treated as read-only. -type DevPodWorkspaceInstanceNamespaceLister interface { - // List lists all DevPodWorkspaceInstances in the indexer for a given namespace. - // Objects returned here must be treated as read-only. - List(selector labels.Selector) (ret []*storagev1.DevPodWorkspaceInstance, err error) - // Get retrieves the DevPodWorkspaceInstance from the indexer for a given namespace and name. - // Objects returned here must be treated as read-only. - Get(name string) (*storagev1.DevPodWorkspaceInstance, error) - DevPodWorkspaceInstanceNamespaceListerExpansion -} - -// devPodWorkspaceInstanceNamespaceLister implements the DevPodWorkspaceInstanceNamespaceLister -// interface. -type devPodWorkspaceInstanceNamespaceLister struct { - listers.ResourceIndexer[*storagev1.DevPodWorkspaceInstance] -} diff --git a/pkg/listers/storage/v1/devpodworkspacepreset.go b/pkg/listers/storage/v1/devpodworkspacepreset.go deleted file mode 100644 index 8b49122..0000000 --- a/pkg/listers/storage/v1/devpodworkspacepreset.go +++ /dev/null @@ -1,32 +0,0 @@ -// Code generated by lister-gen. DO NOT EDIT. - -package v1 - -import ( - storagev1 "github.com/devsy-org/api/pkg/apis/storage/v1" - labels "k8s.io/apimachinery/pkg/labels" - listers "k8s.io/client-go/listers" - cache "k8s.io/client-go/tools/cache" -) - -// DevPodWorkspacePresetLister helps list DevPodWorkspacePresets. -// All objects returned here must be treated as read-only. -type DevPodWorkspacePresetLister interface { - // List lists all DevPodWorkspacePresets in the indexer. - // Objects returned here must be treated as read-only. - List(selector labels.Selector) (ret []*storagev1.DevPodWorkspacePreset, err error) - // Get retrieves the DevPodWorkspacePreset from the index for a given name. - // Objects returned here must be treated as read-only. - Get(name string) (*storagev1.DevPodWorkspacePreset, error) - DevPodWorkspacePresetListerExpansion -} - -// devPodWorkspacePresetLister implements the DevPodWorkspacePresetLister interface. -type devPodWorkspacePresetLister struct { - listers.ResourceIndexer[*storagev1.DevPodWorkspacePreset] -} - -// NewDevPodWorkspacePresetLister returns a new DevPodWorkspacePresetLister. -func NewDevPodWorkspacePresetLister(indexer cache.Indexer) DevPodWorkspacePresetLister { - return &devPodWorkspacePresetLister{listers.New[*storagev1.DevPodWorkspacePreset](indexer, storagev1.Resource("devpodworkspacepreset"))} -} diff --git a/pkg/listers/storage/v1/devpodworkspacetemplate.go b/pkg/listers/storage/v1/devpodworkspacetemplate.go deleted file mode 100644 index 1b6220c..0000000 --- a/pkg/listers/storage/v1/devpodworkspacetemplate.go +++ /dev/null @@ -1,32 +0,0 @@ -// Code generated by lister-gen. DO NOT EDIT. - -package v1 - -import ( - storagev1 "github.com/devsy-org/api/pkg/apis/storage/v1" - labels "k8s.io/apimachinery/pkg/labels" - listers "k8s.io/client-go/listers" - cache "k8s.io/client-go/tools/cache" -) - -// DevPodWorkspaceTemplateLister helps list DevPodWorkspaceTemplates. -// All objects returned here must be treated as read-only. -type DevPodWorkspaceTemplateLister interface { - // List lists all DevPodWorkspaceTemplates in the indexer. - // Objects returned here must be treated as read-only. - List(selector labels.Selector) (ret []*storagev1.DevPodWorkspaceTemplate, err error) - // Get retrieves the DevPodWorkspaceTemplate from the index for a given name. - // Objects returned here must be treated as read-only. - Get(name string) (*storagev1.DevPodWorkspaceTemplate, error) - DevPodWorkspaceTemplateListerExpansion -} - -// devPodWorkspaceTemplateLister implements the DevPodWorkspaceTemplateLister interface. -type devPodWorkspaceTemplateLister struct { - listers.ResourceIndexer[*storagev1.DevPodWorkspaceTemplate] -} - -// NewDevPodWorkspaceTemplateLister returns a new DevPodWorkspaceTemplateLister. -func NewDevPodWorkspaceTemplateLister(indexer cache.Indexer) DevPodWorkspaceTemplateLister { - return &devPodWorkspaceTemplateLister{listers.New[*storagev1.DevPodWorkspaceTemplate](indexer, storagev1.Resource("devpodworkspacetemplate"))} -} diff --git a/pkg/listers/storage/v1/devsyenvironmenttemplate.go b/pkg/listers/storage/v1/devsyenvironmenttemplate.go new file mode 100644 index 0000000..3e12754 --- /dev/null +++ b/pkg/listers/storage/v1/devsyenvironmenttemplate.go @@ -0,0 +1,32 @@ +// Code generated by lister-gen. DO NOT EDIT. + +package v1 + +import ( + storagev1 "github.com/devsy-org/api/pkg/apis/storage/v1" + labels "k8s.io/apimachinery/pkg/labels" + listers "k8s.io/client-go/listers" + cache "k8s.io/client-go/tools/cache" +) + +// DevsyEnvironmentTemplateLister helps list DevsyEnvironmentTemplates. +// All objects returned here must be treated as read-only. +type DevsyEnvironmentTemplateLister interface { + // List lists all DevsyEnvironmentTemplates in the indexer. + // Objects returned here must be treated as read-only. + List(selector labels.Selector) (ret []*storagev1.DevsyEnvironmentTemplate, err error) + // Get retrieves the DevsyEnvironmentTemplate from the index for a given name. + // Objects returned here must be treated as read-only. + Get(name string) (*storagev1.DevsyEnvironmentTemplate, error) + DevsyEnvironmentTemplateListerExpansion +} + +// devsyEnvironmentTemplateLister implements the DevsyEnvironmentTemplateLister interface. +type devsyEnvironmentTemplateLister struct { + listers.ResourceIndexer[*storagev1.DevsyEnvironmentTemplate] +} + +// NewDevsyEnvironmentTemplateLister returns a new DevsyEnvironmentTemplateLister. +func NewDevsyEnvironmentTemplateLister(indexer cache.Indexer) DevsyEnvironmentTemplateLister { + return &devsyEnvironmentTemplateLister{listers.New[*storagev1.DevsyEnvironmentTemplate](indexer, storagev1.Resource("devsyenvironmenttemplate"))} +} diff --git a/pkg/listers/storage/v1/devsyworkspaceinstance.go b/pkg/listers/storage/v1/devsyworkspaceinstance.go new file mode 100644 index 0000000..41c02fc --- /dev/null +++ b/pkg/listers/storage/v1/devsyworkspaceinstance.go @@ -0,0 +1,54 @@ +// Code generated by lister-gen. DO NOT EDIT. + +package v1 + +import ( + storagev1 "github.com/devsy-org/api/pkg/apis/storage/v1" + labels "k8s.io/apimachinery/pkg/labels" + listers "k8s.io/client-go/listers" + cache "k8s.io/client-go/tools/cache" +) + +// DevsyWorkspaceInstanceLister helps list DevsyWorkspaceInstances. +// All objects returned here must be treated as read-only. +type DevsyWorkspaceInstanceLister interface { + // List lists all DevsyWorkspaceInstances in the indexer. + // Objects returned here must be treated as read-only. + List(selector labels.Selector) (ret []*storagev1.DevsyWorkspaceInstance, err error) + // DevsyWorkspaceInstances returns an object that can list and get DevsyWorkspaceInstances. + DevsyWorkspaceInstances(namespace string) DevsyWorkspaceInstanceNamespaceLister + DevsyWorkspaceInstanceListerExpansion +} + +// devsyWorkspaceInstanceLister implements the DevsyWorkspaceInstanceLister interface. +type devsyWorkspaceInstanceLister struct { + listers.ResourceIndexer[*storagev1.DevsyWorkspaceInstance] +} + +// NewDevsyWorkspaceInstanceLister returns a new DevsyWorkspaceInstanceLister. +func NewDevsyWorkspaceInstanceLister(indexer cache.Indexer) DevsyWorkspaceInstanceLister { + return &devsyWorkspaceInstanceLister{listers.New[*storagev1.DevsyWorkspaceInstance](indexer, storagev1.Resource("devsyworkspaceinstance"))} +} + +// DevsyWorkspaceInstances returns an object that can list and get DevsyWorkspaceInstances. +func (s *devsyWorkspaceInstanceLister) DevsyWorkspaceInstances(namespace string) DevsyWorkspaceInstanceNamespaceLister { + return devsyWorkspaceInstanceNamespaceLister{listers.NewNamespaced[*storagev1.DevsyWorkspaceInstance](s.ResourceIndexer, namespace)} +} + +// DevsyWorkspaceInstanceNamespaceLister helps list and get DevsyWorkspaceInstances. +// All objects returned here must be treated as read-only. +type DevsyWorkspaceInstanceNamespaceLister interface { + // List lists all DevsyWorkspaceInstances in the indexer for a given namespace. + // Objects returned here must be treated as read-only. + List(selector labels.Selector) (ret []*storagev1.DevsyWorkspaceInstance, err error) + // Get retrieves the DevsyWorkspaceInstance from the indexer for a given namespace and name. + // Objects returned here must be treated as read-only. + Get(name string) (*storagev1.DevsyWorkspaceInstance, error) + DevsyWorkspaceInstanceNamespaceListerExpansion +} + +// devsyWorkspaceInstanceNamespaceLister implements the DevsyWorkspaceInstanceNamespaceLister +// interface. +type devsyWorkspaceInstanceNamespaceLister struct { + listers.ResourceIndexer[*storagev1.DevsyWorkspaceInstance] +} diff --git a/pkg/listers/storage/v1/devsyworkspacepreset.go b/pkg/listers/storage/v1/devsyworkspacepreset.go new file mode 100644 index 0000000..4d9757b --- /dev/null +++ b/pkg/listers/storage/v1/devsyworkspacepreset.go @@ -0,0 +1,32 @@ +// Code generated by lister-gen. DO NOT EDIT. + +package v1 + +import ( + storagev1 "github.com/devsy-org/api/pkg/apis/storage/v1" + labels "k8s.io/apimachinery/pkg/labels" + listers "k8s.io/client-go/listers" + cache "k8s.io/client-go/tools/cache" +) + +// DevsyWorkspacePresetLister helps list DevsyWorkspacePresets. +// All objects returned here must be treated as read-only. +type DevsyWorkspacePresetLister interface { + // List lists all DevsyWorkspacePresets in the indexer. + // Objects returned here must be treated as read-only. + List(selector labels.Selector) (ret []*storagev1.DevsyWorkspacePreset, err error) + // Get retrieves the DevsyWorkspacePreset from the index for a given name. + // Objects returned here must be treated as read-only. + Get(name string) (*storagev1.DevsyWorkspacePreset, error) + DevsyWorkspacePresetListerExpansion +} + +// devsyWorkspacePresetLister implements the DevsyWorkspacePresetLister interface. +type devsyWorkspacePresetLister struct { + listers.ResourceIndexer[*storagev1.DevsyWorkspacePreset] +} + +// NewDevsyWorkspacePresetLister returns a new DevsyWorkspacePresetLister. +func NewDevsyWorkspacePresetLister(indexer cache.Indexer) DevsyWorkspacePresetLister { + return &devsyWorkspacePresetLister{listers.New[*storagev1.DevsyWorkspacePreset](indexer, storagev1.Resource("devsyworkspacepreset"))} +} diff --git a/pkg/listers/storage/v1/devsyworkspacetemplate.go b/pkg/listers/storage/v1/devsyworkspacetemplate.go new file mode 100644 index 0000000..24cd396 --- /dev/null +++ b/pkg/listers/storage/v1/devsyworkspacetemplate.go @@ -0,0 +1,32 @@ +// Code generated by lister-gen. DO NOT EDIT. + +package v1 + +import ( + storagev1 "github.com/devsy-org/api/pkg/apis/storage/v1" + labels "k8s.io/apimachinery/pkg/labels" + listers "k8s.io/client-go/listers" + cache "k8s.io/client-go/tools/cache" +) + +// DevsyWorkspaceTemplateLister helps list DevsyWorkspaceTemplates. +// All objects returned here must be treated as read-only. +type DevsyWorkspaceTemplateLister interface { + // List lists all DevsyWorkspaceTemplates in the indexer. + // Objects returned here must be treated as read-only. + List(selector labels.Selector) (ret []*storagev1.DevsyWorkspaceTemplate, err error) + // Get retrieves the DevsyWorkspaceTemplate from the index for a given name. + // Objects returned here must be treated as read-only. + Get(name string) (*storagev1.DevsyWorkspaceTemplate, error) + DevsyWorkspaceTemplateListerExpansion +} + +// devsyWorkspaceTemplateLister implements the DevsyWorkspaceTemplateLister interface. +type devsyWorkspaceTemplateLister struct { + listers.ResourceIndexer[*storagev1.DevsyWorkspaceTemplate] +} + +// NewDevsyWorkspaceTemplateLister returns a new DevsyWorkspaceTemplateLister. +func NewDevsyWorkspaceTemplateLister(indexer cache.Indexer) DevsyWorkspaceTemplateLister { + return &devsyWorkspaceTemplateLister{listers.New[*storagev1.DevsyWorkspaceTemplate](indexer, storagev1.Resource("devsyworkspacetemplate"))} +} diff --git a/pkg/listers/storage/v1/expansion_generated.go b/pkg/listers/storage/v1/expansion_generated.go index 89606db..236b39b 100644 --- a/pkg/listers/storage/v1/expansion_generated.go +++ b/pkg/listers/storage/v1/expansion_generated.go @@ -22,25 +22,25 @@ type ClusterAccessListerExpansion interface{} // ClusterRoleTemplateLister. type ClusterRoleTemplateListerExpansion interface{} -// DevPodEnvironmentTemplateListerExpansion allows custom methods to be added to -// DevPodEnvironmentTemplateLister. -type DevPodEnvironmentTemplateListerExpansion interface{} +// DevsyEnvironmentTemplateListerExpansion allows custom methods to be added to +// DevsyEnvironmentTemplateLister. +type DevsyEnvironmentTemplateListerExpansion interface{} -// DevPodWorkspaceInstanceListerExpansion allows custom methods to be added to -// DevPodWorkspaceInstanceLister. -type DevPodWorkspaceInstanceListerExpansion interface{} +// DevsyWorkspaceInstanceListerExpansion allows custom methods to be added to +// DevsyWorkspaceInstanceLister. +type DevsyWorkspaceInstanceListerExpansion interface{} -// DevPodWorkspaceInstanceNamespaceListerExpansion allows custom methods to be added to -// DevPodWorkspaceInstanceNamespaceLister. -type DevPodWorkspaceInstanceNamespaceListerExpansion interface{} +// DevsyWorkspaceInstanceNamespaceListerExpansion allows custom methods to be added to +// DevsyWorkspaceInstanceNamespaceLister. +type DevsyWorkspaceInstanceNamespaceListerExpansion interface{} -// DevPodWorkspacePresetListerExpansion allows custom methods to be added to -// DevPodWorkspacePresetLister. -type DevPodWorkspacePresetListerExpansion interface{} +// DevsyWorkspacePresetListerExpansion allows custom methods to be added to +// DevsyWorkspacePresetLister. +type DevsyWorkspacePresetListerExpansion interface{} -// DevPodWorkspaceTemplateListerExpansion allows custom methods to be added to -// DevPodWorkspaceTemplateLister. -type DevPodWorkspaceTemplateListerExpansion interface{} +// DevsyWorkspaceTemplateListerExpansion allows custom methods to be added to +// DevsyWorkspaceTemplateLister. +type DevsyWorkspaceTemplateListerExpansion interface{} // NetworkPeerListerExpansion allows custom methods to be added to // NetworkPeerLister. diff --git a/pkg/managerfactory/types.go b/pkg/managerfactory/types.go index 1fca79e..40a988d 100644 --- a/pkg/managerfactory/types.go +++ b/pkg/managerfactory/types.go @@ -1,29 +1,13 @@ +// Package managerfactory re-exports the interfaces from apiserver/pkg/managerfactory. package managerfactory -import ( - "context" +import "github.com/devsy-org/apiserver/pkg/managerfactory" - "k8s.io/client-go/rest" - "sigs.k8s.io/controller-runtime/pkg/cache" - "sigs.k8s.io/controller-runtime/pkg/client" -) +// SharedManagerFactory is the interface for retrieving managers. +type SharedManagerFactory = managerfactory.SharedManagerFactory -// SharedManagerFactory is the interface for retrieving managers -type SharedManagerFactory interface { - Cluster(cluster string) ClusterClientAccess - Management() ManagementClientAccess -} +// ClusterClientAccess holds the functions for cluster access. +type ClusterClientAccess = managerfactory.ClusterClientAccess -// ClusterClientAccess holds the functions for cluster access -type ClusterClientAccess interface { - Config(ctx context.Context) (*rest.Config, error) - UncachedClient(ctx context.Context) (client.Client, error) -} - -// ManagementClientAccess holds the functions for management access -type ManagementClientAccess interface { - Config() *rest.Config - UncachedClient() client.Client - CachedClient() client.Client - Cache() cache.Cache -} +// ManagementClientAccess holds the functions for management access. +type ManagementClientAccess = managerfactory.ManagementClientAccess diff --git a/pkg/openapi/zz_generated.openapi.go b/pkg/openapi/zz_generated.openapi.go index b185ece..2abb8c4 100644 --- a/pkg/openapi/zz_generated.openapi.go +++ b/pkg/openapi/zz_generated.openapi.go @@ -6,1115 +6,1205 @@ package openapi import ( - licenseapi "github.com/devsy-org/admin-apis/pkg/licenseapi" - v1 "github.com/devsy-org/agentapi/pkg/apis/devsy/cluster/v1" - storagev1 "github.com/devsy-org/agentapi/pkg/apis/devsy/storage/v1" + v1 "k8s.io/api/apps/v1" + batchv1 "k8s.io/api/batch/v1" corev1 "k8s.io/api/core/v1" + networkingv1 "k8s.io/api/networking/v1" + rbacv1 "k8s.io/api/rbac/v1" + storagev1 "k8s.io/api/storage/v1" + resource "k8s.io/apimachinery/pkg/api/resource" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" + runtime "k8s.io/apimachinery/pkg/runtime" + intstr "k8s.io/apimachinery/pkg/util/intstr" + version "k8s.io/apimachinery/pkg/version" common "k8s.io/kube-openapi/pkg/common" spec "k8s.io/kube-openapi/pkg/validation/spec" ) func GetOpenAPIDefinitions(ref common.ReferenceCallback) map[string]common.OpenAPIDefinition { return map[string]common.OpenAPIDefinition{ - licenseapi.Analytics{}.OpenAPIModelName(): schema_devsy_org_admin_apis_pkg_licenseapi_Analytics(ref), - licenseapi.Announcement{}.OpenAPIModelName(): schema_devsy_org_admin_apis_pkg_licenseapi_Announcement(ref), - licenseapi.BlockRequest{}.OpenAPIModelName(): schema_devsy_org_admin_apis_pkg_licenseapi_BlockRequest(ref), - licenseapi.Button{}.OpenAPIModelName(): schema_devsy_org_admin_apis_pkg_licenseapi_Button(ref), - licenseapi.ChatAuthCreateInput{}.OpenAPIModelName(): schema_devsy_org_admin_apis_pkg_licenseapi_ChatAuthCreateInput(ref), - licenseapi.ChatAuthCreateOutput{}.OpenAPIModelName(): schema_devsy_org_admin_apis_pkg_licenseapi_ChatAuthCreateOutput(ref), - licenseapi.DevsyClusterInfo{}.OpenAPIModelName(): schema_devsy_org_admin_apis_pkg_licenseapi_DevsyClusterInfo(ref), - licenseapi.DomainToken{}.OpenAPIModelName(): schema_devsy_org_admin_apis_pkg_licenseapi_DomainToken(ref), - licenseapi.Feature{}.OpenAPIModelName(): schema_devsy_org_admin_apis_pkg_licenseapi_Feature(ref), - licenseapi.FeatureUsage{}.OpenAPIModelName(): schema_devsy_org_admin_apis_pkg_licenseapi_FeatureUsage(ref), - licenseapi.GenericRequestInput{}.OpenAPIModelName(): schema_devsy_org_admin_apis_pkg_licenseapi_GenericRequestInput(ref), - licenseapi.GenericRequestOutput{}.OpenAPIModelName(): schema_devsy_org_admin_apis_pkg_licenseapi_GenericRequestOutput(ref), - licenseapi.InstanceActivateInstanceInput{}.OpenAPIModelName(): schema_devsy_org_admin_apis_pkg_licenseapi_InstanceActivateInstanceInput(ref), - licenseapi.InstanceCreateInput{}.OpenAPIModelName(): schema_devsy_org_admin_apis_pkg_licenseapi_InstanceCreateInput(ref), - licenseapi.InstanceCreateOutput{}.OpenAPIModelName(): schema_devsy_org_admin_apis_pkg_licenseapi_InstanceCreateOutput(ref), - licenseapi.InstanceSendActivationEmailInput{}.OpenAPIModelName(): schema_devsy_org_admin_apis_pkg_licenseapi_InstanceSendActivationEmailInput(ref), - licenseapi.InstanceTokenAuth{}.OpenAPIModelName(): schema_devsy_org_admin_apis_pkg_licenseapi_InstanceTokenAuth(ref), - licenseapi.InstanceTokenClaims{}.OpenAPIModelName(): schema_devsy_org_admin_apis_pkg_licenseapi_InstanceTokenClaims(ref), - licenseapi.InstanceUsageInput{}.OpenAPIModelName(): schema_devsy_org_admin_apis_pkg_licenseapi_InstanceUsageInput(ref), - licenseapi.Invoice{}.OpenAPIModelName(): schema_devsy_org_admin_apis_pkg_licenseapi_Invoice(ref), - licenseapi.License{}.OpenAPIModelName(): schema_devsy_org_admin_apis_pkg_licenseapi_License(ref), - licenseapi.LicenseAPIRoute{}.OpenAPIModelName(): schema_devsy_org_admin_apis_pkg_licenseapi_LicenseAPIRoute(ref), - licenseapi.LicenseAPIRoutes{}.OpenAPIModelName(): schema_devsy_org_admin_apis_pkg_licenseapi_LicenseAPIRoutes(ref), - licenseapi.Limit{}.OpenAPIModelName(): schema_devsy_org_admin_apis_pkg_licenseapi_Limit(ref), - licenseapi.Module{}.OpenAPIModelName(): schema_devsy_org_admin_apis_pkg_licenseapi_Module(ref), - licenseapi.NodeInfo{}.OpenAPIModelName(): schema_devsy_org_admin_apis_pkg_licenseapi_NodeInfo(ref), - licenseapi.OfflineLicenseKeyClaims{}.OpenAPIModelName(): schema_devsy_org_admin_apis_pkg_licenseapi_OfflineLicenseKeyClaims(ref), - licenseapi.Plan{}.OpenAPIModelName(): schema_devsy_org_admin_apis_pkg_licenseapi_Plan(ref), - licenseapi.PlanExpiration{}.OpenAPIModelName(): schema_devsy_org_admin_apis_pkg_licenseapi_PlanExpiration(ref), - licenseapi.PlanPeriod{}.OpenAPIModelName(): schema_devsy_org_admin_apis_pkg_licenseapi_PlanPeriod(ref), - licenseapi.PlanPrice{}.OpenAPIModelName(): schema_devsy_org_admin_apis_pkg_licenseapi_PlanPrice(ref), - licenseapi.PlatformDatabase{}.OpenAPIModelName(): schema_devsy_org_admin_apis_pkg_licenseapi_PlatformDatabase(ref), - licenseapi.PriceTier{}.OpenAPIModelName(): schema_devsy_org_admin_apis_pkg_licenseapi_PriceTier(ref), - licenseapi.Request{}.OpenAPIModelName(): schema_devsy_org_admin_apis_pkg_licenseapi_Request(ref), - licenseapi.ResourceCount{}.OpenAPIModelName(): schema_devsy_org_admin_apis_pkg_licenseapi_ResourceCount(ref), - licenseapi.TierResource{}.OpenAPIModelName(): schema_devsy_org_admin_apis_pkg_licenseapi_TierResource(ref), - licenseapi.Trial{}.OpenAPIModelName(): schema_devsy_org_admin_apis_pkg_licenseapi_Trial(ref), - licenseapi.UsageData{}.OpenAPIModelName(): schema_devsy_org_admin_apis_pkg_licenseapi_UsageData(ref), - licenseapi.UsageDataDetails{}.OpenAPIModelName(): schema_devsy_org_admin_apis_pkg_licenseapi_UsageDataDetails(ref), - v1.Bash{}.OpenAPIModelName(): schema_apis_devsy_cluster_v1_Bash(ref), - v1.Chart{}.OpenAPIModelName(): schema_apis_devsy_cluster_v1_Chart(ref), - v1.ChartInfo{}.OpenAPIModelName(): schema_apis_devsy_cluster_v1_ChartInfo(ref), - v1.ChartInfoList{}.OpenAPIModelName(): schema_apis_devsy_cluster_v1_ChartInfoList(ref), - v1.ChartInfoSpec{}.OpenAPIModelName(): schema_apis_devsy_cluster_v1_ChartInfoSpec(ref), - v1.ChartInfoStatus{}.OpenAPIModelName(): schema_apis_devsy_cluster_v1_ChartInfoStatus(ref), - v1.ChartSecretRef{}.OpenAPIModelName(): schema_apis_devsy_cluster_v1_ChartSecretRef(ref), - v1.EpochInfo{}.OpenAPIModelName(): schema_apis_devsy_cluster_v1_EpochInfo(ref), - v1.Feature{}.OpenAPIModelName(): schema_apis_devsy_cluster_v1_Feature(ref), - v1.FeatureList{}.OpenAPIModelName(): schema_apis_devsy_cluster_v1_FeatureList(ref), - v1.FeatureSpec{}.OpenAPIModelName(): schema_apis_devsy_cluster_v1_FeatureSpec(ref), - v1.FeatureStatus{}.OpenAPIModelName(): schema_apis_devsy_cluster_v1_FeatureStatus(ref), - v1.HelmRelease{}.OpenAPIModelName(): schema_apis_devsy_cluster_v1_HelmRelease(ref), - v1.HelmReleaseApp{}.OpenAPIModelName(): schema_apis_devsy_cluster_v1_HelmReleaseApp(ref), - v1.HelmReleaseConfig{}.OpenAPIModelName(): schema_apis_devsy_cluster_v1_HelmReleaseConfig(ref), - v1.HelmReleaseList{}.OpenAPIModelName(): schema_apis_devsy_cluster_v1_HelmReleaseList(ref), - v1.HelmReleaseSpec{}.OpenAPIModelName(): schema_apis_devsy_cluster_v1_HelmReleaseSpec(ref), - v1.HelmReleaseStatus{}.OpenAPIModelName(): schema_apis_devsy_cluster_v1_HelmReleaseStatus(ref), - v1.Info{}.OpenAPIModelName(): schema_apis_devsy_cluster_v1_Info(ref), - v1.LastActivityInfo{}.OpenAPIModelName(): schema_apis_devsy_cluster_v1_LastActivityInfo(ref), - v1.Maintainer{}.OpenAPIModelName(): schema_apis_devsy_cluster_v1_Maintainer(ref), - v1.Metadata{}.OpenAPIModelName(): schema_apis_devsy_cluster_v1_Metadata(ref), - v1.ProjectSecretRef{}.OpenAPIModelName(): schema_apis_devsy_cluster_v1_ProjectSecretRef(ref), - v1.SleepModeConfig{}.OpenAPIModelName(): schema_apis_devsy_cluster_v1_SleepModeConfig(ref), - v1.SleepModeConfigSpec{}.OpenAPIModelName(): schema_apis_devsy_cluster_v1_SleepModeConfigSpec(ref), - v1.SleepModeConfigStatus{}.OpenAPIModelName(): schema_apis_devsy_cluster_v1_SleepModeConfigStatus(ref), - storagev1.ClusterQuota{}.OpenAPIModelName(): schema_apis_devsy_storage_v1_ClusterQuota(ref), - storagev1.ClusterQuotaList{}.OpenAPIModelName(): schema_apis_devsy_storage_v1_ClusterQuotaList(ref), - storagev1.ClusterQuotaSpec{}.OpenAPIModelName(): schema_apis_devsy_storage_v1_ClusterQuotaSpec(ref), - storagev1.ClusterQuotaStatus{}.OpenAPIModelName(): schema_apis_devsy_storage_v1_ClusterQuotaStatus(ref), - storagev1.ClusterQuotaStatusByNamespace{}.OpenAPIModelName(): schema_apis_devsy_storage_v1_ClusterQuotaStatusByNamespace(ref), - storagev1.Condition{}.OpenAPIModelName(): schema_apis_devsy_storage_v1_Condition(ref), - "github.com/devsy-org/api/pkg/apis/audit/v1.Event": schema_pkg_apis_audit_v1_Event(ref), - "github.com/devsy-org/api/pkg/apis/audit/v1.EventList": schema_pkg_apis_audit_v1_EventList(ref), - "github.com/devsy-org/api/pkg/apis/audit/v1.ObjectReference": schema_pkg_apis_audit_v1_ObjectReference(ref), - "github.com/devsy-org/api/pkg/apis/management/v1.AgentAnalyticsSpec": schema_pkg_apis_management_v1_AgentAnalyticsSpec(ref), - "github.com/devsy-org/api/pkg/apis/management/v1.AgentAuditConfig": schema_pkg_apis_management_v1_AgentAuditConfig(ref), - "github.com/devsy-org/api/pkg/apis/management/v1.AgentAuditEvent": schema_pkg_apis_management_v1_AgentAuditEvent(ref), - "github.com/devsy-org/api/pkg/apis/management/v1.AgentAuditEventList": schema_pkg_apis_management_v1_AgentAuditEventList(ref), - "github.com/devsy-org/api/pkg/apis/management/v1.AgentAuditEventSpec": schema_pkg_apis_management_v1_AgentAuditEventSpec(ref), - "github.com/devsy-org/api/pkg/apis/management/v1.AgentAuditEventStatus": schema_pkg_apis_management_v1_AgentAuditEventStatus(ref), - "github.com/devsy-org/api/pkg/apis/management/v1.AgentCostControlConfig": schema_pkg_apis_management_v1_AgentCostControlConfig(ref), - "github.com/devsy-org/api/pkg/apis/management/v1.Announcement": schema_pkg_apis_management_v1_Announcement(ref), - "github.com/devsy-org/api/pkg/apis/management/v1.AnnouncementList": schema_pkg_apis_management_v1_AnnouncementList(ref), - "github.com/devsy-org/api/pkg/apis/management/v1.AnnouncementSpec": schema_pkg_apis_management_v1_AnnouncementSpec(ref), - "github.com/devsy-org/api/pkg/apis/management/v1.AnnouncementStatus": schema_pkg_apis_management_v1_AnnouncementStatus(ref), - "github.com/devsy-org/api/pkg/apis/management/v1.App": schema_pkg_apis_management_v1_App(ref), - "github.com/devsy-org/api/pkg/apis/management/v1.AppCredentials": schema_pkg_apis_management_v1_AppCredentials(ref), - "github.com/devsy-org/api/pkg/apis/management/v1.AppCredentialsList": schema_pkg_apis_management_v1_AppCredentialsList(ref), - "github.com/devsy-org/api/pkg/apis/management/v1.AppList": schema_pkg_apis_management_v1_AppList(ref), - "github.com/devsy-org/api/pkg/apis/management/v1.AppSpec": schema_pkg_apis_management_v1_AppSpec(ref), - "github.com/devsy-org/api/pkg/apis/management/v1.AppStatus": schema_pkg_apis_management_v1_AppStatus(ref), - "github.com/devsy-org/api/pkg/apis/management/v1.Apps": schema_pkg_apis_management_v1_Apps(ref), - "github.com/devsy-org/api/pkg/apis/management/v1.AssignedVia": schema_pkg_apis_management_v1_AssignedVia(ref), - "github.com/devsy-org/api/pkg/apis/management/v1.Audit": schema_pkg_apis_management_v1_Audit(ref), - "github.com/devsy-org/api/pkg/apis/management/v1.AuditPolicy": schema_pkg_apis_management_v1_AuditPolicy(ref), - "github.com/devsy-org/api/pkg/apis/management/v1.AuditPolicyRule": schema_pkg_apis_management_v1_AuditPolicyRule(ref), - "github.com/devsy-org/api/pkg/apis/management/v1.Authentication": schema_pkg_apis_management_v1_Authentication(ref), - "github.com/devsy-org/api/pkg/apis/management/v1.AuthenticationGithub": schema_pkg_apis_management_v1_AuthenticationGithub(ref), - "github.com/devsy-org/api/pkg/apis/management/v1.AuthenticationGithubOrg": schema_pkg_apis_management_v1_AuthenticationGithubOrg(ref), - "github.com/devsy-org/api/pkg/apis/management/v1.AuthenticationGitlab": schema_pkg_apis_management_v1_AuthenticationGitlab(ref), - "github.com/devsy-org/api/pkg/apis/management/v1.AuthenticationGoogle": schema_pkg_apis_management_v1_AuthenticationGoogle(ref), - "github.com/devsy-org/api/pkg/apis/management/v1.AuthenticationMicrosoft": schema_pkg_apis_management_v1_AuthenticationMicrosoft(ref), - "github.com/devsy-org/api/pkg/apis/management/v1.AuthenticationOIDC": schema_pkg_apis_management_v1_AuthenticationOIDC(ref), - "github.com/devsy-org/api/pkg/apis/management/v1.AuthenticationPassword": schema_pkg_apis_management_v1_AuthenticationPassword(ref), - "github.com/devsy-org/api/pkg/apis/management/v1.AuthenticationRancher": schema_pkg_apis_management_v1_AuthenticationRancher(ref), - "github.com/devsy-org/api/pkg/apis/management/v1.AuthenticationSAML": schema_pkg_apis_management_v1_AuthenticationSAML(ref), - "github.com/devsy-org/api/pkg/apis/management/v1.Backup": schema_pkg_apis_management_v1_Backup(ref), - "github.com/devsy-org/api/pkg/apis/management/v1.BackupApply": schema_pkg_apis_management_v1_BackupApply(ref), - "github.com/devsy-org/api/pkg/apis/management/v1.BackupApplyList": schema_pkg_apis_management_v1_BackupApplyList(ref), - "github.com/devsy-org/api/pkg/apis/management/v1.BackupApplyOptions": schema_pkg_apis_management_v1_BackupApplyOptions(ref), - "github.com/devsy-org/api/pkg/apis/management/v1.BackupApplySpec": schema_pkg_apis_management_v1_BackupApplySpec(ref), - "github.com/devsy-org/api/pkg/apis/management/v1.BackupList": schema_pkg_apis_management_v1_BackupList(ref), - "github.com/devsy-org/api/pkg/apis/management/v1.BackupSpec": schema_pkg_apis_management_v1_BackupSpec(ref), - "github.com/devsy-org/api/pkg/apis/management/v1.BackupStatus": schema_pkg_apis_management_v1_BackupStatus(ref), - "github.com/devsy-org/api/pkg/apis/management/v1.Cloud": schema_pkg_apis_management_v1_Cloud(ref), - "github.com/devsy-org/api/pkg/apis/management/v1.Cluster": schema_pkg_apis_management_v1_Cluster(ref), - "github.com/devsy-org/api/pkg/apis/management/v1.ClusterAccess": schema_pkg_apis_management_v1_ClusterAccess(ref), - "github.com/devsy-org/api/pkg/apis/management/v1.ClusterAccessKey": schema_pkg_apis_management_v1_ClusterAccessKey(ref), - "github.com/devsy-org/api/pkg/apis/management/v1.ClusterAccessKeyList": schema_pkg_apis_management_v1_ClusterAccessKeyList(ref), - "github.com/devsy-org/api/pkg/apis/management/v1.ClusterAccessList": schema_pkg_apis_management_v1_ClusterAccessList(ref), - "github.com/devsy-org/api/pkg/apis/management/v1.ClusterAccessRole": schema_pkg_apis_management_v1_ClusterAccessRole(ref), - "github.com/devsy-org/api/pkg/apis/management/v1.ClusterAccessSpec": schema_pkg_apis_management_v1_ClusterAccessSpec(ref), - "github.com/devsy-org/api/pkg/apis/management/v1.ClusterAccessStatus": schema_pkg_apis_management_v1_ClusterAccessStatus(ref), - "github.com/devsy-org/api/pkg/apis/management/v1.ClusterAccounts": schema_pkg_apis_management_v1_ClusterAccounts(ref), - "github.com/devsy-org/api/pkg/apis/management/v1.ClusterAgentConfig": schema_pkg_apis_management_v1_ClusterAgentConfig(ref), - "github.com/devsy-org/api/pkg/apis/management/v1.ClusterAgentConfigCommon": schema_pkg_apis_management_v1_ClusterAgentConfigCommon(ref), - "github.com/devsy-org/api/pkg/apis/management/v1.ClusterAgentConfigList": schema_pkg_apis_management_v1_ClusterAgentConfigList(ref), - "github.com/devsy-org/api/pkg/apis/management/v1.ClusterCharts": schema_pkg_apis_management_v1_ClusterCharts(ref), - "github.com/devsy-org/api/pkg/apis/management/v1.ClusterChartsList": schema_pkg_apis_management_v1_ClusterChartsList(ref), - "github.com/devsy-org/api/pkg/apis/management/v1.ClusterDomain": schema_pkg_apis_management_v1_ClusterDomain(ref), - "github.com/devsy-org/api/pkg/apis/management/v1.ClusterDomainList": schema_pkg_apis_management_v1_ClusterDomainList(ref), - "github.com/devsy-org/api/pkg/apis/management/v1.ClusterList": schema_pkg_apis_management_v1_ClusterList(ref), - "github.com/devsy-org/api/pkg/apis/management/v1.ClusterMember": schema_pkg_apis_management_v1_ClusterMember(ref), - "github.com/devsy-org/api/pkg/apis/management/v1.ClusterMemberAccess": schema_pkg_apis_management_v1_ClusterMemberAccess(ref), - "github.com/devsy-org/api/pkg/apis/management/v1.ClusterMemberAccessList": schema_pkg_apis_management_v1_ClusterMemberAccessList(ref), - "github.com/devsy-org/api/pkg/apis/management/v1.ClusterMembers": schema_pkg_apis_management_v1_ClusterMembers(ref), - "github.com/devsy-org/api/pkg/apis/management/v1.ClusterMembersList": schema_pkg_apis_management_v1_ClusterMembersList(ref), - "github.com/devsy-org/api/pkg/apis/management/v1.ClusterReset": schema_pkg_apis_management_v1_ClusterReset(ref), - "github.com/devsy-org/api/pkg/apis/management/v1.ClusterResetList": schema_pkg_apis_management_v1_ClusterResetList(ref), - "github.com/devsy-org/api/pkg/apis/management/v1.ClusterRoleTemplate": schema_pkg_apis_management_v1_ClusterRoleTemplate(ref), - "github.com/devsy-org/api/pkg/apis/management/v1.ClusterRoleTemplateList": schema_pkg_apis_management_v1_ClusterRoleTemplateList(ref), - "github.com/devsy-org/api/pkg/apis/management/v1.ClusterRoleTemplateSpec": schema_pkg_apis_management_v1_ClusterRoleTemplateSpec(ref), - "github.com/devsy-org/api/pkg/apis/management/v1.ClusterRoleTemplateStatus": schema_pkg_apis_management_v1_ClusterRoleTemplateStatus(ref), - "github.com/devsy-org/api/pkg/apis/management/v1.ClusterSpec": schema_pkg_apis_management_v1_ClusterSpec(ref), - "github.com/devsy-org/api/pkg/apis/management/v1.ClusterStatus": schema_pkg_apis_management_v1_ClusterStatus(ref), - "github.com/devsy-org/api/pkg/apis/management/v1.Config": schema_pkg_apis_management_v1_Config(ref), - "github.com/devsy-org/api/pkg/apis/management/v1.ConfigList": schema_pkg_apis_management_v1_ConfigList(ref), - "github.com/devsy-org/api/pkg/apis/management/v1.ConfigSpec": schema_pkg_apis_management_v1_ConfigSpec(ref), - "github.com/devsy-org/api/pkg/apis/management/v1.ConfigStatus": schema_pkg_apis_management_v1_ConfigStatus(ref), - "github.com/devsy-org/api/pkg/apis/management/v1.Connector": schema_pkg_apis_management_v1_Connector(ref), - "github.com/devsy-org/api/pkg/apis/management/v1.ConnectorWithName": schema_pkg_apis_management_v1_ConnectorWithName(ref), - "github.com/devsy-org/api/pkg/apis/management/v1.ConvertVirtualClusterConfig": schema_pkg_apis_management_v1_ConvertVirtualClusterConfig(ref), - "github.com/devsy-org/api/pkg/apis/management/v1.ConvertVirtualClusterConfigList": schema_pkg_apis_management_v1_ConvertVirtualClusterConfigList(ref), - "github.com/devsy-org/api/pkg/apis/management/v1.ConvertVirtualClusterConfigSpec": schema_pkg_apis_management_v1_ConvertVirtualClusterConfigSpec(ref), - "github.com/devsy-org/api/pkg/apis/management/v1.ConvertVirtualClusterConfigStatus": schema_pkg_apis_management_v1_ConvertVirtualClusterConfigStatus(ref), - "github.com/devsy-org/api/pkg/apis/management/v1.CostControl": schema_pkg_apis_management_v1_CostControl(ref), - "github.com/devsy-org/api/pkg/apis/management/v1.CostControlClusterConfig": schema_pkg_apis_management_v1_CostControlClusterConfig(ref), - "github.com/devsy-org/api/pkg/apis/management/v1.CostControlGPUSettings": schema_pkg_apis_management_v1_CostControlGPUSettings(ref), - "github.com/devsy-org/api/pkg/apis/management/v1.CostControlGlobalConfig": schema_pkg_apis_management_v1_CostControlGlobalConfig(ref), - "github.com/devsy-org/api/pkg/apis/management/v1.CostControlResourcePrice": schema_pkg_apis_management_v1_CostControlResourcePrice(ref), - "github.com/devsy-org/api/pkg/apis/management/v1.CostControlSettings": schema_pkg_apis_management_v1_CostControlSettings(ref), - "github.com/devsy-org/api/pkg/apis/management/v1.DatabaseConnector": schema_pkg_apis_management_v1_DatabaseConnector(ref), - "github.com/devsy-org/api/pkg/apis/management/v1.DatabaseConnectorList": schema_pkg_apis_management_v1_DatabaseConnectorList(ref), - "github.com/devsy-org/api/pkg/apis/management/v1.DatabaseConnectorSpec": schema_pkg_apis_management_v1_DatabaseConnectorSpec(ref), - "github.com/devsy-org/api/pkg/apis/management/v1.DatabaseConnectorStatus": schema_pkg_apis_management_v1_DatabaseConnectorStatus(ref), - "github.com/devsy-org/api/pkg/apis/management/v1.DevPodEnvironmentTemplate": schema_pkg_apis_management_v1_DevPodEnvironmentTemplate(ref), - "github.com/devsy-org/api/pkg/apis/management/v1.DevPodEnvironmentTemplateList": schema_pkg_apis_management_v1_DevPodEnvironmentTemplateList(ref), - "github.com/devsy-org/api/pkg/apis/management/v1.DevPodEnvironmentTemplateSpec": schema_pkg_apis_management_v1_DevPodEnvironmentTemplateSpec(ref), - "github.com/devsy-org/api/pkg/apis/management/v1.DevPodEnvironmentTemplateStatus": schema_pkg_apis_management_v1_DevPodEnvironmentTemplateStatus(ref), - "github.com/devsy-org/api/pkg/apis/management/v1.DevPodWorkspaceInstance": schema_pkg_apis_management_v1_DevPodWorkspaceInstance(ref), - "github.com/devsy-org/api/pkg/apis/management/v1.DevPodWorkspaceInstanceCancel": schema_pkg_apis_management_v1_DevPodWorkspaceInstanceCancel(ref), - "github.com/devsy-org/api/pkg/apis/management/v1.DevPodWorkspaceInstanceCancelList": schema_pkg_apis_management_v1_DevPodWorkspaceInstanceCancelList(ref), - "github.com/devsy-org/api/pkg/apis/management/v1.DevPodWorkspaceInstanceDownload": schema_pkg_apis_management_v1_DevPodWorkspaceInstanceDownload(ref), - "github.com/devsy-org/api/pkg/apis/management/v1.DevPodWorkspaceInstanceDownloadList": schema_pkg_apis_management_v1_DevPodWorkspaceInstanceDownloadList(ref), - "github.com/devsy-org/api/pkg/apis/management/v1.DevPodWorkspaceInstanceDownloadOptions": schema_pkg_apis_management_v1_DevPodWorkspaceInstanceDownloadOptions(ref), - "github.com/devsy-org/api/pkg/apis/management/v1.DevPodWorkspaceInstanceList": schema_pkg_apis_management_v1_DevPodWorkspaceInstanceList(ref), - "github.com/devsy-org/api/pkg/apis/management/v1.DevPodWorkspaceInstanceLog": schema_pkg_apis_management_v1_DevPodWorkspaceInstanceLog(ref), - "github.com/devsy-org/api/pkg/apis/management/v1.DevPodWorkspaceInstanceLogList": schema_pkg_apis_management_v1_DevPodWorkspaceInstanceLogList(ref), - "github.com/devsy-org/api/pkg/apis/management/v1.DevPodWorkspaceInstanceLogOptions": schema_pkg_apis_management_v1_DevPodWorkspaceInstanceLogOptions(ref), - "github.com/devsy-org/api/pkg/apis/management/v1.DevPodWorkspaceInstanceSpec": schema_pkg_apis_management_v1_DevPodWorkspaceInstanceSpec(ref), - "github.com/devsy-org/api/pkg/apis/management/v1.DevPodWorkspaceInstanceStatus": schema_pkg_apis_management_v1_DevPodWorkspaceInstanceStatus(ref), - "github.com/devsy-org/api/pkg/apis/management/v1.DevPodWorkspaceInstanceStop": schema_pkg_apis_management_v1_DevPodWorkspaceInstanceStop(ref), - "github.com/devsy-org/api/pkg/apis/management/v1.DevPodWorkspaceInstanceStopList": schema_pkg_apis_management_v1_DevPodWorkspaceInstanceStopList(ref), - "github.com/devsy-org/api/pkg/apis/management/v1.DevPodWorkspaceInstanceStopSpec": schema_pkg_apis_management_v1_DevPodWorkspaceInstanceStopSpec(ref), - "github.com/devsy-org/api/pkg/apis/management/v1.DevPodWorkspaceInstanceStopStatus": schema_pkg_apis_management_v1_DevPodWorkspaceInstanceStopStatus(ref), - "github.com/devsy-org/api/pkg/apis/management/v1.DevPodWorkspaceInstanceTask": schema_pkg_apis_management_v1_DevPodWorkspaceInstanceTask(ref), - "github.com/devsy-org/api/pkg/apis/management/v1.DevPodWorkspaceInstanceTasks": schema_pkg_apis_management_v1_DevPodWorkspaceInstanceTasks(ref), - "github.com/devsy-org/api/pkg/apis/management/v1.DevPodWorkspaceInstanceTasksList": schema_pkg_apis_management_v1_DevPodWorkspaceInstanceTasksList(ref), - "github.com/devsy-org/api/pkg/apis/management/v1.DevPodWorkspaceInstanceTasksOptions": schema_pkg_apis_management_v1_DevPodWorkspaceInstanceTasksOptions(ref), - "github.com/devsy-org/api/pkg/apis/management/v1.DevPodWorkspaceInstanceTroubleshoot": schema_pkg_apis_management_v1_DevPodWorkspaceInstanceTroubleshoot(ref), - "github.com/devsy-org/api/pkg/apis/management/v1.DevPodWorkspaceInstanceTroubleshootList": schema_pkg_apis_management_v1_DevPodWorkspaceInstanceTroubleshootList(ref), - "github.com/devsy-org/api/pkg/apis/management/v1.DevPodWorkspaceInstanceUp": schema_pkg_apis_management_v1_DevPodWorkspaceInstanceUp(ref), - "github.com/devsy-org/api/pkg/apis/management/v1.DevPodWorkspaceInstanceUpList": schema_pkg_apis_management_v1_DevPodWorkspaceInstanceUpList(ref), - "github.com/devsy-org/api/pkg/apis/management/v1.DevPodWorkspaceInstanceUpSpec": schema_pkg_apis_management_v1_DevPodWorkspaceInstanceUpSpec(ref), - "github.com/devsy-org/api/pkg/apis/management/v1.DevPodWorkspaceInstanceUpStatus": schema_pkg_apis_management_v1_DevPodWorkspaceInstanceUpStatus(ref), - "github.com/devsy-org/api/pkg/apis/management/v1.DevPodWorkspacePreset": schema_pkg_apis_management_v1_DevPodWorkspacePreset(ref), - "github.com/devsy-org/api/pkg/apis/management/v1.DevPodWorkspacePresetList": schema_pkg_apis_management_v1_DevPodWorkspacePresetList(ref), - "github.com/devsy-org/api/pkg/apis/management/v1.DevPodWorkspacePresetSource": schema_pkg_apis_management_v1_DevPodWorkspacePresetSource(ref), - "github.com/devsy-org/api/pkg/apis/management/v1.DevPodWorkspacePresetSpec": schema_pkg_apis_management_v1_DevPodWorkspacePresetSpec(ref), - "github.com/devsy-org/api/pkg/apis/management/v1.DevPodWorkspacePresetStatus": schema_pkg_apis_management_v1_DevPodWorkspacePresetStatus(ref), - "github.com/devsy-org/api/pkg/apis/management/v1.DevPodWorkspaceTemplate": schema_pkg_apis_management_v1_DevPodWorkspaceTemplate(ref), - "github.com/devsy-org/api/pkg/apis/management/v1.DevPodWorkspaceTemplateList": schema_pkg_apis_management_v1_DevPodWorkspaceTemplateList(ref), - "github.com/devsy-org/api/pkg/apis/management/v1.DevPodWorkspaceTemplateSpec": schema_pkg_apis_management_v1_DevPodWorkspaceTemplateSpec(ref), - "github.com/devsy-org/api/pkg/apis/management/v1.DevPodWorkspaceTemplateStatus": schema_pkg_apis_management_v1_DevPodWorkspaceTemplateStatus(ref), - "github.com/devsy-org/api/pkg/apis/management/v1.DevsyUpgrade": schema_pkg_apis_management_v1_DevsyUpgrade(ref), - "github.com/devsy-org/api/pkg/apis/management/v1.DevsyUpgradeList": schema_pkg_apis_management_v1_DevsyUpgradeList(ref), - "github.com/devsy-org/api/pkg/apis/management/v1.DevsyUpgradeSpec": schema_pkg_apis_management_v1_DevsyUpgradeSpec(ref), - "github.com/devsy-org/api/pkg/apis/management/v1.DevsyUpgradeStatus": schema_pkg_apis_management_v1_DevsyUpgradeStatus(ref), - "github.com/devsy-org/api/pkg/apis/management/v1.DirectClusterEndpointToken": schema_pkg_apis_management_v1_DirectClusterEndpointToken(ref), - "github.com/devsy-org/api/pkg/apis/management/v1.DirectClusterEndpointTokenList": schema_pkg_apis_management_v1_DirectClusterEndpointTokenList(ref), - "github.com/devsy-org/api/pkg/apis/management/v1.DirectClusterEndpointTokenSpec": schema_pkg_apis_management_v1_DirectClusterEndpointTokenSpec(ref), - "github.com/devsy-org/api/pkg/apis/management/v1.DirectClusterEndpointTokenStatus": schema_pkg_apis_management_v1_DirectClusterEndpointTokenStatus(ref), - "github.com/devsy-org/api/pkg/apis/management/v1.Event": schema_pkg_apis_management_v1_Event(ref), - "github.com/devsy-org/api/pkg/apis/management/v1.EventList": schema_pkg_apis_management_v1_EventList(ref), - "github.com/devsy-org/api/pkg/apis/management/v1.EventSpec": schema_pkg_apis_management_v1_EventSpec(ref), - "github.com/devsy-org/api/pkg/apis/management/v1.EventStatus": schema_pkg_apis_management_v1_EventStatus(ref), - "github.com/devsy-org/api/pkg/apis/management/v1.Feature": schema_pkg_apis_management_v1_Feature(ref), - "github.com/devsy-org/api/pkg/apis/management/v1.FeatureList": schema_pkg_apis_management_v1_FeatureList(ref), - "github.com/devsy-org/api/pkg/apis/management/v1.FeatureSpec": schema_pkg_apis_management_v1_FeatureSpec(ref), - "github.com/devsy-org/api/pkg/apis/management/v1.FeatureStatus": schema_pkg_apis_management_v1_FeatureStatus(ref), - "github.com/devsy-org/api/pkg/apis/management/v1.GroupResources": schema_pkg_apis_management_v1_GroupResources(ref), - "github.com/devsy-org/api/pkg/apis/management/v1.ImageBuilder": schema_pkg_apis_management_v1_ImageBuilder(ref), - "github.com/devsy-org/api/pkg/apis/management/v1.IngressAuthToken": schema_pkg_apis_management_v1_IngressAuthToken(ref), - "github.com/devsy-org/api/pkg/apis/management/v1.IngressAuthTokenList": schema_pkg_apis_management_v1_IngressAuthTokenList(ref), - "github.com/devsy-org/api/pkg/apis/management/v1.IngressAuthTokenSpec": schema_pkg_apis_management_v1_IngressAuthTokenSpec(ref), - "github.com/devsy-org/api/pkg/apis/management/v1.IngressAuthTokenStatus": schema_pkg_apis_management_v1_IngressAuthTokenStatus(ref), - "github.com/devsy-org/api/pkg/apis/management/v1.Kiosk": schema_pkg_apis_management_v1_Kiosk(ref), - "github.com/devsy-org/api/pkg/apis/management/v1.KioskList": schema_pkg_apis_management_v1_KioskList(ref), - "github.com/devsy-org/api/pkg/apis/management/v1.KioskSpec": schema_pkg_apis_management_v1_KioskSpec(ref), - "github.com/devsy-org/api/pkg/apis/management/v1.KioskStatus": schema_pkg_apis_management_v1_KioskStatus(ref), - "github.com/devsy-org/api/pkg/apis/management/v1.License": schema_pkg_apis_management_v1_License(ref), - "github.com/devsy-org/api/pkg/apis/management/v1.LicenseList": schema_pkg_apis_management_v1_LicenseList(ref), - "github.com/devsy-org/api/pkg/apis/management/v1.LicenseRequest": schema_pkg_apis_management_v1_LicenseRequest(ref), - "github.com/devsy-org/api/pkg/apis/management/v1.LicenseRequestList": schema_pkg_apis_management_v1_LicenseRequestList(ref), - "github.com/devsy-org/api/pkg/apis/management/v1.LicenseRequestSpec": schema_pkg_apis_management_v1_LicenseRequestSpec(ref), - "github.com/devsy-org/api/pkg/apis/management/v1.LicenseRequestStatus": schema_pkg_apis_management_v1_LicenseRequestStatus(ref), - "github.com/devsy-org/api/pkg/apis/management/v1.LicenseSpec": schema_pkg_apis_management_v1_LicenseSpec(ref), - "github.com/devsy-org/api/pkg/apis/management/v1.LicenseStatus": schema_pkg_apis_management_v1_LicenseStatus(ref), - "github.com/devsy-org/api/pkg/apis/management/v1.LicenseToken": schema_pkg_apis_management_v1_LicenseToken(ref), - "github.com/devsy-org/api/pkg/apis/management/v1.LicenseTokenList": schema_pkg_apis_management_v1_LicenseTokenList(ref), - "github.com/devsy-org/api/pkg/apis/management/v1.LicenseTokenSpec": schema_pkg_apis_management_v1_LicenseTokenSpec(ref), - "github.com/devsy-org/api/pkg/apis/management/v1.LicenseTokenStatus": schema_pkg_apis_management_v1_LicenseTokenStatus(ref), - "github.com/devsy-org/api/pkg/apis/management/v1.MaintenanceWindow": schema_pkg_apis_management_v1_MaintenanceWindow(ref), - "github.com/devsy-org/api/pkg/apis/management/v1.ManagementRole": schema_pkg_apis_management_v1_ManagementRole(ref), - "github.com/devsy-org/api/pkg/apis/management/v1.NamespacedNameArgs": schema_pkg_apis_management_v1_NamespacedNameArgs(ref), - "github.com/devsy-org/api/pkg/apis/management/v1.NodeClaim": schema_pkg_apis_management_v1_NodeClaim(ref), - "github.com/devsy-org/api/pkg/apis/management/v1.NodeClaimData": schema_pkg_apis_management_v1_NodeClaimData(ref), - "github.com/devsy-org/api/pkg/apis/management/v1.NodeClaimList": schema_pkg_apis_management_v1_NodeClaimList(ref), - "github.com/devsy-org/api/pkg/apis/management/v1.NodeClaimSpec": schema_pkg_apis_management_v1_NodeClaimSpec(ref), - "github.com/devsy-org/api/pkg/apis/management/v1.NodeClaimStatus": schema_pkg_apis_management_v1_NodeClaimStatus(ref), - "github.com/devsy-org/api/pkg/apis/management/v1.NodeEnvironment": schema_pkg_apis_management_v1_NodeEnvironment(ref), - "github.com/devsy-org/api/pkg/apis/management/v1.NodeEnvironmentData": schema_pkg_apis_management_v1_NodeEnvironmentData(ref), - "github.com/devsy-org/api/pkg/apis/management/v1.NodeEnvironmentList": schema_pkg_apis_management_v1_NodeEnvironmentList(ref), - "github.com/devsy-org/api/pkg/apis/management/v1.NodeEnvironmentSpec": schema_pkg_apis_management_v1_NodeEnvironmentSpec(ref), - "github.com/devsy-org/api/pkg/apis/management/v1.NodeEnvironmentStatus": schema_pkg_apis_management_v1_NodeEnvironmentStatus(ref), - "github.com/devsy-org/api/pkg/apis/management/v1.NodeProvider": schema_pkg_apis_management_v1_NodeProvider(ref), - "github.com/devsy-org/api/pkg/apis/management/v1.NodeProviderBCMGetResourcesResult": schema_pkg_apis_management_v1_NodeProviderBCMGetResourcesResult(ref), - "github.com/devsy-org/api/pkg/apis/management/v1.NodeProviderBCMNodeGroup": schema_pkg_apis_management_v1_NodeProviderBCMNodeGroup(ref), - "github.com/devsy-org/api/pkg/apis/management/v1.NodeProviderBCMNodeWithResources": schema_pkg_apis_management_v1_NodeProviderBCMNodeWithResources(ref), - "github.com/devsy-org/api/pkg/apis/management/v1.NodeProviderBCMTestConnectionResult": schema_pkg_apis_management_v1_NodeProviderBCMTestConnectionResult(ref), - "github.com/devsy-org/api/pkg/apis/management/v1.NodeProviderCalculateCostResult": schema_pkg_apis_management_v1_NodeProviderCalculateCostResult(ref), - "github.com/devsy-org/api/pkg/apis/management/v1.NodeProviderExec": schema_pkg_apis_management_v1_NodeProviderExec(ref), - "github.com/devsy-org/api/pkg/apis/management/v1.NodeProviderExecList": schema_pkg_apis_management_v1_NodeProviderExecList(ref), - "github.com/devsy-org/api/pkg/apis/management/v1.NodeProviderExecResult": schema_pkg_apis_management_v1_NodeProviderExecResult(ref), - "github.com/devsy-org/api/pkg/apis/management/v1.NodeProviderExecSpec": schema_pkg_apis_management_v1_NodeProviderExecSpec(ref), - "github.com/devsy-org/api/pkg/apis/management/v1.NodeProviderExecStatus": schema_pkg_apis_management_v1_NodeProviderExecStatus(ref), - "github.com/devsy-org/api/pkg/apis/management/v1.NodeProviderList": schema_pkg_apis_management_v1_NodeProviderList(ref), - "github.com/devsy-org/api/pkg/apis/management/v1.NodeProviderSpec": schema_pkg_apis_management_v1_NodeProviderSpec(ref), - "github.com/devsy-org/api/pkg/apis/management/v1.NodeProviderStatus": schema_pkg_apis_management_v1_NodeProviderStatus(ref), - "github.com/devsy-org/api/pkg/apis/management/v1.NodeProviderTerraformValidateResult": schema_pkg_apis_management_v1_NodeProviderTerraformValidateResult(ref), - "github.com/devsy-org/api/pkg/apis/management/v1.NodeType": schema_pkg_apis_management_v1_NodeType(ref), - "github.com/devsy-org/api/pkg/apis/management/v1.NodeTypeList": schema_pkg_apis_management_v1_NodeTypeList(ref), - "github.com/devsy-org/api/pkg/apis/management/v1.NodeTypeSpec": schema_pkg_apis_management_v1_NodeTypeSpec(ref), - "github.com/devsy-org/api/pkg/apis/management/v1.NodeTypeStatus": schema_pkg_apis_management_v1_NodeTypeStatus(ref), - "github.com/devsy-org/api/pkg/apis/management/v1.OIDC": schema_pkg_apis_management_v1_OIDC(ref), - "github.com/devsy-org/api/pkg/apis/management/v1.OIDCClient": schema_pkg_apis_management_v1_OIDCClient(ref), - "github.com/devsy-org/api/pkg/apis/management/v1.OIDCClientList": schema_pkg_apis_management_v1_OIDCClientList(ref), - "github.com/devsy-org/api/pkg/apis/management/v1.OIDCClientSpec": schema_pkg_apis_management_v1_OIDCClientSpec(ref), - "github.com/devsy-org/api/pkg/apis/management/v1.OIDCClientStatus": schema_pkg_apis_management_v1_OIDCClientStatus(ref), - "github.com/devsy-org/api/pkg/apis/management/v1.ObjectName": schema_pkg_apis_management_v1_ObjectName(ref), - "github.com/devsy-org/api/pkg/apis/management/v1.ObjectPermission": schema_pkg_apis_management_v1_ObjectPermission(ref), - "github.com/devsy-org/api/pkg/apis/management/v1.Operation": schema_pkg_apis_management_v1_Operation(ref), - "github.com/devsy-org/api/pkg/apis/management/v1.OwnedAccessKey": schema_pkg_apis_management_v1_OwnedAccessKey(ref), - "github.com/devsy-org/api/pkg/apis/management/v1.OwnedAccessKeyList": schema_pkg_apis_management_v1_OwnedAccessKeyList(ref), - "github.com/devsy-org/api/pkg/apis/management/v1.OwnedAccessKeySpec": schema_pkg_apis_management_v1_OwnedAccessKeySpec(ref), - "github.com/devsy-org/api/pkg/apis/management/v1.OwnedAccessKeyStatus": schema_pkg_apis_management_v1_OwnedAccessKeyStatus(ref), - "github.com/devsy-org/api/pkg/apis/management/v1.PlatformDB": schema_pkg_apis_management_v1_PlatformDB(ref), - "github.com/devsy-org/api/pkg/apis/management/v1.PredefinedApp": schema_pkg_apis_management_v1_PredefinedApp(ref), - "github.com/devsy-org/api/pkg/apis/management/v1.Project": schema_pkg_apis_management_v1_Project(ref), - "github.com/devsy-org/api/pkg/apis/management/v1.ProjectChartInfo": schema_pkg_apis_management_v1_ProjectChartInfo(ref), - "github.com/devsy-org/api/pkg/apis/management/v1.ProjectChartInfoList": schema_pkg_apis_management_v1_ProjectChartInfoList(ref), - "github.com/devsy-org/api/pkg/apis/management/v1.ProjectChartInfoSpec": schema_pkg_apis_management_v1_ProjectChartInfoSpec(ref), - "github.com/devsy-org/api/pkg/apis/management/v1.ProjectChartInfoStatus": schema_pkg_apis_management_v1_ProjectChartInfoStatus(ref), - "github.com/devsy-org/api/pkg/apis/management/v1.ProjectCharts": schema_pkg_apis_management_v1_ProjectCharts(ref), - "github.com/devsy-org/api/pkg/apis/management/v1.ProjectChartsList": schema_pkg_apis_management_v1_ProjectChartsList(ref), - "github.com/devsy-org/api/pkg/apis/management/v1.ProjectClusters": schema_pkg_apis_management_v1_ProjectClusters(ref), - "github.com/devsy-org/api/pkg/apis/management/v1.ProjectClustersList": schema_pkg_apis_management_v1_ProjectClustersList(ref), - "github.com/devsy-org/api/pkg/apis/management/v1.ProjectImportSpace": schema_pkg_apis_management_v1_ProjectImportSpace(ref), - "github.com/devsy-org/api/pkg/apis/management/v1.ProjectImportSpaceList": schema_pkg_apis_management_v1_ProjectImportSpaceList(ref), - "github.com/devsy-org/api/pkg/apis/management/v1.ProjectImportSpaceSource": schema_pkg_apis_management_v1_ProjectImportSpaceSource(ref), - "github.com/devsy-org/api/pkg/apis/management/v1.ProjectList": schema_pkg_apis_management_v1_ProjectList(ref), - "github.com/devsy-org/api/pkg/apis/management/v1.ProjectMember": schema_pkg_apis_management_v1_ProjectMember(ref), - "github.com/devsy-org/api/pkg/apis/management/v1.ProjectMembers": schema_pkg_apis_management_v1_ProjectMembers(ref), - "github.com/devsy-org/api/pkg/apis/management/v1.ProjectMembersList": schema_pkg_apis_management_v1_ProjectMembersList(ref), - "github.com/devsy-org/api/pkg/apis/management/v1.ProjectMembership": schema_pkg_apis_management_v1_ProjectMembership(ref), - "github.com/devsy-org/api/pkg/apis/management/v1.ProjectMigrateSpaceInstance": schema_pkg_apis_management_v1_ProjectMigrateSpaceInstance(ref), - "github.com/devsy-org/api/pkg/apis/management/v1.ProjectMigrateSpaceInstanceList": schema_pkg_apis_management_v1_ProjectMigrateSpaceInstanceList(ref), - "github.com/devsy-org/api/pkg/apis/management/v1.ProjectMigrateSpaceInstanceSource": schema_pkg_apis_management_v1_ProjectMigrateSpaceInstanceSource(ref), - "github.com/devsy-org/api/pkg/apis/management/v1.ProjectMigrateVirtualClusterInstance": schema_pkg_apis_management_v1_ProjectMigrateVirtualClusterInstance(ref), - "github.com/devsy-org/api/pkg/apis/management/v1.ProjectMigrateVirtualClusterInstanceList": schema_pkg_apis_management_v1_ProjectMigrateVirtualClusterInstanceList(ref), - "github.com/devsy-org/api/pkg/apis/management/v1.ProjectMigrateVirtualClusterInstanceSource": schema_pkg_apis_management_v1_ProjectMigrateVirtualClusterInstanceSource(ref), - "github.com/devsy-org/api/pkg/apis/management/v1.ProjectNodeTypes": schema_pkg_apis_management_v1_ProjectNodeTypes(ref), - "github.com/devsy-org/api/pkg/apis/management/v1.ProjectNodeTypesList": schema_pkg_apis_management_v1_ProjectNodeTypesList(ref), - "github.com/devsy-org/api/pkg/apis/management/v1.ProjectRole": schema_pkg_apis_management_v1_ProjectRole(ref), - "github.com/devsy-org/api/pkg/apis/management/v1.ProjectSecret": schema_pkg_apis_management_v1_ProjectSecret(ref), - "github.com/devsy-org/api/pkg/apis/management/v1.ProjectSecretList": schema_pkg_apis_management_v1_ProjectSecretList(ref), - "github.com/devsy-org/api/pkg/apis/management/v1.ProjectSecretSpec": schema_pkg_apis_management_v1_ProjectSecretSpec(ref), - "github.com/devsy-org/api/pkg/apis/management/v1.ProjectSecretStatus": schema_pkg_apis_management_v1_ProjectSecretStatus(ref), - "github.com/devsy-org/api/pkg/apis/management/v1.ProjectSpec": schema_pkg_apis_management_v1_ProjectSpec(ref), - "github.com/devsy-org/api/pkg/apis/management/v1.ProjectStatus": schema_pkg_apis_management_v1_ProjectStatus(ref), - "github.com/devsy-org/api/pkg/apis/management/v1.ProjectTemplates": schema_pkg_apis_management_v1_ProjectTemplates(ref), - "github.com/devsy-org/api/pkg/apis/management/v1.ProjectTemplatesList": schema_pkg_apis_management_v1_ProjectTemplatesList(ref), - "github.com/devsy-org/api/pkg/apis/management/v1.RedirectToken": schema_pkg_apis_management_v1_RedirectToken(ref), - "github.com/devsy-org/api/pkg/apis/management/v1.RedirectTokenClaims": schema_pkg_apis_management_v1_RedirectTokenClaims(ref), - "github.com/devsy-org/api/pkg/apis/management/v1.RedirectTokenList": schema_pkg_apis_management_v1_RedirectTokenList(ref), - "github.com/devsy-org/api/pkg/apis/management/v1.RedirectTokenSpec": schema_pkg_apis_management_v1_RedirectTokenSpec(ref), - "github.com/devsy-org/api/pkg/apis/management/v1.RedirectTokenStatus": schema_pkg_apis_management_v1_RedirectTokenStatus(ref), - "github.com/devsy-org/api/pkg/apis/management/v1.RegisterVirtualCluster": schema_pkg_apis_management_v1_RegisterVirtualCluster(ref), - "github.com/devsy-org/api/pkg/apis/management/v1.RegisterVirtualClusterList": schema_pkg_apis_management_v1_RegisterVirtualClusterList(ref), - "github.com/devsy-org/api/pkg/apis/management/v1.RegisterVirtualClusterSpec": schema_pkg_apis_management_v1_RegisterVirtualClusterSpec(ref), - "github.com/devsy-org/api/pkg/apis/management/v1.RegisterVirtualClusterStatus": schema_pkg_apis_management_v1_RegisterVirtualClusterStatus(ref), - "github.com/devsy-org/api/pkg/apis/management/v1.ResetAccessKey": schema_pkg_apis_management_v1_ResetAccessKey(ref), - "github.com/devsy-org/api/pkg/apis/management/v1.ResetAccessKeyList": schema_pkg_apis_management_v1_ResetAccessKeyList(ref), - "github.com/devsy-org/api/pkg/apis/management/v1.ResetAccessKeySpec": schema_pkg_apis_management_v1_ResetAccessKeySpec(ref), - "github.com/devsy-org/api/pkg/apis/management/v1.ResetAccessKeyStatus": schema_pkg_apis_management_v1_ResetAccessKeyStatus(ref), - "github.com/devsy-org/api/pkg/apis/management/v1.Self": schema_pkg_apis_management_v1_Self(ref), - "github.com/devsy-org/api/pkg/apis/management/v1.SelfList": schema_pkg_apis_management_v1_SelfList(ref), - "github.com/devsy-org/api/pkg/apis/management/v1.SelfSpec": schema_pkg_apis_management_v1_SelfSpec(ref), - "github.com/devsy-org/api/pkg/apis/management/v1.SelfStatus": schema_pkg_apis_management_v1_SelfStatus(ref), - "github.com/devsy-org/api/pkg/apis/management/v1.SelfSubjectAccessReview": schema_pkg_apis_management_v1_SelfSubjectAccessReview(ref), - "github.com/devsy-org/api/pkg/apis/management/v1.SelfSubjectAccessReviewList": schema_pkg_apis_management_v1_SelfSubjectAccessReviewList(ref), - "github.com/devsy-org/api/pkg/apis/management/v1.SelfSubjectAccessReviewSpec": schema_pkg_apis_management_v1_SelfSubjectAccessReviewSpec(ref), - "github.com/devsy-org/api/pkg/apis/management/v1.SelfSubjectAccessReviewStatus": schema_pkg_apis_management_v1_SelfSubjectAccessReviewStatus(ref), - "github.com/devsy-org/api/pkg/apis/management/v1.SharedSecret": schema_pkg_apis_management_v1_SharedSecret(ref), - "github.com/devsy-org/api/pkg/apis/management/v1.SharedSecretList": schema_pkg_apis_management_v1_SharedSecretList(ref), - "github.com/devsy-org/api/pkg/apis/management/v1.SharedSecretSpec": schema_pkg_apis_management_v1_SharedSecretSpec(ref), - "github.com/devsy-org/api/pkg/apis/management/v1.SharedSecretStatus": schema_pkg_apis_management_v1_SharedSecretStatus(ref), - "github.com/devsy-org/api/pkg/apis/management/v1.SnapshotTaken": schema_pkg_apis_management_v1_SnapshotTaken(ref), - "github.com/devsy-org/api/pkg/apis/management/v1.SpaceInstance": schema_pkg_apis_management_v1_SpaceInstance(ref), - "github.com/devsy-org/api/pkg/apis/management/v1.SpaceInstanceList": schema_pkg_apis_management_v1_SpaceInstanceList(ref), - "github.com/devsy-org/api/pkg/apis/management/v1.SpaceInstanceSpec": schema_pkg_apis_management_v1_SpaceInstanceSpec(ref), - "github.com/devsy-org/api/pkg/apis/management/v1.SpaceInstanceStatus": schema_pkg_apis_management_v1_SpaceInstanceStatus(ref), - "github.com/devsy-org/api/pkg/apis/management/v1.SpaceTemplate": schema_pkg_apis_management_v1_SpaceTemplate(ref), - "github.com/devsy-org/api/pkg/apis/management/v1.SpaceTemplateList": schema_pkg_apis_management_v1_SpaceTemplateList(ref), - "github.com/devsy-org/api/pkg/apis/management/v1.SpaceTemplateSpec": schema_pkg_apis_management_v1_SpaceTemplateSpec(ref), - "github.com/devsy-org/api/pkg/apis/management/v1.SpaceTemplateStatus": schema_pkg_apis_management_v1_SpaceTemplateStatus(ref), - "github.com/devsy-org/api/pkg/apis/management/v1.StandaloneEtcdPeer": schema_pkg_apis_management_v1_StandaloneEtcdPeer(ref), - "github.com/devsy-org/api/pkg/apis/management/v1.StandaloneEtcdPeerCoordinator": schema_pkg_apis_management_v1_StandaloneEtcdPeerCoordinator(ref), - "github.com/devsy-org/api/pkg/apis/management/v1.StandalonePKI": schema_pkg_apis_management_v1_StandalonePKI(ref), - "github.com/devsy-org/api/pkg/apis/management/v1.SubjectAccessReview": schema_pkg_apis_management_v1_SubjectAccessReview(ref), - "github.com/devsy-org/api/pkg/apis/management/v1.SubjectAccessReviewList": schema_pkg_apis_management_v1_SubjectAccessReviewList(ref), - "github.com/devsy-org/api/pkg/apis/management/v1.SubjectAccessReviewSpec": schema_pkg_apis_management_v1_SubjectAccessReviewSpec(ref), - "github.com/devsy-org/api/pkg/apis/management/v1.SubjectAccessReviewStatus": schema_pkg_apis_management_v1_SubjectAccessReviewStatus(ref), - "github.com/devsy-org/api/pkg/apis/management/v1.Task": schema_pkg_apis_management_v1_Task(ref), - "github.com/devsy-org/api/pkg/apis/management/v1.TaskList": schema_pkg_apis_management_v1_TaskList(ref), - "github.com/devsy-org/api/pkg/apis/management/v1.TaskLog": schema_pkg_apis_management_v1_TaskLog(ref), - "github.com/devsy-org/api/pkg/apis/management/v1.TaskLogList": schema_pkg_apis_management_v1_TaskLogList(ref), - "github.com/devsy-org/api/pkg/apis/management/v1.TaskLogOptions": schema_pkg_apis_management_v1_TaskLogOptions(ref), - "github.com/devsy-org/api/pkg/apis/management/v1.TaskSpec": schema_pkg_apis_management_v1_TaskSpec(ref), - "github.com/devsy-org/api/pkg/apis/management/v1.TaskStatus": schema_pkg_apis_management_v1_TaskStatus(ref), - "github.com/devsy-org/api/pkg/apis/management/v1.Team": schema_pkg_apis_management_v1_Team(ref), - "github.com/devsy-org/api/pkg/apis/management/v1.TeamAccessKeys": schema_pkg_apis_management_v1_TeamAccessKeys(ref), - "github.com/devsy-org/api/pkg/apis/management/v1.TeamAccessKeysList": schema_pkg_apis_management_v1_TeamAccessKeysList(ref), - "github.com/devsy-org/api/pkg/apis/management/v1.TeamClusters": schema_pkg_apis_management_v1_TeamClusters(ref), - "github.com/devsy-org/api/pkg/apis/management/v1.TeamClustersList": schema_pkg_apis_management_v1_TeamClustersList(ref), - "github.com/devsy-org/api/pkg/apis/management/v1.TeamList": schema_pkg_apis_management_v1_TeamList(ref), - "github.com/devsy-org/api/pkg/apis/management/v1.TeamObjectPermissions": schema_pkg_apis_management_v1_TeamObjectPermissions(ref), - "github.com/devsy-org/api/pkg/apis/management/v1.TeamObjectPermissionsList": schema_pkg_apis_management_v1_TeamObjectPermissionsList(ref), - "github.com/devsy-org/api/pkg/apis/management/v1.TeamPermissions": schema_pkg_apis_management_v1_TeamPermissions(ref), - "github.com/devsy-org/api/pkg/apis/management/v1.TeamPermissionsList": schema_pkg_apis_management_v1_TeamPermissionsList(ref), - "github.com/devsy-org/api/pkg/apis/management/v1.TeamSpec": schema_pkg_apis_management_v1_TeamSpec(ref), - "github.com/devsy-org/api/pkg/apis/management/v1.TeamStatus": schema_pkg_apis_management_v1_TeamStatus(ref), - "github.com/devsy-org/api/pkg/apis/management/v1.TranslateDevsyResourceName": schema_pkg_apis_management_v1_TranslateDevsyResourceName(ref), - "github.com/devsy-org/api/pkg/apis/management/v1.TranslateDevsyResourceNameList": schema_pkg_apis_management_v1_TranslateDevsyResourceNameList(ref), - "github.com/devsy-org/api/pkg/apis/management/v1.TranslateDevsyResourceNameSpec": schema_pkg_apis_management_v1_TranslateDevsyResourceNameSpec(ref), - "github.com/devsy-org/api/pkg/apis/management/v1.TranslateDevsyResourceNameStatus": schema_pkg_apis_management_v1_TranslateDevsyResourceNameStatus(ref), - "github.com/devsy-org/api/pkg/apis/management/v1.UsageDownload": schema_pkg_apis_management_v1_UsageDownload(ref), - "github.com/devsy-org/api/pkg/apis/management/v1.UsageDownloadList": schema_pkg_apis_management_v1_UsageDownloadList(ref), - "github.com/devsy-org/api/pkg/apis/management/v1.UsageDownloadSpec": schema_pkg_apis_management_v1_UsageDownloadSpec(ref), - "github.com/devsy-org/api/pkg/apis/management/v1.UsageDownloadStatus": schema_pkg_apis_management_v1_UsageDownloadStatus(ref), - "github.com/devsy-org/api/pkg/apis/management/v1.User": schema_pkg_apis_management_v1_User(ref), - "github.com/devsy-org/api/pkg/apis/management/v1.UserAccessKeys": schema_pkg_apis_management_v1_UserAccessKeys(ref), - "github.com/devsy-org/api/pkg/apis/management/v1.UserAccessKeysList": schema_pkg_apis_management_v1_UserAccessKeysList(ref), - "github.com/devsy-org/api/pkg/apis/management/v1.UserClusters": schema_pkg_apis_management_v1_UserClusters(ref), - "github.com/devsy-org/api/pkg/apis/management/v1.UserClustersList": schema_pkg_apis_management_v1_UserClustersList(ref), - "github.com/devsy-org/api/pkg/apis/management/v1.UserInfo": schema_pkg_apis_management_v1_UserInfo(ref), - "github.com/devsy-org/api/pkg/apis/management/v1.UserList": schema_pkg_apis_management_v1_UserList(ref), - "github.com/devsy-org/api/pkg/apis/management/v1.UserObjectPermissions": schema_pkg_apis_management_v1_UserObjectPermissions(ref), - "github.com/devsy-org/api/pkg/apis/management/v1.UserObjectPermissionsList": schema_pkg_apis_management_v1_UserObjectPermissionsList(ref), - "github.com/devsy-org/api/pkg/apis/management/v1.UserPermissions": schema_pkg_apis_management_v1_UserPermissions(ref), - "github.com/devsy-org/api/pkg/apis/management/v1.UserPermissionsList": schema_pkg_apis_management_v1_UserPermissionsList(ref), - "github.com/devsy-org/api/pkg/apis/management/v1.UserPermissionsRole": schema_pkg_apis_management_v1_UserPermissionsRole(ref), - "github.com/devsy-org/api/pkg/apis/management/v1.UserProfile": schema_pkg_apis_management_v1_UserProfile(ref), - "github.com/devsy-org/api/pkg/apis/management/v1.UserProfileList": schema_pkg_apis_management_v1_UserProfileList(ref), - "github.com/devsy-org/api/pkg/apis/management/v1.UserProfileSecret": schema_pkg_apis_management_v1_UserProfileSecret(ref), - "github.com/devsy-org/api/pkg/apis/management/v1.UserQuotasOptions": schema_pkg_apis_management_v1_UserQuotasOptions(ref), - "github.com/devsy-org/api/pkg/apis/management/v1.UserSpacesOptions": schema_pkg_apis_management_v1_UserSpacesOptions(ref), - "github.com/devsy-org/api/pkg/apis/management/v1.UserSpec": schema_pkg_apis_management_v1_UserSpec(ref), - "github.com/devsy-org/api/pkg/apis/management/v1.UserStatus": schema_pkg_apis_management_v1_UserStatus(ref), - "github.com/devsy-org/api/pkg/apis/management/v1.UserVirtualClustersOptions": schema_pkg_apis_management_v1_UserVirtualClustersOptions(ref), - "github.com/devsy-org/api/pkg/apis/management/v1.VirtualClusterAccessKey": schema_pkg_apis_management_v1_VirtualClusterAccessKey(ref), - "github.com/devsy-org/api/pkg/apis/management/v1.VirtualClusterAccessKeyList": schema_pkg_apis_management_v1_VirtualClusterAccessKeyList(ref), - "github.com/devsy-org/api/pkg/apis/management/v1.VirtualClusterExternalDatabase": schema_pkg_apis_management_v1_VirtualClusterExternalDatabase(ref), - "github.com/devsy-org/api/pkg/apis/management/v1.VirtualClusterExternalDatabaseList": schema_pkg_apis_management_v1_VirtualClusterExternalDatabaseList(ref), - "github.com/devsy-org/api/pkg/apis/management/v1.VirtualClusterExternalDatabaseSpec": schema_pkg_apis_management_v1_VirtualClusterExternalDatabaseSpec(ref), - "github.com/devsy-org/api/pkg/apis/management/v1.VirtualClusterExternalDatabaseStatus": schema_pkg_apis_management_v1_VirtualClusterExternalDatabaseStatus(ref), - "github.com/devsy-org/api/pkg/apis/management/v1.VirtualClusterInstance": schema_pkg_apis_management_v1_VirtualClusterInstance(ref), - "github.com/devsy-org/api/pkg/apis/management/v1.VirtualClusterInstanceKubeConfig": schema_pkg_apis_management_v1_VirtualClusterInstanceKubeConfig(ref), - "github.com/devsy-org/api/pkg/apis/management/v1.VirtualClusterInstanceKubeConfigList": schema_pkg_apis_management_v1_VirtualClusterInstanceKubeConfigList(ref), - "github.com/devsy-org/api/pkg/apis/management/v1.VirtualClusterInstanceKubeConfigSpec": schema_pkg_apis_management_v1_VirtualClusterInstanceKubeConfigSpec(ref), - "github.com/devsy-org/api/pkg/apis/management/v1.VirtualClusterInstanceKubeConfigStatus": schema_pkg_apis_management_v1_VirtualClusterInstanceKubeConfigStatus(ref), - "github.com/devsy-org/api/pkg/apis/management/v1.VirtualClusterInstanceList": schema_pkg_apis_management_v1_VirtualClusterInstanceList(ref), - "github.com/devsy-org/api/pkg/apis/management/v1.VirtualClusterInstanceLog": schema_pkg_apis_management_v1_VirtualClusterInstanceLog(ref), - "github.com/devsy-org/api/pkg/apis/management/v1.VirtualClusterInstanceLogList": schema_pkg_apis_management_v1_VirtualClusterInstanceLogList(ref), - "github.com/devsy-org/api/pkg/apis/management/v1.VirtualClusterInstanceLogOptions": schema_pkg_apis_management_v1_VirtualClusterInstanceLogOptions(ref), - "github.com/devsy-org/api/pkg/apis/management/v1.VirtualClusterInstanceSnapshot": schema_pkg_apis_management_v1_VirtualClusterInstanceSnapshot(ref), - "github.com/devsy-org/api/pkg/apis/management/v1.VirtualClusterInstanceSnapshotList": schema_pkg_apis_management_v1_VirtualClusterInstanceSnapshotList(ref), - "github.com/devsy-org/api/pkg/apis/management/v1.VirtualClusterInstanceSnapshotStatus": schema_pkg_apis_management_v1_VirtualClusterInstanceSnapshotStatus(ref), - "github.com/devsy-org/api/pkg/apis/management/v1.VirtualClusterInstanceSpec": schema_pkg_apis_management_v1_VirtualClusterInstanceSpec(ref), - "github.com/devsy-org/api/pkg/apis/management/v1.VirtualClusterInstanceStatus": schema_pkg_apis_management_v1_VirtualClusterInstanceStatus(ref), - "github.com/devsy-org/api/pkg/apis/management/v1.VirtualClusterNodeAccessKey": schema_pkg_apis_management_v1_VirtualClusterNodeAccessKey(ref), - "github.com/devsy-org/api/pkg/apis/management/v1.VirtualClusterNodeAccessKeyList": schema_pkg_apis_management_v1_VirtualClusterNodeAccessKeyList(ref), - "github.com/devsy-org/api/pkg/apis/management/v1.VirtualClusterNodeAccessKeySpec": schema_pkg_apis_management_v1_VirtualClusterNodeAccessKeySpec(ref), - "github.com/devsy-org/api/pkg/apis/management/v1.VirtualClusterNodeAccessKeyStatus": schema_pkg_apis_management_v1_VirtualClusterNodeAccessKeyStatus(ref), - "github.com/devsy-org/api/pkg/apis/management/v1.VirtualClusterRole": schema_pkg_apis_management_v1_VirtualClusterRole(ref), - "github.com/devsy-org/api/pkg/apis/management/v1.VirtualClusterSchema": schema_pkg_apis_management_v1_VirtualClusterSchema(ref), - "github.com/devsy-org/api/pkg/apis/management/v1.VirtualClusterSchemaList": schema_pkg_apis_management_v1_VirtualClusterSchemaList(ref), - "github.com/devsy-org/api/pkg/apis/management/v1.VirtualClusterSchemaSpec": schema_pkg_apis_management_v1_VirtualClusterSchemaSpec(ref), - "github.com/devsy-org/api/pkg/apis/management/v1.VirtualClusterSchemaStatus": schema_pkg_apis_management_v1_VirtualClusterSchemaStatus(ref), - "github.com/devsy-org/api/pkg/apis/management/v1.VirtualClusterStandalone": schema_pkg_apis_management_v1_VirtualClusterStandalone(ref), - "github.com/devsy-org/api/pkg/apis/management/v1.VirtualClusterStandaloneList": schema_pkg_apis_management_v1_VirtualClusterStandaloneList(ref), - "github.com/devsy-org/api/pkg/apis/management/v1.VirtualClusterStandaloneSpec": schema_pkg_apis_management_v1_VirtualClusterStandaloneSpec(ref), - "github.com/devsy-org/api/pkg/apis/management/v1.VirtualClusterStandaloneStatus": schema_pkg_apis_management_v1_VirtualClusterStandaloneStatus(ref), - "github.com/devsy-org/api/pkg/apis/management/v1.VirtualClusterTemplate": schema_pkg_apis_management_v1_VirtualClusterTemplate(ref), - "github.com/devsy-org/api/pkg/apis/management/v1.VirtualClusterTemplateList": schema_pkg_apis_management_v1_VirtualClusterTemplateList(ref), - "github.com/devsy-org/api/pkg/apis/management/v1.VirtualClusterTemplateSpec": schema_pkg_apis_management_v1_VirtualClusterTemplateSpec(ref), - "github.com/devsy-org/api/pkg/apis/management/v1.VirtualClusterTemplateStatus": schema_pkg_apis_management_v1_VirtualClusterTemplateStatus(ref), - "github.com/devsy-org/api/pkg/apis/storage/v1.Access": schema_pkg_apis_storage_v1_Access(ref), - "github.com/devsy-org/api/pkg/apis/storage/v1.AccessKey": schema_pkg_apis_storage_v1_AccessKey(ref), - "github.com/devsy-org/api/pkg/apis/storage/v1.AccessKeyList": schema_pkg_apis_storage_v1_AccessKeyList(ref), - "github.com/devsy-org/api/pkg/apis/storage/v1.AccessKeyOIDC": schema_pkg_apis_storage_v1_AccessKeyOIDC(ref), - "github.com/devsy-org/api/pkg/apis/storage/v1.AccessKeyOIDCProvider": schema_pkg_apis_storage_v1_AccessKeyOIDCProvider(ref), - "github.com/devsy-org/api/pkg/apis/storage/v1.AccessKeyScope": schema_pkg_apis_storage_v1_AccessKeyScope(ref), - "github.com/devsy-org/api/pkg/apis/storage/v1.AccessKeyScopeCluster": schema_pkg_apis_storage_v1_AccessKeyScopeCluster(ref), - "github.com/devsy-org/api/pkg/apis/storage/v1.AccessKeyScopeProject": schema_pkg_apis_storage_v1_AccessKeyScopeProject(ref), - "github.com/devsy-org/api/pkg/apis/storage/v1.AccessKeyScopeRole": schema_pkg_apis_storage_v1_AccessKeyScopeRole(ref), - "github.com/devsy-org/api/pkg/apis/storage/v1.AccessKeyScopeRule": schema_pkg_apis_storage_v1_AccessKeyScopeRule(ref), - "github.com/devsy-org/api/pkg/apis/storage/v1.AccessKeyScopeSpace": schema_pkg_apis_storage_v1_AccessKeyScopeSpace(ref), - "github.com/devsy-org/api/pkg/apis/storage/v1.AccessKeyScopeVirtualCluster": schema_pkg_apis_storage_v1_AccessKeyScopeVirtualCluster(ref), - "github.com/devsy-org/api/pkg/apis/storage/v1.AccessKeySpec": schema_pkg_apis_storage_v1_AccessKeySpec(ref), - "github.com/devsy-org/api/pkg/apis/storage/v1.AccessKeyStatus": schema_pkg_apis_storage_v1_AccessKeyStatus(ref), - "github.com/devsy-org/api/pkg/apis/storage/v1.AccessKeyVirtualCluster": schema_pkg_apis_storage_v1_AccessKeyVirtualCluster(ref), - "github.com/devsy-org/api/pkg/apis/storage/v1.AllowedCluster": schema_pkg_apis_storage_v1_AllowedCluster(ref), - "github.com/devsy-org/api/pkg/apis/storage/v1.AllowedClusterAccountTemplate": schema_pkg_apis_storage_v1_AllowedClusterAccountTemplate(ref), - "github.com/devsy-org/api/pkg/apis/storage/v1.AllowedRunner": schema_pkg_apis_storage_v1_AllowedRunner(ref), - "github.com/devsy-org/api/pkg/apis/storage/v1.AllowedTemplate": schema_pkg_apis_storage_v1_AllowedTemplate(ref), - "github.com/devsy-org/api/pkg/apis/storage/v1.App": schema_pkg_apis_storage_v1_App(ref), - "github.com/devsy-org/api/pkg/apis/storage/v1.AppConfig": schema_pkg_apis_storage_v1_AppConfig(ref), - "github.com/devsy-org/api/pkg/apis/storage/v1.AppList": schema_pkg_apis_storage_v1_AppList(ref), - "github.com/devsy-org/api/pkg/apis/storage/v1.AppParameter": schema_pkg_apis_storage_v1_AppParameter(ref), - "github.com/devsy-org/api/pkg/apis/storage/v1.AppReference": schema_pkg_apis_storage_v1_AppReference(ref), - "github.com/devsy-org/api/pkg/apis/storage/v1.AppSpec": schema_pkg_apis_storage_v1_AppSpec(ref), - "github.com/devsy-org/api/pkg/apis/storage/v1.AppStatus": schema_pkg_apis_storage_v1_AppStatus(ref), - "github.com/devsy-org/api/pkg/apis/storage/v1.AppTask": schema_pkg_apis_storage_v1_AppTask(ref), - "github.com/devsy-org/api/pkg/apis/storage/v1.AppVersion": schema_pkg_apis_storage_v1_AppVersion(ref), - "github.com/devsy-org/api/pkg/apis/storage/v1.ArgoIntegrationSpec": schema_pkg_apis_storage_v1_ArgoIntegrationSpec(ref), - "github.com/devsy-org/api/pkg/apis/storage/v1.ArgoProjectPolicyRule": schema_pkg_apis_storage_v1_ArgoProjectPolicyRule(ref), - "github.com/devsy-org/api/pkg/apis/storage/v1.ArgoProjectRole": schema_pkg_apis_storage_v1_ArgoProjectRole(ref), - "github.com/devsy-org/api/pkg/apis/storage/v1.ArgoProjectSpec": schema_pkg_apis_storage_v1_ArgoProjectSpec(ref), - "github.com/devsy-org/api/pkg/apis/storage/v1.ArgoProjectSpecMetadata": schema_pkg_apis_storage_v1_ArgoProjectSpecMetadata(ref), - "github.com/devsy-org/api/pkg/apis/storage/v1.ArgoSSOSpec": schema_pkg_apis_storage_v1_ArgoSSOSpec(ref), - "github.com/devsy-org/api/pkg/apis/storage/v1.BCMNodeTypeSpec": schema_pkg_apis_storage_v1_BCMNodeTypeSpec(ref), - "github.com/devsy-org/api/pkg/apis/storage/v1.Chart": schema_pkg_apis_storage_v1_Chart(ref), - "github.com/devsy-org/api/pkg/apis/storage/v1.ChartStatus": schema_pkg_apis_storage_v1_ChartStatus(ref), - "github.com/devsy-org/api/pkg/apis/storage/v1.Cluster": schema_pkg_apis_storage_v1_Cluster(ref), - "github.com/devsy-org/api/pkg/apis/storage/v1.ClusterAccess": schema_pkg_apis_storage_v1_ClusterAccess(ref), - "github.com/devsy-org/api/pkg/apis/storage/v1.ClusterAccessList": schema_pkg_apis_storage_v1_ClusterAccessList(ref), - "github.com/devsy-org/api/pkg/apis/storage/v1.ClusterAccessSpec": schema_pkg_apis_storage_v1_ClusterAccessSpec(ref), - "github.com/devsy-org/api/pkg/apis/storage/v1.ClusterAccessStatus": schema_pkg_apis_storage_v1_ClusterAccessStatus(ref), - "github.com/devsy-org/api/pkg/apis/storage/v1.ClusterList": schema_pkg_apis_storage_v1_ClusterList(ref), - "github.com/devsy-org/api/pkg/apis/storage/v1.ClusterRef": schema_pkg_apis_storage_v1_ClusterRef(ref), - "github.com/devsy-org/api/pkg/apis/storage/v1.ClusterRoleRef": schema_pkg_apis_storage_v1_ClusterRoleRef(ref), - "github.com/devsy-org/api/pkg/apis/storage/v1.ClusterRoleTemplate": schema_pkg_apis_storage_v1_ClusterRoleTemplate(ref), - "github.com/devsy-org/api/pkg/apis/storage/v1.ClusterRoleTemplateList": schema_pkg_apis_storage_v1_ClusterRoleTemplateList(ref), - "github.com/devsy-org/api/pkg/apis/storage/v1.ClusterRoleTemplateSpec": schema_pkg_apis_storage_v1_ClusterRoleTemplateSpec(ref), - "github.com/devsy-org/api/pkg/apis/storage/v1.ClusterRoleTemplateStatus": schema_pkg_apis_storage_v1_ClusterRoleTemplateStatus(ref), - "github.com/devsy-org/api/pkg/apis/storage/v1.ClusterRoleTemplateTemplate": schema_pkg_apis_storage_v1_ClusterRoleTemplateTemplate(ref), - "github.com/devsy-org/api/pkg/apis/storage/v1.ClusterSpec": schema_pkg_apis_storage_v1_ClusterSpec(ref), - "github.com/devsy-org/api/pkg/apis/storage/v1.ClusterStatus": schema_pkg_apis_storage_v1_ClusterStatus(ref), - "github.com/devsy-org/api/pkg/apis/storage/v1.CredentialForwarding": schema_pkg_apis_storage_v1_CredentialForwarding(ref), - "github.com/devsy-org/api/pkg/apis/storage/v1.DevPodCommandDeleteOptions": schema_pkg_apis_storage_v1_DevPodCommandDeleteOptions(ref), - "github.com/devsy-org/api/pkg/apis/storage/v1.DevPodCommandStatusOptions": schema_pkg_apis_storage_v1_DevPodCommandStatusOptions(ref), - "github.com/devsy-org/api/pkg/apis/storage/v1.DevPodCommandStopOptions": schema_pkg_apis_storage_v1_DevPodCommandStopOptions(ref), - "github.com/devsy-org/api/pkg/apis/storage/v1.DevPodCommandUpOptions": schema_pkg_apis_storage_v1_DevPodCommandUpOptions(ref), - "github.com/devsy-org/api/pkg/apis/storage/v1.DevPodEnvironmentTemplate": schema_pkg_apis_storage_v1_DevPodEnvironmentTemplate(ref), - "github.com/devsy-org/api/pkg/apis/storage/v1.DevPodEnvironmentTemplateDefinition": schema_pkg_apis_storage_v1_DevPodEnvironmentTemplateDefinition(ref), - "github.com/devsy-org/api/pkg/apis/storage/v1.DevPodEnvironmentTemplateList": schema_pkg_apis_storage_v1_DevPodEnvironmentTemplateList(ref), - "github.com/devsy-org/api/pkg/apis/storage/v1.DevPodEnvironmentTemplateSpec": schema_pkg_apis_storage_v1_DevPodEnvironmentTemplateSpec(ref), - "github.com/devsy-org/api/pkg/apis/storage/v1.DevPodEnvironmentTemplateStatus": schema_pkg_apis_storage_v1_DevPodEnvironmentTemplateStatus(ref), - "github.com/devsy-org/api/pkg/apis/storage/v1.DevPodEnvironmentTemplateVersion": schema_pkg_apis_storage_v1_DevPodEnvironmentTemplateVersion(ref), - "github.com/devsy-org/api/pkg/apis/storage/v1.DevPodProjectSpec": schema_pkg_apis_storage_v1_DevPodProjectSpec(ref), - "github.com/devsy-org/api/pkg/apis/storage/v1.DevPodProviderOption": schema_pkg_apis_storage_v1_DevPodProviderOption(ref), - "github.com/devsy-org/api/pkg/apis/storage/v1.DevPodProviderOptionFrom": schema_pkg_apis_storage_v1_DevPodProviderOptionFrom(ref), - "github.com/devsy-org/api/pkg/apis/storage/v1.DevPodProviderSource": schema_pkg_apis_storage_v1_DevPodProviderSource(ref), - "github.com/devsy-org/api/pkg/apis/storage/v1.DevPodWorkspaceContainer": schema_pkg_apis_storage_v1_DevPodWorkspaceContainer(ref), - "github.com/devsy-org/api/pkg/apis/storage/v1.DevPodWorkspaceInstance": schema_pkg_apis_storage_v1_DevPodWorkspaceInstance(ref), - "github.com/devsy-org/api/pkg/apis/storage/v1.DevPodWorkspaceInstanceContainerResource": schema_pkg_apis_storage_v1_DevPodWorkspaceInstanceContainerResource(ref), - "github.com/devsy-org/api/pkg/apis/storage/v1.DevPodWorkspaceInstanceEvent": schema_pkg_apis_storage_v1_DevPodWorkspaceInstanceEvent(ref), - "github.com/devsy-org/api/pkg/apis/storage/v1.DevPodWorkspaceInstanceKubernetesStatus": schema_pkg_apis_storage_v1_DevPodWorkspaceInstanceKubernetesStatus(ref), - "github.com/devsy-org/api/pkg/apis/storage/v1.DevPodWorkspaceInstanceList": schema_pkg_apis_storage_v1_DevPodWorkspaceInstanceList(ref), - "github.com/devsy-org/api/pkg/apis/storage/v1.DevPodWorkspaceInstancePersistentVolumeClaimStatus": schema_pkg_apis_storage_v1_DevPodWorkspaceInstancePersistentVolumeClaimStatus(ref), - "github.com/devsy-org/api/pkg/apis/storage/v1.DevPodWorkspaceInstancePodStatus": schema_pkg_apis_storage_v1_DevPodWorkspaceInstancePodStatus(ref), - "github.com/devsy-org/api/pkg/apis/storage/v1.DevPodWorkspaceInstanceSpec": schema_pkg_apis_storage_v1_DevPodWorkspaceInstanceSpec(ref), - "github.com/devsy-org/api/pkg/apis/storage/v1.DevPodWorkspaceInstanceStatus": schema_pkg_apis_storage_v1_DevPodWorkspaceInstanceStatus(ref), - "github.com/devsy-org/api/pkg/apis/storage/v1.DevPodWorkspaceInstanceTemplateDefinition": schema_pkg_apis_storage_v1_DevPodWorkspaceInstanceTemplateDefinition(ref), - "github.com/devsy-org/api/pkg/apis/storage/v1.DevPodWorkspaceKubernetesSpec": schema_pkg_apis_storage_v1_DevPodWorkspaceKubernetesSpec(ref), - "github.com/devsy-org/api/pkg/apis/storage/v1.DevPodWorkspacePodTemplate": schema_pkg_apis_storage_v1_DevPodWorkspacePodTemplate(ref), - "github.com/devsy-org/api/pkg/apis/storage/v1.DevPodWorkspacePodTemplateSpec": schema_pkg_apis_storage_v1_DevPodWorkspacePodTemplateSpec(ref), - "github.com/devsy-org/api/pkg/apis/storage/v1.DevPodWorkspacePreset": schema_pkg_apis_storage_v1_DevPodWorkspacePreset(ref), - "github.com/devsy-org/api/pkg/apis/storage/v1.DevPodWorkspacePresetList": schema_pkg_apis_storage_v1_DevPodWorkspacePresetList(ref), - "github.com/devsy-org/api/pkg/apis/storage/v1.DevPodWorkspacePresetSource": schema_pkg_apis_storage_v1_DevPodWorkspacePresetSource(ref), - "github.com/devsy-org/api/pkg/apis/storage/v1.DevPodWorkspacePresetSpec": schema_pkg_apis_storage_v1_DevPodWorkspacePresetSpec(ref), - "github.com/devsy-org/api/pkg/apis/storage/v1.DevPodWorkspacePresetStatus": schema_pkg_apis_storage_v1_DevPodWorkspacePresetStatus(ref), - "github.com/devsy-org/api/pkg/apis/storage/v1.DevPodWorkspacePresetVersion": schema_pkg_apis_storage_v1_DevPodWorkspacePresetVersion(ref), - "github.com/devsy-org/api/pkg/apis/storage/v1.DevPodWorkspaceProvider": schema_pkg_apis_storage_v1_DevPodWorkspaceProvider(ref), - "github.com/devsy-org/api/pkg/apis/storage/v1.DevPodWorkspaceResourceRequirements": schema_pkg_apis_storage_v1_DevPodWorkspaceResourceRequirements(ref), - "github.com/devsy-org/api/pkg/apis/storage/v1.DevPodWorkspaceTemplate": schema_pkg_apis_storage_v1_DevPodWorkspaceTemplate(ref), - "github.com/devsy-org/api/pkg/apis/storage/v1.DevPodWorkspaceTemplateDefinition": schema_pkg_apis_storage_v1_DevPodWorkspaceTemplateDefinition(ref), - "github.com/devsy-org/api/pkg/apis/storage/v1.DevPodWorkspaceTemplateList": schema_pkg_apis_storage_v1_DevPodWorkspaceTemplateList(ref), - "github.com/devsy-org/api/pkg/apis/storage/v1.DevPodWorkspaceTemplateSpec": schema_pkg_apis_storage_v1_DevPodWorkspaceTemplateSpec(ref), - "github.com/devsy-org/api/pkg/apis/storage/v1.DevPodWorkspaceTemplateStatus": schema_pkg_apis_storage_v1_DevPodWorkspaceTemplateStatus(ref), - "github.com/devsy-org/api/pkg/apis/storage/v1.DevPodWorkspaceTemplateVersion": schema_pkg_apis_storage_v1_DevPodWorkspaceTemplateVersion(ref), - "github.com/devsy-org/api/pkg/apis/storage/v1.DevPodWorkspaceVolumeClaimSpec": schema_pkg_apis_storage_v1_DevPodWorkspaceVolumeClaimSpec(ref), - "github.com/devsy-org/api/pkg/apis/storage/v1.DevPodWorkspaceVolumeClaimTemplate": schema_pkg_apis_storage_v1_DevPodWorkspaceVolumeClaimTemplate(ref), - "github.com/devsy-org/api/pkg/apis/storage/v1.DockerCredentialForwarding": schema_pkg_apis_storage_v1_DockerCredentialForwarding(ref), - "github.com/devsy-org/api/pkg/apis/storage/v1.EntityInfo": schema_pkg_apis_storage_v1_EntityInfo(ref), - "github.com/devsy-org/api/pkg/apis/storage/v1.EnvironmentRef": schema_pkg_apis_storage_v1_EnvironmentRef(ref), - "github.com/devsy-org/api/pkg/apis/storage/v1.GitCredentialForwarding": schema_pkg_apis_storage_v1_GitCredentialForwarding(ref), - "github.com/devsy-org/api/pkg/apis/storage/v1.GitEnvironmentTemplate": schema_pkg_apis_storage_v1_GitEnvironmentTemplate(ref), - "github.com/devsy-org/api/pkg/apis/storage/v1.GitProjectCredentials": schema_pkg_apis_storage_v1_GitProjectCredentials(ref), - "github.com/devsy-org/api/pkg/apis/storage/v1.GitProjectSpec": schema_pkg_apis_storage_v1_GitProjectSpec(ref), - "github.com/devsy-org/api/pkg/apis/storage/v1.GroupResources": schema_pkg_apis_storage_v1_GroupResources(ref), - "github.com/devsy-org/api/pkg/apis/storage/v1.HelmChart": schema_pkg_apis_storage_v1_HelmChart(ref), - "github.com/devsy-org/api/pkg/apis/storage/v1.HelmChartRepository": schema_pkg_apis_storage_v1_HelmChartRepository(ref), - "github.com/devsy-org/api/pkg/apis/storage/v1.HelmConfiguration": schema_pkg_apis_storage_v1_HelmConfiguration(ref), - "github.com/devsy-org/api/pkg/apis/storage/v1.HelmTask": schema_pkg_apis_storage_v1_HelmTask(ref), - "github.com/devsy-org/api/pkg/apis/storage/v1.HelmTaskRelease": schema_pkg_apis_storage_v1_HelmTaskRelease(ref), - "github.com/devsy-org/api/pkg/apis/storage/v1.ImportVirtualClustersSpec": schema_pkg_apis_storage_v1_ImportVirtualClustersSpec(ref), - "github.com/devsy-org/api/pkg/apis/storage/v1.InstanceAccess": schema_pkg_apis_storage_v1_InstanceAccess(ref), - "github.com/devsy-org/api/pkg/apis/storage/v1.InstanceAccessRule": schema_pkg_apis_storage_v1_InstanceAccessRule(ref), - "github.com/devsy-org/api/pkg/apis/storage/v1.InstanceDeployedAppStatus": schema_pkg_apis_storage_v1_InstanceDeployedAppStatus(ref), - "github.com/devsy-org/api/pkg/apis/storage/v1.KindSecretRef": schema_pkg_apis_storage_v1_KindSecretRef(ref), - "github.com/devsy-org/api/pkg/apis/storage/v1.KubeVirtClusterRef": schema_pkg_apis_storage_v1_KubeVirtClusterRef(ref), - "github.com/devsy-org/api/pkg/apis/storage/v1.KubeVirtNodeTypeSpec": schema_pkg_apis_storage_v1_KubeVirtNodeTypeSpec(ref), - "github.com/devsy-org/api/pkg/apis/storage/v1.LocalClusterAccessSpec": schema_pkg_apis_storage_v1_LocalClusterAccessSpec(ref), - "github.com/devsy-org/api/pkg/apis/storage/v1.LocalClusterAccessTemplate": schema_pkg_apis_storage_v1_LocalClusterAccessTemplate(ref), - "github.com/devsy-org/api/pkg/apis/storage/v1.LocalClusterRoleTemplate": schema_pkg_apis_storage_v1_LocalClusterRoleTemplate(ref), - "github.com/devsy-org/api/pkg/apis/storage/v1.LocalClusterRoleTemplateSpec": schema_pkg_apis_storage_v1_LocalClusterRoleTemplateSpec(ref), - "github.com/devsy-org/api/pkg/apis/storage/v1.ManagedNodeTypeObjectMeta": schema_pkg_apis_storage_v1_ManagedNodeTypeObjectMeta(ref), - "github.com/devsy-org/api/pkg/apis/storage/v1.Member": schema_pkg_apis_storage_v1_Member(ref), - "github.com/devsy-org/api/pkg/apis/storage/v1.Metrics": schema_pkg_apis_storage_v1_Metrics(ref), - "github.com/devsy-org/api/pkg/apis/storage/v1.NamedNodeTypeSpec": schema_pkg_apis_storage_v1_NamedNodeTypeSpec(ref), - "github.com/devsy-org/api/pkg/apis/storage/v1.NamespacePattern": schema_pkg_apis_storage_v1_NamespacePattern(ref), - "github.com/devsy-org/api/pkg/apis/storage/v1.NamespacedRef": schema_pkg_apis_storage_v1_NamespacedRef(ref), - "github.com/devsy-org/api/pkg/apis/storage/v1.NetworkPeer": schema_pkg_apis_storage_v1_NetworkPeer(ref), - "github.com/devsy-org/api/pkg/apis/storage/v1.NetworkPeerList": schema_pkg_apis_storage_v1_NetworkPeerList(ref), - "github.com/devsy-org/api/pkg/apis/storage/v1.NetworkPeerSpec": schema_pkg_apis_storage_v1_NetworkPeerSpec(ref), - "github.com/devsy-org/api/pkg/apis/storage/v1.NetworkPeerStatus": schema_pkg_apis_storage_v1_NetworkPeerStatus(ref), - "github.com/devsy-org/api/pkg/apis/storage/v1.NodeClaim": schema_pkg_apis_storage_v1_NodeClaim(ref), - "github.com/devsy-org/api/pkg/apis/storage/v1.NodeClaimList": schema_pkg_apis_storage_v1_NodeClaimList(ref), - "github.com/devsy-org/api/pkg/apis/storage/v1.NodeClaimSpec": schema_pkg_apis_storage_v1_NodeClaimSpec(ref), - "github.com/devsy-org/api/pkg/apis/storage/v1.NodeClaimStatus": schema_pkg_apis_storage_v1_NodeClaimStatus(ref), - "github.com/devsy-org/api/pkg/apis/storage/v1.NodeEnvironment": schema_pkg_apis_storage_v1_NodeEnvironment(ref), - "github.com/devsy-org/api/pkg/apis/storage/v1.NodeEnvironmentList": schema_pkg_apis_storage_v1_NodeEnvironmentList(ref), - "github.com/devsy-org/api/pkg/apis/storage/v1.NodeEnvironmentSpec": schema_pkg_apis_storage_v1_NodeEnvironmentSpec(ref), - "github.com/devsy-org/api/pkg/apis/storage/v1.NodeEnvironmentStatus": schema_pkg_apis_storage_v1_NodeEnvironmentStatus(ref), - "github.com/devsy-org/api/pkg/apis/storage/v1.NodeProvider": schema_pkg_apis_storage_v1_NodeProvider(ref), - "github.com/devsy-org/api/pkg/apis/storage/v1.NodeProviderBCM": schema_pkg_apis_storage_v1_NodeProviderBCM(ref), - "github.com/devsy-org/api/pkg/apis/storage/v1.NodeProviderKubeVirt": schema_pkg_apis_storage_v1_NodeProviderKubeVirt(ref), - "github.com/devsy-org/api/pkg/apis/storage/v1.NodeProviderList": schema_pkg_apis_storage_v1_NodeProviderList(ref), - "github.com/devsy-org/api/pkg/apis/storage/v1.NodeProviderSpec": schema_pkg_apis_storage_v1_NodeProviderSpec(ref), - "github.com/devsy-org/api/pkg/apis/storage/v1.NodeProviderStatus": schema_pkg_apis_storage_v1_NodeProviderStatus(ref), - "github.com/devsy-org/api/pkg/apis/storage/v1.NodeProviderTerraform": schema_pkg_apis_storage_v1_NodeProviderTerraform(ref), - "github.com/devsy-org/api/pkg/apis/storage/v1.NodeType": schema_pkg_apis_storage_v1_NodeType(ref), - "github.com/devsy-org/api/pkg/apis/storage/v1.NodeTypeCapacity": schema_pkg_apis_storage_v1_NodeTypeCapacity(ref), - "github.com/devsy-org/api/pkg/apis/storage/v1.NodeTypeList": schema_pkg_apis_storage_v1_NodeTypeList(ref), - "github.com/devsy-org/api/pkg/apis/storage/v1.NodeTypeOverhead": schema_pkg_apis_storage_v1_NodeTypeOverhead(ref), - "github.com/devsy-org/api/pkg/apis/storage/v1.NodeTypeSpec": schema_pkg_apis_storage_v1_NodeTypeSpec(ref), - "github.com/devsy-org/api/pkg/apis/storage/v1.NodeTypeStatus": schema_pkg_apis_storage_v1_NodeTypeStatus(ref), - "github.com/devsy-org/api/pkg/apis/storage/v1.ObjectsStatus": schema_pkg_apis_storage_v1_ObjectsStatus(ref), - "github.com/devsy-org/api/pkg/apis/storage/v1.OpenCost": schema_pkg_apis_storage_v1_OpenCost(ref), - "github.com/devsy-org/api/pkg/apis/storage/v1.PodSelector": schema_pkg_apis_storage_v1_PodSelector(ref), - "github.com/devsy-org/api/pkg/apis/storage/v1.PresetRef": schema_pkg_apis_storage_v1_PresetRef(ref), - "github.com/devsy-org/api/pkg/apis/storage/v1.Project": schema_pkg_apis_storage_v1_Project(ref), - "github.com/devsy-org/api/pkg/apis/storage/v1.ProjectList": schema_pkg_apis_storage_v1_ProjectList(ref), - "github.com/devsy-org/api/pkg/apis/storage/v1.ProjectSpec": schema_pkg_apis_storage_v1_ProjectSpec(ref), - "github.com/devsy-org/api/pkg/apis/storage/v1.ProjectStatus": schema_pkg_apis_storage_v1_ProjectStatus(ref), - "github.com/devsy-org/api/pkg/apis/storage/v1.QuotaStatus": schema_pkg_apis_storage_v1_QuotaStatus(ref), - "github.com/devsy-org/api/pkg/apis/storage/v1.QuotaStatusProject": schema_pkg_apis_storage_v1_QuotaStatusProject(ref), - "github.com/devsy-org/api/pkg/apis/storage/v1.QuotaStatusProjectCluster": schema_pkg_apis_storage_v1_QuotaStatusProjectCluster(ref), - "github.com/devsy-org/api/pkg/apis/storage/v1.QuotaStatusUser": schema_pkg_apis_storage_v1_QuotaStatusUser(ref), - "github.com/devsy-org/api/pkg/apis/storage/v1.QuotaStatusUserUsed": schema_pkg_apis_storage_v1_QuotaStatusUserUsed(ref), - "github.com/devsy-org/api/pkg/apis/storage/v1.Quotas": schema_pkg_apis_storage_v1_Quotas(ref), - "github.com/devsy-org/api/pkg/apis/storage/v1.RancherIntegrationSpec": schema_pkg_apis_storage_v1_RancherIntegrationSpec(ref), - "github.com/devsy-org/api/pkg/apis/storage/v1.RancherProjectRef": schema_pkg_apis_storage_v1_RancherProjectRef(ref), - "github.com/devsy-org/api/pkg/apis/storage/v1.RequirePreset": schema_pkg_apis_storage_v1_RequirePreset(ref), - "github.com/devsy-org/api/pkg/apis/storage/v1.RequireTemplate": schema_pkg_apis_storage_v1_RequireTemplate(ref), - "github.com/devsy-org/api/pkg/apis/storage/v1.RunnerRef": schema_pkg_apis_storage_v1_RunnerRef(ref), - "github.com/devsy-org/api/pkg/apis/storage/v1.SSOIdentity": schema_pkg_apis_storage_v1_SSOIdentity(ref), - "github.com/devsy-org/api/pkg/apis/storage/v1.SecretRef": schema_pkg_apis_storage_v1_SecretRef(ref), - "github.com/devsy-org/api/pkg/apis/storage/v1.SharedSecret": schema_pkg_apis_storage_v1_SharedSecret(ref), - "github.com/devsy-org/api/pkg/apis/storage/v1.SharedSecretList": schema_pkg_apis_storage_v1_SharedSecretList(ref), - "github.com/devsy-org/api/pkg/apis/storage/v1.SharedSecretSpec": schema_pkg_apis_storage_v1_SharedSecretSpec(ref), - "github.com/devsy-org/api/pkg/apis/storage/v1.SharedSecretStatus": schema_pkg_apis_storage_v1_SharedSecretStatus(ref), - "github.com/devsy-org/api/pkg/apis/storage/v1.SpaceInstance": schema_pkg_apis_storage_v1_SpaceInstance(ref), - "github.com/devsy-org/api/pkg/apis/storage/v1.SpaceInstanceList": schema_pkg_apis_storage_v1_SpaceInstanceList(ref), - "github.com/devsy-org/api/pkg/apis/storage/v1.SpaceInstanceSpec": schema_pkg_apis_storage_v1_SpaceInstanceSpec(ref), - "github.com/devsy-org/api/pkg/apis/storage/v1.SpaceInstanceStatus": schema_pkg_apis_storage_v1_SpaceInstanceStatus(ref), - "github.com/devsy-org/api/pkg/apis/storage/v1.SpaceInstanceTemplateDefinition": schema_pkg_apis_storage_v1_SpaceInstanceTemplateDefinition(ref), - "github.com/devsy-org/api/pkg/apis/storage/v1.SpaceTemplate": schema_pkg_apis_storage_v1_SpaceTemplate(ref), - "github.com/devsy-org/api/pkg/apis/storage/v1.SpaceTemplateDefinition": schema_pkg_apis_storage_v1_SpaceTemplateDefinition(ref), - "github.com/devsy-org/api/pkg/apis/storage/v1.SpaceTemplateList": schema_pkg_apis_storage_v1_SpaceTemplateList(ref), - "github.com/devsy-org/api/pkg/apis/storage/v1.SpaceTemplateSpec": schema_pkg_apis_storage_v1_SpaceTemplateSpec(ref), - "github.com/devsy-org/api/pkg/apis/storage/v1.SpaceTemplateStatus": schema_pkg_apis_storage_v1_SpaceTemplateStatus(ref), - "github.com/devsy-org/api/pkg/apis/storage/v1.SpaceTemplateVersion": schema_pkg_apis_storage_v1_SpaceTemplateVersion(ref), - "github.com/devsy-org/api/pkg/apis/storage/v1.Storage": schema_pkg_apis_storage_v1_Storage(ref), - "github.com/devsy-org/api/pkg/apis/storage/v1.StreamContainer": schema_pkg_apis_storage_v1_StreamContainer(ref), - "github.com/devsy-org/api/pkg/apis/storage/v1.SyncMembersSpec": schema_pkg_apis_storage_v1_SyncMembersSpec(ref), - "github.com/devsy-org/api/pkg/apis/storage/v1.Target": schema_pkg_apis_storage_v1_Target(ref), - "github.com/devsy-org/api/pkg/apis/storage/v1.TargetCluster": schema_pkg_apis_storage_v1_TargetCluster(ref), - "github.com/devsy-org/api/pkg/apis/storage/v1.TargetInstance": schema_pkg_apis_storage_v1_TargetInstance(ref), - "github.com/devsy-org/api/pkg/apis/storage/v1.TargetVirtualCluster": schema_pkg_apis_storage_v1_TargetVirtualCluster(ref), - "github.com/devsy-org/api/pkg/apis/storage/v1.Task": schema_pkg_apis_storage_v1_Task(ref), - "github.com/devsy-org/api/pkg/apis/storage/v1.TaskDefinition": schema_pkg_apis_storage_v1_TaskDefinition(ref), - "github.com/devsy-org/api/pkg/apis/storage/v1.TaskList": schema_pkg_apis_storage_v1_TaskList(ref), - "github.com/devsy-org/api/pkg/apis/storage/v1.TaskSpec": schema_pkg_apis_storage_v1_TaskSpec(ref), - "github.com/devsy-org/api/pkg/apis/storage/v1.TaskStatus": schema_pkg_apis_storage_v1_TaskStatus(ref), - "github.com/devsy-org/api/pkg/apis/storage/v1.Team": schema_pkg_apis_storage_v1_Team(ref), - "github.com/devsy-org/api/pkg/apis/storage/v1.TeamList": schema_pkg_apis_storage_v1_TeamList(ref), - "github.com/devsy-org/api/pkg/apis/storage/v1.TeamSpec": schema_pkg_apis_storage_v1_TeamSpec(ref), - "github.com/devsy-org/api/pkg/apis/storage/v1.TeamStatus": schema_pkg_apis_storage_v1_TeamStatus(ref), - "github.com/devsy-org/api/pkg/apis/storage/v1.TemplateHelmChart": schema_pkg_apis_storage_v1_TemplateHelmChart(ref), - "github.com/devsy-org/api/pkg/apis/storage/v1.TemplateMetadata": schema_pkg_apis_storage_v1_TemplateMetadata(ref), - "github.com/devsy-org/api/pkg/apis/storage/v1.TemplateRef": schema_pkg_apis_storage_v1_TemplateRef(ref), - "github.com/devsy-org/api/pkg/apis/storage/v1.TerraformNodeTypeSpec": schema_pkg_apis_storage_v1_TerraformNodeTypeSpec(ref), - "github.com/devsy-org/api/pkg/apis/storage/v1.TerraformTemplate": schema_pkg_apis_storage_v1_TerraformTemplate(ref), - "github.com/devsy-org/api/pkg/apis/storage/v1.TerraformTemplateSourceGit": schema_pkg_apis_storage_v1_TerraformTemplateSourceGit(ref), - "github.com/devsy-org/api/pkg/apis/storage/v1.User": schema_pkg_apis_storage_v1_User(ref), - "github.com/devsy-org/api/pkg/apis/storage/v1.UserList": schema_pkg_apis_storage_v1_UserList(ref), - "github.com/devsy-org/api/pkg/apis/storage/v1.UserOrTeam": schema_pkg_apis_storage_v1_UserOrTeam(ref), - "github.com/devsy-org/api/pkg/apis/storage/v1.UserOrTeamEntity": schema_pkg_apis_storage_v1_UserOrTeamEntity(ref), - "github.com/devsy-org/api/pkg/apis/storage/v1.UserSpec": schema_pkg_apis_storage_v1_UserSpec(ref), - "github.com/devsy-org/api/pkg/apis/storage/v1.UserStatus": schema_pkg_apis_storage_v1_UserStatus(ref), - "github.com/devsy-org/api/pkg/apis/storage/v1.VaultAuthSpec": schema_pkg_apis_storage_v1_VaultAuthSpec(ref), - "github.com/devsy-org/api/pkg/apis/storage/v1.VaultIntegrationSpec": schema_pkg_apis_storage_v1_VaultIntegrationSpec(ref), - "github.com/devsy-org/api/pkg/apis/storage/v1.VirtualClusterAccessPoint": schema_pkg_apis_storage_v1_VirtualClusterAccessPoint(ref), - "github.com/devsy-org/api/pkg/apis/storage/v1.VirtualClusterAccessPointIngressSpec": schema_pkg_apis_storage_v1_VirtualClusterAccessPointIngressSpec(ref), - "github.com/devsy-org/api/pkg/apis/storage/v1.VirtualClusterClusterRef": schema_pkg_apis_storage_v1_VirtualClusterClusterRef(ref), - "github.com/devsy-org/api/pkg/apis/storage/v1.VirtualClusterCommonSpec": schema_pkg_apis_storage_v1_VirtualClusterCommonSpec(ref), - "github.com/devsy-org/api/pkg/apis/storage/v1.VirtualClusterHelmChart": schema_pkg_apis_storage_v1_VirtualClusterHelmChart(ref), - "github.com/devsy-org/api/pkg/apis/storage/v1.VirtualClusterHelmRelease": schema_pkg_apis_storage_v1_VirtualClusterHelmRelease(ref), - "github.com/devsy-org/api/pkg/apis/storage/v1.VirtualClusterHelmReleaseStatus": schema_pkg_apis_storage_v1_VirtualClusterHelmReleaseStatus(ref), - "github.com/devsy-org/api/pkg/apis/storage/v1.VirtualClusterInstance": schema_pkg_apis_storage_v1_VirtualClusterInstance(ref), - "github.com/devsy-org/api/pkg/apis/storage/v1.VirtualClusterInstanceList": schema_pkg_apis_storage_v1_VirtualClusterInstanceList(ref), - "github.com/devsy-org/api/pkg/apis/storage/v1.VirtualClusterInstanceSpec": schema_pkg_apis_storage_v1_VirtualClusterInstanceSpec(ref), - "github.com/devsy-org/api/pkg/apis/storage/v1.VirtualClusterInstanceStatus": schema_pkg_apis_storage_v1_VirtualClusterInstanceStatus(ref), - "github.com/devsy-org/api/pkg/apis/storage/v1.VirtualClusterInstanceTemplateDefinition": schema_pkg_apis_storage_v1_VirtualClusterInstanceTemplateDefinition(ref), - "github.com/devsy-org/api/pkg/apis/storage/v1.VirtualClusterProSpec": schema_pkg_apis_storage_v1_VirtualClusterProSpec(ref), - "github.com/devsy-org/api/pkg/apis/storage/v1.VirtualClusterSpaceTemplateDefinition": schema_pkg_apis_storage_v1_VirtualClusterSpaceTemplateDefinition(ref), - "github.com/devsy-org/api/pkg/apis/storage/v1.VirtualClusterStatus": schema_pkg_apis_storage_v1_VirtualClusterStatus(ref), - "github.com/devsy-org/api/pkg/apis/storage/v1.VirtualClusterTemplate": schema_pkg_apis_storage_v1_VirtualClusterTemplate(ref), - "github.com/devsy-org/api/pkg/apis/storage/v1.VirtualClusterTemplateDefinition": schema_pkg_apis_storage_v1_VirtualClusterTemplateDefinition(ref), - "github.com/devsy-org/api/pkg/apis/storage/v1.VirtualClusterTemplateList": schema_pkg_apis_storage_v1_VirtualClusterTemplateList(ref), - "github.com/devsy-org/api/pkg/apis/storage/v1.VirtualClusterTemplateSpaceTemplateRef": schema_pkg_apis_storage_v1_VirtualClusterTemplateSpaceTemplateRef(ref), - "github.com/devsy-org/api/pkg/apis/storage/v1.VirtualClusterTemplateSpec": schema_pkg_apis_storage_v1_VirtualClusterTemplateSpec(ref), - "github.com/devsy-org/api/pkg/apis/storage/v1.VirtualClusterTemplateStatus": schema_pkg_apis_storage_v1_VirtualClusterTemplateStatus(ref), - "github.com/devsy-org/api/pkg/apis/storage/v1.VirtualClusterTemplateVersion": schema_pkg_apis_storage_v1_VirtualClusterTemplateVersion(ref), - "github.com/devsy-org/api/pkg/apis/storage/v1.WorkspaceRef": schema_pkg_apis_storage_v1_WorkspaceRef(ref), - "github.com/devsy-org/api/pkg/apis/storage/v1.WorkspaceResolvedTarget": schema_pkg_apis_storage_v1_WorkspaceResolvedTarget(ref), - "github.com/devsy-org/api/pkg/apis/storage/v1.WorkspaceStatusResult": schema_pkg_apis_storage_v1_WorkspaceStatusResult(ref), - "github.com/devsy-org/api/pkg/apis/storage/v1.WorkspaceTarget": schema_pkg_apis_storage_v1_WorkspaceTarget(ref), - "github.com/devsy-org/api/pkg/apis/storage/v1.WorkspaceTargetName": schema_pkg_apis_storage_v1_WorkspaceTargetName(ref), - "github.com/devsy-org/api/pkg/apis/storage/v1.WorkspaceTargetNamespace": schema_pkg_apis_storage_v1_WorkspaceTargetNamespace(ref), - corev1.AWSElasticBlockStoreVolumeSource{}.OpenAPIModelName(): schema_k8sio_api_core_v1_AWSElasticBlockStoreVolumeSource(ref), - corev1.Affinity{}.OpenAPIModelName(): schema_k8sio_api_core_v1_Affinity(ref), - corev1.AppArmorProfile{}.OpenAPIModelName(): schema_k8sio_api_core_v1_AppArmorProfile(ref), - corev1.AttachedVolume{}.OpenAPIModelName(): schema_k8sio_api_core_v1_AttachedVolume(ref), - corev1.AvoidPods{}.OpenAPIModelName(): schema_k8sio_api_core_v1_AvoidPods(ref), - corev1.AzureDiskVolumeSource{}.OpenAPIModelName(): schema_k8sio_api_core_v1_AzureDiskVolumeSource(ref), - corev1.AzureFilePersistentVolumeSource{}.OpenAPIModelName(): schema_k8sio_api_core_v1_AzureFilePersistentVolumeSource(ref), - corev1.AzureFileVolumeSource{}.OpenAPIModelName(): schema_k8sio_api_core_v1_AzureFileVolumeSource(ref), - corev1.Binding{}.OpenAPIModelName(): schema_k8sio_api_core_v1_Binding(ref), - corev1.CSIPersistentVolumeSource{}.OpenAPIModelName(): schema_k8sio_api_core_v1_CSIPersistentVolumeSource(ref), - corev1.CSIVolumeSource{}.OpenAPIModelName(): schema_k8sio_api_core_v1_CSIVolumeSource(ref), - corev1.Capabilities{}.OpenAPIModelName(): schema_k8sio_api_core_v1_Capabilities(ref), - corev1.CephFSPersistentVolumeSource{}.OpenAPIModelName(): schema_k8sio_api_core_v1_CephFSPersistentVolumeSource(ref), - corev1.CephFSVolumeSource{}.OpenAPIModelName(): schema_k8sio_api_core_v1_CephFSVolumeSource(ref), - corev1.CinderPersistentVolumeSource{}.OpenAPIModelName(): schema_k8sio_api_core_v1_CinderPersistentVolumeSource(ref), - corev1.CinderVolumeSource{}.OpenAPIModelName(): schema_k8sio_api_core_v1_CinderVolumeSource(ref), - corev1.ClientIPConfig{}.OpenAPIModelName(): schema_k8sio_api_core_v1_ClientIPConfig(ref), - corev1.ClusterTrustBundleProjection{}.OpenAPIModelName(): schema_k8sio_api_core_v1_ClusterTrustBundleProjection(ref), - corev1.ComponentCondition{}.OpenAPIModelName(): schema_k8sio_api_core_v1_ComponentCondition(ref), - corev1.ComponentStatus{}.OpenAPIModelName(): schema_k8sio_api_core_v1_ComponentStatus(ref), - corev1.ComponentStatusList{}.OpenAPIModelName(): schema_k8sio_api_core_v1_ComponentStatusList(ref), - corev1.ConfigMap{}.OpenAPIModelName(): schema_k8sio_api_core_v1_ConfigMap(ref), - corev1.ConfigMapEnvSource{}.OpenAPIModelName(): schema_k8sio_api_core_v1_ConfigMapEnvSource(ref), - corev1.ConfigMapKeySelector{}.OpenAPIModelName(): schema_k8sio_api_core_v1_ConfigMapKeySelector(ref), - corev1.ConfigMapList{}.OpenAPIModelName(): schema_k8sio_api_core_v1_ConfigMapList(ref), - corev1.ConfigMapNodeConfigSource{}.OpenAPIModelName(): schema_k8sio_api_core_v1_ConfigMapNodeConfigSource(ref), - corev1.ConfigMapProjection{}.OpenAPIModelName(): schema_k8sio_api_core_v1_ConfigMapProjection(ref), - corev1.ConfigMapVolumeSource{}.OpenAPIModelName(): schema_k8sio_api_core_v1_ConfigMapVolumeSource(ref), - corev1.Container{}.OpenAPIModelName(): schema_k8sio_api_core_v1_Container(ref), - corev1.ContainerExtendedResourceRequest{}.OpenAPIModelName(): schema_k8sio_api_core_v1_ContainerExtendedResourceRequest(ref), - corev1.ContainerImage{}.OpenAPIModelName(): schema_k8sio_api_core_v1_ContainerImage(ref), - corev1.ContainerPort{}.OpenAPIModelName(): schema_k8sio_api_core_v1_ContainerPort(ref), - corev1.ContainerResizePolicy{}.OpenAPIModelName(): schema_k8sio_api_core_v1_ContainerResizePolicy(ref), - corev1.ContainerRestartRule{}.OpenAPIModelName(): schema_k8sio_api_core_v1_ContainerRestartRule(ref), - corev1.ContainerRestartRuleOnExitCodes{}.OpenAPIModelName(): schema_k8sio_api_core_v1_ContainerRestartRuleOnExitCodes(ref), - corev1.ContainerState{}.OpenAPIModelName(): schema_k8sio_api_core_v1_ContainerState(ref), - corev1.ContainerStateRunning{}.OpenAPIModelName(): schema_k8sio_api_core_v1_ContainerStateRunning(ref), - corev1.ContainerStateTerminated{}.OpenAPIModelName(): schema_k8sio_api_core_v1_ContainerStateTerminated(ref), - corev1.ContainerStateWaiting{}.OpenAPIModelName(): schema_k8sio_api_core_v1_ContainerStateWaiting(ref), - corev1.ContainerStatus{}.OpenAPIModelName(): schema_k8sio_api_core_v1_ContainerStatus(ref), - corev1.ContainerUser{}.OpenAPIModelName(): schema_k8sio_api_core_v1_ContainerUser(ref), - corev1.DaemonEndpoint{}.OpenAPIModelName(): schema_k8sio_api_core_v1_DaemonEndpoint(ref), - corev1.DownwardAPIProjection{}.OpenAPIModelName(): schema_k8sio_api_core_v1_DownwardAPIProjection(ref), - corev1.DownwardAPIVolumeFile{}.OpenAPIModelName(): schema_k8sio_api_core_v1_DownwardAPIVolumeFile(ref), - corev1.DownwardAPIVolumeSource{}.OpenAPIModelName(): schema_k8sio_api_core_v1_DownwardAPIVolumeSource(ref), - corev1.EmptyDirVolumeSource{}.OpenAPIModelName(): schema_k8sio_api_core_v1_EmptyDirVolumeSource(ref), - corev1.EndpointAddress{}.OpenAPIModelName(): schema_k8sio_api_core_v1_EndpointAddress(ref), - corev1.EndpointPort{}.OpenAPIModelName(): schema_k8sio_api_core_v1_EndpointPort(ref), - corev1.EndpointSubset{}.OpenAPIModelName(): schema_k8sio_api_core_v1_EndpointSubset(ref), - corev1.Endpoints{}.OpenAPIModelName(): schema_k8sio_api_core_v1_Endpoints(ref), - corev1.EndpointsList{}.OpenAPIModelName(): schema_k8sio_api_core_v1_EndpointsList(ref), - corev1.EnvFromSource{}.OpenAPIModelName(): schema_k8sio_api_core_v1_EnvFromSource(ref), - corev1.EnvVar{}.OpenAPIModelName(): schema_k8sio_api_core_v1_EnvVar(ref), - corev1.EnvVarSource{}.OpenAPIModelName(): schema_k8sio_api_core_v1_EnvVarSource(ref), - corev1.EphemeralContainer{}.OpenAPIModelName(): schema_k8sio_api_core_v1_EphemeralContainer(ref), - corev1.EphemeralContainerCommon{}.OpenAPIModelName(): schema_k8sio_api_core_v1_EphemeralContainerCommon(ref), - corev1.EphemeralVolumeSource{}.OpenAPIModelName(): schema_k8sio_api_core_v1_EphemeralVolumeSource(ref), - corev1.Event{}.OpenAPIModelName(): schema_k8sio_api_core_v1_Event(ref), - corev1.EventList{}.OpenAPIModelName(): schema_k8sio_api_core_v1_EventList(ref), - corev1.EventSeries{}.OpenAPIModelName(): schema_k8sio_api_core_v1_EventSeries(ref), - corev1.EventSource{}.OpenAPIModelName(): schema_k8sio_api_core_v1_EventSource(ref), - corev1.ExecAction{}.OpenAPIModelName(): schema_k8sio_api_core_v1_ExecAction(ref), - corev1.FCVolumeSource{}.OpenAPIModelName(): schema_k8sio_api_core_v1_FCVolumeSource(ref), - corev1.FileKeySelector{}.OpenAPIModelName(): schema_k8sio_api_core_v1_FileKeySelector(ref), - corev1.FlexPersistentVolumeSource{}.OpenAPIModelName(): schema_k8sio_api_core_v1_FlexPersistentVolumeSource(ref), - corev1.FlexVolumeSource{}.OpenAPIModelName(): schema_k8sio_api_core_v1_FlexVolumeSource(ref), - corev1.FlockerVolumeSource{}.OpenAPIModelName(): schema_k8sio_api_core_v1_FlockerVolumeSource(ref), - corev1.GCEPersistentDiskVolumeSource{}.OpenAPIModelName(): schema_k8sio_api_core_v1_GCEPersistentDiskVolumeSource(ref), - corev1.GRPCAction{}.OpenAPIModelName(): schema_k8sio_api_core_v1_GRPCAction(ref), - corev1.GitRepoVolumeSource{}.OpenAPIModelName(): schema_k8sio_api_core_v1_GitRepoVolumeSource(ref), - corev1.GlusterfsPersistentVolumeSource{}.OpenAPIModelName(): schema_k8sio_api_core_v1_GlusterfsPersistentVolumeSource(ref), - corev1.GlusterfsVolumeSource{}.OpenAPIModelName(): schema_k8sio_api_core_v1_GlusterfsVolumeSource(ref), - corev1.HTTPGetAction{}.OpenAPIModelName(): schema_k8sio_api_core_v1_HTTPGetAction(ref), - corev1.HTTPHeader{}.OpenAPIModelName(): schema_k8sio_api_core_v1_HTTPHeader(ref), - corev1.HostAlias{}.OpenAPIModelName(): schema_k8sio_api_core_v1_HostAlias(ref), - corev1.HostIP{}.OpenAPIModelName(): schema_k8sio_api_core_v1_HostIP(ref), - corev1.HostPathVolumeSource{}.OpenAPIModelName(): schema_k8sio_api_core_v1_HostPathVolumeSource(ref), - corev1.ISCSIPersistentVolumeSource{}.OpenAPIModelName(): schema_k8sio_api_core_v1_ISCSIPersistentVolumeSource(ref), - corev1.ISCSIVolumeSource{}.OpenAPIModelName(): schema_k8sio_api_core_v1_ISCSIVolumeSource(ref), - corev1.ImageVolumeSource{}.OpenAPIModelName(): schema_k8sio_api_core_v1_ImageVolumeSource(ref), - corev1.KeyToPath{}.OpenAPIModelName(): schema_k8sio_api_core_v1_KeyToPath(ref), - corev1.Lifecycle{}.OpenAPIModelName(): schema_k8sio_api_core_v1_Lifecycle(ref), - corev1.LifecycleHandler{}.OpenAPIModelName(): schema_k8sio_api_core_v1_LifecycleHandler(ref), - corev1.LimitRange{}.OpenAPIModelName(): schema_k8sio_api_core_v1_LimitRange(ref), - corev1.LimitRangeItem{}.OpenAPIModelName(): schema_k8sio_api_core_v1_LimitRangeItem(ref), - corev1.LimitRangeList{}.OpenAPIModelName(): schema_k8sio_api_core_v1_LimitRangeList(ref), - corev1.LimitRangeSpec{}.OpenAPIModelName(): schema_k8sio_api_core_v1_LimitRangeSpec(ref), - corev1.LinuxContainerUser{}.OpenAPIModelName(): schema_k8sio_api_core_v1_LinuxContainerUser(ref), - corev1.List{}.OpenAPIModelName(): schema_k8sio_api_core_v1_List(ref), - corev1.LoadBalancerIngress{}.OpenAPIModelName(): schema_k8sio_api_core_v1_LoadBalancerIngress(ref), - corev1.LoadBalancerStatus{}.OpenAPIModelName(): schema_k8sio_api_core_v1_LoadBalancerStatus(ref), - corev1.LocalObjectReference{}.OpenAPIModelName(): schema_k8sio_api_core_v1_LocalObjectReference(ref), - corev1.LocalVolumeSource{}.OpenAPIModelName(): schema_k8sio_api_core_v1_LocalVolumeSource(ref), - corev1.ModifyVolumeStatus{}.OpenAPIModelName(): schema_k8sio_api_core_v1_ModifyVolumeStatus(ref), - corev1.NFSVolumeSource{}.OpenAPIModelName(): schema_k8sio_api_core_v1_NFSVolumeSource(ref), - corev1.Namespace{}.OpenAPIModelName(): schema_k8sio_api_core_v1_Namespace(ref), - corev1.NamespaceCondition{}.OpenAPIModelName(): schema_k8sio_api_core_v1_NamespaceCondition(ref), - corev1.NamespaceList{}.OpenAPIModelName(): schema_k8sio_api_core_v1_NamespaceList(ref), - corev1.NamespaceSpec{}.OpenAPIModelName(): schema_k8sio_api_core_v1_NamespaceSpec(ref), - corev1.NamespaceStatus{}.OpenAPIModelName(): schema_k8sio_api_core_v1_NamespaceStatus(ref), - corev1.Node{}.OpenAPIModelName(): schema_k8sio_api_core_v1_Node(ref), - corev1.NodeAddress{}.OpenAPIModelName(): schema_k8sio_api_core_v1_NodeAddress(ref), - corev1.NodeAffinity{}.OpenAPIModelName(): schema_k8sio_api_core_v1_NodeAffinity(ref), - corev1.NodeCondition{}.OpenAPIModelName(): schema_k8sio_api_core_v1_NodeCondition(ref), - corev1.NodeConfigSource{}.OpenAPIModelName(): schema_k8sio_api_core_v1_NodeConfigSource(ref), - corev1.NodeConfigStatus{}.OpenAPIModelName(): schema_k8sio_api_core_v1_NodeConfigStatus(ref), - corev1.NodeDaemonEndpoints{}.OpenAPIModelName(): schema_k8sio_api_core_v1_NodeDaemonEndpoints(ref), - corev1.NodeFeatures{}.OpenAPIModelName(): schema_k8sio_api_core_v1_NodeFeatures(ref), - corev1.NodeList{}.OpenAPIModelName(): schema_k8sio_api_core_v1_NodeList(ref), - corev1.NodeProxyOptions{}.OpenAPIModelName(): schema_k8sio_api_core_v1_NodeProxyOptions(ref), - corev1.NodeRuntimeHandler{}.OpenAPIModelName(): schema_k8sio_api_core_v1_NodeRuntimeHandler(ref), - corev1.NodeRuntimeHandlerFeatures{}.OpenAPIModelName(): schema_k8sio_api_core_v1_NodeRuntimeHandlerFeatures(ref), - corev1.NodeSelector{}.OpenAPIModelName(): schema_k8sio_api_core_v1_NodeSelector(ref), - corev1.NodeSelectorRequirement{}.OpenAPIModelName(): schema_k8sio_api_core_v1_NodeSelectorRequirement(ref), - corev1.NodeSelectorTerm{}.OpenAPIModelName(): schema_k8sio_api_core_v1_NodeSelectorTerm(ref), - corev1.NodeSpec{}.OpenAPIModelName(): schema_k8sio_api_core_v1_NodeSpec(ref), - corev1.NodeStatus{}.OpenAPIModelName(): schema_k8sio_api_core_v1_NodeStatus(ref), - corev1.NodeSwapStatus{}.OpenAPIModelName(): schema_k8sio_api_core_v1_NodeSwapStatus(ref), - corev1.NodeSystemInfo{}.OpenAPIModelName(): schema_k8sio_api_core_v1_NodeSystemInfo(ref), - corev1.ObjectFieldSelector{}.OpenAPIModelName(): schema_k8sio_api_core_v1_ObjectFieldSelector(ref), - corev1.ObjectReference{}.OpenAPIModelName(): schema_k8sio_api_core_v1_ObjectReference(ref), - corev1.PersistentVolume{}.OpenAPIModelName(): schema_k8sio_api_core_v1_PersistentVolume(ref), - corev1.PersistentVolumeClaim{}.OpenAPIModelName(): schema_k8sio_api_core_v1_PersistentVolumeClaim(ref), - corev1.PersistentVolumeClaimCondition{}.OpenAPIModelName(): schema_k8sio_api_core_v1_PersistentVolumeClaimCondition(ref), - corev1.PersistentVolumeClaimList{}.OpenAPIModelName(): schema_k8sio_api_core_v1_PersistentVolumeClaimList(ref), - corev1.PersistentVolumeClaimSpec{}.OpenAPIModelName(): schema_k8sio_api_core_v1_PersistentVolumeClaimSpec(ref), - corev1.PersistentVolumeClaimStatus{}.OpenAPIModelName(): schema_k8sio_api_core_v1_PersistentVolumeClaimStatus(ref), - corev1.PersistentVolumeClaimTemplate{}.OpenAPIModelName(): schema_k8sio_api_core_v1_PersistentVolumeClaimTemplate(ref), - corev1.PersistentVolumeClaimVolumeSource{}.OpenAPIModelName(): schema_k8sio_api_core_v1_PersistentVolumeClaimVolumeSource(ref), - corev1.PersistentVolumeList{}.OpenAPIModelName(): schema_k8sio_api_core_v1_PersistentVolumeList(ref), - corev1.PersistentVolumeSource{}.OpenAPIModelName(): schema_k8sio_api_core_v1_PersistentVolumeSource(ref), - corev1.PersistentVolumeSpec{}.OpenAPIModelName(): schema_k8sio_api_core_v1_PersistentVolumeSpec(ref), - corev1.PersistentVolumeStatus{}.OpenAPIModelName(): schema_k8sio_api_core_v1_PersistentVolumeStatus(ref), - corev1.PhotonPersistentDiskVolumeSource{}.OpenAPIModelName(): schema_k8sio_api_core_v1_PhotonPersistentDiskVolumeSource(ref), - corev1.Pod{}.OpenAPIModelName(): schema_k8sio_api_core_v1_Pod(ref), - corev1.PodAffinity{}.OpenAPIModelName(): schema_k8sio_api_core_v1_PodAffinity(ref), - corev1.PodAffinityTerm{}.OpenAPIModelName(): schema_k8sio_api_core_v1_PodAffinityTerm(ref), - corev1.PodAntiAffinity{}.OpenAPIModelName(): schema_k8sio_api_core_v1_PodAntiAffinity(ref), - corev1.PodAttachOptions{}.OpenAPIModelName(): schema_k8sio_api_core_v1_PodAttachOptions(ref), - corev1.PodCertificateProjection{}.OpenAPIModelName(): schema_k8sio_api_core_v1_PodCertificateProjection(ref), - corev1.PodCondition{}.OpenAPIModelName(): schema_k8sio_api_core_v1_PodCondition(ref), - corev1.PodDNSConfig{}.OpenAPIModelName(): schema_k8sio_api_core_v1_PodDNSConfig(ref), - corev1.PodDNSConfigOption{}.OpenAPIModelName(): schema_k8sio_api_core_v1_PodDNSConfigOption(ref), - corev1.PodExecOptions{}.OpenAPIModelName(): schema_k8sio_api_core_v1_PodExecOptions(ref), - corev1.PodExtendedResourceClaimStatus{}.OpenAPIModelName(): schema_k8sio_api_core_v1_PodExtendedResourceClaimStatus(ref), - corev1.PodIP{}.OpenAPIModelName(): schema_k8sio_api_core_v1_PodIP(ref), - corev1.PodList{}.OpenAPIModelName(): schema_k8sio_api_core_v1_PodList(ref), - corev1.PodLogOptions{}.OpenAPIModelName(): schema_k8sio_api_core_v1_PodLogOptions(ref), - corev1.PodOS{}.OpenAPIModelName(): schema_k8sio_api_core_v1_PodOS(ref), - corev1.PodPortForwardOptions{}.OpenAPIModelName(): schema_k8sio_api_core_v1_PodPortForwardOptions(ref), - corev1.PodProxyOptions{}.OpenAPIModelName(): schema_k8sio_api_core_v1_PodProxyOptions(ref), - corev1.PodReadinessGate{}.OpenAPIModelName(): schema_k8sio_api_core_v1_PodReadinessGate(ref), - corev1.PodResourceClaim{}.OpenAPIModelName(): schema_k8sio_api_core_v1_PodResourceClaim(ref), - corev1.PodResourceClaimStatus{}.OpenAPIModelName(): schema_k8sio_api_core_v1_PodResourceClaimStatus(ref), - corev1.PodSchedulingGate{}.OpenAPIModelName(): schema_k8sio_api_core_v1_PodSchedulingGate(ref), - corev1.PodSecurityContext{}.OpenAPIModelName(): schema_k8sio_api_core_v1_PodSecurityContext(ref), - corev1.PodSignature{}.OpenAPIModelName(): schema_k8sio_api_core_v1_PodSignature(ref), - corev1.PodSpec{}.OpenAPIModelName(): schema_k8sio_api_core_v1_PodSpec(ref), - corev1.PodStatus{}.OpenAPIModelName(): schema_k8sio_api_core_v1_PodStatus(ref), - corev1.PodStatusResult{}.OpenAPIModelName(): schema_k8sio_api_core_v1_PodStatusResult(ref), - corev1.PodTemplate{}.OpenAPIModelName(): schema_k8sio_api_core_v1_PodTemplate(ref), - corev1.PodTemplateList{}.OpenAPIModelName(): schema_k8sio_api_core_v1_PodTemplateList(ref), - corev1.PodTemplateSpec{}.OpenAPIModelName(): schema_k8sio_api_core_v1_PodTemplateSpec(ref), - corev1.PortStatus{}.OpenAPIModelName(): schema_k8sio_api_core_v1_PortStatus(ref), - corev1.PortworxVolumeSource{}.OpenAPIModelName(): schema_k8sio_api_core_v1_PortworxVolumeSource(ref), - corev1.PreferAvoidPodsEntry{}.OpenAPIModelName(): schema_k8sio_api_core_v1_PreferAvoidPodsEntry(ref), - corev1.PreferredSchedulingTerm{}.OpenAPIModelName(): schema_k8sio_api_core_v1_PreferredSchedulingTerm(ref), - corev1.Probe{}.OpenAPIModelName(): schema_k8sio_api_core_v1_Probe(ref), - corev1.ProbeHandler{}.OpenAPIModelName(): schema_k8sio_api_core_v1_ProbeHandler(ref), - corev1.ProjectedVolumeSource{}.OpenAPIModelName(): schema_k8sio_api_core_v1_ProjectedVolumeSource(ref), - corev1.QuobyteVolumeSource{}.OpenAPIModelName(): schema_k8sio_api_core_v1_QuobyteVolumeSource(ref), - corev1.RBDPersistentVolumeSource{}.OpenAPIModelName(): schema_k8sio_api_core_v1_RBDPersistentVolumeSource(ref), - corev1.RBDVolumeSource{}.OpenAPIModelName(): schema_k8sio_api_core_v1_RBDVolumeSource(ref), - corev1.RangeAllocation{}.OpenAPIModelName(): schema_k8sio_api_core_v1_RangeAllocation(ref), - corev1.ReplicationController{}.OpenAPIModelName(): schema_k8sio_api_core_v1_ReplicationController(ref), - corev1.ReplicationControllerCondition{}.OpenAPIModelName(): schema_k8sio_api_core_v1_ReplicationControllerCondition(ref), - corev1.ReplicationControllerList{}.OpenAPIModelName(): schema_k8sio_api_core_v1_ReplicationControllerList(ref), - corev1.ReplicationControllerSpec{}.OpenAPIModelName(): schema_k8sio_api_core_v1_ReplicationControllerSpec(ref), - corev1.ReplicationControllerStatus{}.OpenAPIModelName(): schema_k8sio_api_core_v1_ReplicationControllerStatus(ref), - corev1.ResourceClaim{}.OpenAPIModelName(): schema_k8sio_api_core_v1_ResourceClaim(ref), - corev1.ResourceFieldSelector{}.OpenAPIModelName(): schema_k8sio_api_core_v1_ResourceFieldSelector(ref), - corev1.ResourceHealth{}.OpenAPIModelName(): schema_k8sio_api_core_v1_ResourceHealth(ref), - corev1.ResourceQuota{}.OpenAPIModelName(): schema_k8sio_api_core_v1_ResourceQuota(ref), - corev1.ResourceQuotaList{}.OpenAPIModelName(): schema_k8sio_api_core_v1_ResourceQuotaList(ref), - corev1.ResourceQuotaSpec{}.OpenAPIModelName(): schema_k8sio_api_core_v1_ResourceQuotaSpec(ref), - corev1.ResourceQuotaStatus{}.OpenAPIModelName(): schema_k8sio_api_core_v1_ResourceQuotaStatus(ref), - corev1.ResourceRequirements{}.OpenAPIModelName(): schema_k8sio_api_core_v1_ResourceRequirements(ref), - corev1.ResourceStatus{}.OpenAPIModelName(): schema_k8sio_api_core_v1_ResourceStatus(ref), - corev1.SELinuxOptions{}.OpenAPIModelName(): schema_k8sio_api_core_v1_SELinuxOptions(ref), - corev1.ScaleIOPersistentVolumeSource{}.OpenAPIModelName(): schema_k8sio_api_core_v1_ScaleIOPersistentVolumeSource(ref), - corev1.ScaleIOVolumeSource{}.OpenAPIModelName(): schema_k8sio_api_core_v1_ScaleIOVolumeSource(ref), - corev1.ScopeSelector{}.OpenAPIModelName(): schema_k8sio_api_core_v1_ScopeSelector(ref), - corev1.ScopedResourceSelectorRequirement{}.OpenAPIModelName(): schema_k8sio_api_core_v1_ScopedResourceSelectorRequirement(ref), - corev1.SeccompProfile{}.OpenAPIModelName(): schema_k8sio_api_core_v1_SeccompProfile(ref), - corev1.Secret{}.OpenAPIModelName(): schema_k8sio_api_core_v1_Secret(ref), - corev1.SecretEnvSource{}.OpenAPIModelName(): schema_k8sio_api_core_v1_SecretEnvSource(ref), - corev1.SecretKeySelector{}.OpenAPIModelName(): schema_k8sio_api_core_v1_SecretKeySelector(ref), - corev1.SecretList{}.OpenAPIModelName(): schema_k8sio_api_core_v1_SecretList(ref), - corev1.SecretProjection{}.OpenAPIModelName(): schema_k8sio_api_core_v1_SecretProjection(ref), - corev1.SecretReference{}.OpenAPIModelName(): schema_k8sio_api_core_v1_SecretReference(ref), - corev1.SecretVolumeSource{}.OpenAPIModelName(): schema_k8sio_api_core_v1_SecretVolumeSource(ref), - corev1.SecurityContext{}.OpenAPIModelName(): schema_k8sio_api_core_v1_SecurityContext(ref), - corev1.SerializedReference{}.OpenAPIModelName(): schema_k8sio_api_core_v1_SerializedReference(ref), - corev1.Service{}.OpenAPIModelName(): schema_k8sio_api_core_v1_Service(ref), - corev1.ServiceAccount{}.OpenAPIModelName(): schema_k8sio_api_core_v1_ServiceAccount(ref), - corev1.ServiceAccountList{}.OpenAPIModelName(): schema_k8sio_api_core_v1_ServiceAccountList(ref), - corev1.ServiceAccountTokenProjection{}.OpenAPIModelName(): schema_k8sio_api_core_v1_ServiceAccountTokenProjection(ref), - corev1.ServiceList{}.OpenAPIModelName(): schema_k8sio_api_core_v1_ServiceList(ref), - corev1.ServicePort{}.OpenAPIModelName(): schema_k8sio_api_core_v1_ServicePort(ref), - corev1.ServiceProxyOptions{}.OpenAPIModelName(): schema_k8sio_api_core_v1_ServiceProxyOptions(ref), - corev1.ServiceSpec{}.OpenAPIModelName(): schema_k8sio_api_core_v1_ServiceSpec(ref), - corev1.ServiceStatus{}.OpenAPIModelName(): schema_k8sio_api_core_v1_ServiceStatus(ref), - corev1.SessionAffinityConfig{}.OpenAPIModelName(): schema_k8sio_api_core_v1_SessionAffinityConfig(ref), - corev1.SleepAction{}.OpenAPIModelName(): schema_k8sio_api_core_v1_SleepAction(ref), - corev1.StorageOSPersistentVolumeSource{}.OpenAPIModelName(): schema_k8sio_api_core_v1_StorageOSPersistentVolumeSource(ref), - corev1.StorageOSVolumeSource{}.OpenAPIModelName(): schema_k8sio_api_core_v1_StorageOSVolumeSource(ref), - corev1.Sysctl{}.OpenAPIModelName(): schema_k8sio_api_core_v1_Sysctl(ref), - corev1.TCPSocketAction{}.OpenAPIModelName(): schema_k8sio_api_core_v1_TCPSocketAction(ref), - corev1.Taint{}.OpenAPIModelName(): schema_k8sio_api_core_v1_Taint(ref), - corev1.Toleration{}.OpenAPIModelName(): schema_k8sio_api_core_v1_Toleration(ref), - corev1.TopologySelectorLabelRequirement{}.OpenAPIModelName(): schema_k8sio_api_core_v1_TopologySelectorLabelRequirement(ref), - corev1.TopologySelectorTerm{}.OpenAPIModelName(): schema_k8sio_api_core_v1_TopologySelectorTerm(ref), - corev1.TopologySpreadConstraint{}.OpenAPIModelName(): schema_k8sio_api_core_v1_TopologySpreadConstraint(ref), - corev1.TypedLocalObjectReference{}.OpenAPIModelName(): schema_k8sio_api_core_v1_TypedLocalObjectReference(ref), - corev1.TypedObjectReference{}.OpenAPIModelName(): schema_k8sio_api_core_v1_TypedObjectReference(ref), - corev1.Volume{}.OpenAPIModelName(): schema_k8sio_api_core_v1_Volume(ref), - corev1.VolumeDevice{}.OpenAPIModelName(): schema_k8sio_api_core_v1_VolumeDevice(ref), - corev1.VolumeMount{}.OpenAPIModelName(): schema_k8sio_api_core_v1_VolumeMount(ref), - corev1.VolumeMountStatus{}.OpenAPIModelName(): schema_k8sio_api_core_v1_VolumeMountStatus(ref), - corev1.VolumeNodeAffinity{}.OpenAPIModelName(): schema_k8sio_api_core_v1_VolumeNodeAffinity(ref), - corev1.VolumeProjection{}.OpenAPIModelName(): schema_k8sio_api_core_v1_VolumeProjection(ref), - corev1.VolumeResourceRequirements{}.OpenAPIModelName(): schema_k8sio_api_core_v1_VolumeResourceRequirements(ref), - corev1.VolumeSource{}.OpenAPIModelName(): schema_k8sio_api_core_v1_VolumeSource(ref), - corev1.VsphereVirtualDiskVolumeSource{}.OpenAPIModelName(): schema_k8sio_api_core_v1_VsphereVirtualDiskVolumeSource(ref), - corev1.WeightedPodAffinityTerm{}.OpenAPIModelName(): schema_k8sio_api_core_v1_WeightedPodAffinityTerm(ref), - corev1.WindowsSecurityContextOptions{}.OpenAPIModelName(): schema_k8sio_api_core_v1_WindowsSecurityContextOptions(ref), - corev1.WorkloadReference{}.OpenAPIModelName(): schema_k8sio_api_core_v1_WorkloadReference(ref), - metav1.APIGroup{}.OpenAPIModelName(): schema_pkg_apis_meta_v1_APIGroup(ref), - metav1.APIGroupList{}.OpenAPIModelName(): schema_pkg_apis_meta_v1_APIGroupList(ref), - metav1.APIResource{}.OpenAPIModelName(): schema_pkg_apis_meta_v1_APIResource(ref), - metav1.APIResourceList{}.OpenAPIModelName(): schema_pkg_apis_meta_v1_APIResourceList(ref), - metav1.APIVersions{}.OpenAPIModelName(): schema_pkg_apis_meta_v1_APIVersions(ref), - metav1.ApplyOptions{}.OpenAPIModelName(): schema_pkg_apis_meta_v1_ApplyOptions(ref), - metav1.Condition{}.OpenAPIModelName(): schema_pkg_apis_meta_v1_Condition(ref), - metav1.CreateOptions{}.OpenAPIModelName(): schema_pkg_apis_meta_v1_CreateOptions(ref), - metav1.DeleteOptions{}.OpenAPIModelName(): schema_pkg_apis_meta_v1_DeleteOptions(ref), - metav1.Duration{}.OpenAPIModelName(): schema_pkg_apis_meta_v1_Duration(ref), - metav1.FieldSelectorRequirement{}.OpenAPIModelName(): schema_pkg_apis_meta_v1_FieldSelectorRequirement(ref), - metav1.FieldsV1{}.OpenAPIModelName(): schema_pkg_apis_meta_v1_FieldsV1(ref), - metav1.GetOptions{}.OpenAPIModelName(): schema_pkg_apis_meta_v1_GetOptions(ref), - metav1.GroupKind{}.OpenAPIModelName(): schema_pkg_apis_meta_v1_GroupKind(ref), - metav1.GroupResource{}.OpenAPIModelName(): schema_pkg_apis_meta_v1_GroupResource(ref), - metav1.GroupVersion{}.OpenAPIModelName(): schema_pkg_apis_meta_v1_GroupVersion(ref), - metav1.GroupVersionForDiscovery{}.OpenAPIModelName(): schema_pkg_apis_meta_v1_GroupVersionForDiscovery(ref), - metav1.GroupVersionKind{}.OpenAPIModelName(): schema_pkg_apis_meta_v1_GroupVersionKind(ref), - metav1.GroupVersionResource{}.OpenAPIModelName(): schema_pkg_apis_meta_v1_GroupVersionResource(ref), - metav1.InternalEvent{}.OpenAPIModelName(): schema_pkg_apis_meta_v1_InternalEvent(ref), - metav1.LabelSelector{}.OpenAPIModelName(): schema_pkg_apis_meta_v1_LabelSelector(ref), - metav1.LabelSelectorRequirement{}.OpenAPIModelName(): schema_pkg_apis_meta_v1_LabelSelectorRequirement(ref), - metav1.List{}.OpenAPIModelName(): schema_pkg_apis_meta_v1_List(ref), - metav1.ListMeta{}.OpenAPIModelName(): schema_pkg_apis_meta_v1_ListMeta(ref), - metav1.ListOptions{}.OpenAPIModelName(): schema_pkg_apis_meta_v1_ListOptions(ref), - metav1.ManagedFieldsEntry{}.OpenAPIModelName(): schema_pkg_apis_meta_v1_ManagedFieldsEntry(ref), - metav1.MicroTime{}.OpenAPIModelName(): schema_pkg_apis_meta_v1_MicroTime(ref), - metav1.ObjectMeta{}.OpenAPIModelName(): schema_pkg_apis_meta_v1_ObjectMeta(ref), - metav1.OwnerReference{}.OpenAPIModelName(): schema_pkg_apis_meta_v1_OwnerReference(ref), - metav1.PartialObjectMetadata{}.OpenAPIModelName(): schema_pkg_apis_meta_v1_PartialObjectMetadata(ref), - metav1.PartialObjectMetadataList{}.OpenAPIModelName(): schema_pkg_apis_meta_v1_PartialObjectMetadataList(ref), - metav1.Patch{}.OpenAPIModelName(): schema_pkg_apis_meta_v1_Patch(ref), - metav1.PatchOptions{}.OpenAPIModelName(): schema_pkg_apis_meta_v1_PatchOptions(ref), - metav1.Preconditions{}.OpenAPIModelName(): schema_pkg_apis_meta_v1_Preconditions(ref), - metav1.RootPaths{}.OpenAPIModelName(): schema_pkg_apis_meta_v1_RootPaths(ref), - metav1.ServerAddressByClientCIDR{}.OpenAPIModelName(): schema_pkg_apis_meta_v1_ServerAddressByClientCIDR(ref), - metav1.Status{}.OpenAPIModelName(): schema_pkg_apis_meta_v1_Status(ref), - metav1.StatusCause{}.OpenAPIModelName(): schema_pkg_apis_meta_v1_StatusCause(ref), - metav1.StatusDetails{}.OpenAPIModelName(): schema_pkg_apis_meta_v1_StatusDetails(ref), - metav1.Table{}.OpenAPIModelName(): schema_pkg_apis_meta_v1_Table(ref), - metav1.TableColumnDefinition{}.OpenAPIModelName(): schema_pkg_apis_meta_v1_TableColumnDefinition(ref), - metav1.TableOptions{}.OpenAPIModelName(): schema_pkg_apis_meta_v1_TableOptions(ref), - metav1.TableRow{}.OpenAPIModelName(): schema_pkg_apis_meta_v1_TableRow(ref), - metav1.TableRowCondition{}.OpenAPIModelName(): schema_pkg_apis_meta_v1_TableRowCondition(ref), - metav1.Time{}.OpenAPIModelName(): schema_pkg_apis_meta_v1_Time(ref), - metav1.Timestamp{}.OpenAPIModelName(): schema_pkg_apis_meta_v1_Timestamp(ref), - metav1.TypeMeta{}.OpenAPIModelName(): schema_pkg_apis_meta_v1_TypeMeta(ref), - metav1.UpdateOptions{}.OpenAPIModelName(): schema_pkg_apis_meta_v1_UpdateOptions(ref), - metav1.WatchEvent{}.OpenAPIModelName(): schema_pkg_apis_meta_v1_WatchEvent(ref), - "k8s.io/metrics/pkg/apis/metrics/v1beta1.ContainerMetrics": schema_pkg_apis_metrics_v1beta1_ContainerMetrics(ref), - "k8s.io/metrics/pkg/apis/metrics/v1beta1.NodeMetrics": schema_pkg_apis_metrics_v1beta1_NodeMetrics(ref), - "k8s.io/metrics/pkg/apis/metrics/v1beta1.NodeMetricsList": schema_pkg_apis_metrics_v1beta1_NodeMetricsList(ref), - "k8s.io/metrics/pkg/apis/metrics/v1beta1.PodMetrics": schema_pkg_apis_metrics_v1beta1_PodMetrics(ref), - "k8s.io/metrics/pkg/apis/metrics/v1beta1.PodMetricsList": schema_pkg_apis_metrics_v1beta1_PodMetricsList(ref), - } -} - -func schema_devsy_org_admin_apis_pkg_licenseapi_Analytics(ref common.ReferenceCallback) common.OpenAPIDefinition { - return common.OpenAPIDefinition{ - Schema: spec.Schema{ - SchemaProps: spec.SchemaProps{ - Description: "Analytics is a struct that represents the analytics server and the requests that should be sent to it. This information is sent to Devsy instances when they check in with the license server.", + "github.com/devsy-org/api/pkg/apis/audit/v1.Event": schema_pkg_apis_audit_v1_Event(ref), + "github.com/devsy-org/api/pkg/apis/audit/v1.EventList": schema_pkg_apis_audit_v1_EventList(ref), + "github.com/devsy-org/api/pkg/apis/audit/v1.ObjectReference": schema_pkg_apis_audit_v1_ObjectReference(ref), + "github.com/devsy-org/api/pkg/apis/management/v1.AgentAnalyticsSpec": schema_pkg_apis_management_v1_AgentAnalyticsSpec(ref), + "github.com/devsy-org/api/pkg/apis/management/v1.AgentAuditConfig": schema_pkg_apis_management_v1_AgentAuditConfig(ref), + "github.com/devsy-org/api/pkg/apis/management/v1.AgentAuditEvent": schema_pkg_apis_management_v1_AgentAuditEvent(ref), + "github.com/devsy-org/api/pkg/apis/management/v1.AgentAuditEventList": schema_pkg_apis_management_v1_AgentAuditEventList(ref), + "github.com/devsy-org/api/pkg/apis/management/v1.AgentAuditEventSpec": schema_pkg_apis_management_v1_AgentAuditEventSpec(ref), + "github.com/devsy-org/api/pkg/apis/management/v1.AgentAuditEventStatus": schema_pkg_apis_management_v1_AgentAuditEventStatus(ref), + "github.com/devsy-org/api/pkg/apis/management/v1.AgentCostControlConfig": schema_pkg_apis_management_v1_AgentCostControlConfig(ref), + "github.com/devsy-org/api/pkg/apis/management/v1.Announcement": schema_pkg_apis_management_v1_Announcement(ref), + "github.com/devsy-org/api/pkg/apis/management/v1.AnnouncementList": schema_pkg_apis_management_v1_AnnouncementList(ref), + "github.com/devsy-org/api/pkg/apis/management/v1.AnnouncementSpec": schema_pkg_apis_management_v1_AnnouncementSpec(ref), + "github.com/devsy-org/api/pkg/apis/management/v1.AnnouncementStatus": schema_pkg_apis_management_v1_AnnouncementStatus(ref), + "github.com/devsy-org/api/pkg/apis/management/v1.App": schema_pkg_apis_management_v1_App(ref), + "github.com/devsy-org/api/pkg/apis/management/v1.AppCredentials": schema_pkg_apis_management_v1_AppCredentials(ref), + "github.com/devsy-org/api/pkg/apis/management/v1.AppCredentialsList": schema_pkg_apis_management_v1_AppCredentialsList(ref), + "github.com/devsy-org/api/pkg/apis/management/v1.AppList": schema_pkg_apis_management_v1_AppList(ref), + "github.com/devsy-org/api/pkg/apis/management/v1.AppSpec": schema_pkg_apis_management_v1_AppSpec(ref), + "github.com/devsy-org/api/pkg/apis/management/v1.AppStatus": schema_pkg_apis_management_v1_AppStatus(ref), + "github.com/devsy-org/api/pkg/apis/management/v1.Apps": schema_pkg_apis_management_v1_Apps(ref), + "github.com/devsy-org/api/pkg/apis/management/v1.AssignedVia": schema_pkg_apis_management_v1_AssignedVia(ref), + "github.com/devsy-org/api/pkg/apis/management/v1.Audit": schema_pkg_apis_management_v1_Audit(ref), + "github.com/devsy-org/api/pkg/apis/management/v1.AuditPolicy": schema_pkg_apis_management_v1_AuditPolicy(ref), + "github.com/devsy-org/api/pkg/apis/management/v1.AuditPolicyRule": schema_pkg_apis_management_v1_AuditPolicyRule(ref), + "github.com/devsy-org/api/pkg/apis/management/v1.Authentication": schema_pkg_apis_management_v1_Authentication(ref), + "github.com/devsy-org/api/pkg/apis/management/v1.AuthenticationGithub": schema_pkg_apis_management_v1_AuthenticationGithub(ref), + "github.com/devsy-org/api/pkg/apis/management/v1.AuthenticationGithubOrg": schema_pkg_apis_management_v1_AuthenticationGithubOrg(ref), + "github.com/devsy-org/api/pkg/apis/management/v1.AuthenticationGitlab": schema_pkg_apis_management_v1_AuthenticationGitlab(ref), + "github.com/devsy-org/api/pkg/apis/management/v1.AuthenticationGoogle": schema_pkg_apis_management_v1_AuthenticationGoogle(ref), + "github.com/devsy-org/api/pkg/apis/management/v1.AuthenticationMicrosoft": schema_pkg_apis_management_v1_AuthenticationMicrosoft(ref), + "github.com/devsy-org/api/pkg/apis/management/v1.AuthenticationOIDC": schema_pkg_apis_management_v1_AuthenticationOIDC(ref), + "github.com/devsy-org/api/pkg/apis/management/v1.AuthenticationPassword": schema_pkg_apis_management_v1_AuthenticationPassword(ref), + "github.com/devsy-org/api/pkg/apis/management/v1.AuthenticationRancher": schema_pkg_apis_management_v1_AuthenticationRancher(ref), + "github.com/devsy-org/api/pkg/apis/management/v1.AuthenticationSAML": schema_pkg_apis_management_v1_AuthenticationSAML(ref), + "github.com/devsy-org/api/pkg/apis/management/v1.Backup": schema_pkg_apis_management_v1_Backup(ref), + "github.com/devsy-org/api/pkg/apis/management/v1.BackupApply": schema_pkg_apis_management_v1_BackupApply(ref), + "github.com/devsy-org/api/pkg/apis/management/v1.BackupApplyList": schema_pkg_apis_management_v1_BackupApplyList(ref), + "github.com/devsy-org/api/pkg/apis/management/v1.BackupApplyOptions": schema_pkg_apis_management_v1_BackupApplyOptions(ref), + "github.com/devsy-org/api/pkg/apis/management/v1.BackupApplySpec": schema_pkg_apis_management_v1_BackupApplySpec(ref), + "github.com/devsy-org/api/pkg/apis/management/v1.BackupList": schema_pkg_apis_management_v1_BackupList(ref), + "github.com/devsy-org/api/pkg/apis/management/v1.BackupSpec": schema_pkg_apis_management_v1_BackupSpec(ref), + "github.com/devsy-org/api/pkg/apis/management/v1.BackupStatus": schema_pkg_apis_management_v1_BackupStatus(ref), + "github.com/devsy-org/api/pkg/apis/management/v1.Cloud": schema_pkg_apis_management_v1_Cloud(ref), + "github.com/devsy-org/api/pkg/apis/management/v1.Cluster": schema_pkg_apis_management_v1_Cluster(ref), + "github.com/devsy-org/api/pkg/apis/management/v1.ClusterAccess": schema_pkg_apis_management_v1_ClusterAccess(ref), + "github.com/devsy-org/api/pkg/apis/management/v1.ClusterAccessKey": schema_pkg_apis_management_v1_ClusterAccessKey(ref), + "github.com/devsy-org/api/pkg/apis/management/v1.ClusterAccessKeyList": schema_pkg_apis_management_v1_ClusterAccessKeyList(ref), + "github.com/devsy-org/api/pkg/apis/management/v1.ClusterAccessList": schema_pkg_apis_management_v1_ClusterAccessList(ref), + "github.com/devsy-org/api/pkg/apis/management/v1.ClusterAccessRole": schema_pkg_apis_management_v1_ClusterAccessRole(ref), + "github.com/devsy-org/api/pkg/apis/management/v1.ClusterAccessSpec": schema_pkg_apis_management_v1_ClusterAccessSpec(ref), + "github.com/devsy-org/api/pkg/apis/management/v1.ClusterAccessStatus": schema_pkg_apis_management_v1_ClusterAccessStatus(ref), + "github.com/devsy-org/api/pkg/apis/management/v1.ClusterAccounts": schema_pkg_apis_management_v1_ClusterAccounts(ref), + "github.com/devsy-org/api/pkg/apis/management/v1.ClusterAgentConfig": schema_pkg_apis_management_v1_ClusterAgentConfig(ref), + "github.com/devsy-org/api/pkg/apis/management/v1.ClusterAgentConfigCommon": schema_pkg_apis_management_v1_ClusterAgentConfigCommon(ref), + "github.com/devsy-org/api/pkg/apis/management/v1.ClusterAgentConfigList": schema_pkg_apis_management_v1_ClusterAgentConfigList(ref), + "github.com/devsy-org/api/pkg/apis/management/v1.ClusterCharts": schema_pkg_apis_management_v1_ClusterCharts(ref), + "github.com/devsy-org/api/pkg/apis/management/v1.ClusterChartsList": schema_pkg_apis_management_v1_ClusterChartsList(ref), + "github.com/devsy-org/api/pkg/apis/management/v1.ClusterDomain": schema_pkg_apis_management_v1_ClusterDomain(ref), + "github.com/devsy-org/api/pkg/apis/management/v1.ClusterDomainList": schema_pkg_apis_management_v1_ClusterDomainList(ref), + "github.com/devsy-org/api/pkg/apis/management/v1.ClusterList": schema_pkg_apis_management_v1_ClusterList(ref), + "github.com/devsy-org/api/pkg/apis/management/v1.ClusterMember": schema_pkg_apis_management_v1_ClusterMember(ref), + "github.com/devsy-org/api/pkg/apis/management/v1.ClusterMemberAccess": schema_pkg_apis_management_v1_ClusterMemberAccess(ref), + "github.com/devsy-org/api/pkg/apis/management/v1.ClusterMemberAccessList": schema_pkg_apis_management_v1_ClusterMemberAccessList(ref), + "github.com/devsy-org/api/pkg/apis/management/v1.ClusterMembers": schema_pkg_apis_management_v1_ClusterMembers(ref), + "github.com/devsy-org/api/pkg/apis/management/v1.ClusterMembersList": schema_pkg_apis_management_v1_ClusterMembersList(ref), + "github.com/devsy-org/api/pkg/apis/management/v1.ClusterReset": schema_pkg_apis_management_v1_ClusterReset(ref), + "github.com/devsy-org/api/pkg/apis/management/v1.ClusterResetList": schema_pkg_apis_management_v1_ClusterResetList(ref), + "github.com/devsy-org/api/pkg/apis/management/v1.ClusterRoleTemplate": schema_pkg_apis_management_v1_ClusterRoleTemplate(ref), + "github.com/devsy-org/api/pkg/apis/management/v1.ClusterRoleTemplateList": schema_pkg_apis_management_v1_ClusterRoleTemplateList(ref), + "github.com/devsy-org/api/pkg/apis/management/v1.ClusterRoleTemplateSpec": schema_pkg_apis_management_v1_ClusterRoleTemplateSpec(ref), + "github.com/devsy-org/api/pkg/apis/management/v1.ClusterRoleTemplateStatus": schema_pkg_apis_management_v1_ClusterRoleTemplateStatus(ref), + "github.com/devsy-org/api/pkg/apis/management/v1.ClusterSpec": schema_pkg_apis_management_v1_ClusterSpec(ref), + "github.com/devsy-org/api/pkg/apis/management/v1.ClusterStatus": schema_pkg_apis_management_v1_ClusterStatus(ref), + "github.com/devsy-org/api/pkg/apis/management/v1.Config": schema_pkg_apis_management_v1_Config(ref), + "github.com/devsy-org/api/pkg/apis/management/v1.ConfigList": schema_pkg_apis_management_v1_ConfigList(ref), + "github.com/devsy-org/api/pkg/apis/management/v1.ConfigSpec": schema_pkg_apis_management_v1_ConfigSpec(ref), + "github.com/devsy-org/api/pkg/apis/management/v1.ConfigStatus": schema_pkg_apis_management_v1_ConfigStatus(ref), + "github.com/devsy-org/api/pkg/apis/management/v1.Connector": schema_pkg_apis_management_v1_Connector(ref), + "github.com/devsy-org/api/pkg/apis/management/v1.ConnectorWithName": schema_pkg_apis_management_v1_ConnectorWithName(ref), + "github.com/devsy-org/api/pkg/apis/management/v1.ConvertVirtualClusterConfig": schema_pkg_apis_management_v1_ConvertVirtualClusterConfig(ref), + "github.com/devsy-org/api/pkg/apis/management/v1.ConvertVirtualClusterConfigList": schema_pkg_apis_management_v1_ConvertVirtualClusterConfigList(ref), + "github.com/devsy-org/api/pkg/apis/management/v1.ConvertVirtualClusterConfigSpec": schema_pkg_apis_management_v1_ConvertVirtualClusterConfigSpec(ref), + "github.com/devsy-org/api/pkg/apis/management/v1.ConvertVirtualClusterConfigStatus": schema_pkg_apis_management_v1_ConvertVirtualClusterConfigStatus(ref), + "github.com/devsy-org/api/pkg/apis/management/v1.CostControl": schema_pkg_apis_management_v1_CostControl(ref), + "github.com/devsy-org/api/pkg/apis/management/v1.CostControlClusterConfig": schema_pkg_apis_management_v1_CostControlClusterConfig(ref), + "github.com/devsy-org/api/pkg/apis/management/v1.CostControlGPUSettings": schema_pkg_apis_management_v1_CostControlGPUSettings(ref), + "github.com/devsy-org/api/pkg/apis/management/v1.CostControlGlobalConfig": schema_pkg_apis_management_v1_CostControlGlobalConfig(ref), + "github.com/devsy-org/api/pkg/apis/management/v1.CostControlResourcePrice": schema_pkg_apis_management_v1_CostControlResourcePrice(ref), + "github.com/devsy-org/api/pkg/apis/management/v1.CostControlSettings": schema_pkg_apis_management_v1_CostControlSettings(ref), + "github.com/devsy-org/api/pkg/apis/management/v1.DatabaseConnector": schema_pkg_apis_management_v1_DatabaseConnector(ref), + "github.com/devsy-org/api/pkg/apis/management/v1.DatabaseConnectorList": schema_pkg_apis_management_v1_DatabaseConnectorList(ref), + "github.com/devsy-org/api/pkg/apis/management/v1.DatabaseConnectorSpec": schema_pkg_apis_management_v1_DatabaseConnectorSpec(ref), + "github.com/devsy-org/api/pkg/apis/management/v1.DatabaseConnectorStatus": schema_pkg_apis_management_v1_DatabaseConnectorStatus(ref), + "github.com/devsy-org/api/pkg/apis/management/v1.DevsyEnvironmentTemplate": schema_pkg_apis_management_v1_DevsyEnvironmentTemplate(ref), + "github.com/devsy-org/api/pkg/apis/management/v1.DevsyEnvironmentTemplateList": schema_pkg_apis_management_v1_DevsyEnvironmentTemplateList(ref), + "github.com/devsy-org/api/pkg/apis/management/v1.DevsyEnvironmentTemplateSpec": schema_pkg_apis_management_v1_DevsyEnvironmentTemplateSpec(ref), + "github.com/devsy-org/api/pkg/apis/management/v1.DevsyEnvironmentTemplateStatus": schema_pkg_apis_management_v1_DevsyEnvironmentTemplateStatus(ref), + "github.com/devsy-org/api/pkg/apis/management/v1.DevsyUpgrade": schema_pkg_apis_management_v1_DevsyUpgrade(ref), + "github.com/devsy-org/api/pkg/apis/management/v1.DevsyUpgradeList": schema_pkg_apis_management_v1_DevsyUpgradeList(ref), + "github.com/devsy-org/api/pkg/apis/management/v1.DevsyUpgradeSpec": schema_pkg_apis_management_v1_DevsyUpgradeSpec(ref), + "github.com/devsy-org/api/pkg/apis/management/v1.DevsyUpgradeStatus": schema_pkg_apis_management_v1_DevsyUpgradeStatus(ref), + "github.com/devsy-org/api/pkg/apis/management/v1.DevsyWorkspaceInstance": schema_pkg_apis_management_v1_DevsyWorkspaceInstance(ref), + "github.com/devsy-org/api/pkg/apis/management/v1.DevsyWorkspaceInstanceCancel": schema_pkg_apis_management_v1_DevsyWorkspaceInstanceCancel(ref), + "github.com/devsy-org/api/pkg/apis/management/v1.DevsyWorkspaceInstanceCancelList": schema_pkg_apis_management_v1_DevsyWorkspaceInstanceCancelList(ref), + "github.com/devsy-org/api/pkg/apis/management/v1.DevsyWorkspaceInstanceDownload": schema_pkg_apis_management_v1_DevsyWorkspaceInstanceDownload(ref), + "github.com/devsy-org/api/pkg/apis/management/v1.DevsyWorkspaceInstanceDownloadList": schema_pkg_apis_management_v1_DevsyWorkspaceInstanceDownloadList(ref), + "github.com/devsy-org/api/pkg/apis/management/v1.DevsyWorkspaceInstanceDownloadOptions": schema_pkg_apis_management_v1_DevsyWorkspaceInstanceDownloadOptions(ref), + "github.com/devsy-org/api/pkg/apis/management/v1.DevsyWorkspaceInstanceList": schema_pkg_apis_management_v1_DevsyWorkspaceInstanceList(ref), + "github.com/devsy-org/api/pkg/apis/management/v1.DevsyWorkspaceInstanceLog": schema_pkg_apis_management_v1_DevsyWorkspaceInstanceLog(ref), + "github.com/devsy-org/api/pkg/apis/management/v1.DevsyWorkspaceInstanceLogList": schema_pkg_apis_management_v1_DevsyWorkspaceInstanceLogList(ref), + "github.com/devsy-org/api/pkg/apis/management/v1.DevsyWorkspaceInstanceLogOptions": schema_pkg_apis_management_v1_DevsyWorkspaceInstanceLogOptions(ref), + "github.com/devsy-org/api/pkg/apis/management/v1.DevsyWorkspaceInstanceSpec": schema_pkg_apis_management_v1_DevsyWorkspaceInstanceSpec(ref), + "github.com/devsy-org/api/pkg/apis/management/v1.DevsyWorkspaceInstanceStatus": schema_pkg_apis_management_v1_DevsyWorkspaceInstanceStatus(ref), + "github.com/devsy-org/api/pkg/apis/management/v1.DevsyWorkspaceInstanceStop": schema_pkg_apis_management_v1_DevsyWorkspaceInstanceStop(ref), + "github.com/devsy-org/api/pkg/apis/management/v1.DevsyWorkspaceInstanceStopList": schema_pkg_apis_management_v1_DevsyWorkspaceInstanceStopList(ref), + "github.com/devsy-org/api/pkg/apis/management/v1.DevsyWorkspaceInstanceStopSpec": schema_pkg_apis_management_v1_DevsyWorkspaceInstanceStopSpec(ref), + "github.com/devsy-org/api/pkg/apis/management/v1.DevsyWorkspaceInstanceStopStatus": schema_pkg_apis_management_v1_DevsyWorkspaceInstanceStopStatus(ref), + "github.com/devsy-org/api/pkg/apis/management/v1.DevsyWorkspaceInstanceTask": schema_pkg_apis_management_v1_DevsyWorkspaceInstanceTask(ref), + "github.com/devsy-org/api/pkg/apis/management/v1.DevsyWorkspaceInstanceTasks": schema_pkg_apis_management_v1_DevsyWorkspaceInstanceTasks(ref), + "github.com/devsy-org/api/pkg/apis/management/v1.DevsyWorkspaceInstanceTasksList": schema_pkg_apis_management_v1_DevsyWorkspaceInstanceTasksList(ref), + "github.com/devsy-org/api/pkg/apis/management/v1.DevsyWorkspaceInstanceTasksOptions": schema_pkg_apis_management_v1_DevsyWorkspaceInstanceTasksOptions(ref), + "github.com/devsy-org/api/pkg/apis/management/v1.DevsyWorkspaceInstanceTroubleshoot": schema_pkg_apis_management_v1_DevsyWorkspaceInstanceTroubleshoot(ref), + "github.com/devsy-org/api/pkg/apis/management/v1.DevsyWorkspaceInstanceTroubleshootList": schema_pkg_apis_management_v1_DevsyWorkspaceInstanceTroubleshootList(ref), + "github.com/devsy-org/api/pkg/apis/management/v1.DevsyWorkspaceInstanceUp": schema_pkg_apis_management_v1_DevsyWorkspaceInstanceUp(ref), + "github.com/devsy-org/api/pkg/apis/management/v1.DevsyWorkspaceInstanceUpList": schema_pkg_apis_management_v1_DevsyWorkspaceInstanceUpList(ref), + "github.com/devsy-org/api/pkg/apis/management/v1.DevsyWorkspaceInstanceUpSpec": schema_pkg_apis_management_v1_DevsyWorkspaceInstanceUpSpec(ref), + "github.com/devsy-org/api/pkg/apis/management/v1.DevsyWorkspaceInstanceUpStatus": schema_pkg_apis_management_v1_DevsyWorkspaceInstanceUpStatus(ref), + "github.com/devsy-org/api/pkg/apis/management/v1.DevsyWorkspacePreset": schema_pkg_apis_management_v1_DevsyWorkspacePreset(ref), + "github.com/devsy-org/api/pkg/apis/management/v1.DevsyWorkspacePresetList": schema_pkg_apis_management_v1_DevsyWorkspacePresetList(ref), + "github.com/devsy-org/api/pkg/apis/management/v1.DevsyWorkspacePresetSource": schema_pkg_apis_management_v1_DevsyWorkspacePresetSource(ref), + "github.com/devsy-org/api/pkg/apis/management/v1.DevsyWorkspacePresetSpec": schema_pkg_apis_management_v1_DevsyWorkspacePresetSpec(ref), + "github.com/devsy-org/api/pkg/apis/management/v1.DevsyWorkspacePresetStatus": schema_pkg_apis_management_v1_DevsyWorkspacePresetStatus(ref), + "github.com/devsy-org/api/pkg/apis/management/v1.DevsyWorkspaceTemplate": schema_pkg_apis_management_v1_DevsyWorkspaceTemplate(ref), + "github.com/devsy-org/api/pkg/apis/management/v1.DevsyWorkspaceTemplateList": schema_pkg_apis_management_v1_DevsyWorkspaceTemplateList(ref), + "github.com/devsy-org/api/pkg/apis/management/v1.DevsyWorkspaceTemplateSpec": schema_pkg_apis_management_v1_DevsyWorkspaceTemplateSpec(ref), + "github.com/devsy-org/api/pkg/apis/management/v1.DevsyWorkspaceTemplateStatus": schema_pkg_apis_management_v1_DevsyWorkspaceTemplateStatus(ref), + "github.com/devsy-org/api/pkg/apis/management/v1.DirectClusterEndpointToken": schema_pkg_apis_management_v1_DirectClusterEndpointToken(ref), + "github.com/devsy-org/api/pkg/apis/management/v1.DirectClusterEndpointTokenList": schema_pkg_apis_management_v1_DirectClusterEndpointTokenList(ref), + "github.com/devsy-org/api/pkg/apis/management/v1.DirectClusterEndpointTokenSpec": schema_pkg_apis_management_v1_DirectClusterEndpointTokenSpec(ref), + "github.com/devsy-org/api/pkg/apis/management/v1.DirectClusterEndpointTokenStatus": schema_pkg_apis_management_v1_DirectClusterEndpointTokenStatus(ref), + "github.com/devsy-org/api/pkg/apis/management/v1.Event": schema_pkg_apis_management_v1_Event(ref), + "github.com/devsy-org/api/pkg/apis/management/v1.EventList": schema_pkg_apis_management_v1_EventList(ref), + "github.com/devsy-org/api/pkg/apis/management/v1.EventSpec": schema_pkg_apis_management_v1_EventSpec(ref), + "github.com/devsy-org/api/pkg/apis/management/v1.EventStatus": schema_pkg_apis_management_v1_EventStatus(ref), + "github.com/devsy-org/api/pkg/apis/management/v1.Feature": schema_pkg_apis_management_v1_Feature(ref), + "github.com/devsy-org/api/pkg/apis/management/v1.FeatureList": schema_pkg_apis_management_v1_FeatureList(ref), + "github.com/devsy-org/api/pkg/apis/management/v1.FeatureSpec": schema_pkg_apis_management_v1_FeatureSpec(ref), + "github.com/devsy-org/api/pkg/apis/management/v1.FeatureStatus": schema_pkg_apis_management_v1_FeatureStatus(ref), + "github.com/devsy-org/api/pkg/apis/management/v1.GroupResources": schema_pkg_apis_management_v1_GroupResources(ref), + "github.com/devsy-org/api/pkg/apis/management/v1.ImageBuilder": schema_pkg_apis_management_v1_ImageBuilder(ref), + "github.com/devsy-org/api/pkg/apis/management/v1.IngressAuthToken": schema_pkg_apis_management_v1_IngressAuthToken(ref), + "github.com/devsy-org/api/pkg/apis/management/v1.IngressAuthTokenList": schema_pkg_apis_management_v1_IngressAuthTokenList(ref), + "github.com/devsy-org/api/pkg/apis/management/v1.IngressAuthTokenSpec": schema_pkg_apis_management_v1_IngressAuthTokenSpec(ref), + "github.com/devsy-org/api/pkg/apis/management/v1.IngressAuthTokenStatus": schema_pkg_apis_management_v1_IngressAuthTokenStatus(ref), + "github.com/devsy-org/api/pkg/apis/management/v1.Kiosk": schema_pkg_apis_management_v1_Kiosk(ref), + "github.com/devsy-org/api/pkg/apis/management/v1.KioskList": schema_pkg_apis_management_v1_KioskList(ref), + "github.com/devsy-org/api/pkg/apis/management/v1.KioskSpec": schema_pkg_apis_management_v1_KioskSpec(ref), + "github.com/devsy-org/api/pkg/apis/management/v1.KioskStatus": schema_pkg_apis_management_v1_KioskStatus(ref), + "github.com/devsy-org/api/pkg/apis/management/v1.License": schema_pkg_apis_management_v1_License(ref), + "github.com/devsy-org/api/pkg/apis/management/v1.LicenseList": schema_pkg_apis_management_v1_LicenseList(ref), + "github.com/devsy-org/api/pkg/apis/management/v1.LicenseRequest": schema_pkg_apis_management_v1_LicenseRequest(ref), + "github.com/devsy-org/api/pkg/apis/management/v1.LicenseRequestList": schema_pkg_apis_management_v1_LicenseRequestList(ref), + "github.com/devsy-org/api/pkg/apis/management/v1.LicenseRequestSpec": schema_pkg_apis_management_v1_LicenseRequestSpec(ref), + "github.com/devsy-org/api/pkg/apis/management/v1.LicenseRequestStatus": schema_pkg_apis_management_v1_LicenseRequestStatus(ref), + "github.com/devsy-org/api/pkg/apis/management/v1.LicenseSpec": schema_pkg_apis_management_v1_LicenseSpec(ref), + "github.com/devsy-org/api/pkg/apis/management/v1.LicenseStatus": schema_pkg_apis_management_v1_LicenseStatus(ref), + "github.com/devsy-org/api/pkg/apis/management/v1.LicenseToken": schema_pkg_apis_management_v1_LicenseToken(ref), + "github.com/devsy-org/api/pkg/apis/management/v1.LicenseTokenList": schema_pkg_apis_management_v1_LicenseTokenList(ref), + "github.com/devsy-org/api/pkg/apis/management/v1.LicenseTokenSpec": schema_pkg_apis_management_v1_LicenseTokenSpec(ref), + "github.com/devsy-org/api/pkg/apis/management/v1.LicenseTokenStatus": schema_pkg_apis_management_v1_LicenseTokenStatus(ref), + "github.com/devsy-org/api/pkg/apis/management/v1.MaintenanceWindow": schema_pkg_apis_management_v1_MaintenanceWindow(ref), + "github.com/devsy-org/api/pkg/apis/management/v1.ManagementRole": schema_pkg_apis_management_v1_ManagementRole(ref), + "github.com/devsy-org/api/pkg/apis/management/v1.NamespacedNameArgs": schema_pkg_apis_management_v1_NamespacedNameArgs(ref), + "github.com/devsy-org/api/pkg/apis/management/v1.NodeClaim": schema_pkg_apis_management_v1_NodeClaim(ref), + "github.com/devsy-org/api/pkg/apis/management/v1.NodeClaimData": schema_pkg_apis_management_v1_NodeClaimData(ref), + "github.com/devsy-org/api/pkg/apis/management/v1.NodeClaimList": schema_pkg_apis_management_v1_NodeClaimList(ref), + "github.com/devsy-org/api/pkg/apis/management/v1.NodeClaimSpec": schema_pkg_apis_management_v1_NodeClaimSpec(ref), + "github.com/devsy-org/api/pkg/apis/management/v1.NodeClaimStatus": schema_pkg_apis_management_v1_NodeClaimStatus(ref), + "github.com/devsy-org/api/pkg/apis/management/v1.NodeEnvironment": schema_pkg_apis_management_v1_NodeEnvironment(ref), + "github.com/devsy-org/api/pkg/apis/management/v1.NodeEnvironmentData": schema_pkg_apis_management_v1_NodeEnvironmentData(ref), + "github.com/devsy-org/api/pkg/apis/management/v1.NodeEnvironmentList": schema_pkg_apis_management_v1_NodeEnvironmentList(ref), + "github.com/devsy-org/api/pkg/apis/management/v1.NodeEnvironmentSpec": schema_pkg_apis_management_v1_NodeEnvironmentSpec(ref), + "github.com/devsy-org/api/pkg/apis/management/v1.NodeEnvironmentStatus": schema_pkg_apis_management_v1_NodeEnvironmentStatus(ref), + "github.com/devsy-org/api/pkg/apis/management/v1.NodeProvider": schema_pkg_apis_management_v1_NodeProvider(ref), + "github.com/devsy-org/api/pkg/apis/management/v1.NodeProviderBCMGetResourcesResult": schema_pkg_apis_management_v1_NodeProviderBCMGetResourcesResult(ref), + "github.com/devsy-org/api/pkg/apis/management/v1.NodeProviderBCMNodeGroup": schema_pkg_apis_management_v1_NodeProviderBCMNodeGroup(ref), + "github.com/devsy-org/api/pkg/apis/management/v1.NodeProviderBCMNodeWithResources": schema_pkg_apis_management_v1_NodeProviderBCMNodeWithResources(ref), + "github.com/devsy-org/api/pkg/apis/management/v1.NodeProviderBCMTestConnectionResult": schema_pkg_apis_management_v1_NodeProviderBCMTestConnectionResult(ref), + "github.com/devsy-org/api/pkg/apis/management/v1.NodeProviderCalculateCostResult": schema_pkg_apis_management_v1_NodeProviderCalculateCostResult(ref), + "github.com/devsy-org/api/pkg/apis/management/v1.NodeProviderExec": schema_pkg_apis_management_v1_NodeProviderExec(ref), + "github.com/devsy-org/api/pkg/apis/management/v1.NodeProviderExecList": schema_pkg_apis_management_v1_NodeProviderExecList(ref), + "github.com/devsy-org/api/pkg/apis/management/v1.NodeProviderExecResult": schema_pkg_apis_management_v1_NodeProviderExecResult(ref), + "github.com/devsy-org/api/pkg/apis/management/v1.NodeProviderExecSpec": schema_pkg_apis_management_v1_NodeProviderExecSpec(ref), + "github.com/devsy-org/api/pkg/apis/management/v1.NodeProviderExecStatus": schema_pkg_apis_management_v1_NodeProviderExecStatus(ref), + "github.com/devsy-org/api/pkg/apis/management/v1.NodeProviderList": schema_pkg_apis_management_v1_NodeProviderList(ref), + "github.com/devsy-org/api/pkg/apis/management/v1.NodeProviderSpec": schema_pkg_apis_management_v1_NodeProviderSpec(ref), + "github.com/devsy-org/api/pkg/apis/management/v1.NodeProviderStatus": schema_pkg_apis_management_v1_NodeProviderStatus(ref), + "github.com/devsy-org/api/pkg/apis/management/v1.NodeProviderTerraformValidateResult": schema_pkg_apis_management_v1_NodeProviderTerraformValidateResult(ref), + "github.com/devsy-org/api/pkg/apis/management/v1.NodeType": schema_pkg_apis_management_v1_NodeType(ref), + "github.com/devsy-org/api/pkg/apis/management/v1.NodeTypeList": schema_pkg_apis_management_v1_NodeTypeList(ref), + "github.com/devsy-org/api/pkg/apis/management/v1.NodeTypeSpec": schema_pkg_apis_management_v1_NodeTypeSpec(ref), + "github.com/devsy-org/api/pkg/apis/management/v1.NodeTypeStatus": schema_pkg_apis_management_v1_NodeTypeStatus(ref), + "github.com/devsy-org/api/pkg/apis/management/v1.OIDC": schema_pkg_apis_management_v1_OIDC(ref), + "github.com/devsy-org/api/pkg/apis/management/v1.OIDCClient": schema_pkg_apis_management_v1_OIDCClient(ref), + "github.com/devsy-org/api/pkg/apis/management/v1.OIDCClientList": schema_pkg_apis_management_v1_OIDCClientList(ref), + "github.com/devsy-org/api/pkg/apis/management/v1.OIDCClientSpec": schema_pkg_apis_management_v1_OIDCClientSpec(ref), + "github.com/devsy-org/api/pkg/apis/management/v1.OIDCClientStatus": schema_pkg_apis_management_v1_OIDCClientStatus(ref), + "github.com/devsy-org/api/pkg/apis/management/v1.ObjectName": schema_pkg_apis_management_v1_ObjectName(ref), + "github.com/devsy-org/api/pkg/apis/management/v1.ObjectPermission": schema_pkg_apis_management_v1_ObjectPermission(ref), + "github.com/devsy-org/api/pkg/apis/management/v1.Operation": schema_pkg_apis_management_v1_Operation(ref), + "github.com/devsy-org/api/pkg/apis/management/v1.OwnedAccessKey": schema_pkg_apis_management_v1_OwnedAccessKey(ref), + "github.com/devsy-org/api/pkg/apis/management/v1.OwnedAccessKeyList": schema_pkg_apis_management_v1_OwnedAccessKeyList(ref), + "github.com/devsy-org/api/pkg/apis/management/v1.OwnedAccessKeySpec": schema_pkg_apis_management_v1_OwnedAccessKeySpec(ref), + "github.com/devsy-org/api/pkg/apis/management/v1.OwnedAccessKeyStatus": schema_pkg_apis_management_v1_OwnedAccessKeyStatus(ref), + "github.com/devsy-org/api/pkg/apis/management/v1.PlatformDB": schema_pkg_apis_management_v1_PlatformDB(ref), + "github.com/devsy-org/api/pkg/apis/management/v1.PredefinedApp": schema_pkg_apis_management_v1_PredefinedApp(ref), + "github.com/devsy-org/api/pkg/apis/management/v1.Project": schema_pkg_apis_management_v1_Project(ref), + "github.com/devsy-org/api/pkg/apis/management/v1.ProjectChartInfo": schema_pkg_apis_management_v1_ProjectChartInfo(ref), + "github.com/devsy-org/api/pkg/apis/management/v1.ProjectChartInfoList": schema_pkg_apis_management_v1_ProjectChartInfoList(ref), + "github.com/devsy-org/api/pkg/apis/management/v1.ProjectChartInfoSpec": schema_pkg_apis_management_v1_ProjectChartInfoSpec(ref), + "github.com/devsy-org/api/pkg/apis/management/v1.ProjectChartInfoStatus": schema_pkg_apis_management_v1_ProjectChartInfoStatus(ref), + "github.com/devsy-org/api/pkg/apis/management/v1.ProjectCharts": schema_pkg_apis_management_v1_ProjectCharts(ref), + "github.com/devsy-org/api/pkg/apis/management/v1.ProjectChartsList": schema_pkg_apis_management_v1_ProjectChartsList(ref), + "github.com/devsy-org/api/pkg/apis/management/v1.ProjectClusters": schema_pkg_apis_management_v1_ProjectClusters(ref), + "github.com/devsy-org/api/pkg/apis/management/v1.ProjectClustersList": schema_pkg_apis_management_v1_ProjectClustersList(ref), + "github.com/devsy-org/api/pkg/apis/management/v1.ProjectImportSpace": schema_pkg_apis_management_v1_ProjectImportSpace(ref), + "github.com/devsy-org/api/pkg/apis/management/v1.ProjectImportSpaceList": schema_pkg_apis_management_v1_ProjectImportSpaceList(ref), + "github.com/devsy-org/api/pkg/apis/management/v1.ProjectImportSpaceSource": schema_pkg_apis_management_v1_ProjectImportSpaceSource(ref), + "github.com/devsy-org/api/pkg/apis/management/v1.ProjectList": schema_pkg_apis_management_v1_ProjectList(ref), + "github.com/devsy-org/api/pkg/apis/management/v1.ProjectMember": schema_pkg_apis_management_v1_ProjectMember(ref), + "github.com/devsy-org/api/pkg/apis/management/v1.ProjectMembers": schema_pkg_apis_management_v1_ProjectMembers(ref), + "github.com/devsy-org/api/pkg/apis/management/v1.ProjectMembersList": schema_pkg_apis_management_v1_ProjectMembersList(ref), + "github.com/devsy-org/api/pkg/apis/management/v1.ProjectMembership": schema_pkg_apis_management_v1_ProjectMembership(ref), + "github.com/devsy-org/api/pkg/apis/management/v1.ProjectMigrateSpaceInstance": schema_pkg_apis_management_v1_ProjectMigrateSpaceInstance(ref), + "github.com/devsy-org/api/pkg/apis/management/v1.ProjectMigrateSpaceInstanceList": schema_pkg_apis_management_v1_ProjectMigrateSpaceInstanceList(ref), + "github.com/devsy-org/api/pkg/apis/management/v1.ProjectMigrateSpaceInstanceSource": schema_pkg_apis_management_v1_ProjectMigrateSpaceInstanceSource(ref), + "github.com/devsy-org/api/pkg/apis/management/v1.ProjectMigrateVirtualClusterInstance": schema_pkg_apis_management_v1_ProjectMigrateVirtualClusterInstance(ref), + "github.com/devsy-org/api/pkg/apis/management/v1.ProjectMigrateVirtualClusterInstanceList": schema_pkg_apis_management_v1_ProjectMigrateVirtualClusterInstanceList(ref), + "github.com/devsy-org/api/pkg/apis/management/v1.ProjectMigrateVirtualClusterInstanceSource": schema_pkg_apis_management_v1_ProjectMigrateVirtualClusterInstanceSource(ref), + "github.com/devsy-org/api/pkg/apis/management/v1.ProjectNodeTypes": schema_pkg_apis_management_v1_ProjectNodeTypes(ref), + "github.com/devsy-org/api/pkg/apis/management/v1.ProjectNodeTypesList": schema_pkg_apis_management_v1_ProjectNodeTypesList(ref), + "github.com/devsy-org/api/pkg/apis/management/v1.ProjectRole": schema_pkg_apis_management_v1_ProjectRole(ref), + "github.com/devsy-org/api/pkg/apis/management/v1.ProjectSecret": schema_pkg_apis_management_v1_ProjectSecret(ref), + "github.com/devsy-org/api/pkg/apis/management/v1.ProjectSecretList": schema_pkg_apis_management_v1_ProjectSecretList(ref), + "github.com/devsy-org/api/pkg/apis/management/v1.ProjectSecretSpec": schema_pkg_apis_management_v1_ProjectSecretSpec(ref), + "github.com/devsy-org/api/pkg/apis/management/v1.ProjectSecretStatus": schema_pkg_apis_management_v1_ProjectSecretStatus(ref), + "github.com/devsy-org/api/pkg/apis/management/v1.ProjectSpec": schema_pkg_apis_management_v1_ProjectSpec(ref), + "github.com/devsy-org/api/pkg/apis/management/v1.ProjectStatus": schema_pkg_apis_management_v1_ProjectStatus(ref), + "github.com/devsy-org/api/pkg/apis/management/v1.ProjectTemplates": schema_pkg_apis_management_v1_ProjectTemplates(ref), + "github.com/devsy-org/api/pkg/apis/management/v1.ProjectTemplatesList": schema_pkg_apis_management_v1_ProjectTemplatesList(ref), + "github.com/devsy-org/api/pkg/apis/management/v1.RedirectToken": schema_pkg_apis_management_v1_RedirectToken(ref), + "github.com/devsy-org/api/pkg/apis/management/v1.RedirectTokenClaims": schema_pkg_apis_management_v1_RedirectTokenClaims(ref), + "github.com/devsy-org/api/pkg/apis/management/v1.RedirectTokenList": schema_pkg_apis_management_v1_RedirectTokenList(ref), + "github.com/devsy-org/api/pkg/apis/management/v1.RedirectTokenSpec": schema_pkg_apis_management_v1_RedirectTokenSpec(ref), + "github.com/devsy-org/api/pkg/apis/management/v1.RedirectTokenStatus": schema_pkg_apis_management_v1_RedirectTokenStatus(ref), + "github.com/devsy-org/api/pkg/apis/management/v1.RegisterVirtualCluster": schema_pkg_apis_management_v1_RegisterVirtualCluster(ref), + "github.com/devsy-org/api/pkg/apis/management/v1.RegisterVirtualClusterList": schema_pkg_apis_management_v1_RegisterVirtualClusterList(ref), + "github.com/devsy-org/api/pkg/apis/management/v1.RegisterVirtualClusterSpec": schema_pkg_apis_management_v1_RegisterVirtualClusterSpec(ref), + "github.com/devsy-org/api/pkg/apis/management/v1.RegisterVirtualClusterStatus": schema_pkg_apis_management_v1_RegisterVirtualClusterStatus(ref), + "github.com/devsy-org/api/pkg/apis/management/v1.ResetAccessKey": schema_pkg_apis_management_v1_ResetAccessKey(ref), + "github.com/devsy-org/api/pkg/apis/management/v1.ResetAccessKeyList": schema_pkg_apis_management_v1_ResetAccessKeyList(ref), + "github.com/devsy-org/api/pkg/apis/management/v1.ResetAccessKeySpec": schema_pkg_apis_management_v1_ResetAccessKeySpec(ref), + "github.com/devsy-org/api/pkg/apis/management/v1.ResetAccessKeyStatus": schema_pkg_apis_management_v1_ResetAccessKeyStatus(ref), + "github.com/devsy-org/api/pkg/apis/management/v1.Self": schema_pkg_apis_management_v1_Self(ref), + "github.com/devsy-org/api/pkg/apis/management/v1.SelfList": schema_pkg_apis_management_v1_SelfList(ref), + "github.com/devsy-org/api/pkg/apis/management/v1.SelfSpec": schema_pkg_apis_management_v1_SelfSpec(ref), + "github.com/devsy-org/api/pkg/apis/management/v1.SelfStatus": schema_pkg_apis_management_v1_SelfStatus(ref), + "github.com/devsy-org/api/pkg/apis/management/v1.SelfSubjectAccessReview": schema_pkg_apis_management_v1_SelfSubjectAccessReview(ref), + "github.com/devsy-org/api/pkg/apis/management/v1.SelfSubjectAccessReviewList": schema_pkg_apis_management_v1_SelfSubjectAccessReviewList(ref), + "github.com/devsy-org/api/pkg/apis/management/v1.SelfSubjectAccessReviewSpec": schema_pkg_apis_management_v1_SelfSubjectAccessReviewSpec(ref), + "github.com/devsy-org/api/pkg/apis/management/v1.SelfSubjectAccessReviewStatus": schema_pkg_apis_management_v1_SelfSubjectAccessReviewStatus(ref), + "github.com/devsy-org/api/pkg/apis/management/v1.SharedSecret": schema_pkg_apis_management_v1_SharedSecret(ref), + "github.com/devsy-org/api/pkg/apis/management/v1.SharedSecretList": schema_pkg_apis_management_v1_SharedSecretList(ref), + "github.com/devsy-org/api/pkg/apis/management/v1.SharedSecretSpec": schema_pkg_apis_management_v1_SharedSecretSpec(ref), + "github.com/devsy-org/api/pkg/apis/management/v1.SharedSecretStatus": schema_pkg_apis_management_v1_SharedSecretStatus(ref), + "github.com/devsy-org/api/pkg/apis/management/v1.SnapshotTaken": schema_pkg_apis_management_v1_SnapshotTaken(ref), + "github.com/devsy-org/api/pkg/apis/management/v1.SpaceInstance": schema_pkg_apis_management_v1_SpaceInstance(ref), + "github.com/devsy-org/api/pkg/apis/management/v1.SpaceInstanceList": schema_pkg_apis_management_v1_SpaceInstanceList(ref), + "github.com/devsy-org/api/pkg/apis/management/v1.SpaceInstanceSpec": schema_pkg_apis_management_v1_SpaceInstanceSpec(ref), + "github.com/devsy-org/api/pkg/apis/management/v1.SpaceInstanceStatus": schema_pkg_apis_management_v1_SpaceInstanceStatus(ref), + "github.com/devsy-org/api/pkg/apis/management/v1.SpaceTemplate": schema_pkg_apis_management_v1_SpaceTemplate(ref), + "github.com/devsy-org/api/pkg/apis/management/v1.SpaceTemplateList": schema_pkg_apis_management_v1_SpaceTemplateList(ref), + "github.com/devsy-org/api/pkg/apis/management/v1.SpaceTemplateSpec": schema_pkg_apis_management_v1_SpaceTemplateSpec(ref), + "github.com/devsy-org/api/pkg/apis/management/v1.SpaceTemplateStatus": schema_pkg_apis_management_v1_SpaceTemplateStatus(ref), + "github.com/devsy-org/api/pkg/apis/management/v1.StandaloneEtcdPeer": schema_pkg_apis_management_v1_StandaloneEtcdPeer(ref), + "github.com/devsy-org/api/pkg/apis/management/v1.StandaloneEtcdPeerCoordinator": schema_pkg_apis_management_v1_StandaloneEtcdPeerCoordinator(ref), + "github.com/devsy-org/api/pkg/apis/management/v1.StandalonePKI": schema_pkg_apis_management_v1_StandalonePKI(ref), + "github.com/devsy-org/api/pkg/apis/management/v1.SubjectAccessReview": schema_pkg_apis_management_v1_SubjectAccessReview(ref), + "github.com/devsy-org/api/pkg/apis/management/v1.SubjectAccessReviewList": schema_pkg_apis_management_v1_SubjectAccessReviewList(ref), + "github.com/devsy-org/api/pkg/apis/management/v1.SubjectAccessReviewSpec": schema_pkg_apis_management_v1_SubjectAccessReviewSpec(ref), + "github.com/devsy-org/api/pkg/apis/management/v1.SubjectAccessReviewStatus": schema_pkg_apis_management_v1_SubjectAccessReviewStatus(ref), + "github.com/devsy-org/api/pkg/apis/management/v1.Task": schema_pkg_apis_management_v1_Task(ref), + "github.com/devsy-org/api/pkg/apis/management/v1.TaskList": schema_pkg_apis_management_v1_TaskList(ref), + "github.com/devsy-org/api/pkg/apis/management/v1.TaskLog": schema_pkg_apis_management_v1_TaskLog(ref), + "github.com/devsy-org/api/pkg/apis/management/v1.TaskLogList": schema_pkg_apis_management_v1_TaskLogList(ref), + "github.com/devsy-org/api/pkg/apis/management/v1.TaskLogOptions": schema_pkg_apis_management_v1_TaskLogOptions(ref), + "github.com/devsy-org/api/pkg/apis/management/v1.TaskSpec": schema_pkg_apis_management_v1_TaskSpec(ref), + "github.com/devsy-org/api/pkg/apis/management/v1.TaskStatus": schema_pkg_apis_management_v1_TaskStatus(ref), + "github.com/devsy-org/api/pkg/apis/management/v1.Team": schema_pkg_apis_management_v1_Team(ref), + "github.com/devsy-org/api/pkg/apis/management/v1.TeamAccessKeys": schema_pkg_apis_management_v1_TeamAccessKeys(ref), + "github.com/devsy-org/api/pkg/apis/management/v1.TeamAccessKeysList": schema_pkg_apis_management_v1_TeamAccessKeysList(ref), + "github.com/devsy-org/api/pkg/apis/management/v1.TeamClusters": schema_pkg_apis_management_v1_TeamClusters(ref), + "github.com/devsy-org/api/pkg/apis/management/v1.TeamClustersList": schema_pkg_apis_management_v1_TeamClustersList(ref), + "github.com/devsy-org/api/pkg/apis/management/v1.TeamList": schema_pkg_apis_management_v1_TeamList(ref), + "github.com/devsy-org/api/pkg/apis/management/v1.TeamObjectPermissions": schema_pkg_apis_management_v1_TeamObjectPermissions(ref), + "github.com/devsy-org/api/pkg/apis/management/v1.TeamObjectPermissionsList": schema_pkg_apis_management_v1_TeamObjectPermissionsList(ref), + "github.com/devsy-org/api/pkg/apis/management/v1.TeamPermissions": schema_pkg_apis_management_v1_TeamPermissions(ref), + "github.com/devsy-org/api/pkg/apis/management/v1.TeamPermissionsList": schema_pkg_apis_management_v1_TeamPermissionsList(ref), + "github.com/devsy-org/api/pkg/apis/management/v1.TeamSpec": schema_pkg_apis_management_v1_TeamSpec(ref), + "github.com/devsy-org/api/pkg/apis/management/v1.TeamStatus": schema_pkg_apis_management_v1_TeamStatus(ref), + "github.com/devsy-org/api/pkg/apis/management/v1.TranslateDevsyResourceName": schema_pkg_apis_management_v1_TranslateDevsyResourceName(ref), + "github.com/devsy-org/api/pkg/apis/management/v1.TranslateDevsyResourceNameList": schema_pkg_apis_management_v1_TranslateDevsyResourceNameList(ref), + "github.com/devsy-org/api/pkg/apis/management/v1.TranslateDevsyResourceNameSpec": schema_pkg_apis_management_v1_TranslateDevsyResourceNameSpec(ref), + "github.com/devsy-org/api/pkg/apis/management/v1.TranslateDevsyResourceNameStatus": schema_pkg_apis_management_v1_TranslateDevsyResourceNameStatus(ref), + "github.com/devsy-org/api/pkg/apis/management/v1.UsageDownload": schema_pkg_apis_management_v1_UsageDownload(ref), + "github.com/devsy-org/api/pkg/apis/management/v1.UsageDownloadList": schema_pkg_apis_management_v1_UsageDownloadList(ref), + "github.com/devsy-org/api/pkg/apis/management/v1.UsageDownloadSpec": schema_pkg_apis_management_v1_UsageDownloadSpec(ref), + "github.com/devsy-org/api/pkg/apis/management/v1.UsageDownloadStatus": schema_pkg_apis_management_v1_UsageDownloadStatus(ref), + "github.com/devsy-org/api/pkg/apis/management/v1.User": schema_pkg_apis_management_v1_User(ref), + "github.com/devsy-org/api/pkg/apis/management/v1.UserAccessKeys": schema_pkg_apis_management_v1_UserAccessKeys(ref), + "github.com/devsy-org/api/pkg/apis/management/v1.UserAccessKeysList": schema_pkg_apis_management_v1_UserAccessKeysList(ref), + "github.com/devsy-org/api/pkg/apis/management/v1.UserClusters": schema_pkg_apis_management_v1_UserClusters(ref), + "github.com/devsy-org/api/pkg/apis/management/v1.UserClustersList": schema_pkg_apis_management_v1_UserClustersList(ref), + "github.com/devsy-org/api/pkg/apis/management/v1.UserInfo": schema_pkg_apis_management_v1_UserInfo(ref), + "github.com/devsy-org/api/pkg/apis/management/v1.UserList": schema_pkg_apis_management_v1_UserList(ref), + "github.com/devsy-org/api/pkg/apis/management/v1.UserObjectPermissions": schema_pkg_apis_management_v1_UserObjectPermissions(ref), + "github.com/devsy-org/api/pkg/apis/management/v1.UserObjectPermissionsList": schema_pkg_apis_management_v1_UserObjectPermissionsList(ref), + "github.com/devsy-org/api/pkg/apis/management/v1.UserPermissions": schema_pkg_apis_management_v1_UserPermissions(ref), + "github.com/devsy-org/api/pkg/apis/management/v1.UserPermissionsList": schema_pkg_apis_management_v1_UserPermissionsList(ref), + "github.com/devsy-org/api/pkg/apis/management/v1.UserPermissionsRole": schema_pkg_apis_management_v1_UserPermissionsRole(ref), + "github.com/devsy-org/api/pkg/apis/management/v1.UserProfile": schema_pkg_apis_management_v1_UserProfile(ref), + "github.com/devsy-org/api/pkg/apis/management/v1.UserProfileList": schema_pkg_apis_management_v1_UserProfileList(ref), + "github.com/devsy-org/api/pkg/apis/management/v1.UserProfileSecret": schema_pkg_apis_management_v1_UserProfileSecret(ref), + "github.com/devsy-org/api/pkg/apis/management/v1.UserQuotasOptions": schema_pkg_apis_management_v1_UserQuotasOptions(ref), + "github.com/devsy-org/api/pkg/apis/management/v1.UserSpacesOptions": schema_pkg_apis_management_v1_UserSpacesOptions(ref), + "github.com/devsy-org/api/pkg/apis/management/v1.UserSpec": schema_pkg_apis_management_v1_UserSpec(ref), + "github.com/devsy-org/api/pkg/apis/management/v1.UserStatus": schema_pkg_apis_management_v1_UserStatus(ref), + "github.com/devsy-org/api/pkg/apis/management/v1.UserVirtualClustersOptions": schema_pkg_apis_management_v1_UserVirtualClustersOptions(ref), + "github.com/devsy-org/api/pkg/apis/management/v1.VirtualClusterAccessKey": schema_pkg_apis_management_v1_VirtualClusterAccessKey(ref), + "github.com/devsy-org/api/pkg/apis/management/v1.VirtualClusterAccessKeyList": schema_pkg_apis_management_v1_VirtualClusterAccessKeyList(ref), + "github.com/devsy-org/api/pkg/apis/management/v1.VirtualClusterExternalDatabase": schema_pkg_apis_management_v1_VirtualClusterExternalDatabase(ref), + "github.com/devsy-org/api/pkg/apis/management/v1.VirtualClusterExternalDatabaseList": schema_pkg_apis_management_v1_VirtualClusterExternalDatabaseList(ref), + "github.com/devsy-org/api/pkg/apis/management/v1.VirtualClusterExternalDatabaseSpec": schema_pkg_apis_management_v1_VirtualClusterExternalDatabaseSpec(ref), + "github.com/devsy-org/api/pkg/apis/management/v1.VirtualClusterExternalDatabaseStatus": schema_pkg_apis_management_v1_VirtualClusterExternalDatabaseStatus(ref), + "github.com/devsy-org/api/pkg/apis/management/v1.VirtualClusterInstance": schema_pkg_apis_management_v1_VirtualClusterInstance(ref), + "github.com/devsy-org/api/pkg/apis/management/v1.VirtualClusterInstanceKubeConfig": schema_pkg_apis_management_v1_VirtualClusterInstanceKubeConfig(ref), + "github.com/devsy-org/api/pkg/apis/management/v1.VirtualClusterInstanceKubeConfigList": schema_pkg_apis_management_v1_VirtualClusterInstanceKubeConfigList(ref), + "github.com/devsy-org/api/pkg/apis/management/v1.VirtualClusterInstanceKubeConfigSpec": schema_pkg_apis_management_v1_VirtualClusterInstanceKubeConfigSpec(ref), + "github.com/devsy-org/api/pkg/apis/management/v1.VirtualClusterInstanceKubeConfigStatus": schema_pkg_apis_management_v1_VirtualClusterInstanceKubeConfigStatus(ref), + "github.com/devsy-org/api/pkg/apis/management/v1.VirtualClusterInstanceList": schema_pkg_apis_management_v1_VirtualClusterInstanceList(ref), + "github.com/devsy-org/api/pkg/apis/management/v1.VirtualClusterInstanceLog": schema_pkg_apis_management_v1_VirtualClusterInstanceLog(ref), + "github.com/devsy-org/api/pkg/apis/management/v1.VirtualClusterInstanceLogList": schema_pkg_apis_management_v1_VirtualClusterInstanceLogList(ref), + "github.com/devsy-org/api/pkg/apis/management/v1.VirtualClusterInstanceLogOptions": schema_pkg_apis_management_v1_VirtualClusterInstanceLogOptions(ref), + "github.com/devsy-org/api/pkg/apis/management/v1.VirtualClusterInstanceSnapshot": schema_pkg_apis_management_v1_VirtualClusterInstanceSnapshot(ref), + "github.com/devsy-org/api/pkg/apis/management/v1.VirtualClusterInstanceSnapshotList": schema_pkg_apis_management_v1_VirtualClusterInstanceSnapshotList(ref), + "github.com/devsy-org/api/pkg/apis/management/v1.VirtualClusterInstanceSnapshotStatus": schema_pkg_apis_management_v1_VirtualClusterInstanceSnapshotStatus(ref), + "github.com/devsy-org/api/pkg/apis/management/v1.VirtualClusterInstanceSpec": schema_pkg_apis_management_v1_VirtualClusterInstanceSpec(ref), + "github.com/devsy-org/api/pkg/apis/management/v1.VirtualClusterInstanceStatus": schema_pkg_apis_management_v1_VirtualClusterInstanceStatus(ref), + "github.com/devsy-org/api/pkg/apis/management/v1.VirtualClusterNodeAccessKey": schema_pkg_apis_management_v1_VirtualClusterNodeAccessKey(ref), + "github.com/devsy-org/api/pkg/apis/management/v1.VirtualClusterNodeAccessKeyList": schema_pkg_apis_management_v1_VirtualClusterNodeAccessKeyList(ref), + "github.com/devsy-org/api/pkg/apis/management/v1.VirtualClusterNodeAccessKeySpec": schema_pkg_apis_management_v1_VirtualClusterNodeAccessKeySpec(ref), + "github.com/devsy-org/api/pkg/apis/management/v1.VirtualClusterNodeAccessKeyStatus": schema_pkg_apis_management_v1_VirtualClusterNodeAccessKeyStatus(ref), + "github.com/devsy-org/api/pkg/apis/management/v1.VirtualClusterRole": schema_pkg_apis_management_v1_VirtualClusterRole(ref), + "github.com/devsy-org/api/pkg/apis/management/v1.VirtualClusterSchema": schema_pkg_apis_management_v1_VirtualClusterSchema(ref), + "github.com/devsy-org/api/pkg/apis/management/v1.VirtualClusterSchemaList": schema_pkg_apis_management_v1_VirtualClusterSchemaList(ref), + "github.com/devsy-org/api/pkg/apis/management/v1.VirtualClusterSchemaSpec": schema_pkg_apis_management_v1_VirtualClusterSchemaSpec(ref), + "github.com/devsy-org/api/pkg/apis/management/v1.VirtualClusterSchemaStatus": schema_pkg_apis_management_v1_VirtualClusterSchemaStatus(ref), + "github.com/devsy-org/api/pkg/apis/management/v1.VirtualClusterStandalone": schema_pkg_apis_management_v1_VirtualClusterStandalone(ref), + "github.com/devsy-org/api/pkg/apis/management/v1.VirtualClusterStandaloneList": schema_pkg_apis_management_v1_VirtualClusterStandaloneList(ref), + "github.com/devsy-org/api/pkg/apis/management/v1.VirtualClusterStandaloneSpec": schema_pkg_apis_management_v1_VirtualClusterStandaloneSpec(ref), + "github.com/devsy-org/api/pkg/apis/management/v1.VirtualClusterStandaloneStatus": schema_pkg_apis_management_v1_VirtualClusterStandaloneStatus(ref), + "github.com/devsy-org/api/pkg/apis/management/v1.VirtualClusterTemplate": schema_pkg_apis_management_v1_VirtualClusterTemplate(ref), + "github.com/devsy-org/api/pkg/apis/management/v1.VirtualClusterTemplateList": schema_pkg_apis_management_v1_VirtualClusterTemplateList(ref), + "github.com/devsy-org/api/pkg/apis/management/v1.VirtualClusterTemplateSpec": schema_pkg_apis_management_v1_VirtualClusterTemplateSpec(ref), + "github.com/devsy-org/api/pkg/apis/management/v1.VirtualClusterTemplateStatus": schema_pkg_apis_management_v1_VirtualClusterTemplateStatus(ref), + "github.com/devsy-org/api/pkg/apis/storage/v1.Access": schema_pkg_apis_storage_v1_Access(ref), + "github.com/devsy-org/api/pkg/apis/storage/v1.AccessKey": schema_pkg_apis_storage_v1_AccessKey(ref), + "github.com/devsy-org/api/pkg/apis/storage/v1.AccessKeyList": schema_pkg_apis_storage_v1_AccessKeyList(ref), + "github.com/devsy-org/api/pkg/apis/storage/v1.AccessKeyOIDC": schema_pkg_apis_storage_v1_AccessKeyOIDC(ref), + "github.com/devsy-org/api/pkg/apis/storage/v1.AccessKeyOIDCProvider": schema_pkg_apis_storage_v1_AccessKeyOIDCProvider(ref), + "github.com/devsy-org/api/pkg/apis/storage/v1.AccessKeyScope": schema_pkg_apis_storage_v1_AccessKeyScope(ref), + "github.com/devsy-org/api/pkg/apis/storage/v1.AccessKeyScopeCluster": schema_pkg_apis_storage_v1_AccessKeyScopeCluster(ref), + "github.com/devsy-org/api/pkg/apis/storage/v1.AccessKeyScopeProject": schema_pkg_apis_storage_v1_AccessKeyScopeProject(ref), + "github.com/devsy-org/api/pkg/apis/storage/v1.AccessKeyScopeRole": schema_pkg_apis_storage_v1_AccessKeyScopeRole(ref), + "github.com/devsy-org/api/pkg/apis/storage/v1.AccessKeyScopeRule": schema_pkg_apis_storage_v1_AccessKeyScopeRule(ref), + "github.com/devsy-org/api/pkg/apis/storage/v1.AccessKeyScopeSpace": schema_pkg_apis_storage_v1_AccessKeyScopeSpace(ref), + "github.com/devsy-org/api/pkg/apis/storage/v1.AccessKeyScopeVirtualCluster": schema_pkg_apis_storage_v1_AccessKeyScopeVirtualCluster(ref), + "github.com/devsy-org/api/pkg/apis/storage/v1.AccessKeySpec": schema_pkg_apis_storage_v1_AccessKeySpec(ref), + "github.com/devsy-org/api/pkg/apis/storage/v1.AccessKeyStatus": schema_pkg_apis_storage_v1_AccessKeyStatus(ref), + "github.com/devsy-org/api/pkg/apis/storage/v1.AccessKeyVirtualCluster": schema_pkg_apis_storage_v1_AccessKeyVirtualCluster(ref), + "github.com/devsy-org/api/pkg/apis/storage/v1.AllowedCluster": schema_pkg_apis_storage_v1_AllowedCluster(ref), + "github.com/devsy-org/api/pkg/apis/storage/v1.AllowedClusterAccountTemplate": schema_pkg_apis_storage_v1_AllowedClusterAccountTemplate(ref), + "github.com/devsy-org/api/pkg/apis/storage/v1.AllowedRunner": schema_pkg_apis_storage_v1_AllowedRunner(ref), + "github.com/devsy-org/api/pkg/apis/storage/v1.AllowedTemplate": schema_pkg_apis_storage_v1_AllowedTemplate(ref), + "github.com/devsy-org/api/pkg/apis/storage/v1.App": schema_pkg_apis_storage_v1_App(ref), + "github.com/devsy-org/api/pkg/apis/storage/v1.AppConfig": schema_pkg_apis_storage_v1_AppConfig(ref), + "github.com/devsy-org/api/pkg/apis/storage/v1.AppList": schema_pkg_apis_storage_v1_AppList(ref), + "github.com/devsy-org/api/pkg/apis/storage/v1.AppParameter": schema_pkg_apis_storage_v1_AppParameter(ref), + "github.com/devsy-org/api/pkg/apis/storage/v1.AppReference": schema_pkg_apis_storage_v1_AppReference(ref), + "github.com/devsy-org/api/pkg/apis/storage/v1.AppSpec": schema_pkg_apis_storage_v1_AppSpec(ref), + "github.com/devsy-org/api/pkg/apis/storage/v1.AppStatus": schema_pkg_apis_storage_v1_AppStatus(ref), + "github.com/devsy-org/api/pkg/apis/storage/v1.AppTask": schema_pkg_apis_storage_v1_AppTask(ref), + "github.com/devsy-org/api/pkg/apis/storage/v1.AppVersion": schema_pkg_apis_storage_v1_AppVersion(ref), + "github.com/devsy-org/api/pkg/apis/storage/v1.ArgoIntegrationSpec": schema_pkg_apis_storage_v1_ArgoIntegrationSpec(ref), + "github.com/devsy-org/api/pkg/apis/storage/v1.ArgoProjectPolicyRule": schema_pkg_apis_storage_v1_ArgoProjectPolicyRule(ref), + "github.com/devsy-org/api/pkg/apis/storage/v1.ArgoProjectRole": schema_pkg_apis_storage_v1_ArgoProjectRole(ref), + "github.com/devsy-org/api/pkg/apis/storage/v1.ArgoProjectSpec": schema_pkg_apis_storage_v1_ArgoProjectSpec(ref), + "github.com/devsy-org/api/pkg/apis/storage/v1.ArgoProjectSpecMetadata": schema_pkg_apis_storage_v1_ArgoProjectSpecMetadata(ref), + "github.com/devsy-org/api/pkg/apis/storage/v1.ArgoSSOSpec": schema_pkg_apis_storage_v1_ArgoSSOSpec(ref), + "github.com/devsy-org/api/pkg/apis/storage/v1.BCMNodeTypeSpec": schema_pkg_apis_storage_v1_BCMNodeTypeSpec(ref), + "github.com/devsy-org/api/pkg/apis/storage/v1.Chart": schema_pkg_apis_storage_v1_Chart(ref), + "github.com/devsy-org/api/pkg/apis/storage/v1.ChartStatus": schema_pkg_apis_storage_v1_ChartStatus(ref), + "github.com/devsy-org/api/pkg/apis/storage/v1.Cluster": schema_pkg_apis_storage_v1_Cluster(ref), + "github.com/devsy-org/api/pkg/apis/storage/v1.ClusterAccess": schema_pkg_apis_storage_v1_ClusterAccess(ref), + "github.com/devsy-org/api/pkg/apis/storage/v1.ClusterAccessList": schema_pkg_apis_storage_v1_ClusterAccessList(ref), + "github.com/devsy-org/api/pkg/apis/storage/v1.ClusterAccessSpec": schema_pkg_apis_storage_v1_ClusterAccessSpec(ref), + "github.com/devsy-org/api/pkg/apis/storage/v1.ClusterAccessStatus": schema_pkg_apis_storage_v1_ClusterAccessStatus(ref), + "github.com/devsy-org/api/pkg/apis/storage/v1.ClusterList": schema_pkg_apis_storage_v1_ClusterList(ref), + "github.com/devsy-org/api/pkg/apis/storage/v1.ClusterRef": schema_pkg_apis_storage_v1_ClusterRef(ref), + "github.com/devsy-org/api/pkg/apis/storage/v1.ClusterRoleRef": schema_pkg_apis_storage_v1_ClusterRoleRef(ref), + "github.com/devsy-org/api/pkg/apis/storage/v1.ClusterRoleTemplate": schema_pkg_apis_storage_v1_ClusterRoleTemplate(ref), + "github.com/devsy-org/api/pkg/apis/storage/v1.ClusterRoleTemplateList": schema_pkg_apis_storage_v1_ClusterRoleTemplateList(ref), + "github.com/devsy-org/api/pkg/apis/storage/v1.ClusterRoleTemplateSpec": schema_pkg_apis_storage_v1_ClusterRoleTemplateSpec(ref), + "github.com/devsy-org/api/pkg/apis/storage/v1.ClusterRoleTemplateStatus": schema_pkg_apis_storage_v1_ClusterRoleTemplateStatus(ref), + "github.com/devsy-org/api/pkg/apis/storage/v1.ClusterRoleTemplateTemplate": schema_pkg_apis_storage_v1_ClusterRoleTemplateTemplate(ref), + "github.com/devsy-org/api/pkg/apis/storage/v1.ClusterSpec": schema_pkg_apis_storage_v1_ClusterSpec(ref), + "github.com/devsy-org/api/pkg/apis/storage/v1.ClusterStatus": schema_pkg_apis_storage_v1_ClusterStatus(ref), + "github.com/devsy-org/api/pkg/apis/storage/v1.CredentialForwarding": schema_pkg_apis_storage_v1_CredentialForwarding(ref), + "github.com/devsy-org/api/pkg/apis/storage/v1.DevsyCommandDeleteOptions": schema_pkg_apis_storage_v1_DevsyCommandDeleteOptions(ref), + "github.com/devsy-org/api/pkg/apis/storage/v1.DevsyCommandStatusOptions": schema_pkg_apis_storage_v1_DevsyCommandStatusOptions(ref), + "github.com/devsy-org/api/pkg/apis/storage/v1.DevsyCommandStopOptions": schema_pkg_apis_storage_v1_DevsyCommandStopOptions(ref), + "github.com/devsy-org/api/pkg/apis/storage/v1.DevsyCommandUpOptions": schema_pkg_apis_storage_v1_DevsyCommandUpOptions(ref), + "github.com/devsy-org/api/pkg/apis/storage/v1.DevsyEnvironmentTemplate": schema_pkg_apis_storage_v1_DevsyEnvironmentTemplate(ref), + "github.com/devsy-org/api/pkg/apis/storage/v1.DevsyEnvironmentTemplateDefinition": schema_pkg_apis_storage_v1_DevsyEnvironmentTemplateDefinition(ref), + "github.com/devsy-org/api/pkg/apis/storage/v1.DevsyEnvironmentTemplateList": schema_pkg_apis_storage_v1_DevsyEnvironmentTemplateList(ref), + "github.com/devsy-org/api/pkg/apis/storage/v1.DevsyEnvironmentTemplateSpec": schema_pkg_apis_storage_v1_DevsyEnvironmentTemplateSpec(ref), + "github.com/devsy-org/api/pkg/apis/storage/v1.DevsyEnvironmentTemplateStatus": schema_pkg_apis_storage_v1_DevsyEnvironmentTemplateStatus(ref), + "github.com/devsy-org/api/pkg/apis/storage/v1.DevsyEnvironmentTemplateVersion": schema_pkg_apis_storage_v1_DevsyEnvironmentTemplateVersion(ref), + "github.com/devsy-org/api/pkg/apis/storage/v1.DevsyProjectSpec": schema_pkg_apis_storage_v1_DevsyProjectSpec(ref), + "github.com/devsy-org/api/pkg/apis/storage/v1.DevsyProviderOption": schema_pkg_apis_storage_v1_DevsyProviderOption(ref), + "github.com/devsy-org/api/pkg/apis/storage/v1.DevsyProviderOptionFrom": schema_pkg_apis_storage_v1_DevsyProviderOptionFrom(ref), + "github.com/devsy-org/api/pkg/apis/storage/v1.DevsyProviderSource": schema_pkg_apis_storage_v1_DevsyProviderSource(ref), + "github.com/devsy-org/api/pkg/apis/storage/v1.DevsyWorkspaceContainer": schema_pkg_apis_storage_v1_DevsyWorkspaceContainer(ref), + "github.com/devsy-org/api/pkg/apis/storage/v1.DevsyWorkspaceInstance": schema_pkg_apis_storage_v1_DevsyWorkspaceInstance(ref), + "github.com/devsy-org/api/pkg/apis/storage/v1.DevsyWorkspaceInstanceContainerResource": schema_pkg_apis_storage_v1_DevsyWorkspaceInstanceContainerResource(ref), + "github.com/devsy-org/api/pkg/apis/storage/v1.DevsyWorkspaceInstanceEvent": schema_pkg_apis_storage_v1_DevsyWorkspaceInstanceEvent(ref), + "github.com/devsy-org/api/pkg/apis/storage/v1.DevsyWorkspaceInstanceKubernetesStatus": schema_pkg_apis_storage_v1_DevsyWorkspaceInstanceKubernetesStatus(ref), + "github.com/devsy-org/api/pkg/apis/storage/v1.DevsyWorkspaceInstanceList": schema_pkg_apis_storage_v1_DevsyWorkspaceInstanceList(ref), + "github.com/devsy-org/api/pkg/apis/storage/v1.DevsyWorkspaceInstancePersistentVolumeClaimStatus": schema_pkg_apis_storage_v1_DevsyWorkspaceInstancePersistentVolumeClaimStatus(ref), + "github.com/devsy-org/api/pkg/apis/storage/v1.DevsyWorkspaceInstancePodStatus": schema_pkg_apis_storage_v1_DevsyWorkspaceInstancePodStatus(ref), + "github.com/devsy-org/api/pkg/apis/storage/v1.DevsyWorkspaceInstanceSpec": schema_pkg_apis_storage_v1_DevsyWorkspaceInstanceSpec(ref), + "github.com/devsy-org/api/pkg/apis/storage/v1.DevsyWorkspaceInstanceStatus": schema_pkg_apis_storage_v1_DevsyWorkspaceInstanceStatus(ref), + "github.com/devsy-org/api/pkg/apis/storage/v1.DevsyWorkspaceInstanceTemplateDefinition": schema_pkg_apis_storage_v1_DevsyWorkspaceInstanceTemplateDefinition(ref), + "github.com/devsy-org/api/pkg/apis/storage/v1.DevsyWorkspaceKubernetesSpec": schema_pkg_apis_storage_v1_DevsyWorkspaceKubernetesSpec(ref), + "github.com/devsy-org/api/pkg/apis/storage/v1.DevsyWorkspacePodTemplate": schema_pkg_apis_storage_v1_DevsyWorkspacePodTemplate(ref), + "github.com/devsy-org/api/pkg/apis/storage/v1.DevsyWorkspacePodTemplateSpec": schema_pkg_apis_storage_v1_DevsyWorkspacePodTemplateSpec(ref), + "github.com/devsy-org/api/pkg/apis/storage/v1.DevsyWorkspacePreset": schema_pkg_apis_storage_v1_DevsyWorkspacePreset(ref), + "github.com/devsy-org/api/pkg/apis/storage/v1.DevsyWorkspacePresetList": schema_pkg_apis_storage_v1_DevsyWorkspacePresetList(ref), + "github.com/devsy-org/api/pkg/apis/storage/v1.DevsyWorkspacePresetSource": schema_pkg_apis_storage_v1_DevsyWorkspacePresetSource(ref), + "github.com/devsy-org/api/pkg/apis/storage/v1.DevsyWorkspacePresetSpec": schema_pkg_apis_storage_v1_DevsyWorkspacePresetSpec(ref), + "github.com/devsy-org/api/pkg/apis/storage/v1.DevsyWorkspacePresetStatus": schema_pkg_apis_storage_v1_DevsyWorkspacePresetStatus(ref), + "github.com/devsy-org/api/pkg/apis/storage/v1.DevsyWorkspacePresetVersion": schema_pkg_apis_storage_v1_DevsyWorkspacePresetVersion(ref), + "github.com/devsy-org/api/pkg/apis/storage/v1.DevsyWorkspaceProvider": schema_pkg_apis_storage_v1_DevsyWorkspaceProvider(ref), + "github.com/devsy-org/api/pkg/apis/storage/v1.DevsyWorkspaceResourceRequirements": schema_pkg_apis_storage_v1_DevsyWorkspaceResourceRequirements(ref), + "github.com/devsy-org/api/pkg/apis/storage/v1.DevsyWorkspaceTemplate": schema_pkg_apis_storage_v1_DevsyWorkspaceTemplate(ref), + "github.com/devsy-org/api/pkg/apis/storage/v1.DevsyWorkspaceTemplateDefinition": schema_pkg_apis_storage_v1_DevsyWorkspaceTemplateDefinition(ref), + "github.com/devsy-org/api/pkg/apis/storage/v1.DevsyWorkspaceTemplateList": schema_pkg_apis_storage_v1_DevsyWorkspaceTemplateList(ref), + "github.com/devsy-org/api/pkg/apis/storage/v1.DevsyWorkspaceTemplateSpec": schema_pkg_apis_storage_v1_DevsyWorkspaceTemplateSpec(ref), + "github.com/devsy-org/api/pkg/apis/storage/v1.DevsyWorkspaceTemplateStatus": schema_pkg_apis_storage_v1_DevsyWorkspaceTemplateStatus(ref), + "github.com/devsy-org/api/pkg/apis/storage/v1.DevsyWorkspaceTemplateVersion": schema_pkg_apis_storage_v1_DevsyWorkspaceTemplateVersion(ref), + "github.com/devsy-org/api/pkg/apis/storage/v1.DevsyWorkspaceVolumeClaimSpec": schema_pkg_apis_storage_v1_DevsyWorkspaceVolumeClaimSpec(ref), + "github.com/devsy-org/api/pkg/apis/storage/v1.DevsyWorkspaceVolumeClaimTemplate": schema_pkg_apis_storage_v1_DevsyWorkspaceVolumeClaimTemplate(ref), + "github.com/devsy-org/api/pkg/apis/storage/v1.DockerCredentialForwarding": schema_pkg_apis_storage_v1_DockerCredentialForwarding(ref), + "github.com/devsy-org/api/pkg/apis/storage/v1.EntityInfo": schema_pkg_apis_storage_v1_EntityInfo(ref), + "github.com/devsy-org/api/pkg/apis/storage/v1.EnvironmentRef": schema_pkg_apis_storage_v1_EnvironmentRef(ref), + "github.com/devsy-org/api/pkg/apis/storage/v1.GitCredentialForwarding": schema_pkg_apis_storage_v1_GitCredentialForwarding(ref), + "github.com/devsy-org/api/pkg/apis/storage/v1.GitEnvironmentTemplate": schema_pkg_apis_storage_v1_GitEnvironmentTemplate(ref), + "github.com/devsy-org/api/pkg/apis/storage/v1.GitProjectCredentials": schema_pkg_apis_storage_v1_GitProjectCredentials(ref), + "github.com/devsy-org/api/pkg/apis/storage/v1.GitProjectSpec": schema_pkg_apis_storage_v1_GitProjectSpec(ref), + "github.com/devsy-org/api/pkg/apis/storage/v1.GroupResources": schema_pkg_apis_storage_v1_GroupResources(ref), + "github.com/devsy-org/api/pkg/apis/storage/v1.HelmChart": schema_pkg_apis_storage_v1_HelmChart(ref), + "github.com/devsy-org/api/pkg/apis/storage/v1.HelmChartRepository": schema_pkg_apis_storage_v1_HelmChartRepository(ref), + "github.com/devsy-org/api/pkg/apis/storage/v1.HelmConfiguration": schema_pkg_apis_storage_v1_HelmConfiguration(ref), + "github.com/devsy-org/api/pkg/apis/storage/v1.HelmTask": schema_pkg_apis_storage_v1_HelmTask(ref), + "github.com/devsy-org/api/pkg/apis/storage/v1.HelmTaskRelease": schema_pkg_apis_storage_v1_HelmTaskRelease(ref), + "github.com/devsy-org/api/pkg/apis/storage/v1.ImportVirtualClustersSpec": schema_pkg_apis_storage_v1_ImportVirtualClustersSpec(ref), + "github.com/devsy-org/api/pkg/apis/storage/v1.InstanceAccess": schema_pkg_apis_storage_v1_InstanceAccess(ref), + "github.com/devsy-org/api/pkg/apis/storage/v1.InstanceAccessRule": schema_pkg_apis_storage_v1_InstanceAccessRule(ref), + "github.com/devsy-org/api/pkg/apis/storage/v1.InstanceDeployedAppStatus": schema_pkg_apis_storage_v1_InstanceDeployedAppStatus(ref), + "github.com/devsy-org/api/pkg/apis/storage/v1.KindSecretRef": schema_pkg_apis_storage_v1_KindSecretRef(ref), + "github.com/devsy-org/api/pkg/apis/storage/v1.KubeVirtClusterRef": schema_pkg_apis_storage_v1_KubeVirtClusterRef(ref), + "github.com/devsy-org/api/pkg/apis/storage/v1.KubeVirtNodeTypeSpec": schema_pkg_apis_storage_v1_KubeVirtNodeTypeSpec(ref), + "github.com/devsy-org/api/pkg/apis/storage/v1.LocalClusterAccessSpec": schema_pkg_apis_storage_v1_LocalClusterAccessSpec(ref), + "github.com/devsy-org/api/pkg/apis/storage/v1.LocalClusterAccessTemplate": schema_pkg_apis_storage_v1_LocalClusterAccessTemplate(ref), + "github.com/devsy-org/api/pkg/apis/storage/v1.LocalClusterRoleTemplate": schema_pkg_apis_storage_v1_LocalClusterRoleTemplate(ref), + "github.com/devsy-org/api/pkg/apis/storage/v1.LocalClusterRoleTemplateSpec": schema_pkg_apis_storage_v1_LocalClusterRoleTemplateSpec(ref), + "github.com/devsy-org/api/pkg/apis/storage/v1.ManagedNodeTypeObjectMeta": schema_pkg_apis_storage_v1_ManagedNodeTypeObjectMeta(ref), + "github.com/devsy-org/api/pkg/apis/storage/v1.Member": schema_pkg_apis_storage_v1_Member(ref), + "github.com/devsy-org/api/pkg/apis/storage/v1.Metrics": schema_pkg_apis_storage_v1_Metrics(ref), + "github.com/devsy-org/api/pkg/apis/storage/v1.NamedNodeTypeSpec": schema_pkg_apis_storage_v1_NamedNodeTypeSpec(ref), + "github.com/devsy-org/api/pkg/apis/storage/v1.NamespacePattern": schema_pkg_apis_storage_v1_NamespacePattern(ref), + "github.com/devsy-org/api/pkg/apis/storage/v1.NamespacedRef": schema_pkg_apis_storage_v1_NamespacedRef(ref), + "github.com/devsy-org/api/pkg/apis/storage/v1.NetworkPeer": schema_pkg_apis_storage_v1_NetworkPeer(ref), + "github.com/devsy-org/api/pkg/apis/storage/v1.NetworkPeerList": schema_pkg_apis_storage_v1_NetworkPeerList(ref), + "github.com/devsy-org/api/pkg/apis/storage/v1.NetworkPeerSpec": schema_pkg_apis_storage_v1_NetworkPeerSpec(ref), + "github.com/devsy-org/api/pkg/apis/storage/v1.NetworkPeerStatus": schema_pkg_apis_storage_v1_NetworkPeerStatus(ref), + "github.com/devsy-org/api/pkg/apis/storage/v1.NodeClaim": schema_pkg_apis_storage_v1_NodeClaim(ref), + "github.com/devsy-org/api/pkg/apis/storage/v1.NodeClaimList": schema_pkg_apis_storage_v1_NodeClaimList(ref), + "github.com/devsy-org/api/pkg/apis/storage/v1.NodeClaimSpec": schema_pkg_apis_storage_v1_NodeClaimSpec(ref), + "github.com/devsy-org/api/pkg/apis/storage/v1.NodeClaimStatus": schema_pkg_apis_storage_v1_NodeClaimStatus(ref), + "github.com/devsy-org/api/pkg/apis/storage/v1.NodeEnvironment": schema_pkg_apis_storage_v1_NodeEnvironment(ref), + "github.com/devsy-org/api/pkg/apis/storage/v1.NodeEnvironmentList": schema_pkg_apis_storage_v1_NodeEnvironmentList(ref), + "github.com/devsy-org/api/pkg/apis/storage/v1.NodeEnvironmentSpec": schema_pkg_apis_storage_v1_NodeEnvironmentSpec(ref), + "github.com/devsy-org/api/pkg/apis/storage/v1.NodeEnvironmentStatus": schema_pkg_apis_storage_v1_NodeEnvironmentStatus(ref), + "github.com/devsy-org/api/pkg/apis/storage/v1.NodeProvider": schema_pkg_apis_storage_v1_NodeProvider(ref), + "github.com/devsy-org/api/pkg/apis/storage/v1.NodeProviderBCM": schema_pkg_apis_storage_v1_NodeProviderBCM(ref), + "github.com/devsy-org/api/pkg/apis/storage/v1.NodeProviderKubeVirt": schema_pkg_apis_storage_v1_NodeProviderKubeVirt(ref), + "github.com/devsy-org/api/pkg/apis/storage/v1.NodeProviderList": schema_pkg_apis_storage_v1_NodeProviderList(ref), + "github.com/devsy-org/api/pkg/apis/storage/v1.NodeProviderSpec": schema_pkg_apis_storage_v1_NodeProviderSpec(ref), + "github.com/devsy-org/api/pkg/apis/storage/v1.NodeProviderStatus": schema_pkg_apis_storage_v1_NodeProviderStatus(ref), + "github.com/devsy-org/api/pkg/apis/storage/v1.NodeProviderTerraform": schema_pkg_apis_storage_v1_NodeProviderTerraform(ref), + "github.com/devsy-org/api/pkg/apis/storage/v1.NodeType": schema_pkg_apis_storage_v1_NodeType(ref), + "github.com/devsy-org/api/pkg/apis/storage/v1.NodeTypeCapacity": schema_pkg_apis_storage_v1_NodeTypeCapacity(ref), + "github.com/devsy-org/api/pkg/apis/storage/v1.NodeTypeList": schema_pkg_apis_storage_v1_NodeTypeList(ref), + "github.com/devsy-org/api/pkg/apis/storage/v1.NodeTypeOverhead": schema_pkg_apis_storage_v1_NodeTypeOverhead(ref), + "github.com/devsy-org/api/pkg/apis/storage/v1.NodeTypeSpec": schema_pkg_apis_storage_v1_NodeTypeSpec(ref), + "github.com/devsy-org/api/pkg/apis/storage/v1.NodeTypeStatus": schema_pkg_apis_storage_v1_NodeTypeStatus(ref), + "github.com/devsy-org/api/pkg/apis/storage/v1.ObjectsStatus": schema_pkg_apis_storage_v1_ObjectsStatus(ref), + "github.com/devsy-org/api/pkg/apis/storage/v1.OpenCost": schema_pkg_apis_storage_v1_OpenCost(ref), + "github.com/devsy-org/api/pkg/apis/storage/v1.PodSelector": schema_pkg_apis_storage_v1_PodSelector(ref), + "github.com/devsy-org/api/pkg/apis/storage/v1.PresetRef": schema_pkg_apis_storage_v1_PresetRef(ref), + "github.com/devsy-org/api/pkg/apis/storage/v1.Project": schema_pkg_apis_storage_v1_Project(ref), + "github.com/devsy-org/api/pkg/apis/storage/v1.ProjectList": schema_pkg_apis_storage_v1_ProjectList(ref), + "github.com/devsy-org/api/pkg/apis/storage/v1.ProjectSpec": schema_pkg_apis_storage_v1_ProjectSpec(ref), + "github.com/devsy-org/api/pkg/apis/storage/v1.ProjectStatus": schema_pkg_apis_storage_v1_ProjectStatus(ref), + "github.com/devsy-org/api/pkg/apis/storage/v1.QuotaStatus": schema_pkg_apis_storage_v1_QuotaStatus(ref), + "github.com/devsy-org/api/pkg/apis/storage/v1.QuotaStatusProject": schema_pkg_apis_storage_v1_QuotaStatusProject(ref), + "github.com/devsy-org/api/pkg/apis/storage/v1.QuotaStatusProjectCluster": schema_pkg_apis_storage_v1_QuotaStatusProjectCluster(ref), + "github.com/devsy-org/api/pkg/apis/storage/v1.QuotaStatusUser": schema_pkg_apis_storage_v1_QuotaStatusUser(ref), + "github.com/devsy-org/api/pkg/apis/storage/v1.QuotaStatusUserUsed": schema_pkg_apis_storage_v1_QuotaStatusUserUsed(ref), + "github.com/devsy-org/api/pkg/apis/storage/v1.Quotas": schema_pkg_apis_storage_v1_Quotas(ref), + "github.com/devsy-org/api/pkg/apis/storage/v1.RancherIntegrationSpec": schema_pkg_apis_storage_v1_RancherIntegrationSpec(ref), + "github.com/devsy-org/api/pkg/apis/storage/v1.RancherProjectRef": schema_pkg_apis_storage_v1_RancherProjectRef(ref), + "github.com/devsy-org/api/pkg/apis/storage/v1.RequirePreset": schema_pkg_apis_storage_v1_RequirePreset(ref), + "github.com/devsy-org/api/pkg/apis/storage/v1.RequireTemplate": schema_pkg_apis_storage_v1_RequireTemplate(ref), + "github.com/devsy-org/api/pkg/apis/storage/v1.RunnerRef": schema_pkg_apis_storage_v1_RunnerRef(ref), + "github.com/devsy-org/api/pkg/apis/storage/v1.SSOIdentity": schema_pkg_apis_storage_v1_SSOIdentity(ref), + "github.com/devsy-org/api/pkg/apis/storage/v1.SecretRef": schema_pkg_apis_storage_v1_SecretRef(ref), + "github.com/devsy-org/api/pkg/apis/storage/v1.SharedSecret": schema_pkg_apis_storage_v1_SharedSecret(ref), + "github.com/devsy-org/api/pkg/apis/storage/v1.SharedSecretList": schema_pkg_apis_storage_v1_SharedSecretList(ref), + "github.com/devsy-org/api/pkg/apis/storage/v1.SharedSecretSpec": schema_pkg_apis_storage_v1_SharedSecretSpec(ref), + "github.com/devsy-org/api/pkg/apis/storage/v1.SharedSecretStatus": schema_pkg_apis_storage_v1_SharedSecretStatus(ref), + "github.com/devsy-org/api/pkg/apis/storage/v1.SpaceInstance": schema_pkg_apis_storage_v1_SpaceInstance(ref), + "github.com/devsy-org/api/pkg/apis/storage/v1.SpaceInstanceList": schema_pkg_apis_storage_v1_SpaceInstanceList(ref), + "github.com/devsy-org/api/pkg/apis/storage/v1.SpaceInstanceSpec": schema_pkg_apis_storage_v1_SpaceInstanceSpec(ref), + "github.com/devsy-org/api/pkg/apis/storage/v1.SpaceInstanceStatus": schema_pkg_apis_storage_v1_SpaceInstanceStatus(ref), + "github.com/devsy-org/api/pkg/apis/storage/v1.SpaceInstanceTemplateDefinition": schema_pkg_apis_storage_v1_SpaceInstanceTemplateDefinition(ref), + "github.com/devsy-org/api/pkg/apis/storage/v1.SpaceTemplate": schema_pkg_apis_storage_v1_SpaceTemplate(ref), + "github.com/devsy-org/api/pkg/apis/storage/v1.SpaceTemplateDefinition": schema_pkg_apis_storage_v1_SpaceTemplateDefinition(ref), + "github.com/devsy-org/api/pkg/apis/storage/v1.SpaceTemplateList": schema_pkg_apis_storage_v1_SpaceTemplateList(ref), + "github.com/devsy-org/api/pkg/apis/storage/v1.SpaceTemplateSpec": schema_pkg_apis_storage_v1_SpaceTemplateSpec(ref), + "github.com/devsy-org/api/pkg/apis/storage/v1.SpaceTemplateStatus": schema_pkg_apis_storage_v1_SpaceTemplateStatus(ref), + "github.com/devsy-org/api/pkg/apis/storage/v1.SpaceTemplateVersion": schema_pkg_apis_storage_v1_SpaceTemplateVersion(ref), + "github.com/devsy-org/api/pkg/apis/storage/v1.Storage": schema_pkg_apis_storage_v1_Storage(ref), + "github.com/devsy-org/api/pkg/apis/storage/v1.StreamContainer": schema_pkg_apis_storage_v1_StreamContainer(ref), + "github.com/devsy-org/api/pkg/apis/storage/v1.SyncMembersSpec": schema_pkg_apis_storage_v1_SyncMembersSpec(ref), + "github.com/devsy-org/api/pkg/apis/storage/v1.Target": schema_pkg_apis_storage_v1_Target(ref), + "github.com/devsy-org/api/pkg/apis/storage/v1.TargetCluster": schema_pkg_apis_storage_v1_TargetCluster(ref), + "github.com/devsy-org/api/pkg/apis/storage/v1.TargetInstance": schema_pkg_apis_storage_v1_TargetInstance(ref), + "github.com/devsy-org/api/pkg/apis/storage/v1.TargetVirtualCluster": schema_pkg_apis_storage_v1_TargetVirtualCluster(ref), + "github.com/devsy-org/api/pkg/apis/storage/v1.Task": schema_pkg_apis_storage_v1_Task(ref), + "github.com/devsy-org/api/pkg/apis/storage/v1.TaskDefinition": schema_pkg_apis_storage_v1_TaskDefinition(ref), + "github.com/devsy-org/api/pkg/apis/storage/v1.TaskList": schema_pkg_apis_storage_v1_TaskList(ref), + "github.com/devsy-org/api/pkg/apis/storage/v1.TaskSpec": schema_pkg_apis_storage_v1_TaskSpec(ref), + "github.com/devsy-org/api/pkg/apis/storage/v1.TaskStatus": schema_pkg_apis_storage_v1_TaskStatus(ref), + "github.com/devsy-org/api/pkg/apis/storage/v1.Team": schema_pkg_apis_storage_v1_Team(ref), + "github.com/devsy-org/api/pkg/apis/storage/v1.TeamList": schema_pkg_apis_storage_v1_TeamList(ref), + "github.com/devsy-org/api/pkg/apis/storage/v1.TeamSpec": schema_pkg_apis_storage_v1_TeamSpec(ref), + "github.com/devsy-org/api/pkg/apis/storage/v1.TeamStatus": schema_pkg_apis_storage_v1_TeamStatus(ref), + "github.com/devsy-org/api/pkg/apis/storage/v1.TemplateHelmChart": schema_pkg_apis_storage_v1_TemplateHelmChart(ref), + "github.com/devsy-org/api/pkg/apis/storage/v1.TemplateMetadata": schema_pkg_apis_storage_v1_TemplateMetadata(ref), + "github.com/devsy-org/api/pkg/apis/storage/v1.TemplateRef": schema_pkg_apis_storage_v1_TemplateRef(ref), + "github.com/devsy-org/api/pkg/apis/storage/v1.TerraformNodeTypeSpec": schema_pkg_apis_storage_v1_TerraformNodeTypeSpec(ref), + "github.com/devsy-org/api/pkg/apis/storage/v1.TerraformTemplate": schema_pkg_apis_storage_v1_TerraformTemplate(ref), + "github.com/devsy-org/api/pkg/apis/storage/v1.TerraformTemplateSourceGit": schema_pkg_apis_storage_v1_TerraformTemplateSourceGit(ref), + "github.com/devsy-org/api/pkg/apis/storage/v1.User": schema_pkg_apis_storage_v1_User(ref), + "github.com/devsy-org/api/pkg/apis/storage/v1.UserList": schema_pkg_apis_storage_v1_UserList(ref), + "github.com/devsy-org/api/pkg/apis/storage/v1.UserOrTeam": schema_pkg_apis_storage_v1_UserOrTeam(ref), + "github.com/devsy-org/api/pkg/apis/storage/v1.UserOrTeamEntity": schema_pkg_apis_storage_v1_UserOrTeamEntity(ref), + "github.com/devsy-org/api/pkg/apis/storage/v1.UserSpec": schema_pkg_apis_storage_v1_UserSpec(ref), + "github.com/devsy-org/api/pkg/apis/storage/v1.UserStatus": schema_pkg_apis_storage_v1_UserStatus(ref), + "github.com/devsy-org/api/pkg/apis/storage/v1.VaultAuthSpec": schema_pkg_apis_storage_v1_VaultAuthSpec(ref), + "github.com/devsy-org/api/pkg/apis/storage/v1.VaultIntegrationSpec": schema_pkg_apis_storage_v1_VaultIntegrationSpec(ref), + "github.com/devsy-org/api/pkg/apis/storage/v1.VirtualClusterAccessPoint": schema_pkg_apis_storage_v1_VirtualClusterAccessPoint(ref), + "github.com/devsy-org/api/pkg/apis/storage/v1.VirtualClusterAccessPointIngressSpec": schema_pkg_apis_storage_v1_VirtualClusterAccessPointIngressSpec(ref), + "github.com/devsy-org/api/pkg/apis/storage/v1.VirtualClusterClusterRef": schema_pkg_apis_storage_v1_VirtualClusterClusterRef(ref), + "github.com/devsy-org/api/pkg/apis/storage/v1.VirtualClusterCommonSpec": schema_pkg_apis_storage_v1_VirtualClusterCommonSpec(ref), + "github.com/devsy-org/api/pkg/apis/storage/v1.VirtualClusterHelmChart": schema_pkg_apis_storage_v1_VirtualClusterHelmChart(ref), + "github.com/devsy-org/api/pkg/apis/storage/v1.VirtualClusterHelmRelease": schema_pkg_apis_storage_v1_VirtualClusterHelmRelease(ref), + "github.com/devsy-org/api/pkg/apis/storage/v1.VirtualClusterHelmReleaseStatus": schema_pkg_apis_storage_v1_VirtualClusterHelmReleaseStatus(ref), + "github.com/devsy-org/api/pkg/apis/storage/v1.VirtualClusterInstance": schema_pkg_apis_storage_v1_VirtualClusterInstance(ref), + "github.com/devsy-org/api/pkg/apis/storage/v1.VirtualClusterInstanceList": schema_pkg_apis_storage_v1_VirtualClusterInstanceList(ref), + "github.com/devsy-org/api/pkg/apis/storage/v1.VirtualClusterInstanceSpec": schema_pkg_apis_storage_v1_VirtualClusterInstanceSpec(ref), + "github.com/devsy-org/api/pkg/apis/storage/v1.VirtualClusterInstanceStatus": schema_pkg_apis_storage_v1_VirtualClusterInstanceStatus(ref), + "github.com/devsy-org/api/pkg/apis/storage/v1.VirtualClusterInstanceTemplateDefinition": schema_pkg_apis_storage_v1_VirtualClusterInstanceTemplateDefinition(ref), + "github.com/devsy-org/api/pkg/apis/storage/v1.VirtualClusterProSpec": schema_pkg_apis_storage_v1_VirtualClusterProSpec(ref), + "github.com/devsy-org/api/pkg/apis/storage/v1.VirtualClusterSpaceTemplateDefinition": schema_pkg_apis_storage_v1_VirtualClusterSpaceTemplateDefinition(ref), + "github.com/devsy-org/api/pkg/apis/storage/v1.VirtualClusterStatus": schema_pkg_apis_storage_v1_VirtualClusterStatus(ref), + "github.com/devsy-org/api/pkg/apis/storage/v1.VirtualClusterTemplate": schema_pkg_apis_storage_v1_VirtualClusterTemplate(ref), + "github.com/devsy-org/api/pkg/apis/storage/v1.VirtualClusterTemplateDefinition": schema_pkg_apis_storage_v1_VirtualClusterTemplateDefinition(ref), + "github.com/devsy-org/api/pkg/apis/storage/v1.VirtualClusterTemplateList": schema_pkg_apis_storage_v1_VirtualClusterTemplateList(ref), + "github.com/devsy-org/api/pkg/apis/storage/v1.VirtualClusterTemplateSpaceTemplateRef": schema_pkg_apis_storage_v1_VirtualClusterTemplateSpaceTemplateRef(ref), + "github.com/devsy-org/api/pkg/apis/storage/v1.VirtualClusterTemplateSpec": schema_pkg_apis_storage_v1_VirtualClusterTemplateSpec(ref), + "github.com/devsy-org/api/pkg/apis/storage/v1.VirtualClusterTemplateStatus": schema_pkg_apis_storage_v1_VirtualClusterTemplateStatus(ref), + "github.com/devsy-org/api/pkg/apis/storage/v1.VirtualClusterTemplateVersion": schema_pkg_apis_storage_v1_VirtualClusterTemplateVersion(ref), + "github.com/devsy-org/api/pkg/apis/storage/v1.WorkspaceRef": schema_pkg_apis_storage_v1_WorkspaceRef(ref), + "github.com/devsy-org/api/pkg/apis/storage/v1.WorkspaceResolvedTarget": schema_pkg_apis_storage_v1_WorkspaceResolvedTarget(ref), + "github.com/devsy-org/api/pkg/apis/storage/v1.WorkspaceStatusResult": schema_pkg_apis_storage_v1_WorkspaceStatusResult(ref), + "github.com/devsy-org/api/pkg/apis/storage/v1.WorkspaceTarget": schema_pkg_apis_storage_v1_WorkspaceTarget(ref), + "github.com/devsy-org/api/pkg/apis/storage/v1.WorkspaceTargetName": schema_pkg_apis_storage_v1_WorkspaceTargetName(ref), + "github.com/devsy-org/api/pkg/apis/storage/v1.WorkspaceTargetNamespace": schema_pkg_apis_storage_v1_WorkspaceTargetNamespace(ref), + "github.com/devsy-org/api/pkg/apis/ui/v1.CspPolicy": schema_pkg_apis_ui_v1_CspPolicy(ref), + "github.com/devsy-org/api/pkg/apis/ui/v1.DevsyVersion": schema_pkg_apis_ui_v1_DevsyVersion(ref), + "github.com/devsy-org/api/pkg/apis/ui/v1.ExternalURLs": schema_pkg_apis_ui_v1_ExternalURLs(ref), + "github.com/devsy-org/api/pkg/apis/ui/v1.NavBarButton": schema_pkg_apis_ui_v1_NavBarButton(ref), + "github.com/devsy-org/api/pkg/apis/ui/v1.UISettings": schema_pkg_apis_ui_v1_UISettings(ref), + "github.com/devsy-org/api/pkg/apis/ui/v1.UISettingsConfig": schema_pkg_apis_ui_v1_UISettingsConfig(ref), + "github.com/devsy-org/api/pkg/apis/ui/v1.UISettingsSpec": schema_pkg_apis_ui_v1_UISettingsSpec(ref), + "github.com/devsy-org/api/pkg/apis/ui/v1.UISettingsStatus": schema_pkg_apis_ui_v1_UISettingsStatus(ref), + "github.com/devsy-org/api/pkg/apis/virtualcluster/v1.HelmRelease": schema_pkg_apis_virtualcluster_v1_HelmRelease(ref), + "github.com/devsy-org/api/pkg/apis/virtualcluster/v1.HelmReleaseList": schema_pkg_apis_virtualcluster_v1_HelmReleaseList(ref), + "github.com/devsy-org/api/pkg/apis/virtualcluster/v1.HelmReleaseSpec": schema_pkg_apis_virtualcluster_v1_HelmReleaseSpec(ref), + "github.com/devsy-org/api/pkg/apis/virtualcluster/v1.HelmReleaseStatus": schema_pkg_apis_virtualcluster_v1_HelmReleaseStatus(ref), + v1.ControllerRevision{}.OpenAPIModelName(): schema_k8sio_api_apps_v1_ControllerRevision(ref), + v1.ControllerRevisionList{}.OpenAPIModelName(): schema_k8sio_api_apps_v1_ControllerRevisionList(ref), + v1.DaemonSet{}.OpenAPIModelName(): schema_k8sio_api_apps_v1_DaemonSet(ref), + v1.DaemonSetCondition{}.OpenAPIModelName(): schema_k8sio_api_apps_v1_DaemonSetCondition(ref), + v1.DaemonSetList{}.OpenAPIModelName(): schema_k8sio_api_apps_v1_DaemonSetList(ref), + v1.DaemonSetSpec{}.OpenAPIModelName(): schema_k8sio_api_apps_v1_DaemonSetSpec(ref), + v1.DaemonSetStatus{}.OpenAPIModelName(): schema_k8sio_api_apps_v1_DaemonSetStatus(ref), + v1.DaemonSetUpdateStrategy{}.OpenAPIModelName(): schema_k8sio_api_apps_v1_DaemonSetUpdateStrategy(ref), + v1.Deployment{}.OpenAPIModelName(): schema_k8sio_api_apps_v1_Deployment(ref), + v1.DeploymentCondition{}.OpenAPIModelName(): schema_k8sio_api_apps_v1_DeploymentCondition(ref), + v1.DeploymentList{}.OpenAPIModelName(): schema_k8sio_api_apps_v1_DeploymentList(ref), + v1.DeploymentSpec{}.OpenAPIModelName(): schema_k8sio_api_apps_v1_DeploymentSpec(ref), + v1.DeploymentStatus{}.OpenAPIModelName(): schema_k8sio_api_apps_v1_DeploymentStatus(ref), + v1.DeploymentStrategy{}.OpenAPIModelName(): schema_k8sio_api_apps_v1_DeploymentStrategy(ref), + v1.ReplicaSet{}.OpenAPIModelName(): schema_k8sio_api_apps_v1_ReplicaSet(ref), + v1.ReplicaSetCondition{}.OpenAPIModelName(): schema_k8sio_api_apps_v1_ReplicaSetCondition(ref), + v1.ReplicaSetList{}.OpenAPIModelName(): schema_k8sio_api_apps_v1_ReplicaSetList(ref), + v1.ReplicaSetSpec{}.OpenAPIModelName(): schema_k8sio_api_apps_v1_ReplicaSetSpec(ref), + v1.ReplicaSetStatus{}.OpenAPIModelName(): schema_k8sio_api_apps_v1_ReplicaSetStatus(ref), + v1.RollingUpdateDaemonSet{}.OpenAPIModelName(): schema_k8sio_api_apps_v1_RollingUpdateDaemonSet(ref), + v1.RollingUpdateDeployment{}.OpenAPIModelName(): schema_k8sio_api_apps_v1_RollingUpdateDeployment(ref), + v1.RollingUpdateStatefulSetStrategy{}.OpenAPIModelName(): schema_k8sio_api_apps_v1_RollingUpdateStatefulSetStrategy(ref), + v1.StatefulSet{}.OpenAPIModelName(): schema_k8sio_api_apps_v1_StatefulSet(ref), + v1.StatefulSetCondition{}.OpenAPIModelName(): schema_k8sio_api_apps_v1_StatefulSetCondition(ref), + v1.StatefulSetList{}.OpenAPIModelName(): schema_k8sio_api_apps_v1_StatefulSetList(ref), + v1.StatefulSetOrdinals{}.OpenAPIModelName(): schema_k8sio_api_apps_v1_StatefulSetOrdinals(ref), + v1.StatefulSetPersistentVolumeClaimRetentionPolicy{}.OpenAPIModelName(): schema_k8sio_api_apps_v1_StatefulSetPersistentVolumeClaimRetentionPolicy(ref), + v1.StatefulSetSpec{}.OpenAPIModelName(): schema_k8sio_api_apps_v1_StatefulSetSpec(ref), + v1.StatefulSetStatus{}.OpenAPIModelName(): schema_k8sio_api_apps_v1_StatefulSetStatus(ref), + v1.StatefulSetUpdateStrategy{}.OpenAPIModelName(): schema_k8sio_api_apps_v1_StatefulSetUpdateStrategy(ref), + batchv1.CronJob{}.OpenAPIModelName(): schema_k8sio_api_batch_v1_CronJob(ref), + batchv1.CronJobList{}.OpenAPIModelName(): schema_k8sio_api_batch_v1_CronJobList(ref), + batchv1.CronJobSpec{}.OpenAPIModelName(): schema_k8sio_api_batch_v1_CronJobSpec(ref), + batchv1.CronJobStatus{}.OpenAPIModelName(): schema_k8sio_api_batch_v1_CronJobStatus(ref), + batchv1.Job{}.OpenAPIModelName(): schema_k8sio_api_batch_v1_Job(ref), + batchv1.JobCondition{}.OpenAPIModelName(): schema_k8sio_api_batch_v1_JobCondition(ref), + batchv1.JobList{}.OpenAPIModelName(): schema_k8sio_api_batch_v1_JobList(ref), + batchv1.JobSpec{}.OpenAPIModelName(): schema_k8sio_api_batch_v1_JobSpec(ref), + batchv1.JobStatus{}.OpenAPIModelName(): schema_k8sio_api_batch_v1_JobStatus(ref), + batchv1.JobTemplateSpec{}.OpenAPIModelName(): schema_k8sio_api_batch_v1_JobTemplateSpec(ref), + batchv1.PodFailurePolicy{}.OpenAPIModelName(): schema_k8sio_api_batch_v1_PodFailurePolicy(ref), + batchv1.PodFailurePolicyOnExitCodesRequirement{}.OpenAPIModelName(): schema_k8sio_api_batch_v1_PodFailurePolicyOnExitCodesRequirement(ref), + batchv1.PodFailurePolicyOnPodConditionsPattern{}.OpenAPIModelName(): schema_k8sio_api_batch_v1_PodFailurePolicyOnPodConditionsPattern(ref), + batchv1.PodFailurePolicyRule{}.OpenAPIModelName(): schema_k8sio_api_batch_v1_PodFailurePolicyRule(ref), + batchv1.SuccessPolicy{}.OpenAPIModelName(): schema_k8sio_api_batch_v1_SuccessPolicy(ref), + batchv1.SuccessPolicyRule{}.OpenAPIModelName(): schema_k8sio_api_batch_v1_SuccessPolicyRule(ref), + batchv1.UncountedTerminatedPods{}.OpenAPIModelName(): schema_k8sio_api_batch_v1_UncountedTerminatedPods(ref), + corev1.AWSElasticBlockStoreVolumeSource{}.OpenAPIModelName(): schema_k8sio_api_core_v1_AWSElasticBlockStoreVolumeSource(ref), + corev1.Affinity{}.OpenAPIModelName(): schema_k8sio_api_core_v1_Affinity(ref), + corev1.AppArmorProfile{}.OpenAPIModelName(): schema_k8sio_api_core_v1_AppArmorProfile(ref), + corev1.AttachedVolume{}.OpenAPIModelName(): schema_k8sio_api_core_v1_AttachedVolume(ref), + corev1.AvoidPods{}.OpenAPIModelName(): schema_k8sio_api_core_v1_AvoidPods(ref), + corev1.AzureDiskVolumeSource{}.OpenAPIModelName(): schema_k8sio_api_core_v1_AzureDiskVolumeSource(ref), + corev1.AzureFilePersistentVolumeSource{}.OpenAPIModelName(): schema_k8sio_api_core_v1_AzureFilePersistentVolumeSource(ref), + corev1.AzureFileVolumeSource{}.OpenAPIModelName(): schema_k8sio_api_core_v1_AzureFileVolumeSource(ref), + corev1.Binding{}.OpenAPIModelName(): schema_k8sio_api_core_v1_Binding(ref), + corev1.CSIPersistentVolumeSource{}.OpenAPIModelName(): schema_k8sio_api_core_v1_CSIPersistentVolumeSource(ref), + corev1.CSIVolumeSource{}.OpenAPIModelName(): schema_k8sio_api_core_v1_CSIVolumeSource(ref), + corev1.Capabilities{}.OpenAPIModelName(): schema_k8sio_api_core_v1_Capabilities(ref), + corev1.CephFSPersistentVolumeSource{}.OpenAPIModelName(): schema_k8sio_api_core_v1_CephFSPersistentVolumeSource(ref), + corev1.CephFSVolumeSource{}.OpenAPIModelName(): schema_k8sio_api_core_v1_CephFSVolumeSource(ref), + corev1.CinderPersistentVolumeSource{}.OpenAPIModelName(): schema_k8sio_api_core_v1_CinderPersistentVolumeSource(ref), + corev1.CinderVolumeSource{}.OpenAPIModelName(): schema_k8sio_api_core_v1_CinderVolumeSource(ref), + corev1.ClientIPConfig{}.OpenAPIModelName(): schema_k8sio_api_core_v1_ClientIPConfig(ref), + corev1.ClusterTrustBundleProjection{}.OpenAPIModelName(): schema_k8sio_api_core_v1_ClusterTrustBundleProjection(ref), + corev1.ComponentCondition{}.OpenAPIModelName(): schema_k8sio_api_core_v1_ComponentCondition(ref), + corev1.ComponentStatus{}.OpenAPIModelName(): schema_k8sio_api_core_v1_ComponentStatus(ref), + corev1.ComponentStatusList{}.OpenAPIModelName(): schema_k8sio_api_core_v1_ComponentStatusList(ref), + corev1.ConfigMap{}.OpenAPIModelName(): schema_k8sio_api_core_v1_ConfigMap(ref), + corev1.ConfigMapEnvSource{}.OpenAPIModelName(): schema_k8sio_api_core_v1_ConfigMapEnvSource(ref), + corev1.ConfigMapKeySelector{}.OpenAPIModelName(): schema_k8sio_api_core_v1_ConfigMapKeySelector(ref), + corev1.ConfigMapList{}.OpenAPIModelName(): schema_k8sio_api_core_v1_ConfigMapList(ref), + corev1.ConfigMapNodeConfigSource{}.OpenAPIModelName(): schema_k8sio_api_core_v1_ConfigMapNodeConfigSource(ref), + corev1.ConfigMapProjection{}.OpenAPIModelName(): schema_k8sio_api_core_v1_ConfigMapProjection(ref), + corev1.ConfigMapVolumeSource{}.OpenAPIModelName(): schema_k8sio_api_core_v1_ConfigMapVolumeSource(ref), + corev1.Container{}.OpenAPIModelName(): schema_k8sio_api_core_v1_Container(ref), + corev1.ContainerExtendedResourceRequest{}.OpenAPIModelName(): schema_k8sio_api_core_v1_ContainerExtendedResourceRequest(ref), + corev1.ContainerImage{}.OpenAPIModelName(): schema_k8sio_api_core_v1_ContainerImage(ref), + corev1.ContainerPort{}.OpenAPIModelName(): schema_k8sio_api_core_v1_ContainerPort(ref), + corev1.ContainerResizePolicy{}.OpenAPIModelName(): schema_k8sio_api_core_v1_ContainerResizePolicy(ref), + corev1.ContainerRestartRule{}.OpenAPIModelName(): schema_k8sio_api_core_v1_ContainerRestartRule(ref), + corev1.ContainerRestartRuleOnExitCodes{}.OpenAPIModelName(): schema_k8sio_api_core_v1_ContainerRestartRuleOnExitCodes(ref), + corev1.ContainerState{}.OpenAPIModelName(): schema_k8sio_api_core_v1_ContainerState(ref), + corev1.ContainerStateRunning{}.OpenAPIModelName(): schema_k8sio_api_core_v1_ContainerStateRunning(ref), + corev1.ContainerStateTerminated{}.OpenAPIModelName(): schema_k8sio_api_core_v1_ContainerStateTerminated(ref), + corev1.ContainerStateWaiting{}.OpenAPIModelName(): schema_k8sio_api_core_v1_ContainerStateWaiting(ref), + corev1.ContainerStatus{}.OpenAPIModelName(): schema_k8sio_api_core_v1_ContainerStatus(ref), + corev1.ContainerUser{}.OpenAPIModelName(): schema_k8sio_api_core_v1_ContainerUser(ref), + corev1.DaemonEndpoint{}.OpenAPIModelName(): schema_k8sio_api_core_v1_DaemonEndpoint(ref), + corev1.DownwardAPIProjection{}.OpenAPIModelName(): schema_k8sio_api_core_v1_DownwardAPIProjection(ref), + corev1.DownwardAPIVolumeFile{}.OpenAPIModelName(): schema_k8sio_api_core_v1_DownwardAPIVolumeFile(ref), + corev1.DownwardAPIVolumeSource{}.OpenAPIModelName(): schema_k8sio_api_core_v1_DownwardAPIVolumeSource(ref), + corev1.EmptyDirVolumeSource{}.OpenAPIModelName(): schema_k8sio_api_core_v1_EmptyDirVolumeSource(ref), + corev1.EndpointAddress{}.OpenAPIModelName(): schema_k8sio_api_core_v1_EndpointAddress(ref), + corev1.EndpointPort{}.OpenAPIModelName(): schema_k8sio_api_core_v1_EndpointPort(ref), + corev1.EndpointSubset{}.OpenAPIModelName(): schema_k8sio_api_core_v1_EndpointSubset(ref), + corev1.Endpoints{}.OpenAPIModelName(): schema_k8sio_api_core_v1_Endpoints(ref), + corev1.EndpointsList{}.OpenAPIModelName(): schema_k8sio_api_core_v1_EndpointsList(ref), + corev1.EnvFromSource{}.OpenAPIModelName(): schema_k8sio_api_core_v1_EnvFromSource(ref), + corev1.EnvVar{}.OpenAPIModelName(): schema_k8sio_api_core_v1_EnvVar(ref), + corev1.EnvVarSource{}.OpenAPIModelName(): schema_k8sio_api_core_v1_EnvVarSource(ref), + corev1.EphemeralContainer{}.OpenAPIModelName(): schema_k8sio_api_core_v1_EphemeralContainer(ref), + corev1.EphemeralContainerCommon{}.OpenAPIModelName(): schema_k8sio_api_core_v1_EphemeralContainerCommon(ref), + corev1.EphemeralVolumeSource{}.OpenAPIModelName(): schema_k8sio_api_core_v1_EphemeralVolumeSource(ref), + corev1.Event{}.OpenAPIModelName(): schema_k8sio_api_core_v1_Event(ref), + corev1.EventList{}.OpenAPIModelName(): schema_k8sio_api_core_v1_EventList(ref), + corev1.EventSeries{}.OpenAPIModelName(): schema_k8sio_api_core_v1_EventSeries(ref), + corev1.EventSource{}.OpenAPIModelName(): schema_k8sio_api_core_v1_EventSource(ref), + corev1.ExecAction{}.OpenAPIModelName(): schema_k8sio_api_core_v1_ExecAction(ref), + corev1.FCVolumeSource{}.OpenAPIModelName(): schema_k8sio_api_core_v1_FCVolumeSource(ref), + corev1.FileKeySelector{}.OpenAPIModelName(): schema_k8sio_api_core_v1_FileKeySelector(ref), + corev1.FlexPersistentVolumeSource{}.OpenAPIModelName(): schema_k8sio_api_core_v1_FlexPersistentVolumeSource(ref), + corev1.FlexVolumeSource{}.OpenAPIModelName(): schema_k8sio_api_core_v1_FlexVolumeSource(ref), + corev1.FlockerVolumeSource{}.OpenAPIModelName(): schema_k8sio_api_core_v1_FlockerVolumeSource(ref), + corev1.GCEPersistentDiskVolumeSource{}.OpenAPIModelName(): schema_k8sio_api_core_v1_GCEPersistentDiskVolumeSource(ref), + corev1.GRPCAction{}.OpenAPIModelName(): schema_k8sio_api_core_v1_GRPCAction(ref), + corev1.GitRepoVolumeSource{}.OpenAPIModelName(): schema_k8sio_api_core_v1_GitRepoVolumeSource(ref), + corev1.GlusterfsPersistentVolumeSource{}.OpenAPIModelName(): schema_k8sio_api_core_v1_GlusterfsPersistentVolumeSource(ref), + corev1.GlusterfsVolumeSource{}.OpenAPIModelName(): schema_k8sio_api_core_v1_GlusterfsVolumeSource(ref), + corev1.HTTPGetAction{}.OpenAPIModelName(): schema_k8sio_api_core_v1_HTTPGetAction(ref), + corev1.HTTPHeader{}.OpenAPIModelName(): schema_k8sio_api_core_v1_HTTPHeader(ref), + corev1.HostAlias{}.OpenAPIModelName(): schema_k8sio_api_core_v1_HostAlias(ref), + corev1.HostIP{}.OpenAPIModelName(): schema_k8sio_api_core_v1_HostIP(ref), + corev1.HostPathVolumeSource{}.OpenAPIModelName(): schema_k8sio_api_core_v1_HostPathVolumeSource(ref), + corev1.ISCSIPersistentVolumeSource{}.OpenAPIModelName(): schema_k8sio_api_core_v1_ISCSIPersistentVolumeSource(ref), + corev1.ISCSIVolumeSource{}.OpenAPIModelName(): schema_k8sio_api_core_v1_ISCSIVolumeSource(ref), + corev1.ImageVolumeSource{}.OpenAPIModelName(): schema_k8sio_api_core_v1_ImageVolumeSource(ref), + corev1.KeyToPath{}.OpenAPIModelName(): schema_k8sio_api_core_v1_KeyToPath(ref), + corev1.Lifecycle{}.OpenAPIModelName(): schema_k8sio_api_core_v1_Lifecycle(ref), + corev1.LifecycleHandler{}.OpenAPIModelName(): schema_k8sio_api_core_v1_LifecycleHandler(ref), + corev1.LimitRange{}.OpenAPIModelName(): schema_k8sio_api_core_v1_LimitRange(ref), + corev1.LimitRangeItem{}.OpenAPIModelName(): schema_k8sio_api_core_v1_LimitRangeItem(ref), + corev1.LimitRangeList{}.OpenAPIModelName(): schema_k8sio_api_core_v1_LimitRangeList(ref), + corev1.LimitRangeSpec{}.OpenAPIModelName(): schema_k8sio_api_core_v1_LimitRangeSpec(ref), + corev1.LinuxContainerUser{}.OpenAPIModelName(): schema_k8sio_api_core_v1_LinuxContainerUser(ref), + corev1.List{}.OpenAPIModelName(): schema_k8sio_api_core_v1_List(ref), + corev1.LoadBalancerIngress{}.OpenAPIModelName(): schema_k8sio_api_core_v1_LoadBalancerIngress(ref), + corev1.LoadBalancerStatus{}.OpenAPIModelName(): schema_k8sio_api_core_v1_LoadBalancerStatus(ref), + corev1.LocalObjectReference{}.OpenAPIModelName(): schema_k8sio_api_core_v1_LocalObjectReference(ref), + corev1.LocalVolumeSource{}.OpenAPIModelName(): schema_k8sio_api_core_v1_LocalVolumeSource(ref), + corev1.ModifyVolumeStatus{}.OpenAPIModelName(): schema_k8sio_api_core_v1_ModifyVolumeStatus(ref), + corev1.NFSVolumeSource{}.OpenAPIModelName(): schema_k8sio_api_core_v1_NFSVolumeSource(ref), + corev1.Namespace{}.OpenAPIModelName(): schema_k8sio_api_core_v1_Namespace(ref), + corev1.NamespaceCondition{}.OpenAPIModelName(): schema_k8sio_api_core_v1_NamespaceCondition(ref), + corev1.NamespaceList{}.OpenAPIModelName(): schema_k8sio_api_core_v1_NamespaceList(ref), + corev1.NamespaceSpec{}.OpenAPIModelName(): schema_k8sio_api_core_v1_NamespaceSpec(ref), + corev1.NamespaceStatus{}.OpenAPIModelName(): schema_k8sio_api_core_v1_NamespaceStatus(ref), + corev1.Node{}.OpenAPIModelName(): schema_k8sio_api_core_v1_Node(ref), + corev1.NodeAddress{}.OpenAPIModelName(): schema_k8sio_api_core_v1_NodeAddress(ref), + corev1.NodeAffinity{}.OpenAPIModelName(): schema_k8sio_api_core_v1_NodeAffinity(ref), + corev1.NodeCondition{}.OpenAPIModelName(): schema_k8sio_api_core_v1_NodeCondition(ref), + corev1.NodeConfigSource{}.OpenAPIModelName(): schema_k8sio_api_core_v1_NodeConfigSource(ref), + corev1.NodeConfigStatus{}.OpenAPIModelName(): schema_k8sio_api_core_v1_NodeConfigStatus(ref), + corev1.NodeDaemonEndpoints{}.OpenAPIModelName(): schema_k8sio_api_core_v1_NodeDaemonEndpoints(ref), + corev1.NodeFeatures{}.OpenAPIModelName(): schema_k8sio_api_core_v1_NodeFeatures(ref), + corev1.NodeList{}.OpenAPIModelName(): schema_k8sio_api_core_v1_NodeList(ref), + corev1.NodeProxyOptions{}.OpenAPIModelName(): schema_k8sio_api_core_v1_NodeProxyOptions(ref), + corev1.NodeRuntimeHandler{}.OpenAPIModelName(): schema_k8sio_api_core_v1_NodeRuntimeHandler(ref), + corev1.NodeRuntimeHandlerFeatures{}.OpenAPIModelName(): schema_k8sio_api_core_v1_NodeRuntimeHandlerFeatures(ref), + corev1.NodeSelector{}.OpenAPIModelName(): schema_k8sio_api_core_v1_NodeSelector(ref), + corev1.NodeSelectorRequirement{}.OpenAPIModelName(): schema_k8sio_api_core_v1_NodeSelectorRequirement(ref), + corev1.NodeSelectorTerm{}.OpenAPIModelName(): schema_k8sio_api_core_v1_NodeSelectorTerm(ref), + corev1.NodeSpec{}.OpenAPIModelName(): schema_k8sio_api_core_v1_NodeSpec(ref), + corev1.NodeStatus{}.OpenAPIModelName(): schema_k8sio_api_core_v1_NodeStatus(ref), + corev1.NodeSwapStatus{}.OpenAPIModelName(): schema_k8sio_api_core_v1_NodeSwapStatus(ref), + corev1.NodeSystemInfo{}.OpenAPIModelName(): schema_k8sio_api_core_v1_NodeSystemInfo(ref), + corev1.ObjectFieldSelector{}.OpenAPIModelName(): schema_k8sio_api_core_v1_ObjectFieldSelector(ref), + corev1.ObjectReference{}.OpenAPIModelName(): schema_k8sio_api_core_v1_ObjectReference(ref), + corev1.PersistentVolume{}.OpenAPIModelName(): schema_k8sio_api_core_v1_PersistentVolume(ref), + corev1.PersistentVolumeClaim{}.OpenAPIModelName(): schema_k8sio_api_core_v1_PersistentVolumeClaim(ref), + corev1.PersistentVolumeClaimCondition{}.OpenAPIModelName(): schema_k8sio_api_core_v1_PersistentVolumeClaimCondition(ref), + corev1.PersistentVolumeClaimList{}.OpenAPIModelName(): schema_k8sio_api_core_v1_PersistentVolumeClaimList(ref), + corev1.PersistentVolumeClaimSpec{}.OpenAPIModelName(): schema_k8sio_api_core_v1_PersistentVolumeClaimSpec(ref), + corev1.PersistentVolumeClaimStatus{}.OpenAPIModelName(): schema_k8sio_api_core_v1_PersistentVolumeClaimStatus(ref), + corev1.PersistentVolumeClaimTemplate{}.OpenAPIModelName(): schema_k8sio_api_core_v1_PersistentVolumeClaimTemplate(ref), + corev1.PersistentVolumeClaimVolumeSource{}.OpenAPIModelName(): schema_k8sio_api_core_v1_PersistentVolumeClaimVolumeSource(ref), + corev1.PersistentVolumeList{}.OpenAPIModelName(): schema_k8sio_api_core_v1_PersistentVolumeList(ref), + corev1.PersistentVolumeSource{}.OpenAPIModelName(): schema_k8sio_api_core_v1_PersistentVolumeSource(ref), + corev1.PersistentVolumeSpec{}.OpenAPIModelName(): schema_k8sio_api_core_v1_PersistentVolumeSpec(ref), + corev1.PersistentVolumeStatus{}.OpenAPIModelName(): schema_k8sio_api_core_v1_PersistentVolumeStatus(ref), + corev1.PhotonPersistentDiskVolumeSource{}.OpenAPIModelName(): schema_k8sio_api_core_v1_PhotonPersistentDiskVolumeSource(ref), + corev1.Pod{}.OpenAPIModelName(): schema_k8sio_api_core_v1_Pod(ref), + corev1.PodAffinity{}.OpenAPIModelName(): schema_k8sio_api_core_v1_PodAffinity(ref), + corev1.PodAffinityTerm{}.OpenAPIModelName(): schema_k8sio_api_core_v1_PodAffinityTerm(ref), + corev1.PodAntiAffinity{}.OpenAPIModelName(): schema_k8sio_api_core_v1_PodAntiAffinity(ref), + corev1.PodAttachOptions{}.OpenAPIModelName(): schema_k8sio_api_core_v1_PodAttachOptions(ref), + corev1.PodCertificateProjection{}.OpenAPIModelName(): schema_k8sio_api_core_v1_PodCertificateProjection(ref), + corev1.PodCondition{}.OpenAPIModelName(): schema_k8sio_api_core_v1_PodCondition(ref), + corev1.PodDNSConfig{}.OpenAPIModelName(): schema_k8sio_api_core_v1_PodDNSConfig(ref), + corev1.PodDNSConfigOption{}.OpenAPIModelName(): schema_k8sio_api_core_v1_PodDNSConfigOption(ref), + corev1.PodExecOptions{}.OpenAPIModelName(): schema_k8sio_api_core_v1_PodExecOptions(ref), + corev1.PodExtendedResourceClaimStatus{}.OpenAPIModelName(): schema_k8sio_api_core_v1_PodExtendedResourceClaimStatus(ref), + corev1.PodIP{}.OpenAPIModelName(): schema_k8sio_api_core_v1_PodIP(ref), + corev1.PodList{}.OpenAPIModelName(): schema_k8sio_api_core_v1_PodList(ref), + corev1.PodLogOptions{}.OpenAPIModelName(): schema_k8sio_api_core_v1_PodLogOptions(ref), + corev1.PodOS{}.OpenAPIModelName(): schema_k8sio_api_core_v1_PodOS(ref), + corev1.PodPortForwardOptions{}.OpenAPIModelName(): schema_k8sio_api_core_v1_PodPortForwardOptions(ref), + corev1.PodProxyOptions{}.OpenAPIModelName(): schema_k8sio_api_core_v1_PodProxyOptions(ref), + corev1.PodReadinessGate{}.OpenAPIModelName(): schema_k8sio_api_core_v1_PodReadinessGate(ref), + corev1.PodResourceClaim{}.OpenAPIModelName(): schema_k8sio_api_core_v1_PodResourceClaim(ref), + corev1.PodResourceClaimStatus{}.OpenAPIModelName(): schema_k8sio_api_core_v1_PodResourceClaimStatus(ref), + corev1.PodSchedulingGate{}.OpenAPIModelName(): schema_k8sio_api_core_v1_PodSchedulingGate(ref), + corev1.PodSecurityContext{}.OpenAPIModelName(): schema_k8sio_api_core_v1_PodSecurityContext(ref), + corev1.PodSignature{}.OpenAPIModelName(): schema_k8sio_api_core_v1_PodSignature(ref), + corev1.PodSpec{}.OpenAPIModelName(): schema_k8sio_api_core_v1_PodSpec(ref), + corev1.PodStatus{}.OpenAPIModelName(): schema_k8sio_api_core_v1_PodStatus(ref), + corev1.PodStatusResult{}.OpenAPIModelName(): schema_k8sio_api_core_v1_PodStatusResult(ref), + corev1.PodTemplate{}.OpenAPIModelName(): schema_k8sio_api_core_v1_PodTemplate(ref), + corev1.PodTemplateList{}.OpenAPIModelName(): schema_k8sio_api_core_v1_PodTemplateList(ref), + corev1.PodTemplateSpec{}.OpenAPIModelName(): schema_k8sio_api_core_v1_PodTemplateSpec(ref), + corev1.PortStatus{}.OpenAPIModelName(): schema_k8sio_api_core_v1_PortStatus(ref), + corev1.PortworxVolumeSource{}.OpenAPIModelName(): schema_k8sio_api_core_v1_PortworxVolumeSource(ref), + corev1.PreferAvoidPodsEntry{}.OpenAPIModelName(): schema_k8sio_api_core_v1_PreferAvoidPodsEntry(ref), + corev1.PreferredSchedulingTerm{}.OpenAPIModelName(): schema_k8sio_api_core_v1_PreferredSchedulingTerm(ref), + corev1.Probe{}.OpenAPIModelName(): schema_k8sio_api_core_v1_Probe(ref), + corev1.ProbeHandler{}.OpenAPIModelName(): schema_k8sio_api_core_v1_ProbeHandler(ref), + corev1.ProjectedVolumeSource{}.OpenAPIModelName(): schema_k8sio_api_core_v1_ProjectedVolumeSource(ref), + corev1.QuobyteVolumeSource{}.OpenAPIModelName(): schema_k8sio_api_core_v1_QuobyteVolumeSource(ref), + corev1.RBDPersistentVolumeSource{}.OpenAPIModelName(): schema_k8sio_api_core_v1_RBDPersistentVolumeSource(ref), + corev1.RBDVolumeSource{}.OpenAPIModelName(): schema_k8sio_api_core_v1_RBDVolumeSource(ref), + corev1.RangeAllocation{}.OpenAPIModelName(): schema_k8sio_api_core_v1_RangeAllocation(ref), + corev1.ReplicationController{}.OpenAPIModelName(): schema_k8sio_api_core_v1_ReplicationController(ref), + corev1.ReplicationControllerCondition{}.OpenAPIModelName(): schema_k8sio_api_core_v1_ReplicationControllerCondition(ref), + corev1.ReplicationControllerList{}.OpenAPIModelName(): schema_k8sio_api_core_v1_ReplicationControllerList(ref), + corev1.ReplicationControllerSpec{}.OpenAPIModelName(): schema_k8sio_api_core_v1_ReplicationControllerSpec(ref), + corev1.ReplicationControllerStatus{}.OpenAPIModelName(): schema_k8sio_api_core_v1_ReplicationControllerStatus(ref), + corev1.ResourceClaim{}.OpenAPIModelName(): schema_k8sio_api_core_v1_ResourceClaim(ref), + corev1.ResourceFieldSelector{}.OpenAPIModelName(): schema_k8sio_api_core_v1_ResourceFieldSelector(ref), + corev1.ResourceHealth{}.OpenAPIModelName(): schema_k8sio_api_core_v1_ResourceHealth(ref), + corev1.ResourceQuota{}.OpenAPIModelName(): schema_k8sio_api_core_v1_ResourceQuota(ref), + corev1.ResourceQuotaList{}.OpenAPIModelName(): schema_k8sio_api_core_v1_ResourceQuotaList(ref), + corev1.ResourceQuotaSpec{}.OpenAPIModelName(): schema_k8sio_api_core_v1_ResourceQuotaSpec(ref), + corev1.ResourceQuotaStatus{}.OpenAPIModelName(): schema_k8sio_api_core_v1_ResourceQuotaStatus(ref), + corev1.ResourceRequirements{}.OpenAPIModelName(): schema_k8sio_api_core_v1_ResourceRequirements(ref), + corev1.ResourceStatus{}.OpenAPIModelName(): schema_k8sio_api_core_v1_ResourceStatus(ref), + corev1.SELinuxOptions{}.OpenAPIModelName(): schema_k8sio_api_core_v1_SELinuxOptions(ref), + corev1.ScaleIOPersistentVolumeSource{}.OpenAPIModelName(): schema_k8sio_api_core_v1_ScaleIOPersistentVolumeSource(ref), + corev1.ScaleIOVolumeSource{}.OpenAPIModelName(): schema_k8sio_api_core_v1_ScaleIOVolumeSource(ref), + corev1.ScopeSelector{}.OpenAPIModelName(): schema_k8sio_api_core_v1_ScopeSelector(ref), + corev1.ScopedResourceSelectorRequirement{}.OpenAPIModelName(): schema_k8sio_api_core_v1_ScopedResourceSelectorRequirement(ref), + corev1.SeccompProfile{}.OpenAPIModelName(): schema_k8sio_api_core_v1_SeccompProfile(ref), + corev1.Secret{}.OpenAPIModelName(): schema_k8sio_api_core_v1_Secret(ref), + corev1.SecretEnvSource{}.OpenAPIModelName(): schema_k8sio_api_core_v1_SecretEnvSource(ref), + corev1.SecretKeySelector{}.OpenAPIModelName(): schema_k8sio_api_core_v1_SecretKeySelector(ref), + corev1.SecretList{}.OpenAPIModelName(): schema_k8sio_api_core_v1_SecretList(ref), + corev1.SecretProjection{}.OpenAPIModelName(): schema_k8sio_api_core_v1_SecretProjection(ref), + corev1.SecretReference{}.OpenAPIModelName(): schema_k8sio_api_core_v1_SecretReference(ref), + corev1.SecretVolumeSource{}.OpenAPIModelName(): schema_k8sio_api_core_v1_SecretVolumeSource(ref), + corev1.SecurityContext{}.OpenAPIModelName(): schema_k8sio_api_core_v1_SecurityContext(ref), + corev1.SerializedReference{}.OpenAPIModelName(): schema_k8sio_api_core_v1_SerializedReference(ref), + corev1.Service{}.OpenAPIModelName(): schema_k8sio_api_core_v1_Service(ref), + corev1.ServiceAccount{}.OpenAPIModelName(): schema_k8sio_api_core_v1_ServiceAccount(ref), + corev1.ServiceAccountList{}.OpenAPIModelName(): schema_k8sio_api_core_v1_ServiceAccountList(ref), + corev1.ServiceAccountTokenProjection{}.OpenAPIModelName(): schema_k8sio_api_core_v1_ServiceAccountTokenProjection(ref), + corev1.ServiceList{}.OpenAPIModelName(): schema_k8sio_api_core_v1_ServiceList(ref), + corev1.ServicePort{}.OpenAPIModelName(): schema_k8sio_api_core_v1_ServicePort(ref), + corev1.ServiceProxyOptions{}.OpenAPIModelName(): schema_k8sio_api_core_v1_ServiceProxyOptions(ref), + corev1.ServiceSpec{}.OpenAPIModelName(): schema_k8sio_api_core_v1_ServiceSpec(ref), + corev1.ServiceStatus{}.OpenAPIModelName(): schema_k8sio_api_core_v1_ServiceStatus(ref), + corev1.SessionAffinityConfig{}.OpenAPIModelName(): schema_k8sio_api_core_v1_SessionAffinityConfig(ref), + corev1.SleepAction{}.OpenAPIModelName(): schema_k8sio_api_core_v1_SleepAction(ref), + corev1.StorageOSPersistentVolumeSource{}.OpenAPIModelName(): schema_k8sio_api_core_v1_StorageOSPersistentVolumeSource(ref), + corev1.StorageOSVolumeSource{}.OpenAPIModelName(): schema_k8sio_api_core_v1_StorageOSVolumeSource(ref), + corev1.Sysctl{}.OpenAPIModelName(): schema_k8sio_api_core_v1_Sysctl(ref), + corev1.TCPSocketAction{}.OpenAPIModelName(): schema_k8sio_api_core_v1_TCPSocketAction(ref), + corev1.Taint{}.OpenAPIModelName(): schema_k8sio_api_core_v1_Taint(ref), + corev1.Toleration{}.OpenAPIModelName(): schema_k8sio_api_core_v1_Toleration(ref), + corev1.TopologySelectorLabelRequirement{}.OpenAPIModelName(): schema_k8sio_api_core_v1_TopologySelectorLabelRequirement(ref), + corev1.TopologySelectorTerm{}.OpenAPIModelName(): schema_k8sio_api_core_v1_TopologySelectorTerm(ref), + corev1.TopologySpreadConstraint{}.OpenAPIModelName(): schema_k8sio_api_core_v1_TopologySpreadConstraint(ref), + corev1.TypedLocalObjectReference{}.OpenAPIModelName(): schema_k8sio_api_core_v1_TypedLocalObjectReference(ref), + corev1.TypedObjectReference{}.OpenAPIModelName(): schema_k8sio_api_core_v1_TypedObjectReference(ref), + corev1.Volume{}.OpenAPIModelName(): schema_k8sio_api_core_v1_Volume(ref), + corev1.VolumeDevice{}.OpenAPIModelName(): schema_k8sio_api_core_v1_VolumeDevice(ref), + corev1.VolumeMount{}.OpenAPIModelName(): schema_k8sio_api_core_v1_VolumeMount(ref), + corev1.VolumeMountStatus{}.OpenAPIModelName(): schema_k8sio_api_core_v1_VolumeMountStatus(ref), + corev1.VolumeNodeAffinity{}.OpenAPIModelName(): schema_k8sio_api_core_v1_VolumeNodeAffinity(ref), + corev1.VolumeProjection{}.OpenAPIModelName(): schema_k8sio_api_core_v1_VolumeProjection(ref), + corev1.VolumeResourceRequirements{}.OpenAPIModelName(): schema_k8sio_api_core_v1_VolumeResourceRequirements(ref), + corev1.VolumeSource{}.OpenAPIModelName(): schema_k8sio_api_core_v1_VolumeSource(ref), + corev1.VsphereVirtualDiskVolumeSource{}.OpenAPIModelName(): schema_k8sio_api_core_v1_VsphereVirtualDiskVolumeSource(ref), + corev1.WeightedPodAffinityTerm{}.OpenAPIModelName(): schema_k8sio_api_core_v1_WeightedPodAffinityTerm(ref), + corev1.WindowsSecurityContextOptions{}.OpenAPIModelName(): schema_k8sio_api_core_v1_WindowsSecurityContextOptions(ref), + corev1.WorkloadReference{}.OpenAPIModelName(): schema_k8sio_api_core_v1_WorkloadReference(ref), + networkingv1.HTTPIngressPath{}.OpenAPIModelName(): schema_k8sio_api_networking_v1_HTTPIngressPath(ref), + networkingv1.HTTPIngressRuleValue{}.OpenAPIModelName(): schema_k8sio_api_networking_v1_HTTPIngressRuleValue(ref), + networkingv1.IPAddress{}.OpenAPIModelName(): schema_k8sio_api_networking_v1_IPAddress(ref), + networkingv1.IPAddressList{}.OpenAPIModelName(): schema_k8sio_api_networking_v1_IPAddressList(ref), + networkingv1.IPAddressSpec{}.OpenAPIModelName(): schema_k8sio_api_networking_v1_IPAddressSpec(ref), + networkingv1.IPBlock{}.OpenAPIModelName(): schema_k8sio_api_networking_v1_IPBlock(ref), + networkingv1.Ingress{}.OpenAPIModelName(): schema_k8sio_api_networking_v1_Ingress(ref), + networkingv1.IngressBackend{}.OpenAPIModelName(): schema_k8sio_api_networking_v1_IngressBackend(ref), + networkingv1.IngressClass{}.OpenAPIModelName(): schema_k8sio_api_networking_v1_IngressClass(ref), + networkingv1.IngressClassList{}.OpenAPIModelName(): schema_k8sio_api_networking_v1_IngressClassList(ref), + networkingv1.IngressClassParametersReference{}.OpenAPIModelName(): schema_k8sio_api_networking_v1_IngressClassParametersReference(ref), + networkingv1.IngressClassSpec{}.OpenAPIModelName(): schema_k8sio_api_networking_v1_IngressClassSpec(ref), + networkingv1.IngressList{}.OpenAPIModelName(): schema_k8sio_api_networking_v1_IngressList(ref), + networkingv1.IngressLoadBalancerIngress{}.OpenAPIModelName(): schema_k8sio_api_networking_v1_IngressLoadBalancerIngress(ref), + networkingv1.IngressLoadBalancerStatus{}.OpenAPIModelName(): schema_k8sio_api_networking_v1_IngressLoadBalancerStatus(ref), + networkingv1.IngressPortStatus{}.OpenAPIModelName(): schema_k8sio_api_networking_v1_IngressPortStatus(ref), + networkingv1.IngressRule{}.OpenAPIModelName(): schema_k8sio_api_networking_v1_IngressRule(ref), + networkingv1.IngressRuleValue{}.OpenAPIModelName(): schema_k8sio_api_networking_v1_IngressRuleValue(ref), + networkingv1.IngressServiceBackend{}.OpenAPIModelName(): schema_k8sio_api_networking_v1_IngressServiceBackend(ref), + networkingv1.IngressSpec{}.OpenAPIModelName(): schema_k8sio_api_networking_v1_IngressSpec(ref), + networkingv1.IngressStatus{}.OpenAPIModelName(): schema_k8sio_api_networking_v1_IngressStatus(ref), + networkingv1.IngressTLS{}.OpenAPIModelName(): schema_k8sio_api_networking_v1_IngressTLS(ref), + networkingv1.NetworkPolicy{}.OpenAPIModelName(): schema_k8sio_api_networking_v1_NetworkPolicy(ref), + networkingv1.NetworkPolicyEgressRule{}.OpenAPIModelName(): schema_k8sio_api_networking_v1_NetworkPolicyEgressRule(ref), + networkingv1.NetworkPolicyIngressRule{}.OpenAPIModelName(): schema_k8sio_api_networking_v1_NetworkPolicyIngressRule(ref), + networkingv1.NetworkPolicyList{}.OpenAPIModelName(): schema_k8sio_api_networking_v1_NetworkPolicyList(ref), + networkingv1.NetworkPolicyPeer{}.OpenAPIModelName(): schema_k8sio_api_networking_v1_NetworkPolicyPeer(ref), + networkingv1.NetworkPolicyPort{}.OpenAPIModelName(): schema_k8sio_api_networking_v1_NetworkPolicyPort(ref), + networkingv1.NetworkPolicySpec{}.OpenAPIModelName(): schema_k8sio_api_networking_v1_NetworkPolicySpec(ref), + networkingv1.ParentReference{}.OpenAPIModelName(): schema_k8sio_api_networking_v1_ParentReference(ref), + networkingv1.ServiceBackendPort{}.OpenAPIModelName(): schema_k8sio_api_networking_v1_ServiceBackendPort(ref), + networkingv1.ServiceCIDR{}.OpenAPIModelName(): schema_k8sio_api_networking_v1_ServiceCIDR(ref), + networkingv1.ServiceCIDRList{}.OpenAPIModelName(): schema_k8sio_api_networking_v1_ServiceCIDRList(ref), + networkingv1.ServiceCIDRSpec{}.OpenAPIModelName(): schema_k8sio_api_networking_v1_ServiceCIDRSpec(ref), + networkingv1.ServiceCIDRStatus{}.OpenAPIModelName(): schema_k8sio_api_networking_v1_ServiceCIDRStatus(ref), + rbacv1.AggregationRule{}.OpenAPIModelName(): schema_k8sio_api_rbac_v1_AggregationRule(ref), + rbacv1.ClusterRole{}.OpenAPIModelName(): schema_k8sio_api_rbac_v1_ClusterRole(ref), + rbacv1.ClusterRoleBinding{}.OpenAPIModelName(): schema_k8sio_api_rbac_v1_ClusterRoleBinding(ref), + rbacv1.ClusterRoleBindingList{}.OpenAPIModelName(): schema_k8sio_api_rbac_v1_ClusterRoleBindingList(ref), + rbacv1.ClusterRoleList{}.OpenAPIModelName(): schema_k8sio_api_rbac_v1_ClusterRoleList(ref), + rbacv1.PolicyRule{}.OpenAPIModelName(): schema_k8sio_api_rbac_v1_PolicyRule(ref), + rbacv1.Role{}.OpenAPIModelName(): schema_k8sio_api_rbac_v1_Role(ref), + rbacv1.RoleBinding{}.OpenAPIModelName(): schema_k8sio_api_rbac_v1_RoleBinding(ref), + rbacv1.RoleBindingList{}.OpenAPIModelName(): schema_k8sio_api_rbac_v1_RoleBindingList(ref), + rbacv1.RoleList{}.OpenAPIModelName(): schema_k8sio_api_rbac_v1_RoleList(ref), + rbacv1.RoleRef{}.OpenAPIModelName(): schema_k8sio_api_rbac_v1_RoleRef(ref), + rbacv1.Subject{}.OpenAPIModelName(): schema_k8sio_api_rbac_v1_Subject(ref), + storagev1.CSIDriver{}.OpenAPIModelName(): schema_k8sio_api_storage_v1_CSIDriver(ref), + storagev1.CSIDriverList{}.OpenAPIModelName(): schema_k8sio_api_storage_v1_CSIDriverList(ref), + storagev1.CSIDriverSpec{}.OpenAPIModelName(): schema_k8sio_api_storage_v1_CSIDriverSpec(ref), + storagev1.CSINode{}.OpenAPIModelName(): schema_k8sio_api_storage_v1_CSINode(ref), + storagev1.CSINodeDriver{}.OpenAPIModelName(): schema_k8sio_api_storage_v1_CSINodeDriver(ref), + storagev1.CSINodeList{}.OpenAPIModelName(): schema_k8sio_api_storage_v1_CSINodeList(ref), + storagev1.CSINodeSpec{}.OpenAPIModelName(): schema_k8sio_api_storage_v1_CSINodeSpec(ref), + storagev1.CSIStorageCapacity{}.OpenAPIModelName(): schema_k8sio_api_storage_v1_CSIStorageCapacity(ref), + storagev1.CSIStorageCapacityList{}.OpenAPIModelName(): schema_k8sio_api_storage_v1_CSIStorageCapacityList(ref), + storagev1.StorageClass{}.OpenAPIModelName(): schema_k8sio_api_storage_v1_StorageClass(ref), + storagev1.StorageClassList{}.OpenAPIModelName(): schema_k8sio_api_storage_v1_StorageClassList(ref), + storagev1.TokenRequest{}.OpenAPIModelName(): schema_k8sio_api_storage_v1_TokenRequest(ref), + storagev1.VolumeAttachment{}.OpenAPIModelName(): schema_k8sio_api_storage_v1_VolumeAttachment(ref), + storagev1.VolumeAttachmentList{}.OpenAPIModelName(): schema_k8sio_api_storage_v1_VolumeAttachmentList(ref), + storagev1.VolumeAttachmentSource{}.OpenAPIModelName(): schema_k8sio_api_storage_v1_VolumeAttachmentSource(ref), + storagev1.VolumeAttachmentSpec{}.OpenAPIModelName(): schema_k8sio_api_storage_v1_VolumeAttachmentSpec(ref), + storagev1.VolumeAttachmentStatus{}.OpenAPIModelName(): schema_k8sio_api_storage_v1_VolumeAttachmentStatus(ref), + storagev1.VolumeAttributesClass{}.OpenAPIModelName(): schema_k8sio_api_storage_v1_VolumeAttributesClass(ref), + storagev1.VolumeAttributesClassList{}.OpenAPIModelName(): schema_k8sio_api_storage_v1_VolumeAttributesClassList(ref), + storagev1.VolumeError{}.OpenAPIModelName(): schema_k8sio_api_storage_v1_VolumeError(ref), + storagev1.VolumeNodeResources{}.OpenAPIModelName(): schema_k8sio_api_storage_v1_VolumeNodeResources(ref), + resource.Quantity{}.OpenAPIModelName(): schema_apimachinery_pkg_api_resource_Quantity(ref), + metav1.APIGroup{}.OpenAPIModelName(): schema_pkg_apis_meta_v1_APIGroup(ref), + metav1.APIGroupList{}.OpenAPIModelName(): schema_pkg_apis_meta_v1_APIGroupList(ref), + metav1.APIResource{}.OpenAPIModelName(): schema_pkg_apis_meta_v1_APIResource(ref), + metav1.APIResourceList{}.OpenAPIModelName(): schema_pkg_apis_meta_v1_APIResourceList(ref), + metav1.APIVersions{}.OpenAPIModelName(): schema_pkg_apis_meta_v1_APIVersions(ref), + metav1.ApplyOptions{}.OpenAPIModelName(): schema_pkg_apis_meta_v1_ApplyOptions(ref), + metav1.Condition{}.OpenAPIModelName(): schema_pkg_apis_meta_v1_Condition(ref), + metav1.CreateOptions{}.OpenAPIModelName(): schema_pkg_apis_meta_v1_CreateOptions(ref), + metav1.DeleteOptions{}.OpenAPIModelName(): schema_pkg_apis_meta_v1_DeleteOptions(ref), + metav1.Duration{}.OpenAPIModelName(): schema_pkg_apis_meta_v1_Duration(ref), + metav1.FieldSelectorRequirement{}.OpenAPIModelName(): schema_pkg_apis_meta_v1_FieldSelectorRequirement(ref), + metav1.FieldsV1{}.OpenAPIModelName(): schema_pkg_apis_meta_v1_FieldsV1(ref), + metav1.GetOptions{}.OpenAPIModelName(): schema_pkg_apis_meta_v1_GetOptions(ref), + metav1.GroupKind{}.OpenAPIModelName(): schema_pkg_apis_meta_v1_GroupKind(ref), + metav1.GroupResource{}.OpenAPIModelName(): schema_pkg_apis_meta_v1_GroupResource(ref), + metav1.GroupVersion{}.OpenAPIModelName(): schema_pkg_apis_meta_v1_GroupVersion(ref), + metav1.GroupVersionForDiscovery{}.OpenAPIModelName(): schema_pkg_apis_meta_v1_GroupVersionForDiscovery(ref), + metav1.GroupVersionKind{}.OpenAPIModelName(): schema_pkg_apis_meta_v1_GroupVersionKind(ref), + metav1.GroupVersionResource{}.OpenAPIModelName(): schema_pkg_apis_meta_v1_GroupVersionResource(ref), + metav1.InternalEvent{}.OpenAPIModelName(): schema_pkg_apis_meta_v1_InternalEvent(ref), + metav1.LabelSelector{}.OpenAPIModelName(): schema_pkg_apis_meta_v1_LabelSelector(ref), + metav1.LabelSelectorRequirement{}.OpenAPIModelName(): schema_pkg_apis_meta_v1_LabelSelectorRequirement(ref), + metav1.List{}.OpenAPIModelName(): schema_pkg_apis_meta_v1_List(ref), + metav1.ListMeta{}.OpenAPIModelName(): schema_pkg_apis_meta_v1_ListMeta(ref), + metav1.ListOptions{}.OpenAPIModelName(): schema_pkg_apis_meta_v1_ListOptions(ref), + metav1.ManagedFieldsEntry{}.OpenAPIModelName(): schema_pkg_apis_meta_v1_ManagedFieldsEntry(ref), + metav1.MicroTime{}.OpenAPIModelName(): schema_pkg_apis_meta_v1_MicroTime(ref), + metav1.ObjectMeta{}.OpenAPIModelName(): schema_pkg_apis_meta_v1_ObjectMeta(ref), + metav1.OwnerReference{}.OpenAPIModelName(): schema_pkg_apis_meta_v1_OwnerReference(ref), + metav1.PartialObjectMetadata{}.OpenAPIModelName(): schema_pkg_apis_meta_v1_PartialObjectMetadata(ref), + metav1.PartialObjectMetadataList{}.OpenAPIModelName(): schema_pkg_apis_meta_v1_PartialObjectMetadataList(ref), + metav1.Patch{}.OpenAPIModelName(): schema_pkg_apis_meta_v1_Patch(ref), + metav1.PatchOptions{}.OpenAPIModelName(): schema_pkg_apis_meta_v1_PatchOptions(ref), + metav1.Preconditions{}.OpenAPIModelName(): schema_pkg_apis_meta_v1_Preconditions(ref), + metav1.RootPaths{}.OpenAPIModelName(): schema_pkg_apis_meta_v1_RootPaths(ref), + metav1.ServerAddressByClientCIDR{}.OpenAPIModelName(): schema_pkg_apis_meta_v1_ServerAddressByClientCIDR(ref), + metav1.Status{}.OpenAPIModelName(): schema_pkg_apis_meta_v1_Status(ref), + metav1.StatusCause{}.OpenAPIModelName(): schema_pkg_apis_meta_v1_StatusCause(ref), + metav1.StatusDetails{}.OpenAPIModelName(): schema_pkg_apis_meta_v1_StatusDetails(ref), + metav1.Table{}.OpenAPIModelName(): schema_pkg_apis_meta_v1_Table(ref), + metav1.TableColumnDefinition{}.OpenAPIModelName(): schema_pkg_apis_meta_v1_TableColumnDefinition(ref), + metav1.TableOptions{}.OpenAPIModelName(): schema_pkg_apis_meta_v1_TableOptions(ref), + metav1.TableRow{}.OpenAPIModelName(): schema_pkg_apis_meta_v1_TableRow(ref), + metav1.TableRowCondition{}.OpenAPIModelName(): schema_pkg_apis_meta_v1_TableRowCondition(ref), + metav1.Time{}.OpenAPIModelName(): schema_pkg_apis_meta_v1_Time(ref), + metav1.Timestamp{}.OpenAPIModelName(): schema_pkg_apis_meta_v1_Timestamp(ref), + metav1.TypeMeta{}.OpenAPIModelName(): schema_pkg_apis_meta_v1_TypeMeta(ref), + metav1.UpdateOptions{}.OpenAPIModelName(): schema_pkg_apis_meta_v1_UpdateOptions(ref), + metav1.WatchEvent{}.OpenAPIModelName(): schema_pkg_apis_meta_v1_WatchEvent(ref), + runtime.RawExtension{}.OpenAPIModelName(): schema_k8sio_apimachinery_pkg_runtime_RawExtension(ref), + runtime.TypeMeta{}.OpenAPIModelName(): schema_k8sio_apimachinery_pkg_runtime_TypeMeta(ref), + runtime.Unknown{}.OpenAPIModelName(): schema_k8sio_apimachinery_pkg_runtime_Unknown(ref), + intstr.IntOrString{}.OpenAPIModelName(): schema_apimachinery_pkg_util_intstr_IntOrString(ref), + version.Info{}.OpenAPIModelName(): schema_k8sio_apimachinery_pkg_version_Info(ref), + } +} + +func schema_pkg_apis_audit_v1_Event(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "Event holds the event information", Type: []string{"object"}, Properties: map[string]spec.Schema{ - "endpoint": { + "kind": { SchemaProps: spec.SchemaProps{ - Description: "Endpoint is the endpoint for the analytics server.", + Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", Type: []string{"string"}, Format: "", }, }, - "requests": { + "apiVersion": { SchemaProps: spec.SchemaProps{ - Description: "Requests is a slice of requested resources to return analytics for.", - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref(licenseapi.Request{}.OpenAPIModelName()), - }, - }, - }, + Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + Type: []string{"string"}, + Format: "", }, }, - }, - }, - }, - Dependencies: []string{ - licenseapi.Request{}.OpenAPIModelName()}, - } -} - -func schema_devsy_org_admin_apis_pkg_licenseapi_Announcement(ref common.ReferenceCallback) common.OpenAPIDefinition { - return common.OpenAPIDefinition{ - Schema: spec.Schema{ - SchemaProps: spec.SchemaProps{ - Description: "Announcement contains an announcement that should be shown within the Devsy instance. This information is sent to Devsy instances when they check in with the license server.", - Type: []string{"object"}, - Properties: map[string]spec.Schema{ - "name": { + "level": { SchemaProps: spec.SchemaProps{ - Description: "Name contains the resource name of the announcement", + Description: "AuditLevel at which event was generated", + Default: "", Type: []string{"string"}, Format: "", }, }, - "title": { + "auditID": { + SchemaProps: spec.SchemaProps{ + Description: "Unique audit ID, generated for each request.", + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + "stage": { + SchemaProps: spec.SchemaProps{ + Description: "Stage of the request handling when this event instance was generated.", + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + "requestURI": { SchemaProps: spec.SchemaProps{ - Description: "Title contains the title of the announcement in HTML format.", + Description: "RequestURI is the request URI as sent by the client to a server.", + Default: "", Type: []string{"string"}, Format: "", }, }, - "body": { + "verb": { SchemaProps: spec.SchemaProps{ - Description: "Body contains the main message of the announcement in HTML format.", + Description: "Verb is the kubernetes verb associated with the request. For non-resource requests, this is the lower-cased HTTP method.", + Default: "", Type: []string{"string"}, Format: "", }, }, - "buttons": { + "user": { + SchemaProps: spec.SchemaProps{ + Description: "Authenticated user information.", + Default: map[string]interface{}{}, + Ref: ref("k8s.io/api/authentication/v1.UserInfo"), + }, + }, + "impersonatedUser": { + SchemaProps: spec.SchemaProps{ + Description: "Impersonated user information.", + Ref: ref("k8s.io/api/authentication/v1.UserInfo"), + }, + }, + "sourceIPs": { SchemaProps: spec.SchemaProps{ - Description: "Buttons to show alongside the announcement", + Description: "Source IPs, from where the request originated and intermediate proxies.", Type: []string{"array"}, Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ - Ref: ref(licenseapi.Button{}.OpenAPIModelName()), + Default: "", + Type: []string{"string"}, + Format: "", }, }, }, }, }, - }, - }, - }, - Dependencies: []string{ - licenseapi.Button{}.OpenAPIModelName()}, - } -} - -func schema_devsy_org_admin_apis_pkg_licenseapi_BlockRequest(ref common.ReferenceCallback) common.OpenAPIDefinition { - return common.OpenAPIDefinition{ - Schema: spec.Schema{ - SchemaProps: spec.SchemaProps{ - Description: "BlockRequest tells the instance to block certain requests due to overages (limit exceeded) the license server.", - Type: []string{"object"}, - Properties: map[string]spec.Schema{ - "group": { + "userAgent": { SchemaProps: spec.SchemaProps{ - Description: "Group is the api group.", + Description: "UserAgent records the user agent string reported by the client. Note that the UserAgent is provided by the client, and must not be trusted.", Type: []string{"string"}, Format: "", }, }, - "resource": { + "objectRef": { SchemaProps: spec.SchemaProps{ - Description: "Resource is the resource name for the request.", - Type: []string{"string"}, - Format: "", + Description: "Object reference this request is targeted at. Does not apply for List-type requests, or non-resource requests.", + Ref: ref("github.com/devsy-org/api/pkg/apis/audit/v1.ObjectReference"), }, }, - "verbs": { + "responseStatus": { SchemaProps: spec.SchemaProps{ - Description: "Verbs is the list of verbs for the request.", - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ + Description: "The response status. For successful and non-successful responses, this will only include the Code and StatusSuccess. For panic type error responses, this will be auto-populated with the error Message.", + Ref: ref(metav1.Status{}.OpenAPIModelName()), + }, + }, + "requestObject": { + SchemaProps: spec.SchemaProps{ + Description: "API object from the request, in JSON format. The RequestObject is recorded as-is in the request (possibly re-encoded as JSON), prior to version conversion, defaulting, admission or merging. It is an external versioned object type, and may not be a valid object on its own. Omitted for non-resource requests. Only logged at Request Level and higher.", + Ref: ref(runtime.Unknown{}.OpenAPIModelName()), + }, + }, + "responseObject": { + SchemaProps: spec.SchemaProps{ + Description: "API object returned in the response, in JSON. The ResponseObject is recorded after conversion to the external type, and serialized as JSON. Omitted for non-resource requests. Only logged at Response Level.", + Ref: ref(runtime.Unknown{}.OpenAPIModelName()), + }, + }, + "requestReceivedTimestamp": { + SchemaProps: spec.SchemaProps{ + Description: "Time the request reached the apiserver.", + Ref: ref(metav1.MicroTime{}.OpenAPIModelName()), + }, + }, + "stageTimestamp": { + SchemaProps: spec.SchemaProps{ + Description: "Time the request reached current audit stage.", + Ref: ref(metav1.MicroTime{}.OpenAPIModelName()), + }, + }, + "annotations": { + SchemaProps: spec.SchemaProps{ + Description: "Annotations is an unstructured key value map stored with an audit event that may be set by plugins invoked in the request serving chain, including authentication, authorization and admission plugins. Note that these annotations are for the audit event, and do not correspond to the metadata.annotations of the submitted object. Keys should uniquely identify the informing component to avoid name collisions (e.g. podsecuritypolicy.admission.k8s.io/policy). Values should be short. Annotations are included in the Metadata level.", + Type: []string{"object"}, + AdditionalProperties: &spec.SchemaOrBool{ + Allows: true, Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: "", @@ -1125,124 +1215,135 @@ func schema_devsy_org_admin_apis_pkg_licenseapi_BlockRequest(ref common.Referenc }, }, }, - "overage": { - SchemaProps: spec.SchemaProps{ - Ref: ref(licenseapi.ResourceCount{}.OpenAPIModelName()), - }, - }, }, + Required: []string{"level", "auditID", "stage", "requestURI", "verb", "user"}, }, }, Dependencies: []string{ - licenseapi.ResourceCount{}.OpenAPIModelName()}, + "github.com/devsy-org/api/pkg/apis/audit/v1.ObjectReference", "k8s.io/api/authentication/v1.UserInfo", metav1.MicroTime{}.OpenAPIModelName(), metav1.Status{}.OpenAPIModelName(), runtime.Unknown{}.OpenAPIModelName()}, } } -func schema_devsy_org_admin_apis_pkg_licenseapi_Button(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_audit_v1_EventList(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "Button is an object that represents a button in the Devsy UI that links to some external service for handling operations for licensing for example.", + Description: "EventList is a list of audit Events.", Type: []string{"object"}, Properties: map[string]spec.Schema{ - "name": { + "kind": { SchemaProps: spec.SchemaProps{ - Description: "Name is the name of the button (ButtonName). Optional.", + Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", Type: []string{"string"}, Format: "", }, }, - "url": { + "apiVersion": { SchemaProps: spec.SchemaProps{ - Description: "URL is the link at the other end of the button.", - Default: "", + Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", Type: []string{"string"}, Format: "", }, }, - "displayText": { + "metadata": { SchemaProps: spec.SchemaProps{ - Description: "DisplayText is the text to display on the button. If display text is unset the button will never be shown in the Devsy UI.", - Type: []string{"string"}, - Format: "", + Default: map[string]interface{}{}, + Ref: ref(metav1.ListMeta{}.OpenAPIModelName()), }, }, - "direct": { + "items": { SchemaProps: spec.SchemaProps{ - Description: "Direct indicates if the Devsy front end should directly hit this endpoint. If false, it means that the Devsy front end will be hitting the license server first to generate a one time token for the operation; this also means that there will be a redirect URL in the response to the request for this and that link should be followed by the front end.", - Type: []string{"boolean"}, - Format: "", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("github.com/devsy-org/api/pkg/apis/audit/v1.Event"), + }, + }, + }, }, }, }, - Required: []string{"url"}, + Required: []string{"items"}, }, }, + Dependencies: []string{ + "github.com/devsy-org/api/pkg/apis/audit/v1.Event", metav1.ListMeta{}.OpenAPIModelName()}, } } -func schema_devsy_org_admin_apis_pkg_licenseapi_ChatAuthCreateInput(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_audit_v1_ObjectReference(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "ChatAuthCreateInput is the required input data for generating a hash for a user for in-product chat", + Description: "ObjectReference contains enough information to let you inspect or modify the referred object.", Type: []string{"object"}, Properties: map[string]spec.Schema{ - "token": { + "resource": { SchemaProps: spec.SchemaProps{ - Description: "Token is the jwt token identifying the Devsy instance.", - Default: "", - Type: []string{"string"}, - Format: "", + Type: []string{"string"}, + Format: "", }, }, - "certificate": { + "namespace": { SchemaProps: spec.SchemaProps{ - Description: "Certificate is the signing certificate for the token.", - Default: "", - Type: []string{"string"}, - Format: "", + Type: []string{"string"}, + Format: "", }, }, - "provider": { + "name": { SchemaProps: spec.SchemaProps{ Type: []string{"string"}, Format: "", }, }, - "name": { + "uid": { SchemaProps: spec.SchemaProps{ Type: []string{"string"}, Format: "", }, }, - "email": { + "apiGroup": { + SchemaProps: spec.SchemaProps{ + Description: "APIGroup is the name of the API group that contains the referred object. The empty string represents the core API group.", + Type: []string{"string"}, + Format: "", + }, + }, + "apiVersion": { + SchemaProps: spec.SchemaProps{ + Description: "APIVersion is the version of the API group that contains the referred object.", + Type: []string{"string"}, + Format: "", + }, + }, + "resourceVersion": { SchemaProps: spec.SchemaProps{ Type: []string{"string"}, Format: "", }, }, - "username": { + "subresource": { SchemaProps: spec.SchemaProps{ Type: []string{"string"}, Format: "", }, }, }, - Required: []string{"token", "certificate"}, }, }, } } -func schema_devsy_org_admin_apis_pkg_licenseapi_ChatAuthCreateOutput(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_AgentAnalyticsSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "ChatAuthCreateOutput is the struct holding all information for chat auth generate user hash\" requests.", + Description: "AgentAnalyticsSpec holds info the agent can use to send analytics data to the analytics backend.", Type: []string{"object"}, Properties: map[string]spec.Schema{ - "hash": { + "analyticsEndpoint": { SchemaProps: spec.SchemaProps{ Type: []string{"string"}, Format: "", @@ -1254,743 +1355,835 @@ func schema_devsy_org_admin_apis_pkg_licenseapi_ChatAuthCreateOutput(ref common. } } -func schema_devsy_org_admin_apis_pkg_licenseapi_DevsyClusterInfo(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_AgentAuditConfig(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "DevsyClusterInfo holds information about a single virtual cluster", - Type: []string{"object"}, + Type: []string{"object"}, Properties: map[string]spec.Schema{ - "uid": { + "enabled": { SchemaProps: spec.SchemaProps{ - Default: "", - Type: []string{"string"}, - Format: "", + Description: "If audit is enabled and incoming api requests will be logged based on the supplied policy.", + Type: []string{"boolean"}, + Format: "", }, }, - "name": { + "disableAgentSyncBack": { SchemaProps: spec.SchemaProps{ - Default: "", - Type: []string{"string"}, - Format: "", + Description: "If true, the agent will not send back any audit logs to Devsy itself.", + Type: []string{"boolean"}, + Format: "", }, }, - "namespace": { + "level": { SchemaProps: spec.SchemaProps{ - Default: "", - Type: []string{"string"}, - Format: "", + Description: "Level is an optional log level for audit logs. Cannot be used together with policy", + Type: []string{"integer"}, + Format: "int32", }, }, - "creation_timestamp": { + "policy": { SchemaProps: spec.SchemaProps{ - Default: "", - Type: []string{"string"}, - Format: "", + Description: "The audit policy to use and log requests. By default devsy will not log anything", + Default: map[string]interface{}{}, + Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.AuditPolicy"), }, }, - "is_available": { + "path": { SchemaProps: spec.SchemaProps{ - Default: false, - Type: []string{"boolean"}, - Format: "", + Description: "The path where to save the audit log files. This is required if audit is enabled. Backup log files will be retained in the same directory.", + Type: []string{"string"}, + Format: "", }, }, - "node_machine_ids": { + "maxAge": { SchemaProps: spec.SchemaProps{ - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: "", - Type: []string{"string"}, - Format: "", - }, - }, - }, + Description: "MaxAge is the maximum number of days to retain old log files based on the timestamp encoded in their filename. Note that a day is defined as 24 hours and may not exactly correspond to calendar days due to daylight savings, leap seconds, etc. The default is not to remove old log files based on age.", + Type: []string{"integer"}, + Format: "int32", + }, + }, + "maxBackups": { + SchemaProps: spec.SchemaProps{ + Description: "MaxBackups is the maximum number of old log files to retain. The default is to retain all old log files (though MaxAge may still cause them to get deleted.)", + Type: []string{"integer"}, + Format: "int32", + }, + }, + "maxSize": { + SchemaProps: spec.SchemaProps{ + Description: "MaxSize is the maximum size in megabytes of the log file before it gets rotated. It defaults to 100 megabytes.", + Type: []string{"integer"}, + Format: "int32", + }, + }, + "compress": { + SchemaProps: spec.SchemaProps{ + Description: "Compress determines if the rotated log files should be compressed using gzip. The default is not to perform compression.", + Type: []string{"boolean"}, + Format: "", }, }, }, - Required: []string{"uid", "name", "namespace", "creation_timestamp", "is_available", "node_machine_ids"}, }, }, + Dependencies: []string{ + "github.com/devsy-org/api/pkg/apis/management/v1.AuditPolicy"}, } } -func schema_devsy_org_admin_apis_pkg_licenseapi_DomainToken(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_AgentAuditEvent(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Type: []string{"object"}, + Description: "AgentAuditEvent holds an event", + Type: []string{"object"}, Properties: map[string]spec.Schema{ - "url": { + "kind": { SchemaProps: spec.SchemaProps{ - Default: "", - Type: []string{"string"}, - Format: "", + Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + Type: []string{"string"}, + Format: "", + }, + }, + "apiVersion": { + SchemaProps: spec.SchemaProps{ + Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + Type: []string{"string"}, + Format: "", + }, + }, + "metadata": { + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref(metav1.ObjectMeta{}.OpenAPIModelName()), + }, + }, + "spec": { + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.AgentAuditEventSpec"), + }, + }, + "status": { + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.AgentAuditEventStatus"), }, }, }, - Required: []string{"url"}, }, }, + Dependencies: []string{ + "github.com/devsy-org/api/pkg/apis/management/v1.AgentAuditEventSpec", "github.com/devsy-org/api/pkg/apis/management/v1.AgentAuditEventStatus", metav1.ObjectMeta{}.OpenAPIModelName()}, } } -func schema_devsy_org_admin_apis_pkg_licenseapi_Feature(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_AgentAuditEventList(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "Feature contains information regarding to a feature", - Type: []string{"object"}, + Type: []string{"object"}, Properties: map[string]spec.Schema{ - "name": { + "kind": { SchemaProps: spec.SchemaProps{ - Description: "Name is the name of the feature (FeatureName) This cannot be FeatureName because it needs to be downward compatible e.g. older Devsy version doesn't know a newer feature but it will still be received and still needs to be rendered in the license view", - Default: "", + Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", Type: []string{"string"}, Format: "", }, }, - "displayName": { - SchemaProps: spec.SchemaProps{ - Type: []string{"string"}, - Format: "", - }, - }, - "preview": { + "apiVersion": { SchemaProps: spec.SchemaProps{ - Description: "Preview represents whether the feature can be previewed if a user's license does not allow the feature", - Type: []string{"boolean"}, + Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + Type: []string{"string"}, Format: "", }, }, - "allowBefore": { + "metadata": { SchemaProps: spec.SchemaProps{ - Description: "AllowBefore is an optional timestamp. If set, licenses issued before this time are allowed to use the feature even if it's not included in the license.", - Type: []string{"string"}, - Format: "", + Default: map[string]interface{}{}, + Ref: ref(metav1.ListMeta{}.OpenAPIModelName()), }, }, - "status": { + "items": { SchemaProps: spec.SchemaProps{ - Description: "Status shows the status of the feature (see type FeatureStatus)", - Type: []string{"string"}, - Format: "", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.AgentAuditEvent"), + }, + }, + }, }, }, - "module": { + }, + Required: []string{"items"}, + }, + }, + Dependencies: []string{ + "github.com/devsy-org/api/pkg/apis/management/v1.AgentAuditEvent", metav1.ListMeta{}.OpenAPIModelName()}, + } +} + +func schema_pkg_apis_management_v1_AgentAuditEventSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "AgentAuditEventSpec holds the specification.", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "events": { SchemaProps: spec.SchemaProps{ - Description: "Name of the module that this feature belongs to", - Type: []string{"string"}, - Format: "", + Description: "Events are the events the agent has recorded", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Ref: ref("github.com/devsy-org/api/pkg/apis/audit/v1.Event"), + }, + }, + }, }, }, }, - Required: []string{"name"}, }, }, + Dependencies: []string{ + "github.com/devsy-org/api/pkg/apis/audit/v1.Event"}, } } -func schema_devsy_org_admin_apis_pkg_licenseapi_FeatureUsage(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_AgentAuditEventStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "FeatureUsage holds information about whether a feature is used and its status", + Description: "AgentAuditEventStatus holds the status.", Type: []string{"object"}, + }, + }, + } +} + +func schema_pkg_apis_management_v1_AgentCostControlConfig(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"object"}, Properties: map[string]spec.Schema{ - "used": { + "enabled": { SchemaProps: spec.SchemaProps{ - Default: false, - Type: []string{"boolean"}, - Format: "", + Description: "Enabled specifies whether the ROI dashboard should be available in the UI, and if the metrics infrastructure that provides dashboard data is deployed", + Type: []string{"boolean"}, + Format: "", }, }, - "status": { + "metrics": { SchemaProps: spec.SchemaProps{ - Default: "", - Type: []string{"string"}, - Format: "", + Description: "Metrics are settings applied to metric infrastructure in each connected cluster. These can be overridden in individual clusters by modifying the Cluster's spec", + Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.Metrics"), + }, + }, + "opencost": { + SchemaProps: spec.SchemaProps{ + Description: "OpenCost are settings applied to OpenCost deployments in each connected cluster. These can be overridden in individual clusters by modifying the Cluster's spec", + Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.OpenCost"), }, }, }, - Required: []string{"used", "status"}, }, }, + Dependencies: []string{ + "github.com/devsy-org/api/pkg/apis/storage/v1.Metrics", "github.com/devsy-org/api/pkg/apis/storage/v1.OpenCost"}, } } -func schema_devsy_org_admin_apis_pkg_licenseapi_GenericRequestInput(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_Announcement(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "GenericRequestInput defines the payload that needs to be sent to a button's action URL", + Description: "Announcement holds the announcement information", Type: []string{"object"}, Properties: map[string]spec.Schema{ - "token": { + "kind": { SchemaProps: spec.SchemaProps{ - Description: "Token is the jwt token identifying the Devsy instance.", - Default: "", + Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", Type: []string{"string"}, Format: "", }, }, - "certificate": { + "apiVersion": { SchemaProps: spec.SchemaProps{ - Description: "Certificate is the signing certificate for the token.", - Default: "", + Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", Type: []string{"string"}, Format: "", }, }, - "payload": { + "metadata": { SchemaProps: spec.SchemaProps{ - Description: "Payload provides the json encoded payload", - Type: []string{"string"}, - Format: "", + Default: map[string]interface{}{}, + Ref: ref(metav1.ObjectMeta{}.OpenAPIModelName()), }, }, - "returnURL": { + "spec": { SchemaProps: spec.SchemaProps{ - Description: "ReturnURL is the url from which the request is initiated", - Type: []string{"string"}, - Format: "", + Default: map[string]interface{}{}, + Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.AnnouncementSpec"), + }, + }, + "status": { + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.AnnouncementStatus"), }, }, }, - Required: []string{"token", "certificate"}, }, }, + Dependencies: []string{ + "github.com/devsy-org/api/pkg/apis/management/v1.AnnouncementSpec", "github.com/devsy-org/api/pkg/apis/management/v1.AnnouncementStatus", metav1.ObjectMeta{}.OpenAPIModelName()}, } } -func schema_devsy_org_admin_apis_pkg_licenseapi_GenericRequestOutput(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_AnnouncementList(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "GenericRequestOutput specifies the response", - Type: []string{"object"}, + Type: []string{"object"}, Properties: map[string]spec.Schema{ - "redirectURL": { + "kind": { SchemaProps: spec.SchemaProps{ - Description: "RedirectURL to redirect the user to.", + Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", Type: []string{"string"}, Format: "", }, }, - "html": { + "apiVersion": { SchemaProps: spec.SchemaProps{ - Description: "HTML to display to the user.", + Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", Type: []string{"string"}, Format: "", }, }, - "buttons": { + "metadata": { + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref(metav1.ListMeta{}.OpenAPIModelName()), + }, + }, + "items": { SchemaProps: spec.SchemaProps{ - Description: "Buttons to be shown to the user alongside other content (e.g. HTML).", - Type: []string{"array"}, + Type: []string{"array"}, Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref(licenseapi.Button{}.OpenAPIModelName()), + Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.Announcement"), }, }, }, }, }, }, + Required: []string{"items"}, }, }, Dependencies: []string{ - licenseapi.Button{}.OpenAPIModelName()}, + "github.com/devsy-org/api/pkg/apis/management/v1.Announcement", metav1.ListMeta{}.OpenAPIModelName()}, + } +} + +func schema_pkg_apis_management_v1_AnnouncementSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"object"}, + }, + }, } } -func schema_devsy_org_admin_apis_pkg_licenseapi_InstanceActivateInstanceInput(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_AnnouncementStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ Type: []string{"object"}, Properties: map[string]spec.Schema{ - "activationCode": { + "announcement": { SchemaProps: spec.SchemaProps{ - Default: "", - Type: []string{"string"}, - Format: "", + Description: "Announcement is the html announcement that should be displayed in the frontend", + Default: map[string]interface{}{}, + Ref: ref("github.com/devsy-org/admin-apis/pkg/licenseapi.Announcement"), }, }, }, - Required: []string{"activationCode"}, }, }, + Dependencies: []string{ + "github.com/devsy-org/admin-apis/pkg/licenseapi.Announcement"}, } } -func schema_devsy_org_admin_apis_pkg_licenseapi_InstanceCreateInput(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_App(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "InstanceCreateInput is the required input data for \"instance create\" operations, that is, the primary endpoint that Devsy instances will hit to register to the license server as well as get information about the instance's current license.", + Description: "App holds the information", Type: []string{"object"}, Properties: map[string]spec.Schema{ - "token": { + "kind": { SchemaProps: spec.SchemaProps{ - Description: "Token is the jwt token identifying the Devsy instance.", - Default: "", + Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", Type: []string{"string"}, Format: "", }, }, - "certificate": { + "apiVersion": { SchemaProps: spec.SchemaProps{ - Description: "Certificate is the signing certificate for the token.", - Default: "", + Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", Type: []string{"string"}, Format: "", }, }, - "product": { + "metadata": { SchemaProps: spec.SchemaProps{ - Description: "Product is the product that is being used. Can be empty, devsy or devsy-pro. This should NOT be a ProductName but a string to allow for downward compatibility", - Type: []string{"string"}, - Format: "", - }, - }, - "staticToken": { - SchemaProps: spec.SchemaProps{ - Description: "StaticToken is a token for the instance. This is used for testing purposes or for instances that use a static token.", - Type: []string{"string"}, - Format: "", + Default: map[string]interface{}{}, + Ref: ref(metav1.ObjectMeta{}.OpenAPIModelName()), }, }, - "email": { + "spec": { SchemaProps: spec.SchemaProps{ - Description: "Email is the admin email. Can be empty if no email is specified.", - Type: []string{"string"}, - Format: "", + Default: map[string]interface{}{}, + Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.AppSpec"), }, }, - "version": { + "status": { SchemaProps: spec.SchemaProps{ - Default: "", - Type: []string{"string"}, - Format: "", + Default: map[string]interface{}{}, + Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.AppStatus"), }, }, - "kubeVersion": { + }, + }, + }, + Dependencies: []string{ + "github.com/devsy-org/api/pkg/apis/management/v1.AppSpec", "github.com/devsy-org/api/pkg/apis/management/v1.AppStatus", metav1.ObjectMeta{}.OpenAPIModelName()}, + } +} + +func schema_pkg_apis_management_v1_AppCredentials(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "kind": { SchemaProps: spec.SchemaProps{ - Default: "", - Type: []string{"string"}, - Format: "", + Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + Type: []string{"string"}, + Format: "", }, }, - "kubeSystemNamespace": { + "apiVersion": { SchemaProps: spec.SchemaProps{ - Default: "", - Type: []string{"string"}, - Format: "", + Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + Type: []string{"string"}, + Format: "", }, }, - "resources": { + "metadata": { SchemaProps: spec.SchemaProps{ - Description: "ResourceUsage contains information about the number of resources used", - Type: []string{"object"}, - AdditionalProperties: &spec.SchemaOrBool{ - Allows: true, - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref(licenseapi.ResourceCount{}.OpenAPIModelName()), - }, - }, - }, + Default: map[string]interface{}{}, + Ref: ref(metav1.ObjectMeta{}.OpenAPIModelName()), }, }, - "features": { + "projectSecretRefs": { SchemaProps: spec.SchemaProps{ - Description: "FeatureUse contains information about what features are used", + Description: "ProjectSecretRefs holds the resolved secret values for the project secret refs.", Type: []string{"object"}, AdditionalProperties: &spec.SchemaOrBool{ Allows: true, Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ - Default: false, - Type: []string{"boolean"}, + Default: "", + Type: []string{"string"}, Format: "", }, }, }, }, }, - "debugInstanceID": { - SchemaProps: spec.SchemaProps{ - Description: "DebugInstanceID is the ID of the instance. This is only used for testing purposes. Should never be sent from production instances. Requires authentication via an access key.", - Type: []string{"string"}, - Format: "", - }, - }, - "platformDatabase": { - SchemaProps: spec.SchemaProps{ - Description: "PlatformDatabase reports details about the platform database to the license service", - Ref: ref(licenseapi.PlatformDatabase{}.OpenAPIModelName()), - }, - }, }, - Required: []string{"token", "certificate", "version", "kubeVersion", "kubeSystemNamespace"}, }, }, Dependencies: []string{ - licenseapi.PlatformDatabase{}.OpenAPIModelName(), licenseapi.ResourceCount{}.OpenAPIModelName()}, + metav1.ObjectMeta{}.OpenAPIModelName()}, } } -func schema_devsy_org_admin_apis_pkg_licenseapi_InstanceCreateOutput(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_AppCredentialsList(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "InstanceCreateOutput is the struct holding all information returned from \"instance create\" requests.", - Type: []string{"object"}, + Type: []string{"object"}, Properties: map[string]spec.Schema{ - "license": { + "kind": { SchemaProps: spec.SchemaProps{ - Description: "License is the license data for the requested Devsy instance.", - Ref: ref(licenseapi.License{}.OpenAPIModelName()), + Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + Type: []string{"string"}, + Format: "", }, }, - "currentTime": { + "apiVersion": { SchemaProps: spec.SchemaProps{ - Default: 0, - Type: []string{"integer"}, - Format: "int64", + Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + Type: []string{"string"}, + Format: "", }, }, - }, - Required: []string{"currentTime"}, - }, - }, - Dependencies: []string{ - licenseapi.License{}.OpenAPIModelName()}, - } -} - -func schema_devsy_org_admin_apis_pkg_licenseapi_InstanceSendActivationEmailInput(ref common.ReferenceCallback) common.OpenAPIDefinition { - return common.OpenAPIDefinition{ - Schema: spec.Schema{ - SchemaProps: spec.SchemaProps{ - Type: []string{"object"}, - Properties: map[string]spec.Schema{ - "email": { + "metadata": { SchemaProps: spec.SchemaProps{ - Default: "", - Type: []string{"string"}, - Format: "", + Default: map[string]interface{}{}, + Ref: ref(metav1.ListMeta{}.OpenAPIModelName()), + }, + }, + "items": { + SchemaProps: spec.SchemaProps{ + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.AppCredentials"), + }, + }, + }, }, }, }, - Required: []string{"email"}, + Required: []string{"items"}, }, }, + Dependencies: []string{ + "github.com/devsy-org/api/pkg/apis/management/v1.AppCredentials", metav1.ListMeta{}.OpenAPIModelName()}, } } -func schema_devsy_org_admin_apis_pkg_licenseapi_InstanceTokenAuth(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_AppList(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ Type: []string{"object"}, Properties: map[string]spec.Schema{ - "token": { + "kind": { SchemaProps: spec.SchemaProps{ - Description: "Token is the jwt token identifying the Devsy instance.", - Default: "", + Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", Type: []string{"string"}, Format: "", }, }, - "certificate": { + "apiVersion": { SchemaProps: spec.SchemaProps{ - Description: "Certificate is the signing certificate for the token.", - Default: "", + Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", Type: []string{"string"}, Format: "", }, }, - }, - Required: []string{"token", "certificate"}, - }, - }, - } -} - -func schema_devsy_org_admin_apis_pkg_licenseapi_InstanceTokenClaims(ref common.ReferenceCallback) common.OpenAPIDefinition { - return common.OpenAPIDefinition{ - Schema: spec.Schema{ - SchemaProps: spec.SchemaProps{ - Type: []string{"object"}, - Properties: map[string]spec.Schema{ - "url": { + "metadata": { SchemaProps: spec.SchemaProps{ - Description: "URLHash is the hash of the url to be signed with this token", - Default: "", - Type: []string{"string"}, - Format: "", + Default: map[string]interface{}{}, + Ref: ref(metav1.ListMeta{}.OpenAPIModelName()), }, }, - "payload": { + "items": { SchemaProps: spec.SchemaProps{ - Description: "PayloadHash is the hash of the payload to be signed with this token", - Default: "", - Type: []string{"string"}, - Format: "", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.App"), + }, + }, + }, }, }, }, - Required: []string{"url", "payload"}, + Required: []string{"items"}, }, }, + Dependencies: []string{ + "github.com/devsy-org/api/pkg/apis/management/v1.App", metav1.ListMeta{}.OpenAPIModelName()}, } } -func schema_devsy_org_admin_apis_pkg_licenseapi_InstanceUsageInput(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_AppSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Type: []string{"object"}, + Description: "AppSpec holds the specification.", + Type: []string{"object"}, Properties: map[string]spec.Schema{ - "kubeSystemNamespace": { + "displayName": { SchemaProps: spec.SchemaProps{ - Description: "KubeSystemNamespaceUID is the UID of the kube system namespace.", - Default: "", + Description: "DisplayName is the name that should be displayed in the UI", Type: []string{"string"}, Format: "", }, }, - "type": { + "description": { SchemaProps: spec.SchemaProps{ - Description: "Type is the type of usage data to be sent to the license service.", - Default: "", + Description: "Description describes an app", Type: []string{"string"}, Format: "", }, }, - "data": { + "owner": { SchemaProps: spec.SchemaProps{ - Description: "Data is the data to be sent to the license service.", - Type: []string{"string"}, - Format: "byte", + Description: "Owner holds the owner of this object", + Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.UserOrTeam"), }, }, - }, - Required: []string{"kubeSystemNamespace", "type", "data"}, - }, - }, - } -} - -func schema_devsy_org_admin_apis_pkg_licenseapi_Invoice(ref common.ReferenceCallback) common.OpenAPIDefinition { - return common.OpenAPIDefinition{ - Schema: spec.Schema{ - SchemaProps: spec.SchemaProps{ - Description: "Invoice provides details about an invoice", - Type: []string{"object"}, - Properties: map[string]spec.Schema{ - "date": { + "clusters": { SchemaProps: spec.SchemaProps{ - Description: "Date contains the unix timestamp marking the date this invoices was or will be created", - Type: []string{"integer"}, - Format: "int64", + Description: "Clusters are the clusters this app can be installed in.", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + }, }, }, - "total": { + "recommendedApp": { SchemaProps: spec.SchemaProps{ - Description: "Total is the total of the invoice", - Type: []string{"integer"}, - Format: "int64", + Description: "RecommendedApp specifies where this app should show up as recommended app", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + }, }, }, - "currency": { + "defaultNamespace": { SchemaProps: spec.SchemaProps{ - Description: "Currency specifies the currency of Total in 3-character ISO 4217 code Default is: \"\" (representing USD)", + Description: "DefaultNamespace is the default namespace this app should installed in.", Type: []string{"string"}, Format: "", }, }, - }, - }, - }, - } -} - -func schema_devsy_org_admin_apis_pkg_licenseapi_License(ref common.ReferenceCallback) common.OpenAPIDefinition { - return common.OpenAPIDefinition{ - Schema: spec.Schema{ - SchemaProps: spec.SchemaProps{ - Description: "License is a struct representing the license data sent to a Devsy instance after checking in with the license server.", - Type: []string{"object"}, - Properties: map[string]spec.Schema{ - "instance": { + "readme": { SchemaProps: spec.SchemaProps{ - Description: "InstanceID contains the instance id of the Devsy instance", + Description: "Readme is a longer markdown string that describes the app.", Type: []string{"string"}, Format: "", }, }, - "entity": { + "icon": { SchemaProps: spec.SchemaProps{ - Description: "Entity holds a name for an organization, person or entity this product is licensed for. This will be displayed to the user.", + Description: "Icon holds an URL to the app icon", Type: []string{"string"}, Format: "", }, }, - "annotations": { + "config": { SchemaProps: spec.SchemaProps{ - Description: "Annotations contains additional metadata about the license.", - Type: []string{"object"}, - AdditionalProperties: &spec.SchemaOrBool{ - Allows: true, - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: "", - Type: []string{"string"}, - Format: "", - }, - }, - }, + Description: "Config is the helm config to use to deploy the helm release", + Default: map[string]interface{}{}, + Ref: ref("github.com/devsy-org/agentapi/pkg/apis/devsy/cluster/v1.HelmReleaseConfig"), }, }, - "analytics": { + "wait": { SchemaProps: spec.SchemaProps{ - Description: "Analytics indicates the analytics endpoints and which requests should be sent to the analytics server.", - Ref: ref(licenseapi.Analytics{}.OpenAPIModelName()), + Description: "Wait determines if Devsy should wait during deploy for the app to become ready", + Type: []string{"boolean"}, + Format: "", }, }, - "domainToken": { + "timeout": { SchemaProps: spec.SchemaProps{ - Description: "DomainToken holds the JWT with the URL that the Devsy instance is publicly available on. (via Devsy router)", - Default: "", + Description: "Timeout is the time to wait for any individual Kubernetes operation (like Jobs for hooks) (default 5m0s)", Type: []string{"string"}, Format: "", }, }, - "buttons": { + "parameters": { SchemaProps: spec.SchemaProps{ - Description: "Buttons is a slice of license server endpoints (buttons) that the Devsy instance may need to hit. Each Button contains the display text and link for the front end to work with.", + Description: "Parameters define additional app parameters that will set helm values", Type: []string{"array"}, Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ - Ref: ref(licenseapi.Button{}.OpenAPIModelName()), + Default: map[string]interface{}{}, + Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.AppParameter"), }, }, }, }, }, - "announcement": { + "streamContainer": { SchemaProps: spec.SchemaProps{ - Description: "Announcements is a map string/string such that we can easily add any additional data without needing to change types. For now, we will use the keys \"name\" and \"content\".", - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Ref: ref(licenseapi.Announcement{}.OpenAPIModelName()), - }, - }, - }, + Description: "DEPRECATED: Use config.bash instead StreamContainer can be used to stream a containers logs instead of the helm output.", + Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.StreamContainer"), }, }, - "modules": { + "versions": { SchemaProps: spec.SchemaProps{ - Description: "Modules is a list of modules.", + Description: "Versions are different app versions that can be referenced", Type: []string{"array"}, Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ - Ref: ref(licenseapi.Module{}.OpenAPIModelName()), + Default: map[string]interface{}{}, + Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.AppVersion"), }, }, }, }, }, - "block": { + "access": { SchemaProps: spec.SchemaProps{ - Description: "BlockRequests specifies which requests the product should block when a limit is exceeded.", + Description: "Access holds the access rights for users and teams", Type: []string{"array"}, Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref(licenseapi.BlockRequest{}.OpenAPIModelName()), + Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.Access"), }, }, }, }, }, - "isOffline": { + "manifests": { SchemaProps: spec.SchemaProps{ - Description: "IsOffline indicates if the license is an offline license or not.", - Type: []string{"boolean"}, + Description: "DEPRECATED: Use config instead manifest represents kubernetes resources that will be deployed into the target namespace", + Type: []string{"string"}, Format: "", }, }, - "routes": { + "helm": { SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref(licenseapi.LicenseAPIRoutes{}.OpenAPIModelName()), + Description: "DEPRECATED: Use config instead helm defines the configuration for a helm deployment", + Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.HelmConfiguration"), + }, + }, + }, + }, + }, + Dependencies: []string{ + "github.com/devsy-org/agentapi/pkg/apis/devsy/cluster/v1.HelmReleaseConfig", "github.com/devsy-org/api/pkg/apis/storage/v1.Access", "github.com/devsy-org/api/pkg/apis/storage/v1.AppParameter", "github.com/devsy-org/api/pkg/apis/storage/v1.AppVersion", "github.com/devsy-org/api/pkg/apis/storage/v1.HelmConfiguration", "github.com/devsy-org/api/pkg/apis/storage/v1.StreamContainer", "github.com/devsy-org/api/pkg/apis/storage/v1.UserOrTeam"}, + } +} + +func schema_pkg_apis_management_v1_AppStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "AppStatus holds the status.", + Type: []string{"object"}, + }, + }, + } +} + +func schema_pkg_apis_management_v1_Apps(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "Apps holds configuration for apps that should be shown", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "noDefault": { + SchemaProps: spec.SchemaProps{ + Description: "If this option is true, devsy will not try to parse the default apps", + Type: []string{"boolean"}, + Format: "", }, }, - "plans": { + "repositories": { SchemaProps: spec.SchemaProps{ - Description: "Plans contains a list of plans", + Description: "These are additional repositories that are parsed by devsy", Type: []string{"array"}, Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref(licenseapi.Plan{}.OpenAPIModelName()), + Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.HelmChartRepository"), }, }, }, }, }, - "usageData": { + "predefinedApps": { SchemaProps: spec.SchemaProps{ - Description: "Usage data contains resource usage information for a platform deployment", - Default: map[string]interface{}{}, - Ref: ref(licenseapi.UsageData{}.OpenAPIModelName()), + Description: "Predefined apps that can be selected in the Spaces > Space menu", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.PredefinedApp"), + }, + }, + }, }, }, }, }, }, Dependencies: []string{ - licenseapi.Analytics{}.OpenAPIModelName(), licenseapi.Announcement{}.OpenAPIModelName(), licenseapi.BlockRequest{}.OpenAPIModelName(), licenseapi.Button{}.OpenAPIModelName(), licenseapi.LicenseAPIRoutes{}.OpenAPIModelName(), licenseapi.Module{}.OpenAPIModelName(), licenseapi.Plan{}.OpenAPIModelName(), licenseapi.UsageData{}.OpenAPIModelName()}, + "github.com/devsy-org/api/pkg/apis/management/v1.PredefinedApp", "github.com/devsy-org/api/pkg/apis/storage/v1.HelmChartRepository"}, } } -func schema_devsy_org_admin_apis_pkg_licenseapi_LicenseAPIRoute(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_AssignedVia(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "LicenseAPIRoute is a single route of the license api", - Type: []string{"object"}, + Type: []string{"object"}, Properties: map[string]spec.Schema{ - "url": { + "namespace": { SchemaProps: spec.SchemaProps{ - Type: []string{"string"}, - Format: "", + Description: "Namespace of the referenced object", + Type: []string{"string"}, + Format: "", }, }, - "method": { + "name": { SchemaProps: spec.SchemaProps{ - Type: []string{"string"}, - Format: "", + Description: "Name of the referenced object", + Type: []string{"string"}, + Format: "", + }, + }, + "displayName": { + SchemaProps: spec.SchemaProps{ + Description: "DisplayName is the name of the object to display in the UI", + Type: []string{"string"}, + Format: "", + }, + }, + "kind": { + SchemaProps: spec.SchemaProps{ + Description: "Kind is the type of resource used to establish the assignment. One of `User`, `Team`, or `ClusterAccess`", + Type: []string{"string"}, + Format: "", }, }, - "direct": { + "owner": { SchemaProps: spec.SchemaProps{ - Description: "Tells the frontend whether to make a direct request or to make it via the backend (via generic license api request)", + Description: "Owner indicates if the", Type: []string{"boolean"}, Format: "", }, @@ -2001,100 +2194,87 @@ func schema_devsy_org_admin_apis_pkg_licenseapi_LicenseAPIRoute(ref common.Refer } } -func schema_devsy_org_admin_apis_pkg_licenseapi_LicenseAPIRoutes(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_Audit(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "LicenseAPIRoutes contains all key routes of the license api", + Description: "Audit holds the audit configuration options for devsy. Changing any options will require a devsy restart to take effect.", Type: []string{"object"}, Properties: map[string]spec.Schema{ - "chatAuth": { - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref(licenseapi.LicenseAPIRoute{}.OpenAPIModelName()), - }, - }, - "featureDetails": { + "enabled": { SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref(licenseapi.LicenseAPIRoute{}.OpenAPIModelName()), + Description: "If audit is enabled and incoming api requests will be logged based on the supplied policy.", + Type: []string{"boolean"}, + Format: "", }, }, - "featureSetup": { + "disableAgentSyncBack": { SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref(licenseapi.LicenseAPIRoute{}.OpenAPIModelName()), + Description: "If true, the agent will not send back any audit logs to Devsy itself.", + Type: []string{"boolean"}, + Format: "", }, }, - "featurePreview": { + "level": { SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref(licenseapi.LicenseAPIRoute{}.OpenAPIModelName()), + Description: "Level is an optional log level for audit logs. Cannot be used together with policy", + Type: []string{"integer"}, + Format: "int32", }, }, - "moduleActivation": { + "policy": { SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref(licenseapi.LicenseAPIRoute{}.OpenAPIModelName()), + Description: "The audit policy to use and log requests. By default devsy will not log anything", + Default: map[string]interface{}{}, + Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.AuditPolicy"), }, }, - "modulePreview": { + "dataStoreEndpoint": { SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref(licenseapi.LicenseAPIRoute{}.OpenAPIModelName()), + Description: "DataStoreEndpoint is an endpoint to store events in.", + Type: []string{"string"}, + Format: "", }, }, - "checkout": { + "dataStoreTTL": { SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref(licenseapi.LicenseAPIRoute{}.OpenAPIModelName()), + Description: "DataStoreMaxAge is the maximum number of hours to retain old log events in the datastore", + Type: []string{"integer"}, + Format: "int32", }, }, - "portal": { + "path": { SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref(licenseapi.LicenseAPIRoute{}.OpenAPIModelName()), + Description: "The path where to save the audit log files. This is required if audit is enabled. Backup log files will be retained in the same directory.", + Type: []string{"string"}, + Format: "", }, }, - }, - }, - }, - Dependencies: []string{ - licenseapi.LicenseAPIRoute{}.OpenAPIModelName()}, - } -} - -func schema_devsy_org_admin_apis_pkg_licenseapi_Limit(ref common.ReferenceCallback) common.OpenAPIDefinition { - return common.OpenAPIDefinition{ - Schema: spec.Schema{ - SchemaProps: spec.SchemaProps{ - Description: "Limit defines a limit set in the license", - Type: []string{"object"}, - Properties: map[string]spec.Schema{ - "name": { + "maxAge": { SchemaProps: spec.SchemaProps{ - Description: "Name is the name of the resource (ResourceName)", - Type: []string{"string"}, - Format: "", + Description: "MaxAge is the maximum number of days to retain old log files based on the timestamp encoded in their filename. Note that a day is defined as 24 hours and may not exactly correspond to calendar days due to daylight savings, leap seconds, etc. The default is not to remove old log files based on age.", + Type: []string{"integer"}, + Format: "int32", }, }, - "displayName": { + "maxBackups": { SchemaProps: spec.SchemaProps{ - Description: "DisplayName is for display purposes.", - Type: []string{"string"}, - Format: "", + Description: "MaxBackups is the maximum number of old log files to retain. The default is to retain all old log files (though MaxAge may still cause them to get deleted.)", + Type: []string{"integer"}, + Format: "int32", }, }, - "quantity": { + "maxSize": { SchemaProps: spec.SchemaProps{ - Description: "Limit specifies the limit for this resource.", - Ref: ref(licenseapi.ResourceCount{}.OpenAPIModelName()), + Description: "MaxSize is the maximum size in megabytes of the log file before it gets rotated. It defaults to 100 megabytes.", + Type: []string{"integer"}, + Format: "int32", }, }, - "module": { + "compress": { SchemaProps: spec.SchemaProps{ - Description: "Name of the module that this limit belongs to", - Type: []string{"string"}, + Description: "Compress determines if the rotated log files should be compressed using gzip. The default is not to perform compression.", + Type: []string{"boolean"}, Format: "", }, }, @@ -2102,96 +2282,74 @@ func schema_devsy_org_admin_apis_pkg_licenseapi_Limit(ref common.ReferenceCallba }, }, Dependencies: []string{ - licenseapi.ResourceCount{}.OpenAPIModelName()}, + "github.com/devsy-org/api/pkg/apis/management/v1.AuditPolicy"}, } } -func schema_devsy_org_admin_apis_pkg_licenseapi_Module(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_AuditPolicy(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "Module is a struct representing a module of the product", + Description: "AuditPolicy describes the audit policy to use for devsy", Type: []string{"object"}, Properties: map[string]spec.Schema{ - "name": { - SchemaProps: spec.SchemaProps{ - Description: "Name of the module (ModuleName)", - Default: "", - Type: []string{"string"}, - Format: "", - }, - }, - "displayName": { - SchemaProps: spec.SchemaProps{ - Type: []string{"string"}, - Format: "", - }, - }, - "status": { - SchemaProps: spec.SchemaProps{ - Type: []string{"string"}, - Format: "", - }, - }, - "limits": { + "rules": { SchemaProps: spec.SchemaProps{ - Type: []string{"array"}, + Description: "Rules specify the audit Level a request should be recorded at. A request may match multiple rules, in which case the FIRST matching rule is used. The default audit level is None, but can be overridden by a catch-all rule at the end of the list. PolicyRules are strictly ordered.", + Type: []string{"array"}, Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ - Ref: ref(licenseapi.Limit{}.OpenAPIModelName()), + Default: map[string]interface{}{}, + Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.AuditPolicyRule"), }, }, }, }, }, - "features": { + "omitStages": { SchemaProps: spec.SchemaProps{ - Type: []string{"array"}, + Description: "OmitStages is a list of stages for which no events are created. Note that this can also be specified per rule in which case the union of both are omitted.", + Type: []string{"array"}, Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ - Ref: ref(licenseapi.Feature{}.OpenAPIModelName()), + Default: "", + Type: []string{"string"}, + Format: "", }, }, }, }, }, }, - Required: []string{"name"}, }, }, Dependencies: []string{ - licenseapi.Feature{}.OpenAPIModelName(), licenseapi.Limit{}.OpenAPIModelName()}, + "github.com/devsy-org/api/pkg/apis/management/v1.AuditPolicyRule"}, } } -func schema_devsy_org_admin_apis_pkg_licenseapi_NodeInfo(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_AuditPolicyRule(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "NodeInfo holds information about a single node", + Description: "AuditPolicyRule describes a policy for auditing", Type: []string{"object"}, Properties: map[string]spec.Schema{ - "machine_id": { - SchemaProps: spec.SchemaProps{ - Default: "", - Type: []string{"string"}, - Format: "", - }, - }, - "creation_timestamp": { + "level": { SchemaProps: spec.SchemaProps{ - Default: "", - Type: []string{"string"}, - Format: "", + Description: "The Level that requests matching this rule are recorded at.", + Default: "", + Type: []string{"string"}, + Format: "", }, }, - "capacity": { + "users": { SchemaProps: spec.SchemaProps{ - Type: []string{"object"}, - AdditionalProperties: &spec.SchemaOrBool{ - Allows: true, + Description: "The users (by authenticated user name) this rule applies to. An empty list implies every user.", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: "", @@ -2202,81 +2360,68 @@ func schema_devsy_org_admin_apis_pkg_licenseapi_NodeInfo(ref common.ReferenceCal }, }, }, - }, - Required: []string{"machine_id", "creation_timestamp", "capacity"}, - }, - }, - } -} - -func schema_devsy_org_admin_apis_pkg_licenseapi_OfflineLicenseKeyClaims(ref common.ReferenceCallback) common.OpenAPIDefinition { - return common.OpenAPIDefinition{ - Schema: spec.Schema{ - SchemaProps: spec.SchemaProps{ - Type: []string{"object"}, - Properties: map[string]spec.Schema{ - "license": { - SchemaProps: spec.SchemaProps{ - Ref: ref(licenseapi.License{}.OpenAPIModelName()), - }, - }, - }, - }, - }, - Dependencies: []string{ - licenseapi.License{}.OpenAPIModelName()}, - } -} - -func schema_devsy_org_admin_apis_pkg_licenseapi_Plan(ref common.ReferenceCallback) common.OpenAPIDefinition { - return common.OpenAPIDefinition{ - Schema: spec.Schema{ - SchemaProps: spec.SchemaProps{ - Description: "Plan definition", - Type: []string{"object"}, - Properties: map[string]spec.Schema{ - "id": { - SchemaProps: spec.SchemaProps{ - Description: "ID of the plan", - Type: []string{"string"}, - Format: "", - }, - }, - "displayName": { - SchemaProps: spec.SchemaProps{ - Description: "DisplayName is the display name of the plan", - Type: []string{"string"}, - Format: "", - }, - }, - "status": { + "userGroups": { SchemaProps: spec.SchemaProps{ - Description: "Status is the status of the plan There should only be 1 active plan at the top-level (not including AddOns) The respective price in Prices will have the active status as well", - Type: []string{"string"}, - Format: "", + Description: "The user groups this rule applies to. A user is considered matching if it is a member of any of the UserGroups. An empty list implies every user group.", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + }, }, }, - "period": { + "verbs": { SchemaProps: spec.SchemaProps{ - Description: "Period provides information about the plan's current period This is nil unless this is the active plan", - Ref: ref(licenseapi.PlanPeriod{}.OpenAPIModelName()), + Description: "The verbs that match this rule. An empty list implies every verb.", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + }, }, }, - "trial": { + "resources": { SchemaProps: spec.SchemaProps{ - Description: "Trial provides details about a planned, ongoing or expired trial", - Ref: ref(licenseapi.Trial{}.OpenAPIModelName()), + Description: "Resources that this rule matches. An empty list implies all kinds in all API groups.", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.GroupResources"), + }, + }, + }, }, }, - "invoice": { + "namespaces": { SchemaProps: spec.SchemaProps{ - Description: "UpcomingInvoice provides a preview of the next invoice that will be created for this Plan", - Ref: ref(licenseapi.Invoice{}.OpenAPIModelName()), + Description: "Namespaces that this rule matches. The empty string \"\" matches non-namespaced resources. An empty list implies every namespace.", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + }, }, }, - "features": { + "nonResourceURLs": { SchemaProps: spec.SchemaProps{ - Description: "Features is a list of features included in the plan", + Description: "NonResourceURLs is a set of URL paths that should be audited. *s are allowed, but only as the full, final step in the path. Examples:\n \"/metrics\" - Log requests for apiserver metrics\n \"/healthz*\" - Log all health checks", Type: []string{"array"}, Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ @@ -2289,180 +2434,183 @@ func schema_devsy_org_admin_apis_pkg_licenseapi_Plan(ref common.ReferenceCallbac }, }, }, - "limits": { + "omitStages": { SchemaProps: spec.SchemaProps{ - Description: "Limits is a list of resources included in the plan and their limits", + Description: "OmitStages is a list of stages for which no events are created. Note that this can also be specified policy wide in which case the union of both are omitted. An empty list means no restrictions will apply.", Type: []string{"array"}, Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref(licenseapi.Limit{}.OpenAPIModelName()), + Default: "", + Type: []string{"string"}, + Format: "", }, }, }, }, }, - "prices": { + "requestTargets": { SchemaProps: spec.SchemaProps{ - Description: "Prices provides details about the available prices (depending on the interval, for example)", + Description: "RequestTargets is a list of request targets for which events are created. An empty list implies every request.", Type: []string{"array"}, Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref(licenseapi.PlanPrice{}.OpenAPIModelName()), + Default: "", + Type: []string{"string"}, + Format: "", }, }, }, }, }, - "addons": { + "clusters": { SchemaProps: spec.SchemaProps{ - Description: "AddOns are plans that can be added to this plan", + Description: "Clusters that this rule matches. Only applies to cluster requests. If this is set, no events for non cluster requests will be created. An empty list means no restrictions will apply.", Type: []string{"array"}, Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref(licenseapi.Plan{}.OpenAPIModelName()), + Default: "", + Type: []string{"string"}, + Format: "", }, }, }, }, }, }, + Required: []string{"level"}, }, }, Dependencies: []string{ - licenseapi.Invoice{}.OpenAPIModelName(), licenseapi.Limit{}.OpenAPIModelName(), licenseapi.Plan{}.OpenAPIModelName(), licenseapi.PlanPeriod{}.OpenAPIModelName(), licenseapi.PlanPrice{}.OpenAPIModelName(), licenseapi.Trial{}.OpenAPIModelName()}, + "github.com/devsy-org/api/pkg/apis/management/v1.GroupResources"}, } } -func schema_devsy_org_admin_apis_pkg_licenseapi_PlanExpiration(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_Authentication(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "PlanExpiration provides details about the expiration of a plan", + Description: "Authentication holds authentication relevant information", Type: []string{"object"}, Properties: map[string]spec.Schema{ - "expiresAt": { + "oidc": { SchemaProps: spec.SchemaProps{ - Description: "ExpiresAt is the unix timestamp of when the plan expires", - Type: []string{"integer"}, - Format: "int64", + Description: "OIDC holds oidc authentication configuration", + Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.AuthenticationOIDC"), }, }, - "upgradesTo": { + "github": { SchemaProps: spec.SchemaProps{ - Description: "UpgradesTo states the name of the plan that is replacing the current one upon its expiration If this is nil, then this plan just expires (i.e. the subscription may be canceled, paused, etc.)", - Type: []string{"string"}, - Format: "", + Description: "Github holds github authentication configuration", + Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.AuthenticationGithub"), }, }, - }, - }, - }, - } -} - -func schema_devsy_org_admin_apis_pkg_licenseapi_PlanPeriod(ref common.ReferenceCallback) common.OpenAPIDefinition { - return common.OpenAPIDefinition{ - Schema: spec.Schema{ - SchemaProps: spec.SchemaProps{ - Description: "PlanPeriod provides details about the period of the plan", - Type: []string{"object"}, - Properties: map[string]spec.Schema{ - "start": { + "gitlab": { SchemaProps: spec.SchemaProps{ - Description: "CurrentPeriodStart contains the unix timestamp marking the start of the current period", - Type: []string{"integer"}, - Format: "int64", + Description: "Gitlab holds gitlab authentication configuration", + Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.AuthenticationGitlab"), }, }, - "end": { + "google": { SchemaProps: spec.SchemaProps{ - Description: "CurrentPeriodEnd contains the unix timestamp marking the end of the current period", - Type: []string{"integer"}, - Format: "int64", + Description: "Google holds google authentication configuration", + Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.AuthenticationGoogle"), }, }, - }, - }, - }, - } -} - -func schema_devsy_org_admin_apis_pkg_licenseapi_PlanPrice(ref common.ReferenceCallback) common.OpenAPIDefinition { - return common.OpenAPIDefinition{ - Schema: spec.Schema{ - SchemaProps: spec.SchemaProps{ - Description: "PlanPrice defines a price for the plan", - Type: []string{"object"}, - Properties: map[string]spec.Schema{ - "id": { + "microsoft": { SchemaProps: spec.SchemaProps{ - Description: "ID of the price", - Type: []string{"string"}, - Format: "", + Description: "Microsoft holds microsoft authentication configuration", + Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.AuthenticationMicrosoft"), }, }, - "status": { + "saml": { SchemaProps: spec.SchemaProps{ - Description: "Status is the status of the price (PlanStatus) If the plan is active, one of its prices must be active as well", - Type: []string{"string"}, - Format: "", + Description: "SAML holds saml authentication configuration", + Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.AuthenticationSAML"), }, }, - "interval": { + "rancher": { SchemaProps: spec.SchemaProps{ - Description: "Interval contains the time span of each period (e.g. month, year)", - Type: []string{"string"}, - Format: "", + Description: "Rancher holds the rancher authentication options", + Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.AuthenticationRancher"), }, }, - "intervalCount": { + "password": { SchemaProps: spec.SchemaProps{ - Description: "IntervalCount specifies if the number of intervals (e.g. 3 [months])", - Type: []string{"number"}, - Format: "double", + Description: "Password holds password authentication relevant information", + Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.AuthenticationPassword"), + }, + }, + "connectors": { + SchemaProps: spec.SchemaProps{ + Description: "Connectors are optional additional connectors for Devsy.", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.ConnectorWithName"), + }, + }, + }, }, }, - "exp": { + "disableTeamCreation": { SchemaProps: spec.SchemaProps{ - Description: "Expiration provides information about when this plan expires", - Ref: ref(licenseapi.PlanExpiration{}.OpenAPIModelName()), + Description: "Prevents from team creation for the new groups associated with the user at the time of logging in through sso, Default behaviour is false, this means that teams will be created for new groups.", + Type: []string{"boolean"}, + Format: "", }, }, - "quantity": { + "disableUserCreation": { SchemaProps: spec.SchemaProps{ - Description: "Quantity sets the quantity the TierResource is supposed to be at If this is the active price, then this is the subscription quantity (currently purchased quantity)", - Type: []string{"number"}, - Format: "double", + Description: "DisableUserCreation prevents the SSO connectors from creating a new user on a users initial signin through sso. Default behaviour is false, this means that a new user object will be created once a user without a Kubernetes user object logs in.", + Type: []string{"boolean"}, + Format: "", }, }, - "resource": { + "accessKeyMaxTTLSeconds": { SchemaProps: spec.SchemaProps{ - Description: "TierResource provides details about the main resource the tier quantity relates to This may be nil for plans that don't have their quantity tied to a resource", - Ref: ref(licenseapi.TierResource{}.OpenAPIModelName()), + Description: "AccessKeyMaxTTLSeconds is the global maximum lifespan of an accesskey in seconds. Leaving it 0 or unspecified will disable it. Specifying 2592000 will mean all keys have a Time-To-Live of 30 days.", + Type: []string{"integer"}, + Format: "int64", }, }, - "tierMode": { + "loginAccessKeyTTLSeconds": { SchemaProps: spec.SchemaProps{ - Description: "TierMode defines how tiers should be used", - Type: []string{"string"}, - Format: "", + Description: "LoginAccessKeyTTLSeconds is the time in seconds an access key is kept until it is deleted. Leaving it unspecified will default to 20 days. Setting it to zero will disable the ttl. Specifying 2592000 will mean all keys have a default Time-To-Live of 30 days.", + Type: []string{"integer"}, + Format: "int64", + }, + }, + "customHttpHeaders": { + SchemaProps: spec.SchemaProps{ + Description: "CustomHttpHeaders are additional headers that should be set for the authentication endpoints", + Type: []string{"object"}, + AdditionalProperties: &spec.SchemaOrBool{ + Allows: true, + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + }, }, }, - "tiers": { + "groupsFilters": { SchemaProps: spec.SchemaProps{ - Description: "Tiers is a list of tiers in this plan", + Description: "GroupsFilters is a regex expression to only save matching sso groups into the user resource", Type: []string{"array"}, Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref(licenseapi.PriceTier{}.OpenAPIModelName()), + Default: "", + Type: []string{"string"}, + Format: "", }, }, }, @@ -2472,117 +2620,94 @@ func schema_devsy_org_admin_apis_pkg_licenseapi_PlanPrice(ref common.ReferenceCa }, }, Dependencies: []string{ - licenseapi.PlanExpiration{}.OpenAPIModelName(), licenseapi.PriceTier{}.OpenAPIModelName(), licenseapi.TierResource{}.OpenAPIModelName()}, + "github.com/devsy-org/api/pkg/apis/management/v1.AuthenticationGithub", "github.com/devsy-org/api/pkg/apis/management/v1.AuthenticationGitlab", "github.com/devsy-org/api/pkg/apis/management/v1.AuthenticationGoogle", "github.com/devsy-org/api/pkg/apis/management/v1.AuthenticationMicrosoft", "github.com/devsy-org/api/pkg/apis/management/v1.AuthenticationOIDC", "github.com/devsy-org/api/pkg/apis/management/v1.AuthenticationPassword", "github.com/devsy-org/api/pkg/apis/management/v1.AuthenticationRancher", "github.com/devsy-org/api/pkg/apis/management/v1.AuthenticationSAML", "github.com/devsy-org/api/pkg/apis/management/v1.ConnectorWithName"}, } } -func schema_devsy_org_admin_apis_pkg_licenseapi_PlatformDatabase(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_AuthenticationGithub(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "PlatformDatabase contains information about the local platform database installation", - Type: []string{"object"}, + Type: []string{"object"}, Properties: map[string]spec.Schema{ - "isReady": { - SchemaProps: spec.SchemaProps{ - Default: false, - Type: []string{"boolean"}, - Format: "", - }, - }, - "creationTimestamp": { - SchemaProps: spec.SchemaProps{ - Default: "", - Type: []string{"string"}, - Format: "", - }, - }, - "latestUpdateTimestamp": { + "clientId": { SchemaProps: spec.SchemaProps{ - Default: "", - Type: []string{"string"}, - Format: "", + Description: "ClientID holds the github client id", + Type: []string{"string"}, + Format: "", }, }, - }, - Required: []string{"isReady", "creationTimestamp", "latestUpdateTimestamp"}, - }, - }, - } -} - -func schema_devsy_org_admin_apis_pkg_licenseapi_PriceTier(ref common.ReferenceCallback) common.OpenAPIDefinition { - return common.OpenAPIDefinition{ - Schema: spec.Schema{ - SchemaProps: spec.SchemaProps{ - Description: "PriceTier defines a tier within a plan", - Type: []string{"object"}, - Properties: map[string]spec.Schema{ - "min": { + "clientSecret": { SchemaProps: spec.SchemaProps{ - Description: "MinQuantity is the quantity included in this plan", - Type: []string{"number"}, - Format: "double", + Description: "ClientID holds the github client secret", + Default: "", + Type: []string{"string"}, + Format: "", }, }, - "max": { + "redirectURI": { SchemaProps: spec.SchemaProps{ - Description: "MaxQuantity is the max quantity that can be purchased", - Type: []string{"number"}, - Format: "double", + Description: "RedirectURI holds the redirect URI. Should be https://devsy.domain.tld/auth/github/callback", + Default: "", + Type: []string{"string"}, + Format: "", }, }, - "unitPrice": { + "orgs": { SchemaProps: spec.SchemaProps{ - Description: "UnitPrice is the price per unit in this tier", - Type: []string{"number"}, - Format: "double", + Description: "Devsy queries the following organizations for group information. Group claims are formatted as \"(org):(team)\". For example if a user is part of the \"engineering\" team of the \"coreos\" org, the group claim would include \"coreos:engineering\".\n\nIf orgs are specified in the config then user MUST be a member of at least one of the specified orgs to authenticate with devsy.", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.AuthenticationGithubOrg"), + }, + }, + }, }, }, - "flatFee": { + "hostName": { SchemaProps: spec.SchemaProps{ - Description: "FlatFee is the flat fee for this tier", - Type: []string{"number"}, - Format: "double", + Description: "Required ONLY for GitHub Enterprise. This is the Hostname of the GitHub Enterprise account listed on the management console. Ensure this domain is routable on your network.", + Type: []string{"string"}, + Format: "", }, }, - "currency": { + "rootCA": { SchemaProps: spec.SchemaProps{ - Description: "Currency specifies the currency of UnitPrice and FlatFee in 3-character ISO 4217 code Default is: \"\" (representing USD)", + Description: "ONLY for GitHub Enterprise. Optional field. Used to support self-signed or untrusted CA root certificates.", Type: []string{"string"}, Format: "", }, }, }, + Required: []string{"clientSecret", "redirectURI"}, }, }, + Dependencies: []string{ + "github.com/devsy-org/api/pkg/apis/management/v1.AuthenticationGithubOrg"}, } } -func schema_devsy_org_admin_apis_pkg_licenseapi_Request(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_AuthenticationGithubOrg(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "Request represents a request analytics information for an apigroup/resource and a list of verb actions for that resource.", + Description: "AuthenticationGithubOrg holds org-team filters, in which teams are optional.", Type: []string{"object"}, Properties: map[string]spec.Schema{ - "group": { - SchemaProps: spec.SchemaProps{ - Description: "Group is the api group.", - Type: []string{"string"}, - Format: "", - }, - }, - "resource": { + "name": { SchemaProps: spec.SchemaProps{ - Description: "Resource is the resource name for the request.", + Description: "Organization name in github (not slug, full name). Only users in this github organization can authenticate.", + Default: "", Type: []string{"string"}, Format: "", }, }, - "verbs": { + "teams": { SchemaProps: spec.SchemaProps{ - Description: "Verbs is the list of verbs for the request.", + Description: "Names of teams in a github organization. A user will be able to authenticate if they are members of at least one of these teams. Users in the organization can authenticate if this field is omitted from the config file.", Type: []string{"array"}, Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ @@ -2601,715 +2726,621 @@ func schema_devsy_org_admin_apis_pkg_licenseapi_Request(ref common.ReferenceCall } } -func schema_devsy_org_admin_apis_pkg_licenseapi_ResourceCount(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_AuthenticationGitlab(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "ResourceCount stores the number of existing, active and total number of resources created.", - Type: []string{"object"}, + Type: []string{"object"}, Properties: map[string]spec.Schema{ - "active": { - SchemaProps: spec.SchemaProps{ - Description: "Active specifies the number of currently active resource (non-sleeping).", - Type: []string{"integer"}, - Format: "int64", - }, - }, - "total": { + "clientId": { SchemaProps: spec.SchemaProps{ - Description: "Total specifies the number of currently existing resources.", - Type: []string{"integer"}, - Format: "int64", + Description: "Gitlab client id", + Default: "", + Type: []string{"string"}, + Format: "", }, }, - "created": { + "clientSecret": { SchemaProps: spec.SchemaProps{ - Description: "TotalCreated is a continuous counter of the amount of resources ever created.", - Type: []string{"integer"}, - Format: "int64", + Description: "Gitlab client secret", + Default: "", + Type: []string{"string"}, + Format: "", }, }, - "committed": { + "redirectURI": { SchemaProps: spec.SchemaProps{ - Description: "Committed specifies the amount of resource consumption customers have committed to for a given billing period. It can be exceeded and will then be charged with overage fees.", - Type: []string{"integer"}, - Format: "int64", + Description: "Redirect URI", + Default: "", + Type: []string{"string"}, + Format: "", }, }, - }, - }, - }, - } -} - -func schema_devsy_org_admin_apis_pkg_licenseapi_TierResource(ref common.ReferenceCallback) common.OpenAPIDefinition { - return common.OpenAPIDefinition{ - Schema: spec.Schema{ - SchemaProps: spec.SchemaProps{ - Description: "TierResource provides details about the main resource the tier quantity relates to", - Type: []string{"object"}, - Properties: map[string]spec.Schema{ - "name": { + "baseURL": { SchemaProps: spec.SchemaProps{ - Description: "Name of the resource (ResourceName)", + Description: "BaseURL is optional, default = https://gitlab.com", Type: []string{"string"}, Format: "", }, }, - "status": { + "groups": { SchemaProps: spec.SchemaProps{ - Description: "Status defines which resources will be counted towards the limit (e.g. active, total, total created etc.)", - Type: []string{"string"}, - Format: "", + Description: "Optional groups whitelist, communicated through the \"groups\" scope. If `groups` is omitted, all of the user's GitLab groups are returned. If `groups` is provided, this acts as a whitelist - only the user's GitLab groups that are in the configured `groups` below will go into the groups claim. Conversely, if the user is not in any of the configured `groups`, the user will not be authenticated.", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + }, }, }, }, + Required: []string{"clientId", "clientSecret", "redirectURI"}, }, }, } } -func schema_devsy_org_admin_apis_pkg_licenseapi_Trial(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_AuthenticationGoogle(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "Trial represents a trial", - Type: []string{"object"}, + Type: []string{"object"}, Properties: map[string]spec.Schema{ - "id": { - SchemaProps: spec.SchemaProps{ - Description: "ID is the unique id of this trial", - Type: []string{"string"}, - Format: "", - }, - }, - "displayName": { + "clientId": { SchemaProps: spec.SchemaProps{ - Description: "DisplayName is a display name for the trial", + Description: "Google client id", + Default: "", Type: []string{"string"}, Format: "", }, }, - "start": { - SchemaProps: spec.SchemaProps{ - Description: "Start is the unix timestamp stating when the trial was started", - Type: []string{"integer"}, - Format: "int64", - }, - }, - "end": { - SchemaProps: spec.SchemaProps{ - Description: "End is the unix timestamp stating when the trial will end or ended", - Type: []string{"integer"}, - Format: "int64", - }, - }, - "status": { + "clientSecret": { SchemaProps: spec.SchemaProps{ - Description: "Status is the status of this trial (TrialStatus)", + Description: "Google client secret", + Default: "", Type: []string{"string"}, Format: "", }, }, - "downgradesTo": { + "redirectURI": { SchemaProps: spec.SchemaProps{ - Description: "DowngradesTo states the name of the plan that is replacing the current one once the trial expires If this is nil, then this plan just expires (i.e. the subscription may be canceled, paused, etc.)", + Description: "devsy redirect uri. E.g. https://devsy.my.domain/auth/google/callback", + Default: "", Type: []string{"string"}, Format: "", }, }, - }, - }, - }, - } -} - -func schema_devsy_org_admin_apis_pkg_licenseapi_UsageData(ref common.ReferenceCallback) common.OpenAPIDefinition { - return common.OpenAPIDefinition{ - Schema: spec.Schema{ - SchemaProps: spec.SchemaProps{ - Description: "UsageData holds information for an instance deployment of Devsy Platform", - Type: []string{"object"}, - Properties: map[string]spec.Schema{ - "featureUsage": { + "scopes": { SchemaProps: spec.SchemaProps{ - Description: "FeatureUsage contains the usage of features", - Type: []string{"object"}, - AdditionalProperties: &spec.SchemaOrBool{ - Allows: true, + Description: "defaults to \"profile\" and \"email\"", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref(licenseapi.FeatureUsage{}.OpenAPIModelName()), + Default: "", + Type: []string{"string"}, + Format: "", }, }, }, }, }, - "resourceUsage": { + "hostedDomains": { SchemaProps: spec.SchemaProps{ - Description: "ResourceUsage contains the usage of resources", - Type: []string{"object"}, - AdditionalProperties: &spec.SchemaOrBool{ - Allows: true, + Description: "Optional list of whitelisted domains If this field is nonempty, only users from a listed domain will be allowed to log in", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref(licenseapi.ResourceCount{}.OpenAPIModelName()), + Default: "", + Type: []string{"string"}, + Format: "", }, }, }, }, }, - "details": { - SchemaProps: spec.SchemaProps{ - Description: "Details contains the details of the usage data", - Default: map[string]interface{}{}, - Ref: ref(licenseapi.UsageDataDetails{}.OpenAPIModelName()), - }, - }, - }, - Required: []string{"featureUsage", "resourceUsage", "details"}, - }, - }, - Dependencies: []string{ - licenseapi.FeatureUsage{}.OpenAPIModelName(), licenseapi.ResourceCount{}.OpenAPIModelName(), licenseapi.UsageDataDetails{}.OpenAPIModelName()}, - } -} - -func schema_devsy_org_admin_apis_pkg_licenseapi_UsageDataDetails(ref common.ReferenceCallback) common.OpenAPIDefinition { - return common.OpenAPIDefinition{ - Schema: spec.Schema{ - SchemaProps: spec.SchemaProps{ - Description: "UsageDataDetails holds detailed information about the nodes and virtual cluster for an instance deployment of Devsy Platform", - Type: []string{"object"}, - Properties: map[string]spec.Schema{ - "nodes": { + "groups": { SchemaProps: spec.SchemaProps{ - Description: "Nodes contains the details of the nodes", + Description: "Optional list of whitelisted groups If this field is nonempty, only users from a listed group will be allowed to log in", Type: []string{"array"}, Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref(licenseapi.NodeInfo{}.OpenAPIModelName()), + Default: "", + Type: []string{"string"}, + Format: "", }, }, }, }, }, - "vClusters": { + "serviceAccountFilePath": { SchemaProps: spec.SchemaProps{ - Description: "DevsyClusters contains the details of the virtual clusters", - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref(licenseapi.DevsyClusterInfo{}.OpenAPIModelName()), - }, - }, - }, + Description: "Optional path to service account json If nonempty, and groups claim is made, will use authentication from file to check groups with the admin directory api", + Type: []string{"string"}, + Format: "", + }, + }, + "adminEmail": { + SchemaProps: spec.SchemaProps{ + Description: "Required if ServiceAccountFilePath The email of a GSuite super user which the service account will impersonate when listing groups", + Type: []string{"string"}, + Format: "", }, }, }, - Required: []string{"nodes", "vClusters"}, + Required: []string{"clientId", "clientSecret", "redirectURI"}, }, }, - Dependencies: []string{ - licenseapi.DevsyClusterInfo{}.OpenAPIModelName(), licenseapi.NodeInfo{}.OpenAPIModelName()}, } } -func schema_apis_devsy_cluster_v1_Bash(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_AuthenticationMicrosoft(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ Type: []string{"object"}, Properties: map[string]spec.Schema{ - "script": { + "clientId": { SchemaProps: spec.SchemaProps{ - Description: "Script is the script to execute.", + Description: "Microsoft client id", + Default: "", Type: []string{"string"}, Format: "", }, }, - "image": { + "clientSecret": { SchemaProps: spec.SchemaProps{ - Description: "Image is the image to use for this app", + Description: "Microsoft client secret", + Default: "", Type: []string{"string"}, Format: "", }, }, - "clusterRole": { + "redirectURI": { SchemaProps: spec.SchemaProps{ - Description: "ClusterRole is the cluster role to use for this job", - Type: []string{"string"}, + Description: "devsy redirect uri. Usually https://devsy.my.domain/auth/microsoft/callback", + Default: "", + Type: []string{"string"}, Format: "", }, }, - "podSecurityContext": { + "tenant": { SchemaProps: spec.SchemaProps{ - Description: "PodSecurityContext for the bash pod.", - Ref: ref(corev1.PodSecurityContext{}.OpenAPIModelName()), + Description: "tenant configuration parameter controls what kinds of accounts may be authenticated in devsy. By default, all types of Microsoft accounts (consumers and organizations) can authenticate in devsy via Microsoft. To change this, set the tenant parameter to one of the following:\n\ncommon - both personal and business/school accounts can authenticate in devsy via Microsoft (default) consumers - only personal accounts can authenticate in devsy organizations - only business/school accounts can authenticate in devsy tenant uuid or tenant name - only accounts belonging to specific tenant identified by either tenant uuid or tenant name can authenticate in devsy", + Type: []string{"string"}, + Format: "", }, }, - "securityContext": { + "groups": { SchemaProps: spec.SchemaProps{ - Description: "SecurityContext for the bash container.", - Ref: ref(corev1.SecurityContext{}.OpenAPIModelName()), + Description: "It is possible to require a user to be a member of a particular group in order to be successfully authenticated in devsy.", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + }, + }, + }, + "onlySecurityGroups": { + SchemaProps: spec.SchemaProps{ + Description: "configuration option restricts the list to include only security groups. By default all groups (security, Office 365, mailing lists) are included.", + Type: []string{"boolean"}, + Format: "", + }, + }, + "useGroupsAsWhitelist": { + SchemaProps: spec.SchemaProps{ + Description: "Restrict the groups claims to include only the user’s groups that are in the configured groups", + Type: []string{"boolean"}, + Format: "", }, }, }, + Required: []string{"clientId", "clientSecret", "redirectURI"}, }, }, - Dependencies: []string{ - corev1.PodSecurityContext{}.OpenAPIModelName(), corev1.SecurityContext{}.OpenAPIModelName()}, } } -func schema_apis_devsy_cluster_v1_Chart(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_AuthenticationOIDC(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "Chart describes a chart", - Type: []string{"object"}, + Type: []string{"object"}, Properties: map[string]spec.Schema{ - "name": { + "issuerUrl": { SchemaProps: spec.SchemaProps{ - Description: "Name is the chart name in the repository", + Description: "IssuerURL is the URL the provider signs ID Tokens as. This will be the \"iss\" field of all tokens produced by the provider and is used for configuration discovery.\n\nThe URL is usually the provider's URL without a path, for example \"https://accounts.google.com\" or \"https://login.salesforce.com\".\n\nThe provider must implement configuration discovery. See: https://openid.net/specs/openid-connect-discovery-1_0.html#ProviderConfig", Type: []string{"string"}, Format: "", }, }, - "version": { + "clientId": { SchemaProps: spec.SchemaProps{ - Description: "Version is the chart version in the repository", + Description: "ClientID the JWT must be issued for, the \"sub\" field. This plugin only trusts a single client to ensure the plugin can be used with public providers.\n\nThe plugin supports the \"authorized party\" OpenID Connect claim, which allows specialized providers to issue tokens to a client for a different client. See: https://openid.net/specs/openid-connect-core-1_0.html#IDToken", Type: []string{"string"}, Format: "", }, }, - "repoURL": { + "clientSecret": { SchemaProps: spec.SchemaProps{ - Description: "RepoURL is the repo url where the chart can be found", + Description: "ClientSecret to issue tokens from the OIDC provider", Type: []string{"string"}, Format: "", }, }, - "username": { + "redirectURI": { SchemaProps: spec.SchemaProps{ - Description: "The username that is required for this repository", + Description: "devsy redirect uri. E.g. https://devsy.my.domain/auth/oidc/callback", Type: []string{"string"}, Format: "", }, }, - "usernameRef": { - SchemaProps: spec.SchemaProps{ - Description: "The username that is required for this repository", - Ref: ref(v1.ChartSecretRef{}.OpenAPIModelName()), - }, - }, - "password": { + "postLogoutRedirectURI": { SchemaProps: spec.SchemaProps{ - Description: "The password that is required for this repository", + Description: "Devsy URI to be redirected to after successful logout by OIDC Provider", Type: []string{"string"}, Format: "", }, }, - "passwordRef": { + "caFile": { SchemaProps: spec.SchemaProps{ - Description: "The password that is required for this repository", - Ref: ref(v1.ChartSecretRef{}.OpenAPIModelName()), + Description: "Path to a PEM encoded root certificate of the provider. Optional", + Type: []string{"string"}, + Format: "", }, }, - "insecureSkipTlsVerify": { + "insecureCa": { SchemaProps: spec.SchemaProps{ - Description: "If tls certificate checks for the chart download should be skipped", + Description: "Specify whether to communicate without validating SSL certificates", Type: []string{"boolean"}, Format: "", }, }, - }, - }, - }, - Dependencies: []string{ - v1.ChartSecretRef{}.OpenAPIModelName()}, - } -} - -func schema_apis_devsy_cluster_v1_ChartInfo(ref common.ReferenceCallback) common.OpenAPIDefinition { - return common.OpenAPIDefinition{ - Schema: spec.Schema{ - SchemaProps: spec.SchemaProps{ - Type: []string{"object"}, - Properties: map[string]spec.Schema{ - "kind": { + "preferredUsername": { SchemaProps: spec.SchemaProps{ - Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + Description: "Configurable key which contains the preferred username claims", Type: []string{"string"}, Format: "", }, }, - "apiVersion": { + "loftUsernameClaim": { SchemaProps: spec.SchemaProps{ - Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + Description: "DevsyUsernameClaim is the JWT field to use as the user's username.", Type: []string{"string"}, Format: "", }, }, - "metadata": { + "usernameClaim": { SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref(metav1.ObjectMeta{}.OpenAPIModelName()), + Description: "UsernameClaim is the JWT field to use as the user's id.", + Type: []string{"string"}, + Format: "", }, }, - "spec": { + "emailClaim": { SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref(v1.ChartInfoSpec{}.OpenAPIModelName()), + Description: "EmailClaim is the JWT field to use as the user's email.", + Type: []string{"string"}, + Format: "", }, }, - "status": { + "allowedExtraClaims": { SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref(v1.ChartInfoStatus{}.OpenAPIModelName()), + Description: "AllowedExtraClaims are claims of interest that are not part of User by default but may be provided by the OIDC provider.", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + }, }, }, - }, - }, - }, - Dependencies: []string{ - v1.ChartInfoSpec{}.OpenAPIModelName(), v1.ChartInfoStatus{}.OpenAPIModelName(), metav1.ObjectMeta{}.OpenAPIModelName()}, - } -} - -func schema_apis_devsy_cluster_v1_ChartInfoList(ref common.ReferenceCallback) common.OpenAPIDefinition { - return common.OpenAPIDefinition{ - Schema: spec.Schema{ - SchemaProps: spec.SchemaProps{ - Type: []string{"object"}, - Properties: map[string]spec.Schema{ - "kind": { + "usernamePrefix": { SchemaProps: spec.SchemaProps{ - Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + Description: "UsernamePrefix, if specified, causes claims mapping to username to be prefix with the provided value. A value \"oidc:\" would result in usernames like \"oidc:john\".", Type: []string{"string"}, Format: "", }, }, - "apiVersion": { + "groupsClaim": { SchemaProps: spec.SchemaProps{ - Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + Description: "GroupsClaim, if specified, causes the OIDCAuthenticator to try to populate the user's groups with an ID Token field. If the GroupsClaim field is present in an ID Token the value must be a string or list of strings.", Type: []string{"string"}, Format: "", }, }, - "metadata": { + "groups": { SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref(metav1.ListMeta{}.OpenAPIModelName()), + Description: "If required groups is non empty, access is denied if the user is not part of at least one of the specified groups.", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + }, }, }, - "items": { + "scopes": { SchemaProps: spec.SchemaProps{ - Type: []string{"array"}, + Description: "Scopes that should be sent to the server. If empty, defaults to \"email\" and \"profile\".", + Type: []string{"array"}, Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref(v1.ChartInfo{}.OpenAPIModelName()), + Default: "", + Type: []string{"string"}, + Format: "", }, }, }, }, }, + "getUserInfo": { + SchemaProps: spec.SchemaProps{ + Description: "GetUserInfo, if specified, tells the OIDCAuthenticator to try to populate the user's information from the UserInfo.", + Type: []string{"boolean"}, + Format: "", + }, + }, + "groupsPrefix": { + SchemaProps: spec.SchemaProps{ + Description: "GroupsPrefix, if specified, causes claims mapping to group names to be prefixed with the value. A value \"oidc:\" would result in groups like \"oidc:engineering\" and \"oidc:marketing\".", + Type: []string{"string"}, + Format: "", + }, + }, + "type": { + SchemaProps: spec.SchemaProps{ + Description: "Type of the OIDC to show in the UI. Only for displaying purposes", + Type: []string{"string"}, + Format: "", + }, + }, }, - Required: []string{"items"}, }, }, - Dependencies: []string{ - v1.ChartInfo{}.OpenAPIModelName(), metav1.ListMeta{}.OpenAPIModelName()}, } } -func schema_apis_devsy_cluster_v1_ChartInfoSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_AuthenticationPassword(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ Type: []string{"object"}, Properties: map[string]spec.Schema{ - "chart": { + "disabled": { SchemaProps: spec.SchemaProps{ - Description: "Chart holds information about a chart that should get deployed", - Default: map[string]interface{}{}, - Ref: ref(v1.Chart{}.OpenAPIModelName()), + Description: "If true login via password is disabled", + Type: []string{"boolean"}, + Format: "", }, }, }, }, }, - Dependencies: []string{ - v1.Chart{}.OpenAPIModelName()}, } } -func schema_apis_devsy_cluster_v1_ChartInfoStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_AuthenticationRancher(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ Type: []string{"object"}, Properties: map[string]spec.Schema{ - "metadata": { + "host": { SchemaProps: spec.SchemaProps{ - Description: "Metadata provides information about a chart", - Ref: ref(v1.Metadata{}.OpenAPIModelName()), + Description: "Host holds the rancher host, e.g. my-domain.com", + Type: []string{"string"}, + Format: "", }, }, - "readme": { + "bearerToken": { SchemaProps: spec.SchemaProps{ - Description: "Readme is the readme of the chart", + Description: "BearerToken holds the rancher API key in token username and password form. E.g. my-token:my-secret", Type: []string{"string"}, Format: "", }, }, - "values": { + "insecure": { SchemaProps: spec.SchemaProps{ - Description: "Values are the default values of the chart", - Type: []string{"string"}, + Description: "Insecure tells Devsy if the Rancher endpoint is insecure.", + Type: []string{"boolean"}, Format: "", }, }, }, }, }, - Dependencies: []string{ - v1.Metadata{}.OpenAPIModelName()}, } } -func schema_apis_devsy_cluster_v1_ChartSecretRef(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_AuthenticationSAML(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ Type: []string{"object"}, Properties: map[string]spec.Schema{ - "projectSecretRef": { + "redirectURI": { SchemaProps: spec.SchemaProps{ - Description: "ProjectSecretRef holds the reference to a project secret", - Ref: ref(v1.ProjectSecretRef{}.OpenAPIModelName()), + Description: "If the response assertion status value contains a Destination element, it must match this value exactly. Usually looks like https://your-devsy-domain/auth/saml/callback", + Type: []string{"string"}, + Format: "", }, }, - }, - }, - }, - Dependencies: []string{ - v1.ProjectSecretRef{}.OpenAPIModelName()}, - } -} - -func schema_apis_devsy_cluster_v1_EpochInfo(ref common.ReferenceCallback) common.OpenAPIDefinition { - return common.OpenAPIDefinition{ - Schema: spec.Schema{ - SchemaProps: spec.SchemaProps{ - Description: "EpochInfo holds information about how long the space was sleeping in the epoch", - Type: []string{"object"}, - Properties: map[string]spec.Schema{ - "start": { + "ssoURL": { SchemaProps: spec.SchemaProps{ - Description: "Timestamp when the epoch has started", - Type: []string{"integer"}, - Format: "int64", + Description: "SSO URL used for POST value.", + Type: []string{"string"}, + Format: "", }, }, - "slept": { + "caData": { SchemaProps: spec.SchemaProps{ - Description: "Amount of milliseconds the space has slept in the epoch", - Type: []string{"integer"}, - Format: "int64", + Description: "CAData is a base64 encoded string that holds the ca certificate for validating the signature of the SAML response. Either CAData, CA or InsecureSkipSignatureValidation needs to be defined.", + Type: []string{"string"}, + Format: "byte", }, }, - }, - }, - }, - } -} - -func schema_apis_devsy_cluster_v1_Feature(ref common.ReferenceCallback) common.OpenAPIDefinition { - return common.OpenAPIDefinition{ - Schema: spec.Schema{ - SchemaProps: spec.SchemaProps{ - Description: "Feature holds the feature information", - Type: []string{"object"}, - Properties: map[string]spec.Schema{ - "kind": { + "usernameAttr": { SchemaProps: spec.SchemaProps{ - Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + Description: "Name of attribute in the returned assertions to map to username", Type: []string{"string"}, Format: "", }, }, - "apiVersion": { + "emailAttr": { SchemaProps: spec.SchemaProps{ - Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + Description: "Name of attribute in the returned assertions to map to email", Type: []string{"string"}, Format: "", }, }, - "metadata": { + "groupsAttr": { SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref(metav1.ObjectMeta{}.OpenAPIModelName()), + Description: "Name of attribute in the returned assertions to map to groups", + Type: []string{"string"}, + Format: "", }, }, - "spec": { + "ca": { SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref(v1.FeatureSpec{}.OpenAPIModelName()), + Description: "CA to use when validating the signature of the SAML response.", + Type: []string{"string"}, + Format: "", }, }, - "status": { + "insecureSkipSignatureValidation": { SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref(v1.FeatureStatus{}.OpenAPIModelName()), + Description: "Ignore the ca cert", + Type: []string{"boolean"}, + Format: "", }, }, - }, - }, - }, - Dependencies: []string{ - v1.FeatureSpec{}.OpenAPIModelName(), v1.FeatureStatus{}.OpenAPIModelName(), metav1.ObjectMeta{}.OpenAPIModelName()}, - } -} - -func schema_apis_devsy_cluster_v1_FeatureList(ref common.ReferenceCallback) common.OpenAPIDefinition { - return common.OpenAPIDefinition{ - Schema: spec.Schema{ - SchemaProps: spec.SchemaProps{ - Type: []string{"object"}, - Properties: map[string]spec.Schema{ - "kind": { + "entityIssuer": { SchemaProps: spec.SchemaProps{ - Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + Description: "When provided Devsy will include this as the Issuer value during AuthnRequest. It will also override the redirectURI as the required audience when evaluating AudienceRestriction elements in the response.", Type: []string{"string"}, Format: "", }, }, - "apiVersion": { + "ssoIssuer": { SchemaProps: spec.SchemaProps{ - Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + Description: "Issuer value expected in the SAML response. Optional.", Type: []string{"string"}, Format: "", }, }, - "metadata": { + "groupsDelim": { SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref(metav1.ListMeta{}.OpenAPIModelName()), + Description: "If GroupsDelim is supplied the connector assumes groups are returned as a single string instead of multiple attribute values. This delimiter will be used split the groups string.", + Type: []string{"string"}, + Format: "", }, }, - "items": { + "allowedGroups": { SchemaProps: spec.SchemaProps{ - Type: []string{"array"}, + Description: "List of groups to filter access based on membership", + Type: []string{"array"}, Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref(v1.Feature{}.OpenAPIModelName()), + Default: "", + Type: []string{"string"}, + Format: "", }, }, }, }, }, + "filterGroups": { + SchemaProps: spec.SchemaProps{ + Description: "If used with allowed groups, only forwards the allowed groups and not all groups specified.", + Type: []string{"boolean"}, + Format: "", + }, + }, + "nameIDPolicyFormat": { + SchemaProps: spec.SchemaProps{ + Description: "Requested format of the NameID. The NameID value is is mapped to the ID Token 'sub' claim.\n\nThis can be an abbreviated form of the full URI with just the last component. For example, if this value is set to \"emailAddress\" the format will resolve to:\n\n\t\turn:oasis:names:tc:SAML:1.1:nameid-format:emailAddress\n\nIf no value is specified, this value defaults to:\n\n\t\turn:oasis:names:tc:SAML:2.0:nameid-format:persistent", + Type: []string{"string"}, + Format: "", + }, + }, }, - Required: []string{"items"}, - }, - }, - Dependencies: []string{ - v1.Feature{}.OpenAPIModelName(), metav1.ListMeta{}.OpenAPIModelName()}, - } -} - -func schema_apis_devsy_cluster_v1_FeatureSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { - return common.OpenAPIDefinition{ - Schema: spec.Schema{ - SchemaProps: spec.SchemaProps{ - Description: "FeatureSpec holds the specification", - Type: []string{"object"}, }, }, } } -func schema_apis_devsy_cluster_v1_FeatureStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_Backup(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "FeatureStatus holds the status", + Description: "Backup holds the Backup information", Type: []string{"object"}, Properties: map[string]spec.Schema{ - "name": { - SchemaProps: spec.SchemaProps{ - Description: "Name is the name of the feature (FeatureName) This cannot be FeatureName because it needs to be downward compatible e.g. older Devsy version doesn't know a newer feature but it will still be received and still needs to be rendered in the license view", - Default: "", - Type: []string{"string"}, - Format: "", - }, - }, - "displayName": { - SchemaProps: spec.SchemaProps{ - Type: []string{"string"}, - Format: "", - }, - }, - "preview": { - SchemaProps: spec.SchemaProps{ - Description: "Preview represents whether the feature can be previewed if a user's license does not allow the feature", - Type: []string{"boolean"}, - Format: "", - }, - }, - "allowBefore": { + "kind": { SchemaProps: spec.SchemaProps{ - Description: "AllowBefore is an optional timestamp. If set, licenses issued before this time are allowed to use the feature even if it's not included in the license.", + Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", Type: []string{"string"}, Format: "", }, }, - "status": { + "apiVersion": { SchemaProps: spec.SchemaProps{ - Description: "Status shows the status of the feature (see type FeatureStatus)", + Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", Type: []string{"string"}, Format: "", }, }, - "module": { + "metadata": { SchemaProps: spec.SchemaProps{ - Description: "Name of the module that this feature belongs to", - Type: []string{"string"}, - Format: "", + Default: map[string]interface{}{}, + Ref: ref(metav1.ObjectMeta{}.OpenAPIModelName()), }, }, - "internal": { + "spec": { SchemaProps: spec.SchemaProps{ - Description: "Internal marks internal features that should not be shown on the license view", - Type: []string{"boolean"}, - Format: "", + Default: map[string]interface{}{}, + Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.BackupSpec"), }, }, - "used": { + "status": { SchemaProps: spec.SchemaProps{ - Description: "Used marks features that are currently used in the product", - Type: []string{"boolean"}, - Format: "", + Default: map[string]interface{}{}, + Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.BackupStatus"), }, }, }, - Required: []string{"name"}, }, }, + Dependencies: []string{ + "github.com/devsy-org/api/pkg/apis/management/v1.BackupSpec", "github.com/devsy-org/api/pkg/apis/management/v1.BackupStatus", metav1.ObjectMeta{}.OpenAPIModelName()}, } } -func schema_apis_devsy_cluster_v1_HelmRelease(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_BackupApply(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ @@ -3338,114 +3369,112 @@ func schema_apis_devsy_cluster_v1_HelmRelease(ref common.ReferenceCallback) comm "spec": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref(v1.HelmReleaseSpec{}.OpenAPIModelName()), - }, - }, - "status": { - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref(v1.HelmReleaseStatus{}.OpenAPIModelName()), + Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.BackupApplySpec"), }, }, }, }, }, Dependencies: []string{ - v1.HelmReleaseSpec{}.OpenAPIModelName(), v1.HelmReleaseStatus{}.OpenAPIModelName(), metav1.ObjectMeta{}.OpenAPIModelName()}, + "github.com/devsy-org/api/pkg/apis/management/v1.BackupApplySpec", metav1.ObjectMeta{}.OpenAPIModelName()}, } } -func schema_apis_devsy_cluster_v1_HelmReleaseApp(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_BackupApplyList(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ Type: []string{"object"}, Properties: map[string]spec.Schema{ - "name": { + "kind": { SchemaProps: spec.SchemaProps{ - Description: "Name is the name of the app this release refers to", + Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", Type: []string{"string"}, Format: "", }, }, - "version": { + "apiVersion": { SchemaProps: spec.SchemaProps{ - Description: "Revision is the revision of the app this release refers to", + Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", Type: []string{"string"}, Format: "", }, }, + "metadata": { + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref(metav1.ListMeta{}.OpenAPIModelName()), + }, + }, + "items": { + SchemaProps: spec.SchemaProps{ + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.BackupApply"), + }, + }, + }, + }, + }, }, + Required: []string{"items"}, }, }, + Dependencies: []string{ + "github.com/devsy-org/api/pkg/apis/management/v1.BackupApply", metav1.ListMeta{}.OpenAPIModelName()}, } } -func schema_apis_devsy_cluster_v1_HelmReleaseConfig(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_BackupApplyOptions(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ Type: []string{"object"}, Properties: map[string]spec.Schema{ - "chart": { - SchemaProps: spec.SchemaProps{ - Description: "Chart holds information about a chart that should get deployed", - Default: map[string]interface{}{}, - Ref: ref(v1.Chart{}.OpenAPIModelName()), - }, - }, - "manifests": { + "kind": { SchemaProps: spec.SchemaProps{ - Description: "Manifests holds kube manifests that will be deployed as a chart", + Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", Type: []string{"string"}, Format: "", }, }, - "bash": { - SchemaProps: spec.SchemaProps{ - Description: "Bash holds the bash script to execute in a container in the target", - Ref: ref(v1.Bash{}.OpenAPIModelName()), - }, - }, - "values": { + "apiVersion": { SchemaProps: spec.SchemaProps{ - Description: "Values is the set of extra Values added to the chart. These values merge with the default values inside of the chart. You can use golang templating in here with values from parameters.", + Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", Type: []string{"string"}, Format: "", }, }, - "parameters": { + }, + }, + }, + } +} + +func schema_pkg_apis_management_v1_BackupApplySpec(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "BackupApplySpec defines the desired state of BackupApply", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "raw": { SchemaProps: spec.SchemaProps{ - Description: "Parameters are additional helm chart values that will get merged with config and are then used to deploy the helm chart.", + Description: "Raw is the raw backup to apply", Type: []string{"string"}, Format: "", }, }, - "annotations": { - SchemaProps: spec.SchemaProps{ - Description: "Annotations are extra annotations for this helm release", - Type: []string{"object"}, - AdditionalProperties: &spec.SchemaOrBool{ - Allows: true, - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: "", - Type: []string{"string"}, - Format: "", - }, - }, - }, - }, - }, }, }, }, - Dependencies: []string{ - v1.Bash{}.OpenAPIModelName(), v1.Chart{}.OpenAPIModelName()}, } } -func schema_apis_devsy_cluster_v1_HelmReleaseList(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_BackupList(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ @@ -3478,7 +3507,7 @@ func schema_apis_devsy_cluster_v1_HelmReleaseList(ref common.ReferenceCallback) Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref(v1.HelmRelease{}.OpenAPIModelName()), + Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.Backup"), }, }, }, @@ -3489,324 +3518,407 @@ func schema_apis_devsy_cluster_v1_HelmReleaseList(ref common.ReferenceCallback) }, }, Dependencies: []string{ - v1.HelmRelease{}.OpenAPIModelName(), metav1.ListMeta{}.OpenAPIModelName()}, + "github.com/devsy-org/api/pkg/apis/management/v1.Backup", metav1.ListMeta{}.OpenAPIModelName()}, } } -func schema_apis_devsy_cluster_v1_HelmReleaseSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_BackupSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Type: []string{"object"}, + Description: "BackupSpec holds the spec", + Type: []string{"object"}, + }, + }, + } +} + +func schema_pkg_apis_management_v1_BackupStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "BackupStatus holds the status.", + Type: []string{"object"}, Properties: map[string]spec.Schema{ - "chart": { - SchemaProps: spec.SchemaProps{ - Description: "Chart holds information about a chart that should get deployed", - Default: map[string]interface{}{}, - Ref: ref(v1.Chart{}.OpenAPIModelName()), - }, - }, - "manifests": { - SchemaProps: spec.SchemaProps{ - Description: "Manifests holds kube manifests that will be deployed as a chart", - Type: []string{"string"}, - Format: "", - }, - }, - "bash": { - SchemaProps: spec.SchemaProps{ - Description: "Bash holds the bash script to execute in a container in the target", - Ref: ref(v1.Bash{}.OpenAPIModelName()), - }, - }, - "values": { + "rawBackup": { SchemaProps: spec.SchemaProps{ - Description: "Values is the set of extra Values added to the chart. These values merge with the default values inside of the chart. You can use golang templating in here with values from parameters.", - Type: []string{"string"}, - Format: "", + Type: []string{"string"}, + Format: "", }, }, - "parameters": { + }, + }, + }, + } +} + +func schema_pkg_apis_management_v1_Cloud(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "releaseChannel": { SchemaProps: spec.SchemaProps{ - Description: "Parameters are additional helm chart values that will get merged with config and are then used to deploy the helm chart.", + Description: "ReleaseChannel specifies the release channel for the cloud configuration. This can be used to determine which updates or versions are applied.", Type: []string{"string"}, Format: "", }, }, - "annotations": { + "maintenanceWindow": { SchemaProps: spec.SchemaProps{ - Description: "Annotations are extra annotations for this helm release", - Type: []string{"object"}, - AdditionalProperties: &spec.SchemaOrBool{ - Allows: true, - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: "", - Type: []string{"string"}, - Format: "", - }, - }, - }, + Description: "MaintenanceWindow specifies the maintenance window for the cloud configuration. This is a structured representation of the time window during which maintenance can occur.", + Default: map[string]interface{}{}, + Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.MaintenanceWindow"), }, }, }, }, }, Dependencies: []string{ - v1.Bash{}.OpenAPIModelName(), v1.Chart{}.OpenAPIModelName()}, + "github.com/devsy-org/api/pkg/apis/management/v1.MaintenanceWindow"}, } } -func schema_apis_devsy_cluster_v1_HelmReleaseStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_Cluster(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Type: []string{"object"}, + Description: "Cluster holds the cluster information.", + Type: []string{"object"}, Properties: map[string]spec.Schema{ - "version": { + "kind": { SchemaProps: spec.SchemaProps{ - Description: "Revision is an int which represents the revision of the release.", - Type: []string{"integer"}, - Format: "int32", + Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + Type: []string{"string"}, + Format: "", }, }, - "info": { + "apiVersion": { SchemaProps: spec.SchemaProps{ - Description: "Info provides information about a release", - Ref: ref(v1.Info{}.OpenAPIModelName()), + Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + Type: []string{"string"}, + Format: "", }, }, "metadata": { SchemaProps: spec.SchemaProps{ - Description: "Metadata provides information about a chart", - Ref: ref(v1.Metadata{}.OpenAPIModelName()), + Default: map[string]interface{}{}, + Ref: ref(metav1.ObjectMeta{}.OpenAPIModelName()), + }, + }, + "spec": { + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.ClusterSpec"), + }, + }, + "status": { + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.ClusterStatus"), }, }, }, }, }, Dependencies: []string{ - v1.Info{}.OpenAPIModelName(), v1.Metadata{}.OpenAPIModelName()}, + "github.com/devsy-org/api/pkg/apis/management/v1.ClusterSpec", "github.com/devsy-org/api/pkg/apis/management/v1.ClusterStatus", metav1.ObjectMeta{}.OpenAPIModelName()}, } } -func schema_apis_devsy_cluster_v1_Info(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_ClusterAccess(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "Info describes release information.", + Description: "ClusterAccess holds the globalClusterAccess information", Type: []string{"object"}, Properties: map[string]spec.Schema{ - "first_deployed": { + "kind": { SchemaProps: spec.SchemaProps{ - Description: "FirstDeployed is when the release was first deployed.", - Ref: ref(metav1.Time{}.OpenAPIModelName()), + Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + Type: []string{"string"}, + Format: "", }, }, - "last_deployed": { + "apiVersion": { SchemaProps: spec.SchemaProps{ - Description: "LastDeployed is when the release was last deployed.", - Ref: ref(metav1.Time{}.OpenAPIModelName()), + Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + Type: []string{"string"}, + Format: "", }, }, - "deleted": { + "metadata": { SchemaProps: spec.SchemaProps{ - Description: "Deleted tracks when this object was deleted.", - Ref: ref(metav1.Time{}.OpenAPIModelName()), + Default: map[string]interface{}{}, + Ref: ref(metav1.ObjectMeta{}.OpenAPIModelName()), }, }, - "description": { + "spec": { SchemaProps: spec.SchemaProps{ - Description: "Description is human-friendly \"log entry\" about this release.", - Type: []string{"string"}, - Format: "", + Default: map[string]interface{}{}, + Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.ClusterAccessSpec"), }, }, "status": { SchemaProps: spec.SchemaProps{ - Description: "Status is the current state of the release", - Type: []string{"string"}, - Format: "", - }, - }, - "notes": { - SchemaProps: spec.SchemaProps{ - Description: "Contains the rendered templates/NOTES.txt if available", - Type: []string{"string"}, - Format: "", + Default: map[string]interface{}{}, + Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.ClusterAccessStatus"), }, }, }, }, }, Dependencies: []string{ - metav1.Time{}.OpenAPIModelName()}, + "github.com/devsy-org/api/pkg/apis/management/v1.ClusterAccessSpec", "github.com/devsy-org/api/pkg/apis/management/v1.ClusterAccessStatus", metav1.ObjectMeta{}.OpenAPIModelName()}, } } -func schema_apis_devsy_cluster_v1_LastActivityInfo(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_ClusterAccessKey(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "LastActivityInfo holds information about the last activity", + Description: "ClusterAccessKey holds the access key for the cluster", Type: []string{"object"}, Properties: map[string]spec.Schema{ - "subject": { + "kind": { SchemaProps: spec.SchemaProps{ - Description: "Subject is the user or team where this activity was recorded", + Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", Type: []string{"string"}, Format: "", }, }, - "host": { + "apiVersion": { SchemaProps: spec.SchemaProps{ - Description: "Host is the host where this activity was recorded", + Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", Type: []string{"string"}, Format: "", }, }, - "verb": { + "metadata": { + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref(metav1.ObjectMeta{}.OpenAPIModelName()), + }, + }, + "accessKey": { SchemaProps: spec.SchemaProps{ - Description: "Verb is the verb that was used for the request", + Description: "AccessKey is the access key used by the agent", Type: []string{"string"}, Format: "", }, }, - "apiGroup": { + "loftHost": { SchemaProps: spec.SchemaProps{ - Description: "APIGroup is the api group that was used for the request", + Description: "DevsyHost is the devsy host used by the agent", Type: []string{"string"}, Format: "", }, }, - "resource": { + "insecure": { SchemaProps: spec.SchemaProps{ - Description: "Resource is the resource of the request", - Type: []string{"string"}, + Description: "Insecure signals if the devsy host is insecure", + Type: []string{"boolean"}, Format: "", }, }, - "subresource": { + "caCert": { SchemaProps: spec.SchemaProps{ - Description: "Subresource is the subresource of the request", + Description: "CaCert is an optional ca cert to use for the devsy host connection", Type: []string{"string"}, Format: "", }, }, - "name": { + }, + }, + }, + Dependencies: []string{ + metav1.ObjectMeta{}.OpenAPIModelName()}, + } +} + +func schema_pkg_apis_management_v1_ClusterAccessKeyList(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "kind": { SchemaProps: spec.SchemaProps{ - Description: "Name is the name of the resource", + Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", Type: []string{"string"}, Format: "", }, }, - "devsyCluster": { + "apiVersion": { SchemaProps: spec.SchemaProps{ - Description: "DevsyCluster is the devsy cluster this activity happened in", + Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", Type: []string{"string"}, Format: "", }, }, - "metricsRefreshInterval": { + "metadata": { SchemaProps: spec.SchemaProps{ - Description: "MetricsRefreshInterval is the activity refresh interval. This is used to prevent sleeping instances if the last activity metrics have not been refreshed within the interval. Useful for metrics based activty tracking.", - Type: []string{"integer"}, - Format: "int64", + Default: map[string]interface{}{}, + Ref: ref(metav1.ListMeta{}.OpenAPIModelName()), + }, + }, + "items": { + SchemaProps: spec.SchemaProps{ + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.ClusterAccessKey"), + }, + }, + }, }, }, }, + Required: []string{"items"}, }, }, + Dependencies: []string{ + "github.com/devsy-org/api/pkg/apis/management/v1.ClusterAccessKey", metav1.ListMeta{}.OpenAPIModelName()}, } } -func schema_apis_devsy_cluster_v1_Maintainer(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_ClusterAccessList(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "Maintainer describes a Chart maintainer.", - Type: []string{"object"}, + Type: []string{"object"}, Properties: map[string]spec.Schema{ - "name": { + "kind": { SchemaProps: spec.SchemaProps{ - Description: "Name is a user name or organization name", + Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", Type: []string{"string"}, Format: "", }, }, - "email": { + "apiVersion": { SchemaProps: spec.SchemaProps{ - Description: "Email is an optional email address to contact the named maintainer", + Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", Type: []string{"string"}, Format: "", }, }, - "url": { + "metadata": { SchemaProps: spec.SchemaProps{ - Description: "URL is an optional URL to an address for the named maintainer", - Type: []string{"string"}, - Format: "", + Default: map[string]interface{}{}, + Ref: ref(metav1.ListMeta{}.OpenAPIModelName()), + }, + }, + "items": { + SchemaProps: spec.SchemaProps{ + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.ClusterAccess"), + }, + }, + }, }, }, }, + Required: []string{"items"}, }, }, + Dependencies: []string{ + "github.com/devsy-org/api/pkg/apis/management/v1.ClusterAccess", metav1.ListMeta{}.OpenAPIModelName()}, } } -func schema_apis_devsy_cluster_v1_Metadata(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_ClusterAccessRole(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "Metadata for a Chart file. This models the structure of a Chart.yaml file.", - Type: []string{"object"}, + Type: []string{"object"}, Properties: map[string]spec.Schema{ + "namespace": { + SchemaProps: spec.SchemaProps{ + Description: "Namespace of the referenced object", + Type: []string{"string"}, + Format: "", + }, + }, "name": { SchemaProps: spec.SchemaProps{ - Description: "The name of the chart", + Description: "Name of the referenced object", Type: []string{"string"}, Format: "", }, }, - "home": { + "displayName": { SchemaProps: spec.SchemaProps{ - Description: "The URL to a relevant project page, git repo, or contact person", + Description: "DisplayName is the name of the object to display in the UI", Type: []string{"string"}, Format: "", }, }, - "sources": { + "clusters": { SchemaProps: spec.SchemaProps{ - Description: "Source is the URL to the source code of this chart", + Description: "Clusters are the clusters that this assigned role applies", Type: []string{"array"}, Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ - Default: "", - Type: []string{"string"}, - Format: "", + Default: map[string]interface{}{}, + Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.ObjectName"), }, }, }, }, }, - "version": { + "assignedVia": { + SchemaProps: spec.SchemaProps{ + Description: "AssignedVia describes the resource that establishes the project membership", + Default: map[string]interface{}{}, + Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.AssignedVia"), + }, + }, + }, + }, + }, + Dependencies: []string{ + "github.com/devsy-org/api/pkg/apis/management/v1.AssignedVia", "github.com/devsy-org/api/pkg/apis/management/v1.ObjectName"}, + } +} + +func schema_pkg_apis_management_v1_ClusterAccessSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "ClusterAccessSpec holds the specification.", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "displayName": { SchemaProps: spec.SchemaProps{ - Description: "A SemVer 2 conformant version string of the chart", + Description: "DisplayName is the name that should be displayed in the UI", Type: []string{"string"}, Format: "", }, }, "description": { SchemaProps: spec.SchemaProps{ - Description: "A one-sentence description of the chart", + Description: "Description describes a cluster access object", Type: []string{"string"}, Format: "", }, }, - "keywords": { + "owner": { + SchemaProps: spec.SchemaProps{ + Description: "Owner holds the owner of this object", + Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.UserOrTeam"), + }, + }, + "clusters": { SchemaProps: spec.SchemaProps{ - Description: "A list of string keywords", + Description: "Clusters are the clusters this template should be applied on.", Type: []string{"array"}, Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ @@ -3819,101 +3931,73 @@ func schema_apis_devsy_cluster_v1_Metadata(ref common.ReferenceCallback) common. }, }, }, - "maintainers": { + "access": { SchemaProps: spec.SchemaProps{ - Description: "A list of name and URL/email address combinations for the maintainer(s)", + Description: "Access holds the access rights for users and teams", Type: []string{"array"}, Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ - Ref: ref(v1.Maintainer{}.OpenAPIModelName()), + Default: map[string]interface{}{}, + Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.Access"), }, }, }, }, }, - "icon": { - SchemaProps: spec.SchemaProps{ - Description: "The URL to an icon file.", - Type: []string{"string"}, - Format: "", - }, - }, - "apiVersion": { - SchemaProps: spec.SchemaProps{ - Description: "The API Version of this chart.", - Type: []string{"string"}, - Format: "", - }, - }, - "condition": { - SchemaProps: spec.SchemaProps{ - Description: "The condition to check to enable chart", - Type: []string{"string"}, - Format: "", - }, - }, - "tags": { - SchemaProps: spec.SchemaProps{ - Description: "The tags to check to enable chart", - Type: []string{"string"}, - Format: "", - }, - }, - "appVersion": { - SchemaProps: spec.SchemaProps{ - Description: "The version of the application enclosed inside of this chart.", - Type: []string{"string"}, - Format: "", - }, - }, - "deprecated": { + "localClusterAccessTemplate": { SchemaProps: spec.SchemaProps{ - Description: "Whether or not this chart is deprecated", - Type: []string{"boolean"}, - Format: "", + Description: "LocalClusterAccessTemplate holds the cluster access template", + Default: map[string]interface{}{}, + Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.LocalClusterAccessTemplate"), }, }, - "annotations": { + }, + }, + }, + Dependencies: []string{ + "github.com/devsy-org/api/pkg/apis/storage/v1.Access", "github.com/devsy-org/api/pkg/apis/storage/v1.LocalClusterAccessTemplate", "github.com/devsy-org/api/pkg/apis/storage/v1.UserOrTeam"}, + } +} + +func schema_pkg_apis_management_v1_ClusterAccessStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "ClusterAccessStatus holds the status.", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "clusters": { SchemaProps: spec.SchemaProps{ - Description: "Annotations are additional mappings uninterpreted by Helm, made available for inspection by other applications.", - Type: []string{"object"}, - AdditionalProperties: &spec.SchemaOrBool{ - Allows: true, + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ - Default: "", - Type: []string{"string"}, - Format: "", + Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.EntityInfo"), }, }, }, }, }, - "kubeVersion": { - SchemaProps: spec.SchemaProps{ - Description: "KubeVersion is a SemVer constraint specifying the version of Kubernetes required.", - Type: []string{"string"}, - Format: "", - }, - }, - "type": { + "users": { SchemaProps: spec.SchemaProps{ - Description: "Specifies the chart type: application or library", - Type: []string{"string"}, - Format: "", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.UserOrTeamEntity"), + }, + }, + }, }, }, - "urls": { + "teams": { SchemaProps: spec.SchemaProps{ - Description: "Urls where to find the chart contents", - Type: []string{"array"}, + Type: []string{"array"}, Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ - Default: "", - Type: []string{"string"}, - Format: "", + Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.EntityInfo"), }, }, }, @@ -3923,48 +4007,51 @@ func schema_apis_devsy_cluster_v1_Metadata(ref common.ReferenceCallback) common. }, }, Dependencies: []string{ - v1.Maintainer{}.OpenAPIModelName()}, + "github.com/devsy-org/api/pkg/apis/storage/v1.EntityInfo", "github.com/devsy-org/api/pkg/apis/storage/v1.UserOrTeamEntity"}, } } -func schema_apis_devsy_cluster_v1_ProjectSecretRef(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_ClusterAccounts(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ Type: []string{"object"}, Properties: map[string]spec.Schema{ - "project": { - SchemaProps: spec.SchemaProps{ - Description: "Project is the project name where the secret is located in.", - Type: []string{"string"}, - Format: "", - }, - }, - "name": { + "accounts": { SchemaProps: spec.SchemaProps{ - Description: "Name of the project secret to use.", - Type: []string{"string"}, - Format: "", + Description: "Accounts are the accounts that belong to the user in the cluster", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + }, }, }, - "key": { + "cluster": { SchemaProps: spec.SchemaProps{ - Description: "Key of the project secret to use.", - Type: []string{"string"}, - Format: "", + Description: "Cluster is the cluster object", + Default: map[string]interface{}{}, + Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.Cluster"), }, }, }, }, }, + Dependencies: []string{ + "github.com/devsy-org/api/pkg/apis/storage/v1.Cluster"}, } } -func schema_apis_devsy_cluster_v1_SleepModeConfig(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_ClusterAgentConfig(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "SleepModeConfig holds the sleepmode information", + Description: "ClusterAgentConfig holds the devsy agent configuration", Type: []string{"object"}, Properties: map[string]spec.Schema{ "kind": { @@ -3987,244 +4074,219 @@ func schema_apis_devsy_cluster_v1_SleepModeConfig(ref common.ReferenceCallback) Ref: ref(metav1.ObjectMeta{}.OpenAPIModelName()), }, }, - "spec": { + "cluster": { SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref(v1.SleepModeConfigSpec{}.OpenAPIModelName()), + Description: "Cluster is the cluster the agent is running in.", + Type: []string{"string"}, + Format: "", }, }, - "status": { + "audit": { SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref(v1.SleepModeConfigStatus{}.OpenAPIModelName()), + Description: "Audit holds the agent audit config", + Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.AgentAuditConfig"), }, }, - }, - }, - }, - Dependencies: []string{ - v1.SleepModeConfigSpec{}.OpenAPIModelName(), v1.SleepModeConfigStatus{}.OpenAPIModelName(), metav1.ObjectMeta{}.OpenAPIModelName()}, - } -} - -func schema_apis_devsy_cluster_v1_SleepModeConfigSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { - return common.OpenAPIDefinition{ - Schema: spec.Schema{ - SchemaProps: spec.SchemaProps{ - Type: []string{"object"}, - Properties: map[string]spec.Schema{ - "forceSleep": { + "defaultImageRegistry": { SchemaProps: spec.SchemaProps{ - Description: "If force sleep is true the space will sleep", - Type: []string{"boolean"}, + Description: "DefaultImageRegistry defines if we should prefix the virtual cluster image", + Type: []string{"string"}, Format: "", }, }, - "forceSleepDuration": { - SchemaProps: spec.SchemaProps{ - Description: "If force sleep duration is set, this will force the space to sleep for the given duration. It also implies that forceSleep is true. During this period devsy will also block certain requests to that space. If this is set to 0, it means the space will sleep until it is manually woken up via the cli or ui.", - Type: []string{"integer"}, - Format: "int64", - }, - }, - "deleteAfter": { + "tokenCaCert": { SchemaProps: spec.SchemaProps{ - Description: "DeleteAfter specifies after how many seconds of inactivity the space should be deleted", - Type: []string{"integer"}, - Format: "int64", + Description: "TokenCaCert is the certificate authority the Devsy tokens will be signed with", + Type: []string{"string"}, + Format: "byte", }, }, - "sleepAfter": { + "loftHost": { SchemaProps: spec.SchemaProps{ - Description: "SleepAfter specifies after how many seconds of inactivity the space should sleep", - Type: []string{"integer"}, - Format: "int64", + Description: "DevsyHost defines the host for the agent's devsy instance", + Type: []string{"string"}, + Format: "", }, }, - "sleepSchedule": { + "projectNamespacePrefix": { SchemaProps: spec.SchemaProps{ - Description: "SleepSchedule specifies scheduled space sleep in Cron format, see https://en.wikipedia.org/wiki/Cron. Note: timezone defined in the schedule string will be ignored. Use \".Spec.Timezone\" field instead.", + Description: "ProjectNamespacePrefix holds the prefix for devsy project namespaces", Type: []string{"string"}, Format: "", }, }, - "wakeupSchedule": { + "loftInstanceID": { SchemaProps: spec.SchemaProps{ - Description: "WakeupSchedule specifies scheduled wakeup from sleep in Cron format, see https://en.wikipedia.org/wiki/Cron. Note: timezone defined in the schedule string will be ignored. Use \".Spec.Timezone\" field instead.", + Description: "DevsyInstanceID defines the instance id from the devsy instance", Type: []string{"string"}, Format: "", }, }, - "timezone": { + "analyticsSpec": { SchemaProps: spec.SchemaProps{ - Description: "Timezone specifies time zone used for scheduled space operations. Defaults to UTC. Accepts the same format as time.LoadLocation() in Go (https://pkg.go.dev/time#LoadLocation). The value should be a location name corresponding to a file in the IANA Time Zone database, such as \"America/New_York\". See also: https://en.wikipedia.org/wiki/List_of_tz_database_time_zones", - Type: []string{"string"}, - Format: "", + Description: "AnalyticsSpec holds info needed for the agent to send analytics data to the analytics backend.", + Default: map[string]interface{}{}, + Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.AgentAnalyticsSpec"), }, }, - "ignoreActiveConnections": { + "costControl": { SchemaProps: spec.SchemaProps{ - Description: "IgnoreActiveConnections ignores active connections on the namespace", - Type: []string{"boolean"}, - Format: "", + Description: "CostControl holds the settings related to the Cost Control ROI dashboard and its metrics gathering infrastructure", + Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.AgentCostControlConfig"), }, }, - "ignoreAll": { + "authenticateVersionEndpoint": { SchemaProps: spec.SchemaProps{ - Description: "IgnoreAll ignores all requests", + Description: "AuthenticateVersionEndpoint will force authentication for the '/version' endpoint. Will only work with vCluster v0.27 & later", Type: []string{"boolean"}, Format: "", }, }, - "ignoreIngresses": { + }, + Required: []string{"analyticsSpec"}, + }, + }, + Dependencies: []string{ + "github.com/devsy-org/api/pkg/apis/management/v1.AgentAnalyticsSpec", "github.com/devsy-org/api/pkg/apis/management/v1.AgentAuditConfig", "github.com/devsy-org/api/pkg/apis/management/v1.AgentCostControlConfig", metav1.ObjectMeta{}.OpenAPIModelName()}, + } +} + +func schema_pkg_apis_management_v1_ClusterAgentConfigCommon(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "cluster": { SchemaProps: spec.SchemaProps{ - Description: "IgnoreIngresses ignores all ingresses", - Type: []string{"boolean"}, + Description: "Cluster is the cluster the agent is running in.", + Type: []string{"string"}, Format: "", }, }, - "ignoreDevsys": { + "audit": { SchemaProps: spec.SchemaProps{ - Description: "IgnoreDevsys ignores devsy requests", - Type: []string{"boolean"}, - Format: "", + Description: "Audit holds the agent audit config", + Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.AgentAuditConfig"), }, }, - "ignoreGroups": { + "defaultImageRegistry": { SchemaProps: spec.SchemaProps{ - Description: "IgnoreGroups are ignored user groups", + Description: "DefaultImageRegistry defines if we should prefix the virtual cluster image", Type: []string{"string"}, Format: "", }, }, - "ignoreVerbs": { + "tokenCaCert": { SchemaProps: spec.SchemaProps{ - Description: "IgnoreVerbs are ignored request verbs", + Description: "TokenCaCert is the certificate authority the Devsy tokens will be signed with", Type: []string{"string"}, - Format: "", + Format: "byte", }, }, - "ignoreResources": { + "loftHost": { SchemaProps: spec.SchemaProps{ - Description: "IgnoreResources are ignored request resources", + Description: "DevsyHost defines the host for the agent's devsy instance", Type: []string{"string"}, Format: "", }, }, - "ignoreResourceVerbs": { + "projectNamespacePrefix": { SchemaProps: spec.SchemaProps{ - Description: "IgnoreResourceVerbs are ignored resource verbs", + Description: "ProjectNamespacePrefix holds the prefix for devsy project namespaces", Type: []string{"string"}, Format: "", }, }, - "ignoreResourceNames": { + "loftInstanceID": { SchemaProps: spec.SchemaProps{ - Description: "IgnoreResourceNames are ignored resources and names", + Description: "DevsyInstanceID defines the instance id from the devsy instance", Type: []string{"string"}, Format: "", }, }, - "ignoreUserAgents": { + "analyticsSpec": { SchemaProps: spec.SchemaProps{ - Description: "IgnoreUseragents are ignored user agents with trailing wildcards '*' allowed. comma separated", - Type: []string{"string"}, + Description: "AnalyticsSpec holds info needed for the agent to send analytics data to the analytics backend.", + Default: map[string]interface{}{}, + Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.AgentAnalyticsSpec"), + }, + }, + "costControl": { + SchemaProps: spec.SchemaProps{ + Description: "CostControl holds the settings related to the Cost Control ROI dashboard and its metrics gathering infrastructure", + Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.AgentCostControlConfig"), + }, + }, + "authenticateVersionEndpoint": { + SchemaProps: spec.SchemaProps{ + Description: "AuthenticateVersionEndpoint will force authentication for the '/version' endpoint. Will only work with vCluster v0.27 & later", + Type: []string{"boolean"}, Format: "", }, }, }, + Required: []string{"analyticsSpec"}, }, }, + Dependencies: []string{ + "github.com/devsy-org/api/pkg/apis/management/v1.AgentAnalyticsSpec", "github.com/devsy-org/api/pkg/apis/management/v1.AgentAuditConfig", "github.com/devsy-org/api/pkg/apis/management/v1.AgentCostControlConfig"}, } } -func schema_apis_devsy_cluster_v1_SleepModeConfigStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_ClusterAgentConfigList(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ Type: []string{"object"}, Properties: map[string]spec.Schema{ - "lastActivity": { + "kind": { SchemaProps: spec.SchemaProps{ - Description: "LastActivity indicates the last activity in the namespace", - Type: []string{"integer"}, - Format: "int64", - }, - }, - "lastActivityInfo": { - SchemaProps: spec.SchemaProps{ - Description: "LastActivityInfo holds information about the last activity within this space", - Ref: ref(v1.LastActivityInfo{}.OpenAPIModelName()), - }, - }, - "sleepingSince": { - SchemaProps: spec.SchemaProps{ - Description: "SleepingSince specifies since when the space is sleeping (if this is not specified, devsy assumes the space is not sleeping)", - Type: []string{"integer"}, - Format: "int64", - }, - }, - "currentEpoch": { - SchemaProps: spec.SchemaProps{ - Description: "Optional info that indicates how long the space was sleeping in the current epoch", - Ref: ref(v1.EpochInfo{}.OpenAPIModelName()), - }, - }, - "lastEpoch": { - SchemaProps: spec.SchemaProps{ - Description: "Optional info that indicates how long the space was sleeping in the current epoch", - Ref: ref(v1.EpochInfo{}.OpenAPIModelName()), - }, - }, - "sleptLastThirtyDays": { - SchemaProps: spec.SchemaProps{ - Description: "This is a calculated field that will be returned but not saved and describes the percentage since the space was created or the last 30 days the space has slept", - Type: []string{"number"}, - Format: "double", - }, - }, - "sleptLastSevenDays": { - SchemaProps: spec.SchemaProps{ - Description: "This is a calculated field that will be returned but not saved and describes the percentage since the space was created or the last 7 days the space has slept", - Type: []string{"number"}, - Format: "double", + Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + Type: []string{"string"}, + Format: "", }, }, - "scheduledSleep": { + "apiVersion": { SchemaProps: spec.SchemaProps{ - Description: "Indicates time of the next scheduled sleep based on .Spec.SleepSchedule and .Spec.ScheduleTimeZone The time is a Unix time, the number of seconds elapsed since January 1, 1970 UTC", - Type: []string{"integer"}, - Format: "int64", + Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + Type: []string{"string"}, + Format: "", }, }, - "scheduledWakeup": { + "metadata": { SchemaProps: spec.SchemaProps{ - Description: "Indicates time of the next scheduled wakeup based on .Spec.WakeupSchedule and .Spec.ScheduleTimeZone The time is a Unix time, the number of seconds elapsed since January 1, 1970 UTC", - Type: []string{"integer"}, - Format: "int64", + Default: map[string]interface{}{}, + Ref: ref(metav1.ListMeta{}.OpenAPIModelName()), }, }, - "sleepType": { + "items": { SchemaProps: spec.SchemaProps{ - Description: "SleepType specifies a type of sleep, which has effect on which actions will cause the space to wake up.", - Type: []string{"string"}, - Format: "", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.ClusterAgentConfig"), + }, + }, + }, }, }, }, + Required: []string{"items"}, }, }, Dependencies: []string{ - v1.EpochInfo{}.OpenAPIModelName(), v1.LastActivityInfo{}.OpenAPIModelName()}, + "github.com/devsy-org/api/pkg/apis/management/v1.ClusterAgentConfig", metav1.ListMeta{}.OpenAPIModelName()}, } } -func schema_apis_devsy_storage_v1_ClusterQuota(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_ClusterCharts(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "ClusterQuota is the Schema for the cluster quotas api", - Type: []string{"object"}, + Type: []string{"object"}, Properties: map[string]spec.Schema{ "kind": { SchemaProps: spec.SchemaProps{ @@ -4246,32 +4308,41 @@ func schema_apis_devsy_storage_v1_ClusterQuota(ref common.ReferenceCallback) com Ref: ref(metav1.ObjectMeta{}.OpenAPIModelName()), }, }, - "spec": { + "charts": { SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref(storagev1.ClusterQuotaSpec{}.OpenAPIModelName()), + Description: "Holds the available helm charts for this cluster", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.HelmChart"), + }, + }, + }, }, }, - "status": { + "busy": { SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref(storagev1.ClusterQuotaStatus{}.OpenAPIModelName()), + Description: "Busy will indicate if the chart parsing is still in progress.", + Type: []string{"boolean"}, + Format: "", }, }, }, + Required: []string{"charts"}, }, }, Dependencies: []string{ - storagev1.ClusterQuotaSpec{}.OpenAPIModelName(), storagev1.ClusterQuotaStatus{}.OpenAPIModelName(), metav1.ObjectMeta{}.OpenAPIModelName()}, + "github.com/devsy-org/api/pkg/apis/storage/v1.HelmChart", metav1.ObjectMeta{}.OpenAPIModelName()}, } } -func schema_apis_devsy_storage_v1_ClusterQuotaList(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_ClusterChartsList(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "ClusterQuotaList contains a list of ClusterQuota", - Type: []string{"object"}, + Type: []string{"object"}, Properties: map[string]spec.Schema{ "kind": { SchemaProps: spec.SchemaProps{ @@ -4300,7 +4371,7 @@ func schema_apis_devsy_storage_v1_ClusterQuotaList(ref common.ReferenceCallback) Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref(storagev1.ClusterQuota{}.OpenAPIModelName()), + Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.ClusterCharts"), }, }, }, @@ -4311,185 +4382,240 @@ func schema_apis_devsy_storage_v1_ClusterQuotaList(ref common.ReferenceCallback) }, }, Dependencies: []string{ - storagev1.ClusterQuota{}.OpenAPIModelName(), metav1.ListMeta{}.OpenAPIModelName()}, + "github.com/devsy-org/api/pkg/apis/management/v1.ClusterCharts", metav1.ListMeta{}.OpenAPIModelName()}, } } -func schema_apis_devsy_storage_v1_ClusterQuotaSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_ClusterDomain(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "ClusterQuotaSpec defines the desired state of ClusterQuota", - Type: []string{"object"}, + Type: []string{"object"}, Properties: map[string]spec.Schema{ - "user": { + "kind": { SchemaProps: spec.SchemaProps{ - Description: "User is the name of the user this quota should apply to", + Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", Type: []string{"string"}, Format: "", }, }, - "team": { + "apiVersion": { SchemaProps: spec.SchemaProps{ - Description: "Team is the name of the team this quota should apply to", + Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", Type: []string{"string"}, Format: "", }, }, - "project": { + "metadata": { SchemaProps: spec.SchemaProps{ - Description: "Project is the project that this cluster quota should apply to", - Type: []string{"string"}, - Format: "", + Default: map[string]interface{}{}, + Ref: ref(metav1.ObjectMeta{}.OpenAPIModelName()), }, }, - "quota": { + "target": { SchemaProps: spec.SchemaProps{ - Description: "quota is the quota definition with all the limits and selectors", - Default: map[string]interface{}{}, - Ref: ref(corev1.ResourceQuotaSpec{}.OpenAPIModelName()), + Type: []string{"string"}, + Format: "", + }, + }, + "domain": { + SchemaProps: spec.SchemaProps{ + Type: []string{"string"}, + Format: "", }, }, }, }, }, Dependencies: []string{ - corev1.ResourceQuotaSpec{}.OpenAPIModelName()}, + metav1.ObjectMeta{}.OpenAPIModelName()}, } } -func schema_apis_devsy_storage_v1_ClusterQuotaStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_ClusterDomainList(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "ClusterQuotaStatus defines the observed state of ClusterQuota", - Type: []string{"object"}, + Type: []string{"object"}, Properties: map[string]spec.Schema{ - "total": { + "kind": { SchemaProps: spec.SchemaProps{ - Description: "Total defines the actual enforced quota and its current usage across all projects", - Default: map[string]interface{}{}, - Ref: ref(corev1.ResourceQuotaStatus{}.OpenAPIModelName()), + Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + Type: []string{"string"}, + Format: "", }, }, - "namespaces": { + "apiVersion": { SchemaProps: spec.SchemaProps{ - Description: "Namespaces slices the usage by project. This division allows for quick resolution of deletion reconciliation inside of a single project without requiring a recalculation across all projects. This can be used to pull the deltas for a given project.", - Type: []string{"array"}, + Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + Type: []string{"string"}, + Format: "", + }, + }, + "metadata": { + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref(metav1.ListMeta{}.OpenAPIModelName()), + }, + }, + "items": { + SchemaProps: spec.SchemaProps{ + Type: []string{"array"}, Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref(storagev1.ClusterQuotaStatusByNamespace{}.OpenAPIModelName()), + Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.ClusterDomain"), }, }, }, }, }, }, + Required: []string{"items"}, }, }, Dependencies: []string{ - storagev1.ClusterQuotaStatusByNamespace{}.OpenAPIModelName(), corev1.ResourceQuotaStatus{}.OpenAPIModelName()}, + "github.com/devsy-org/api/pkg/apis/management/v1.ClusterDomain", metav1.ListMeta{}.OpenAPIModelName()}, } } -func schema_apis_devsy_storage_v1_ClusterQuotaStatusByNamespace(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_ClusterList(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "ClusterQuotaStatusByNamespace holds the status of a specific namespace", - Type: []string{"object"}, + Type: []string{"object"}, Properties: map[string]spec.Schema{ - "namespace": { + "kind": { SchemaProps: spec.SchemaProps{ - Description: "Namespace of the account this account quota applies to", - Default: "", + Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", Type: []string{"string"}, Format: "", }, }, - "status": { + "apiVersion": { SchemaProps: spec.SchemaProps{ - Description: "Status indicates how many resources have been consumed by this project", - Default: map[string]interface{}{}, - Ref: ref(corev1.ResourceQuotaStatus{}.OpenAPIModelName()), + Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + Type: []string{"string"}, + Format: "", + }, + }, + "metadata": { + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref(metav1.ListMeta{}.OpenAPIModelName()), + }, + }, + "items": { + SchemaProps: spec.SchemaProps{ + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.Cluster"), + }, + }, + }, }, }, }, - Required: []string{"namespace"}, + Required: []string{"items"}, }, }, Dependencies: []string{ - corev1.ResourceQuotaStatus{}.OpenAPIModelName()}, + "github.com/devsy-org/api/pkg/apis/management/v1.Cluster", metav1.ListMeta{}.OpenAPIModelName()}, } } -func schema_apis_devsy_storage_v1_Condition(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_ClusterMember(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "Condition defines an observation of a Cluster API resource operational state.", - Type: []string{"object"}, + Type: []string{"object"}, Properties: map[string]spec.Schema{ - "type": { + "info": { SchemaProps: spec.SchemaProps{ - Description: "Type of condition in CamelCase or in foo.example.com/CamelCase. Many .condition.type values are consistent across resources like Available, but because arbitrary conditions can be useful (see .node.status.conditions), the ability to deconflict is important.", - Default: "", - Type: []string{"string"}, - Format: "", + Description: "Info about the user or team", + Default: map[string]interface{}{}, + Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.EntityInfo"), }, }, - "status": { + }, + }, + }, + Dependencies: []string{ + "github.com/devsy-org/api/pkg/apis/storage/v1.EntityInfo"}, + } +} + +func schema_pkg_apis_management_v1_ClusterMemberAccess(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "kind": { SchemaProps: spec.SchemaProps{ - Description: "Status of the condition, one of True, False, Unknown.", - Default: "", + Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", Type: []string{"string"}, Format: "", }, }, - "severity": { + "apiVersion": { SchemaProps: spec.SchemaProps{ - Description: "Severity provides an explicit classification of Reason code, so the users or machines can immediately understand the current situation and act accordingly. The Severity field MUST be set only when Status=False.", + Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", Type: []string{"string"}, Format: "", }, }, - "lastTransitionTime": { + "metadata": { SchemaProps: spec.SchemaProps{ - Description: "Last time the condition transitioned from one status to another. This should be when the underlying condition changed. If that is not known, then using the time when the API field changed is acceptable.", - Ref: ref(metav1.Time{}.OpenAPIModelName()), + Default: map[string]interface{}{}, + Ref: ref(metav1.ObjectMeta{}.OpenAPIModelName()), }, }, - "reason": { + "teams": { SchemaProps: spec.SchemaProps{ - Description: "The reason for the condition's last transition in CamelCase. The specific API may choose whether this field is considered a guaranteed API. This field may not be empty.", - Type: []string{"string"}, - Format: "", + Description: "Teams holds all the teams that the current user has access to the cluster", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.ClusterMember"), + }, + }, + }, }, }, - "message": { + "users": { SchemaProps: spec.SchemaProps{ - Description: "A human readable message indicating details about the transition. This field may be empty.", - Type: []string{"string"}, - Format: "", + Description: "Users holds all the users that the current user has access to the cluster", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.ClusterMember"), + }, + }, + }, }, }, }, - Required: []string{"type", "status", "lastTransitionTime"}, }, }, Dependencies: []string{ - metav1.Time{}.OpenAPIModelName()}, + "github.com/devsy-org/api/pkg/apis/management/v1.ClusterMember", metav1.ObjectMeta{}.OpenAPIModelName()}, } } -func schema_pkg_apis_audit_v1_Event(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_ClusterMemberAccessList(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "Event holds the event information", - Type: []string{"object"}, + Type: []string{"object"}, Properties: map[string]spec.Schema{ "kind": { SchemaProps: spec.SchemaProps{ @@ -4505,148 +4631,101 @@ func schema_pkg_apis_audit_v1_Event(ref common.ReferenceCallback) common.OpenAPI Format: "", }, }, - "level": { - SchemaProps: spec.SchemaProps{ - Description: "AuditLevel at which event was generated", - Default: "", - Type: []string{"string"}, - Format: "", - }, - }, - "auditID": { + "metadata": { SchemaProps: spec.SchemaProps{ - Description: "Unique audit ID, generated for each request.", - Default: "", - Type: []string{"string"}, - Format: "", + Default: map[string]interface{}{}, + Ref: ref(metav1.ListMeta{}.OpenAPIModelName()), }, }, - "stage": { + "items": { SchemaProps: spec.SchemaProps{ - Description: "Stage of the request handling when this event instance was generated.", - Default: "", - Type: []string{"string"}, - Format: "", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.ClusterMemberAccess"), + }, + }, + }, }, }, - "requestURI": { + }, + Required: []string{"items"}, + }, + }, + Dependencies: []string{ + "github.com/devsy-org/api/pkg/apis/management/v1.ClusterMemberAccess", metav1.ListMeta{}.OpenAPIModelName()}, + } +} + +func schema_pkg_apis_management_v1_ClusterMembers(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "kind": { SchemaProps: spec.SchemaProps{ - Description: "RequestURI is the request URI as sent by the client to a server.", - Default: "", + Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", Type: []string{"string"}, Format: "", }, }, - "verb": { + "apiVersion": { SchemaProps: spec.SchemaProps{ - Description: "Verb is the kubernetes verb associated with the request. For non-resource requests, this is the lower-cased HTTP method.", - Default: "", + Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", Type: []string{"string"}, Format: "", }, }, - "user": { - SchemaProps: spec.SchemaProps{ - Description: "Authenticated user information.", - Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/authentication/v1.UserInfo"), - }, - }, - "impersonatedUser": { + "metadata": { SchemaProps: spec.SchemaProps{ - Description: "Impersonated user information.", - Ref: ref("k8s.io/api/authentication/v1.UserInfo"), + Default: map[string]interface{}{}, + Ref: ref(metav1.ObjectMeta{}.OpenAPIModelName()), }, }, - "sourceIPs": { + "teams": { SchemaProps: spec.SchemaProps{ - Description: "Source IPs, from where the request originated and intermediate proxies.", + Description: "Teams holds all the teams that have access to the cluster", Type: []string{"array"}, Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ - Default: "", - Type: []string{"string"}, - Format: "", + Default: map[string]interface{}{}, + Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.ClusterMember"), }, }, }, }, }, - "userAgent": { - SchemaProps: spec.SchemaProps{ - Description: "UserAgent records the user agent string reported by the client. Note that the UserAgent is provided by the client, and must not be trusted.", - Type: []string{"string"}, - Format: "", - }, - }, - "objectRef": { - SchemaProps: spec.SchemaProps{ - Description: "Object reference this request is targeted at. Does not apply for List-type requests, or non-resource requests.", - Ref: ref("github.com/devsy-org/api/pkg/apis/audit/v1.ObjectReference"), - }, - }, - "responseStatus": { - SchemaProps: spec.SchemaProps{ - Description: "The response status. For successful and non-successful responses, this will only include the Code and StatusSuccess. For panic type error responses, this will be auto-populated with the error Message.", - Ref: ref(metav1.Status{}.OpenAPIModelName()), - }, - }, - "requestObject": { - SchemaProps: spec.SchemaProps{ - Description: "API object from the request, in JSON format. The RequestObject is recorded as-is in the request (possibly re-encoded as JSON), prior to version conversion, defaulting, admission or merging. It is an external versioned object type, and may not be a valid object on its own. Omitted for non-resource requests. Only logged at Request Level and higher.", - Ref: ref("k8s.io/apimachinery/pkg/runtime.Unknown"), - }, - }, - "responseObject": { - SchemaProps: spec.SchemaProps{ - Description: "API object returned in the response, in JSON. The ResponseObject is recorded after conversion to the external type, and serialized as JSON. Omitted for non-resource requests. Only logged at Response Level.", - Ref: ref("k8s.io/apimachinery/pkg/runtime.Unknown"), - }, - }, - "requestReceivedTimestamp": { - SchemaProps: spec.SchemaProps{ - Description: "Time the request reached the apiserver.", - Ref: ref(metav1.MicroTime{}.OpenAPIModelName()), - }, - }, - "stageTimestamp": { - SchemaProps: spec.SchemaProps{ - Description: "Time the request reached current audit stage.", - Ref: ref(metav1.MicroTime{}.OpenAPIModelName()), - }, - }, - "annotations": { + "users": { SchemaProps: spec.SchemaProps{ - Description: "Annotations is an unstructured key value map stored with an audit event that may be set by plugins invoked in the request serving chain, including authentication, authorization and admission plugins. Note that these annotations are for the audit event, and do not correspond to the metadata.annotations of the submitted object. Keys should uniquely identify the informing component to avoid name collisions (e.g. podsecuritypolicy.admission.k8s.io/policy). Values should be short. Annotations are included in the Metadata level.", - Type: []string{"object"}, - AdditionalProperties: &spec.SchemaOrBool{ - Allows: true, + Description: "Users holds all the users that have access to the cluster", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ - Default: "", - Type: []string{"string"}, - Format: "", + Default: map[string]interface{}{}, + Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.ClusterMember"), }, }, }, }, }, }, - Required: []string{"level", "auditID", "stage", "requestURI", "verb", "user"}, }, }, Dependencies: []string{ - "github.com/devsy-org/api/pkg/apis/audit/v1.ObjectReference", "k8s.io/api/authentication/v1.UserInfo", metav1.MicroTime{}.OpenAPIModelName(), metav1.Status{}.OpenAPIModelName(), "k8s.io/apimachinery/pkg/runtime.Unknown"}, + "github.com/devsy-org/api/pkg/apis/management/v1.ClusterMember", metav1.ObjectMeta{}.OpenAPIModelName()}, } } -func schema_pkg_apis_audit_v1_EventList(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_ClusterMembersList(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "EventList is a list of audit Events.", - Type: []string{"object"}, + Type: []string{"object"}, Properties: map[string]spec.Schema{ "kind": { SchemaProps: spec.SchemaProps{ @@ -4675,7 +4754,7 @@ func schema_pkg_apis_audit_v1_EventList(ref common.ReferenceCallback) common.Ope Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/audit/v1.Event"), + Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.ClusterMembers"), }, }, }, @@ -4686,341 +4765,465 @@ func schema_pkg_apis_audit_v1_EventList(ref common.ReferenceCallback) common.Ope }, }, Dependencies: []string{ - "github.com/devsy-org/api/pkg/apis/audit/v1.Event", metav1.ListMeta{}.OpenAPIModelName()}, + "github.com/devsy-org/api/pkg/apis/management/v1.ClusterMembers", metav1.ListMeta{}.OpenAPIModelName()}, } } -func schema_pkg_apis_audit_v1_ObjectReference(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_ClusterReset(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "ObjectReference contains enough information to let you inspect or modify the referred object.", - Type: []string{"object"}, + Type: []string{"object"}, Properties: map[string]spec.Schema{ - "resource": { + "kind": { SchemaProps: spec.SchemaProps{ - Type: []string{"string"}, - Format: "", + Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + Type: []string{"string"}, + Format: "", }, }, - "namespace": { + "apiVersion": { SchemaProps: spec.SchemaProps{ - Type: []string{"string"}, - Format: "", + Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + Type: []string{"string"}, + Format: "", }, }, - "name": { + "metadata": { SchemaProps: spec.SchemaProps{ - Type: []string{"string"}, + Default: map[string]interface{}{}, + Ref: ref(metav1.ObjectMeta{}.OpenAPIModelName()), + }, + }, + "agent": { + SchemaProps: spec.SchemaProps{ + Type: []string{"boolean"}, Format: "", }, }, - "uid": { + "rbac": { SchemaProps: spec.SchemaProps{ - Type: []string{"string"}, + Type: []string{"boolean"}, Format: "", }, }, - "apiGroup": { + }, + }, + }, + Dependencies: []string{ + metav1.ObjectMeta{}.OpenAPIModelName()}, + } +} + +func schema_pkg_apis_management_v1_ClusterResetList(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "kind": { SchemaProps: spec.SchemaProps{ - Description: "APIGroup is the name of the API group that contains the referred object. The empty string represents the core API group.", + Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", Type: []string{"string"}, Format: "", }, }, "apiVersion": { SchemaProps: spec.SchemaProps{ - Description: "APIVersion is the version of the API group that contains the referred object.", + Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", Type: []string{"string"}, Format: "", }, }, - "resourceVersion": { + "metadata": { SchemaProps: spec.SchemaProps{ - Type: []string{"string"}, - Format: "", + Default: map[string]interface{}{}, + Ref: ref(metav1.ListMeta{}.OpenAPIModelName()), }, }, - "subresource": { + "items": { SchemaProps: spec.SchemaProps{ - Type: []string{"string"}, - Format: "", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.ClusterReset"), + }, + }, + }, }, }, }, + Required: []string{"items"}, }, }, + Dependencies: []string{ + "github.com/devsy-org/api/pkg/apis/management/v1.ClusterReset", metav1.ListMeta{}.OpenAPIModelName()}, } } -func schema_pkg_apis_management_v1_AgentAnalyticsSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_ClusterRoleTemplate(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "AgentAnalyticsSpec holds info the agent can use to send analytics data to the analytics backend.", + Description: "ClusterRoleTemplate holds the clusterRoleTemplate information", Type: []string{"object"}, Properties: map[string]spec.Schema{ - "analyticsEndpoint": { + "kind": { SchemaProps: spec.SchemaProps{ - Type: []string{"string"}, - Format: "", + Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + Type: []string{"string"}, + Format: "", + }, + }, + "apiVersion": { + SchemaProps: spec.SchemaProps{ + Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + Type: []string{"string"}, + Format: "", + }, + }, + "metadata": { + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref(metav1.ObjectMeta{}.OpenAPIModelName()), + }, + }, + "spec": { + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.ClusterRoleTemplateSpec"), + }, + }, + "status": { + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.ClusterRoleTemplateStatus"), }, }, }, }, }, + Dependencies: []string{ + "github.com/devsy-org/api/pkg/apis/management/v1.ClusterRoleTemplateSpec", "github.com/devsy-org/api/pkg/apis/management/v1.ClusterRoleTemplateStatus", metav1.ObjectMeta{}.OpenAPIModelName()}, } } -func schema_pkg_apis_management_v1_AgentAuditConfig(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_ClusterRoleTemplateList(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ Type: []string{"object"}, Properties: map[string]spec.Schema{ - "enabled": { + "kind": { SchemaProps: spec.SchemaProps{ - Description: "If audit is enabled and incoming api requests will be logged based on the supplied policy.", - Type: []string{"boolean"}, + Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + Type: []string{"string"}, Format: "", }, }, - "disableAgentSyncBack": { + "apiVersion": { SchemaProps: spec.SchemaProps{ - Description: "If true, the agent will not send back any audit logs to Devsy itself.", - Type: []string{"boolean"}, + Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + Type: []string{"string"}, Format: "", }, }, - "level": { + "metadata": { SchemaProps: spec.SchemaProps{ - Description: "Level is an optional log level for audit logs. Cannot be used together with policy", - Type: []string{"integer"}, - Format: "int32", + Default: map[string]interface{}{}, + Ref: ref(metav1.ListMeta{}.OpenAPIModelName()), }, }, - "policy": { + "items": { SchemaProps: spec.SchemaProps{ - Description: "The audit policy to use and log requests. By default devsy will not log anything", - Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.AuditPolicy"), + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.ClusterRoleTemplate"), + }, + }, + }, }, }, - "path": { + }, + Required: []string{"items"}, + }, + }, + Dependencies: []string{ + "github.com/devsy-org/api/pkg/apis/management/v1.ClusterRoleTemplate", metav1.ListMeta{}.OpenAPIModelName()}, + } +} + +func schema_pkg_apis_management_v1_ClusterRoleTemplateSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "ClusterRoleTemplateSpec holds the specification.", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "displayName": { SchemaProps: spec.SchemaProps{ - Description: "The path where to save the audit log files. This is required if audit is enabled. Backup log files will be retained in the same directory.", + Description: "DisplayName is the name that should be displayed in the UI", Type: []string{"string"}, Format: "", }, }, - "maxAge": { + "description": { SchemaProps: spec.SchemaProps{ - Description: "MaxAge is the maximum number of days to retain old log files based on the timestamp encoded in their filename. Note that a day is defined as 24 hours and may not exactly correspond to calendar days due to daylight savings, leap seconds, etc. The default is not to remove old log files based on age.", - Type: []string{"integer"}, - Format: "int32", + Description: "Description describes a cluster role template object", + Type: []string{"string"}, + Format: "", }, }, - "maxBackups": { + "owner": { SchemaProps: spec.SchemaProps{ - Description: "MaxBackups is the maximum number of old log files to retain. The default is to retain all old log files (though MaxAge may still cause them to get deleted.)", - Type: []string{"integer"}, - Format: "int32", + Description: "Owner holds the owner of this object", + Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.UserOrTeam"), }, }, - "maxSize": { + "clusters": { SchemaProps: spec.SchemaProps{ - Description: "MaxSize is the maximum size in megabytes of the log file before it gets rotated. It defaults to 100 megabytes.", - Type: []string{"integer"}, - Format: "int32", + Description: "Clusters are the clusters this template should be applied on.", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + }, }, }, - "compress": { + "management": { SchemaProps: spec.SchemaProps{ - Description: "Compress determines if the rotated log files should be compressed using gzip. The default is not to perform compression.", + Description: "Management defines if this cluster role should be created in the management instance.", Type: []string{"boolean"}, Format: "", }, }, + "access": { + SchemaProps: spec.SchemaProps{ + Description: "Access holds the access rights for users and teams", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.Access"), + }, + }, + }, + }, + }, + "clusterRoleTemplate": { + SchemaProps: spec.SchemaProps{ + Description: "ClusterRoleTemplate holds the cluster role template", + Default: map[string]interface{}{}, + Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.ClusterRoleTemplateTemplate"), + }, + }, + "localClusterRoleTemplate": { + SchemaProps: spec.SchemaProps{ + Description: "DEPRECATED: Use ClusterRoleTemplate instead LocalClusterRoleTemplate holds the cluster role template", + Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.LocalClusterRoleTemplate"), + }, + }, }, }, }, Dependencies: []string{ - "github.com/devsy-org/api/pkg/apis/management/v1.AuditPolicy"}, + "github.com/devsy-org/api/pkg/apis/storage/v1.Access", "github.com/devsy-org/api/pkg/apis/storage/v1.ClusterRoleTemplateTemplate", "github.com/devsy-org/api/pkg/apis/storage/v1.LocalClusterRoleTemplate", "github.com/devsy-org/api/pkg/apis/storage/v1.UserOrTeam"}, } } -func schema_pkg_apis_management_v1_AgentAuditEvent(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_ClusterRoleTemplateStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "AgentAuditEvent holds an event", + Description: "ClusterRoleTemplateStatus holds the status.", Type: []string{"object"}, Properties: map[string]spec.Schema{ - "kind": { + "clusters": { SchemaProps: spec.SchemaProps{ - Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.EntityInfo"), + }, + }, + }, + }, + }, + }, + }, + }, + Dependencies: []string{ + "github.com/devsy-org/api/pkg/apis/storage/v1.EntityInfo"}, + } +} + +func schema_pkg_apis_management_v1_ClusterSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "ClusterSpec holds the specification.", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "displayName": { + SchemaProps: spec.SchemaProps{ + Description: "If specified this name is displayed in the UI instead of the metadata name", Type: []string{"string"}, Format: "", }, }, - "apiVersion": { + "description": { SchemaProps: spec.SchemaProps{ - Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + Description: "Description describes a cluster access object", Type: []string{"string"}, Format: "", }, }, - "metadata": { + "owner": { SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref(metav1.ObjectMeta{}.OpenAPIModelName()), + Description: "Owner holds the owner of this object", + Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.UserOrTeam"), }, }, - "spec": { + "config": { SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.AgentAuditEventSpec"), + Description: "Holds a reference to a secret that holds the kube config to access this cluster", + Default: map[string]interface{}{}, + Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.SecretRef"), }, }, - "status": { + "local": { SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.AgentAuditEventStatus"), + Description: "Local specifies if it is the local cluster that should be connected, when this is specified, config is optional", + Type: []string{"boolean"}, + Format: "", }, }, - }, - }, - }, - Dependencies: []string{ - "github.com/devsy-org/api/pkg/apis/management/v1.AgentAuditEventSpec", "github.com/devsy-org/api/pkg/apis/management/v1.AgentAuditEventStatus", metav1.ObjectMeta{}.OpenAPIModelName()}, - } -} - -func schema_pkg_apis_management_v1_AgentAuditEventList(ref common.ReferenceCallback) common.OpenAPIDefinition { - return common.OpenAPIDefinition{ - Schema: spec.Schema{ - SchemaProps: spec.SchemaProps{ - Type: []string{"object"}, - Properties: map[string]spec.Schema{ - "kind": { + "networkPeer": { SchemaProps: spec.SchemaProps{ - Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", - Type: []string{"string"}, + Description: "NetworkPeer specifies if the cluster is connected via tailscale, when this is specified, config is optional", + Type: []string{"boolean"}, Format: "", }, }, - "apiVersion": { + "managementNamespace": { SchemaProps: spec.SchemaProps{ - Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + Description: "The namespace where the cluster components will be installed in", Type: []string{"string"}, Format: "", }, }, - "metadata": { + "unusable": { SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref(metav1.ListMeta{}.OpenAPIModelName()), + Description: "If unusable is true, no spaces or virtual clusters can be scheduled on this cluster.", + Type: []string{"boolean"}, + Format: "", }, }, - "items": { + "access": { SchemaProps: spec.SchemaProps{ - Type: []string{"array"}, + Description: "Access holds the access rights for users and teams", + Type: []string{"array"}, Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.AgentAuditEvent"), + Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.Access"), }, }, }, }, }, + "metrics": { + SchemaProps: spec.SchemaProps{ + Description: "Metrics holds the cluster's metrics backend configuration", + Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.Metrics"), + }, + }, + "opencost": { + SchemaProps: spec.SchemaProps{ + Description: "OpenCost holds the cluster's OpenCost backend configuration", + Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.OpenCost"), + }, + }, }, - Required: []string{"items"}, }, }, Dependencies: []string{ - "github.com/devsy-org/api/pkg/apis/management/v1.AgentAuditEvent", metav1.ListMeta{}.OpenAPIModelName()}, + "github.com/devsy-org/api/pkg/apis/storage/v1.Access", "github.com/devsy-org/api/pkg/apis/storage/v1.Metrics", "github.com/devsy-org/api/pkg/apis/storage/v1.OpenCost", "github.com/devsy-org/api/pkg/apis/storage/v1.SecretRef", "github.com/devsy-org/api/pkg/apis/storage/v1.UserOrTeam"}, } } -func schema_pkg_apis_management_v1_AgentAuditEventSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_ClusterStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "AgentAuditEventSpec holds the specification", + Description: "ClusterStatus holds the status.", Type: []string{"object"}, Properties: map[string]spec.Schema{ - "events": { + "phase": { SchemaProps: spec.SchemaProps{ - Description: "Events are the events the agent has recorded", + Type: []string{"string"}, + Format: "", + }, + }, + "reason": { + SchemaProps: spec.SchemaProps{ + Type: []string{"string"}, + Format: "", + }, + }, + "message": { + SchemaProps: spec.SchemaProps{ + Type: []string{"string"}, + Format: "", + }, + }, + "conditions": { + SchemaProps: spec.SchemaProps{ + Description: "Conditions holds several conditions the cluster might be in", Type: []string{"array"}, Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ - Ref: ref("github.com/devsy-org/api/pkg/apis/audit/v1.Event"), + Default: map[string]interface{}{}, + Ref: ref("github.com/devsy-org/agentapi/pkg/apis/devsy/storage/v1.Condition"), }, }, }, }, }, - }, - }, - }, - Dependencies: []string{ - "github.com/devsy-org/api/pkg/apis/audit/v1.Event"}, - } -} - -func schema_pkg_apis_management_v1_AgentAuditEventStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { - return common.OpenAPIDefinition{ - Schema: spec.Schema{ - SchemaProps: spec.SchemaProps{ - Description: "AgentAuditEventStatus holds the status", - Type: []string{"object"}, - }, - }, - } -} - -func schema_pkg_apis_management_v1_AgentCostControlConfig(ref common.ReferenceCallback) common.OpenAPIDefinition { - return common.OpenAPIDefinition{ - Schema: spec.Schema{ - SchemaProps: spec.SchemaProps{ - Type: []string{"object"}, - Properties: map[string]spec.Schema{ - "enabled": { + "online": { SchemaProps: spec.SchemaProps{ - Description: "Enabled specifies whether the ROI dashboard should be available in the UI, and if the metrics infrastructure that provides dashboard data is deployed", + Description: "Online is whether the cluster is currently connected to the coordination server.", Type: []string{"boolean"}, Format: "", }, }, - "metrics": { - SchemaProps: spec.SchemaProps{ - Description: "Metrics are settings applied to metric infrastructure in each connected cluster. These can be overridden in individual clusters by modifying the Cluster's spec", - Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.Metrics"), - }, - }, - "opencost": { - SchemaProps: spec.SchemaProps{ - Description: "OpenCost are settings applied to OpenCost deployments in each connected cluster. These can be overridden in individual clusters by modifying the Cluster's spec", - Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.OpenCost"), - }, - }, }, }, }, Dependencies: []string{ - "github.com/devsy-org/api/pkg/apis/storage/v1.Metrics", "github.com/devsy-org/api/pkg/apis/storage/v1.OpenCost"}, + "github.com/devsy-org/agentapi/pkg/apis/devsy/storage/v1.Condition"}, } } -func schema_pkg_apis_management_v1_Announcement(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_Config(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "Announcement holds the announcement information", + Description: "Config holds the devsy configuration.", Type: []string{"object"}, Properties: map[string]spec.Schema{ "kind": { @@ -5046,24 +5249,24 @@ func schema_pkg_apis_management_v1_Announcement(ref common.ReferenceCallback) co "spec": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.AnnouncementSpec"), + Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.ConfigSpec"), }, }, "status": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.AnnouncementStatus"), + Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.ConfigStatus"), }, }, }, }, }, Dependencies: []string{ - "github.com/devsy-org/api/pkg/apis/management/v1.AnnouncementSpec", "github.com/devsy-org/api/pkg/apis/management/v1.AnnouncementStatus", metav1.ObjectMeta{}.OpenAPIModelName()}, + "github.com/devsy-org/api/pkg/apis/management/v1.ConfigSpec", "github.com/devsy-org/api/pkg/apis/management/v1.ConfigStatus", metav1.ObjectMeta{}.OpenAPIModelName()}, } } -func schema_pkg_apis_management_v1_AnnouncementList(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_ConfigList(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ @@ -5096,7 +5299,7 @@ func schema_pkg_apis_management_v1_AnnouncementList(ref common.ReferenceCallback Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.Announcement"), + Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.Config"), }, }, }, @@ -5107,1481 +5310,1462 @@ func schema_pkg_apis_management_v1_AnnouncementList(ref common.ReferenceCallback }, }, Dependencies: []string{ - "github.com/devsy-org/api/pkg/apis/management/v1.Announcement", metav1.ListMeta{}.OpenAPIModelName()}, - } -} - -func schema_pkg_apis_management_v1_AnnouncementSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { - return common.OpenAPIDefinition{ - Schema: spec.Schema{ - SchemaProps: spec.SchemaProps{ - Type: []string{"object"}, - }, - }, + "github.com/devsy-org/api/pkg/apis/management/v1.Config", metav1.ListMeta{}.OpenAPIModelName()}, } } -func schema_pkg_apis_management_v1_AnnouncementStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_ConfigSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Type: []string{"object"}, + Description: "ConfigSpec holds the specification.", + Type: []string{"object"}, Properties: map[string]spec.Schema{ - "announcement": { + "raw": { SchemaProps: spec.SchemaProps{ - Description: "Announcement is the html announcement that should be displayed in the frontend", - Default: map[string]interface{}{}, - Ref: ref(licenseapi.Announcement{}.OpenAPIModelName()), + Description: "Raw holds the raw config.", + Type: []string{"string"}, + Format: "byte", }, }, }, }, }, - Dependencies: []string{ - licenseapi.Announcement{}.OpenAPIModelName()}, } } -func schema_pkg_apis_management_v1_App(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_ConfigStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "App holds the information", + Description: "ConfigStatus holds the status, which is the parsed raw config", Type: []string{"object"}, Properties: map[string]spec.Schema{ - "kind": { + "auth": { SchemaProps: spec.SchemaProps{ - Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + Description: "Authentication holds the information for authentication", + Default: map[string]interface{}{}, + Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.Authentication"), + }, + }, + "oidc": { + SchemaProps: spec.SchemaProps{ + Description: "Deprecated: Configure the OIDC clients using either the OIDC Client UI or a secret. By default, Devsy Platform as an OIDC Provider is enabled but does not function without OIDC clients.", + Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.OIDC"), + }, + }, + "apps": { + SchemaProps: spec.SchemaProps{ + Description: "Apps holds configuration around apps", + Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.Apps"), + }, + }, + "audit": { + SchemaProps: spec.SchemaProps{ + Description: "Audit holds audit configuration", + Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.Audit"), + }, + }, + "loftHost": { + SchemaProps: spec.SchemaProps{ + Description: "DevsyHost holds the domain where the devsy instance is hosted. This should not include https or http. E.g. devsy.my-domain.com", Type: []string{"string"}, Format: "", }, }, - "apiVersion": { + "projectNamespacePrefix": { SchemaProps: spec.SchemaProps{ - Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + Description: "ProjectNamespacePrefix holds the prefix for devsy project namespaces. Omitted defaults to \"p-\"", Type: []string{"string"}, Format: "", }, }, - "metadata": { + "devPodSubDomain": { SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref(metav1.ObjectMeta{}.OpenAPIModelName()), + Description: "DevsySubDomain holds a subdomain in the following form *.workspace.my-domain.com", + Type: []string{"string"}, + Format: "", }, }, - "spec": { + "uiSettings": { SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.AppSpec"), + Description: "UISettings holds the settings for modifying the Devsy user interface", + Ref: ref("github.com/devsy-org/api/pkg/apis/ui/v1.UISettingsConfig"), }, }, - "status": { + "vault": { SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.AppStatus"), + Description: "VaultIntegration holds the vault integration configuration", + Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.VaultIntegrationSpec"), }, }, - }, - }, - }, - Dependencies: []string{ - "github.com/devsy-org/api/pkg/apis/management/v1.AppSpec", "github.com/devsy-org/api/pkg/apis/management/v1.AppStatus", metav1.ObjectMeta{}.OpenAPIModelName()}, - } -} - -func schema_pkg_apis_management_v1_AppCredentials(ref common.ReferenceCallback) common.OpenAPIDefinition { - return common.OpenAPIDefinition{ - Schema: spec.Schema{ - SchemaProps: spec.SchemaProps{ - Type: []string{"object"}, - Properties: map[string]spec.Schema{ - "kind": { + "disableConfigEndpoint": { SchemaProps: spec.SchemaProps{ - Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", - Type: []string{"string"}, + Description: "DisableDevsyConfigEndpoint will disable setting config via the UI and config.management.devsy.sh endpoint", + Type: []string{"boolean"}, Format: "", }, }, - "apiVersion": { + "authenticateVersionEndpoint": { SchemaProps: spec.SchemaProps{ - Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", - Type: []string{"string"}, + Description: "AuthenticateVersionEndpoint will force authentication for the '/version' endpoint. Will only work with vCluster v0.27 & later", + Type: []string{"boolean"}, Format: "", }, }, - "metadata": { + "cloud": { SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref(metav1.ObjectMeta{}.OpenAPIModelName()), + Description: "Cloud holds the settings to be used exclusively in vCluster Cloud based environments and deployments.", + Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.Cloud"), }, }, - "projectSecretRefs": { + "costControl": { SchemaProps: spec.SchemaProps{ - Description: "ProjectSecretRefs holds the resolved secret values for the project secret refs.", - Type: []string{"object"}, - AdditionalProperties: &spec.SchemaOrBool{ - Allows: true, - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: "", - Type: []string{"string"}, - Format: "", - }, - }, - }, + Description: "CostControl holds the settings related to the Cost Control ROI dashboard and its metrics gathering infrastructure", + Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.CostControl"), + }, + }, + "platformDB": { + SchemaProps: spec.SchemaProps{ + Description: "PlatformDB holds the settings related to the postgres database that platform uses to store data", + Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.PlatformDB"), + }, + }, + "imageBuilder": { + SchemaProps: spec.SchemaProps{ + Description: "ImageBuilder holds the settings related to the image builder", + Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.ImageBuilder"), }, }, }, }, }, Dependencies: []string{ - metav1.ObjectMeta{}.OpenAPIModelName()}, + "github.com/devsy-org/api/pkg/apis/management/v1.Apps", "github.com/devsy-org/api/pkg/apis/management/v1.Audit", "github.com/devsy-org/api/pkg/apis/management/v1.Authentication", "github.com/devsy-org/api/pkg/apis/management/v1.Cloud", "github.com/devsy-org/api/pkg/apis/management/v1.CostControl", "github.com/devsy-org/api/pkg/apis/management/v1.ImageBuilder", "github.com/devsy-org/api/pkg/apis/management/v1.OIDC", "github.com/devsy-org/api/pkg/apis/management/v1.PlatformDB", "github.com/devsy-org/api/pkg/apis/storage/v1.VaultIntegrationSpec", "github.com/devsy-org/api/pkg/apis/ui/v1.UISettingsConfig"}, } } -func schema_pkg_apis_management_v1_AppCredentialsList(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_Connector(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ Type: []string{"object"}, Properties: map[string]spec.Schema{ - "kind": { + "oidc": { SchemaProps: spec.SchemaProps{ - Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", - Type: []string{"string"}, - Format: "", + Description: "OIDC holds oidc authentication configuration", + Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.AuthenticationOIDC"), }, }, - "apiVersion": { + "github": { SchemaProps: spec.SchemaProps{ - Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", - Type: []string{"string"}, - Format: "", + Description: "Github holds github authentication configuration", + Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.AuthenticationGithub"), }, }, - "metadata": { + "gitlab": { SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref(metav1.ListMeta{}.OpenAPIModelName()), + Description: "Gitlab holds gitlab authentication configuration", + Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.AuthenticationGitlab"), }, }, - "items": { + "google": { SchemaProps: spec.SchemaProps{ - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.AppCredentials"), - }, - }, - }, + Description: "Google holds google authentication configuration", + Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.AuthenticationGoogle"), + }, + }, + "microsoft": { + SchemaProps: spec.SchemaProps{ + Description: "Microsoft holds microsoft authentication configuration", + Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.AuthenticationMicrosoft"), + }, + }, + "saml": { + SchemaProps: spec.SchemaProps{ + Description: "SAML holds saml authentication configuration", + Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.AuthenticationSAML"), }, }, }, - Required: []string{"items"}, }, }, Dependencies: []string{ - "github.com/devsy-org/api/pkg/apis/management/v1.AppCredentials", metav1.ListMeta{}.OpenAPIModelName()}, + "github.com/devsy-org/api/pkg/apis/management/v1.AuthenticationGithub", "github.com/devsy-org/api/pkg/apis/management/v1.AuthenticationGitlab", "github.com/devsy-org/api/pkg/apis/management/v1.AuthenticationGoogle", "github.com/devsy-org/api/pkg/apis/management/v1.AuthenticationMicrosoft", "github.com/devsy-org/api/pkg/apis/management/v1.AuthenticationOIDC", "github.com/devsy-org/api/pkg/apis/management/v1.AuthenticationSAML"}, } } -func schema_pkg_apis_management_v1_AppList(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_ConnectorWithName(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ Type: []string{"object"}, Properties: map[string]spec.Schema{ - "kind": { + "id": { SchemaProps: spec.SchemaProps{ - Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + Description: "ID is the id that should show up in the url", Type: []string{"string"}, Format: "", }, }, - "apiVersion": { + "displayName": { SchemaProps: spec.SchemaProps{ - Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + Description: "DisplayName is the name that should show up in the ui", Type: []string{"string"}, Format: "", }, }, - "metadata": { + "oidc": { SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref(metav1.ListMeta{}.OpenAPIModelName()), + Description: "OIDC holds oidc authentication configuration", + Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.AuthenticationOIDC"), }, }, - "items": { + "github": { SchemaProps: spec.SchemaProps{ - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.App"), - }, - }, - }, + Description: "Github holds github authentication configuration", + Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.AuthenticationGithub"), + }, + }, + "gitlab": { + SchemaProps: spec.SchemaProps{ + Description: "Gitlab holds gitlab authentication configuration", + Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.AuthenticationGitlab"), + }, + }, + "google": { + SchemaProps: spec.SchemaProps{ + Description: "Google holds google authentication configuration", + Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.AuthenticationGoogle"), + }, + }, + "microsoft": { + SchemaProps: spec.SchemaProps{ + Description: "Microsoft holds microsoft authentication configuration", + Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.AuthenticationMicrosoft"), + }, + }, + "saml": { + SchemaProps: spec.SchemaProps{ + Description: "SAML holds saml authentication configuration", + Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.AuthenticationSAML"), }, }, }, - Required: []string{"items"}, }, }, Dependencies: []string{ - "github.com/devsy-org/api/pkg/apis/management/v1.App", metav1.ListMeta{}.OpenAPIModelName()}, + "github.com/devsy-org/api/pkg/apis/management/v1.AuthenticationGithub", "github.com/devsy-org/api/pkg/apis/management/v1.AuthenticationGitlab", "github.com/devsy-org/api/pkg/apis/management/v1.AuthenticationGoogle", "github.com/devsy-org/api/pkg/apis/management/v1.AuthenticationMicrosoft", "github.com/devsy-org/api/pkg/apis/management/v1.AuthenticationOIDC", "github.com/devsy-org/api/pkg/apis/management/v1.AuthenticationSAML"}, } } -func schema_pkg_apis_management_v1_AppSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_ConvertVirtualClusterConfig(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "AppSpec holds the specification", + Description: "ConvertVirtualClusterConfig holds config request and response data for virtual clusters", Type: []string{"object"}, Properties: map[string]spec.Schema{ - "displayName": { + "kind": { SchemaProps: spec.SchemaProps{ - Description: "DisplayName is the name that should be displayed in the UI", + Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", Type: []string{"string"}, Format: "", }, }, - "description": { + "apiVersion": { SchemaProps: spec.SchemaProps{ - Description: "Description describes an app", + Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", Type: []string{"string"}, Format: "", }, }, - "owner": { - SchemaProps: spec.SchemaProps{ - Description: "Owner holds the owner of this object", - Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.UserOrTeam"), - }, - }, - "clusters": { - SchemaProps: spec.SchemaProps{ - Description: "Clusters are the clusters this app can be installed in.", - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: "", - Type: []string{"string"}, - Format: "", - }, - }, - }, - }, - }, - "recommendedApp": { + "metadata": { SchemaProps: spec.SchemaProps{ - Description: "RecommendedApp specifies where this app should show up as recommended app", - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: "", - Type: []string{"string"}, - Format: "", - }, - }, - }, + Default: map[string]interface{}{}, + Ref: ref(metav1.ObjectMeta{}.OpenAPIModelName()), }, }, - "defaultNamespace": { + "spec": { SchemaProps: spec.SchemaProps{ - Description: "DefaultNamespace is the default namespace this app should installed in.", - Type: []string{"string"}, - Format: "", + Default: map[string]interface{}{}, + Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.ConvertVirtualClusterConfigSpec"), }, }, - "readme": { + "status": { SchemaProps: spec.SchemaProps{ - Description: "Readme is a longer markdown string that describes the app.", - Type: []string{"string"}, - Format: "", + Default: map[string]interface{}{}, + Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.ConvertVirtualClusterConfigStatus"), }, }, - "icon": { + }, + }, + }, + Dependencies: []string{ + "github.com/devsy-org/api/pkg/apis/management/v1.ConvertVirtualClusterConfigSpec", "github.com/devsy-org/api/pkg/apis/management/v1.ConvertVirtualClusterConfigStatus", metav1.ObjectMeta{}.OpenAPIModelName()}, + } +} + +func schema_pkg_apis_management_v1_ConvertVirtualClusterConfigList(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "kind": { SchemaProps: spec.SchemaProps{ - Description: "Icon holds an URL to the app icon", + Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", Type: []string{"string"}, Format: "", }, }, - "config": { - SchemaProps: spec.SchemaProps{ - Description: "Config is the helm config to use to deploy the helm release", - Default: map[string]interface{}{}, - Ref: ref(v1.HelmReleaseConfig{}.OpenAPIModelName()), - }, - }, - "wait": { - SchemaProps: spec.SchemaProps{ - Description: "Wait determines if Devsy should wait during deploy for the app to become ready", - Type: []string{"boolean"}, - Format: "", - }, - }, - "timeout": { + "apiVersion": { SchemaProps: spec.SchemaProps{ - Description: "Timeout is the time to wait for any individual Kubernetes operation (like Jobs for hooks) (default 5m0s)", + Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", Type: []string{"string"}, Format: "", }, }, - "parameters": { - SchemaProps: spec.SchemaProps{ - Description: "Parameters define additional app parameters that will set helm values", - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.AppParameter"), - }, - }, - }, - }, - }, - "streamContainer": { + "metadata": { SchemaProps: spec.SchemaProps{ - Description: "DEPRECATED: Use config.bash instead StreamContainer can be used to stream a containers logs instead of the helm output.", - Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.StreamContainer"), + Default: map[string]interface{}{}, + Ref: ref(metav1.ListMeta{}.OpenAPIModelName()), }, }, - "versions": { + "items": { SchemaProps: spec.SchemaProps{ - Description: "Versions are different app versions that can be referenced", - Type: []string{"array"}, + Type: []string{"array"}, Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.AppVersion"), + Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.ConvertVirtualClusterConfig"), }, }, }, }, }, - "access": { + }, + Required: []string{"items"}, + }, + }, + Dependencies: []string{ + "github.com/devsy-org/api/pkg/apis/management/v1.ConvertVirtualClusterConfig", metav1.ListMeta{}.OpenAPIModelName()}, + } +} + +func schema_pkg_apis_management_v1_ConvertVirtualClusterConfigSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "ConvertVirtualClusterConfigSpec holds the specification.", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "annotations": { SchemaProps: spec.SchemaProps{ - Description: "Access holds the access rights for users and teams", - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ + Description: "Annotations are annotations on the virtual cluster", + Type: []string{"object"}, + AdditionalProperties: &spec.SchemaOrBool{ + Allows: true, Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.Access"), + Default: "", + Type: []string{"string"}, + Format: "", }, }, }, }, }, - "manifests": { + "distro": { SchemaProps: spec.SchemaProps{ - Description: "DEPRECATED: Use config instead manifest represents kubernetes resources that will be deployed into the target namespace", + Description: "Distro is the distro to be used for the config", Type: []string{"string"}, Format: "", }, }, - "helm": { + "values": { SchemaProps: spec.SchemaProps{ - Description: "DEPRECATED: Use config instead helm defines the configuration for a helm deployment", - Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.HelmConfiguration"), + Description: "Values are the config values for the virtual cluster", + Type: []string{"string"}, + Format: "", }, }, }, }, }, - Dependencies: []string{ - v1.HelmReleaseConfig{}.OpenAPIModelName(), "github.com/devsy-org/api/pkg/apis/storage/v1.Access", "github.com/devsy-org/api/pkg/apis/storage/v1.AppParameter", "github.com/devsy-org/api/pkg/apis/storage/v1.AppVersion", "github.com/devsy-org/api/pkg/apis/storage/v1.HelmConfiguration", "github.com/devsy-org/api/pkg/apis/storage/v1.StreamContainer", "github.com/devsy-org/api/pkg/apis/storage/v1.UserOrTeam"}, } } -func schema_pkg_apis_management_v1_AppStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_ConvertVirtualClusterConfigStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "AppStatus holds the status", + Description: "ConvertVirtualClusterConfigStatus holds the status.", Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "values": { + SchemaProps: spec.SchemaProps{ + Description: "Values are the converted config values for the virtual cluster", + Type: []string{"string"}, + Format: "", + }, + }, + "converted": { + SchemaProps: spec.SchemaProps{ + Description: "Converted signals if the Values have been converted from the old format", + Default: false, + Type: []string{"boolean"}, + Format: "", + }, + }, + }, + Required: []string{"converted"}, }, }, } } -func schema_pkg_apis_management_v1_Apps(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_CostControl(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "Apps holds configuration for apps that should be shown", - Type: []string{"object"}, + Type: []string{"object"}, Properties: map[string]spec.Schema{ - "noDefault": { + "enabled": { SchemaProps: spec.SchemaProps{ - Description: "If this option is true, devsy will not try to parse the default apps", + Description: "Enabled specifies whether the ROI dashboard should be available in the UI, and if the metrics infrastructure that provides dashboard data is deployed", Type: []string{"boolean"}, Format: "", }, }, - "repositories": { + "global": { SchemaProps: spec.SchemaProps{ - Description: "These are additional repositories that are parsed by devsy", - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.HelmChartRepository"), - }, - }, - }, + Description: "Global are settings for globally managed components", + Default: map[string]interface{}{}, + Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.CostControlGlobalConfig"), }, }, - "predefinedApps": { + "cluster": { SchemaProps: spec.SchemaProps{ - Description: "Predefined apps that can be selected in the Spaces > Space menu", - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.PredefinedApp"), - }, - }, - }, + Description: "Cluster are settings for each cluster's managed components. These settings apply to all connected clusters unless overridden by modifying the Cluster's spec", + Default: map[string]interface{}{}, + Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.CostControlClusterConfig"), + }, + }, + "settings": { + SchemaProps: spec.SchemaProps{ + Description: "Settings specify price-related settings that are taken into account for the ROI dashboard calculations.", + Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.CostControlSettings"), }, }, }, }, }, Dependencies: []string{ - "github.com/devsy-org/api/pkg/apis/management/v1.PredefinedApp", "github.com/devsy-org/api/pkg/apis/storage/v1.HelmChartRepository"}, + "github.com/devsy-org/api/pkg/apis/management/v1.CostControlClusterConfig", "github.com/devsy-org/api/pkg/apis/management/v1.CostControlGlobalConfig", "github.com/devsy-org/api/pkg/apis/management/v1.CostControlSettings"}, } } -func schema_pkg_apis_management_v1_AssignedVia(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_CostControlClusterConfig(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ Type: []string{"object"}, Properties: map[string]spec.Schema{ - "namespace": { + "metrics": { SchemaProps: spec.SchemaProps{ - Description: "Namespace of the referenced object", - Type: []string{"string"}, - Format: "", + Description: "Metrics are settings applied to metric infrastructure in each connected cluster. These can be overridden in individual clusters by modifying the Cluster's spec", + Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.Metrics"), }, }, - "name": { + "opencost": { SchemaProps: spec.SchemaProps{ - Description: "Name of the referenced object", - Type: []string{"string"}, - Format: "", + Description: "OpenCost are settings applied to OpenCost deployments in each connected cluster. These can be overridden in individual clusters by modifying the Cluster's spec", + Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.OpenCost"), }, }, - "displayName": { + }, + }, + }, + Dependencies: []string{ + "github.com/devsy-org/api/pkg/apis/storage/v1.Metrics", "github.com/devsy-org/api/pkg/apis/storage/v1.OpenCost"}, + } +} + +func schema_pkg_apis_management_v1_CostControlGPUSettings(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "enabled": { SchemaProps: spec.SchemaProps{ - Description: "DisplayName is the name of the object to display in the UI", - Type: []string{"string"}, + Description: "Enabled specifies whether GPU settings should be available in the UI.", + Type: []string{"boolean"}, Format: "", }, }, - "kind": { + "averageGPUPrice": { SchemaProps: spec.SchemaProps{ - Description: "Kind is the type of resource used to establish the assignment. One of `User`, `Team`, or `ClusterAccess`", - Type: []string{"string"}, - Format: "", + Description: "AvgGPUPrice specifies the average GPU price.", + Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.CostControlResourcePrice"), }, }, - "owner": { + }, + }, + }, + Dependencies: []string{ + "github.com/devsy-org/api/pkg/apis/management/v1.CostControlResourcePrice"}, + } +} + +func schema_pkg_apis_management_v1_CostControlGlobalConfig(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "metrics": { SchemaProps: spec.SchemaProps{ - Description: "Owner indicates if the", - Type: []string{"boolean"}, - Format: "", + Description: "Metrics these settings apply to metric infrastructure used to aggregate metrics across all connected clusters", + Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.Metrics"), }, }, }, }, }, + Dependencies: []string{ + "github.com/devsy-org/api/pkg/apis/storage/v1.Metrics"}, } } -func schema_pkg_apis_management_v1_Audit(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_CostControlResourcePrice(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "Audit holds the audit configuration options for devsy. Changing any options will require a devsy restart to take effect.", - Type: []string{"object"}, + Type: []string{"object"}, Properties: map[string]spec.Schema{ - "enabled": { + "price": { SchemaProps: spec.SchemaProps{ - Description: "If audit is enabled and incoming api requests will be logged based on the supplied policy.", - Type: []string{"boolean"}, + Description: "Price specifies the price.", + Type: []string{"number"}, + Format: "double", + }, + }, + "timePeriod": { + SchemaProps: spec.SchemaProps{ + Description: "TimePeriod specifies the time period for the price.", + Type: []string{"string"}, Format: "", }, }, - "disableAgentSyncBack": { + }, + }, + }, + } +} + +func schema_pkg_apis_management_v1_CostControlSettings(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "priceCurrency": { SchemaProps: spec.SchemaProps{ - Description: "If true, the agent will not send back any audit logs to Devsy itself.", - Type: []string{"boolean"}, + Description: "PriceCurrency specifies the currency.", + Type: []string{"string"}, Format: "", }, }, - "level": { + "averageCPUPricePerNode": { SchemaProps: spec.SchemaProps{ - Description: "Level is an optional log level for audit logs. Cannot be used together with policy", - Type: []string{"integer"}, - Format: "int32", + Description: "AvgCPUPricePerNode specifies the average CPU price per node.", + Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.CostControlResourcePrice"), }, }, - "policy": { + "averageRAMPricePerNode": { SchemaProps: spec.SchemaProps{ - Description: "The audit policy to use and log requests. By default devsy will not log anything", - Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.AuditPolicy"), + Description: "AvgRAMPricePerNode specifies the average RAM price per node.", + Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.CostControlResourcePrice"), }, }, - "dataStoreEndpoint": { + "gpuSettings": { SchemaProps: spec.SchemaProps{ - Description: "DataStoreEndpoint is an endpoint to store events in.", - Type: []string{"string"}, - Format: "", + Description: "GPUSettings specifies GPU related settings.", + Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.CostControlGPUSettings"), }, }, - "dataStoreTTL": { + "controlPlanePricePerCluster": { SchemaProps: spec.SchemaProps{ - Description: "DataStoreMaxAge is the maximum number of hours to retain old log events in the datastore", - Type: []string{"integer"}, - Format: "int32", + Description: "ControlPlanePricePerCluster specifies the price of one physical cluster.", + Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.CostControlResourcePrice"), }, }, - "path": { + }, + }, + }, + Dependencies: []string{ + "github.com/devsy-org/api/pkg/apis/management/v1.CostControlGPUSettings", "github.com/devsy-org/api/pkg/apis/management/v1.CostControlResourcePrice"}, + } +} + +func schema_pkg_apis_management_v1_DatabaseConnector(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "DatabaseConnector represents a connector that can be used to provision and manage a backingstore for a vCluster", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "kind": { SchemaProps: spec.SchemaProps{ - Description: "The path where to save the audit log files. This is required if audit is enabled. Backup log files will be retained in the same directory.", + Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", Type: []string{"string"}, Format: "", }, }, - "maxAge": { + "apiVersion": { SchemaProps: spec.SchemaProps{ - Description: "MaxAge is the maximum number of days to retain old log files based on the timestamp encoded in their filename. Note that a day is defined as 24 hours and may not exactly correspond to calendar days due to daylight savings, leap seconds, etc. The default is not to remove old log files based on age.", - Type: []string{"integer"}, - Format: "int32", + Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + Type: []string{"string"}, + Format: "", }, }, - "maxBackups": { + "metadata": { SchemaProps: spec.SchemaProps{ - Description: "MaxBackups is the maximum number of old log files to retain. The default is to retain all old log files (though MaxAge may still cause them to get deleted.)", - Type: []string{"integer"}, - Format: "int32", + Default: map[string]interface{}{}, + Ref: ref(metav1.ObjectMeta{}.OpenAPIModelName()), }, }, - "maxSize": { + "spec": { SchemaProps: spec.SchemaProps{ - Description: "MaxSize is the maximum size in megabytes of the log file before it gets rotated. It defaults to 100 megabytes.", - Type: []string{"integer"}, - Format: "int32", + Default: map[string]interface{}{}, + Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.DatabaseConnectorSpec"), }, }, - "compress": { + "status": { SchemaProps: spec.SchemaProps{ - Description: "Compress determines if the rotated log files should be compressed using gzip. The default is not to perform compression.", - Type: []string{"boolean"}, - Format: "", + Default: map[string]interface{}{}, + Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.DatabaseConnectorStatus"), }, }, }, }, }, Dependencies: []string{ - "github.com/devsy-org/api/pkg/apis/management/v1.AuditPolicy"}, + "github.com/devsy-org/api/pkg/apis/management/v1.DatabaseConnectorSpec", "github.com/devsy-org/api/pkg/apis/management/v1.DatabaseConnectorStatus", metav1.ObjectMeta{}.OpenAPIModelName()}, } } -func schema_pkg_apis_management_v1_AuditPolicy(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_DatabaseConnectorList(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "AuditPolicy describes the audit policy to use for devsy", - Type: []string{"object"}, + Type: []string{"object"}, Properties: map[string]spec.Schema{ - "rules": { + "kind": { SchemaProps: spec.SchemaProps{ - Description: "Rules specify the audit Level a request should be recorded at. A request may match multiple rules, in which case the FIRST matching rule is used. The default audit level is None, but can be overridden by a catch-all rule at the end of the list. PolicyRules are strictly ordered.", - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.AuditPolicyRule"), - }, - }, - }, + Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + Type: []string{"string"}, + Format: "", }, }, - "omitStages": { + "apiVersion": { SchemaProps: spec.SchemaProps{ - Description: "OmitStages is a list of stages for which no events are created. Note that this can also be specified per rule in which case the union of both are omitted.", - Type: []string{"array"}, + Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + Type: []string{"string"}, + Format: "", + }, + }, + "metadata": { + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref(metav1.ListMeta{}.OpenAPIModelName()), + }, + }, + "items": { + SchemaProps: spec.SchemaProps{ + Type: []string{"array"}, Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ - Default: "", - Type: []string{"string"}, - Format: "", + Default: map[string]interface{}{}, + Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.DatabaseConnector"), }, }, }, }, }, }, + Required: []string{"items"}, }, }, Dependencies: []string{ - "github.com/devsy-org/api/pkg/apis/management/v1.AuditPolicyRule"}, + "github.com/devsy-org/api/pkg/apis/management/v1.DatabaseConnector", metav1.ListMeta{}.OpenAPIModelName()}, } } -func schema_pkg_apis_management_v1_AuditPolicyRule(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_DatabaseConnectorSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "AuditPolicyRule describes a policy for auditing", + Description: "DatabaseConnectorSpec holds the specification.", Type: []string{"object"}, Properties: map[string]spec.Schema{ - "level": { + "type": { SchemaProps: spec.SchemaProps{ - Description: "The Level that requests matching this rule are recorded at.", - Default: "", + Description: "The client id of the client", Type: []string{"string"}, Format: "", }, }, - "users": { + "displayName": { SchemaProps: spec.SchemaProps{ - Description: "The users (by authenticated user name) this rule applies to. An empty list implies every user.", - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: "", - Type: []string{"string"}, - Format: "", - }, - }, - }, + Type: []string{"string"}, + Format: "", }, }, - "userGroups": { + }, + }, + }, + } +} + +func schema_pkg_apis_management_v1_DatabaseConnectorStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "DatabaseConnectorStatus holds the status.", + Type: []string{"object"}, + }, + }, + } +} + +func schema_pkg_apis_management_v1_DevsyEnvironmentTemplate(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "DevsyEnvironmentTemplate holds the DevsyEnvironmentTemplate information", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "kind": { SchemaProps: spec.SchemaProps{ - Description: "The user groups this rule applies to. A user is considered matching if it is a member of any of the UserGroups. An empty list implies every user group.", - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: "", - Type: []string{"string"}, - Format: "", - }, - }, - }, + Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + Type: []string{"string"}, + Format: "", }, }, - "verbs": { + "apiVersion": { SchemaProps: spec.SchemaProps{ - Description: "The verbs that match this rule. An empty list implies every verb.", - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: "", - Type: []string{"string"}, - Format: "", - }, - }, - }, + Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + Type: []string{"string"}, + Format: "", }, }, - "resources": { + "metadata": { SchemaProps: spec.SchemaProps{ - Description: "Resources that this rule matches. An empty list implies all kinds in all API groups.", - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.GroupResources"), - }, - }, - }, + Default: map[string]interface{}{}, + Ref: ref(metav1.ObjectMeta{}.OpenAPIModelName()), }, }, - "namespaces": { + "spec": { SchemaProps: spec.SchemaProps{ - Description: "Namespaces that this rule matches. The empty string \"\" matches non-namespaced resources. An empty list implies every namespace.", - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: "", - Type: []string{"string"}, - Format: "", - }, - }, - }, + Default: map[string]interface{}{}, + Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.DevsyEnvironmentTemplateSpec"), }, }, - "nonResourceURLs": { + "status": { SchemaProps: spec.SchemaProps{ - Description: "NonResourceURLs is a set of URL paths that should be audited. *s are allowed, but only as the full, final step in the path. Examples:\n \"/metrics\" - Log requests for apiserver metrics\n \"/healthz*\" - Log all health checks", - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: "", - Type: []string{"string"}, - Format: "", - }, - }, - }, + Default: map[string]interface{}{}, + Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.DevsyEnvironmentTemplateStatus"), }, }, - "omitStages": { + }, + }, + }, + Dependencies: []string{ + "github.com/devsy-org/api/pkg/apis/management/v1.DevsyEnvironmentTemplateSpec", "github.com/devsy-org/api/pkg/apis/management/v1.DevsyEnvironmentTemplateStatus", metav1.ObjectMeta{}.OpenAPIModelName()}, + } +} + +func schema_pkg_apis_management_v1_DevsyEnvironmentTemplateList(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "kind": { SchemaProps: spec.SchemaProps{ - Description: "OmitStages is a list of stages for which no events are created. Note that this can also be specified policy wide in which case the union of both are omitted. An empty list means no restrictions will apply.", - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: "", - Type: []string{"string"}, - Format: "", - }, - }, - }, + Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + Type: []string{"string"}, + Format: "", }, }, - "requestTargets": { + "apiVersion": { SchemaProps: spec.SchemaProps{ - Description: "RequestTargets is a list of request targets for which events are created. An empty list implies every request.", - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: "", - Type: []string{"string"}, - Format: "", - }, - }, - }, + Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + Type: []string{"string"}, + Format: "", }, }, - "clusters": { + "metadata": { SchemaProps: spec.SchemaProps{ - Description: "Clusters that this rule matches. Only applies to cluster requests. If this is set, no events for non cluster requests will be created. An empty list means no restrictions will apply.", - Type: []string{"array"}, + Default: map[string]interface{}{}, + Ref: ref(metav1.ListMeta{}.OpenAPIModelName()), + }, + }, + "items": { + SchemaProps: spec.SchemaProps{ + Type: []string{"array"}, Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ - Default: "", - Type: []string{"string"}, - Format: "", + Default: map[string]interface{}{}, + Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.DevsyEnvironmentTemplate"), }, }, }, }, }, }, - Required: []string{"level"}, + Required: []string{"items"}, }, }, Dependencies: []string{ - "github.com/devsy-org/api/pkg/apis/management/v1.GroupResources"}, + "github.com/devsy-org/api/pkg/apis/management/v1.DevsyEnvironmentTemplate", metav1.ListMeta{}.OpenAPIModelName()}, } } -func schema_pkg_apis_management_v1_Authentication(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_DevsyEnvironmentTemplateSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "Authentication holds authentication relevant information", + Description: "DevsyEnvironmentTemplateSpec holds the specification.", Type: []string{"object"}, Properties: map[string]spec.Schema{ - "oidc": { - SchemaProps: spec.SchemaProps{ - Description: "OIDC holds oidc authentication configuration", - Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.AuthenticationOIDC"), - }, - }, - "github": { - SchemaProps: spec.SchemaProps{ - Description: "Github holds github authentication configuration", - Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.AuthenticationGithub"), - }, - }, - "gitlab": { - SchemaProps: spec.SchemaProps{ - Description: "Gitlab holds gitlab authentication configuration", - Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.AuthenticationGitlab"), - }, - }, - "google": { + "displayName": { SchemaProps: spec.SchemaProps{ - Description: "Google holds google authentication configuration", - Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.AuthenticationGoogle"), + Description: "DisplayName is the name that should be displayed in the UI", + Type: []string{"string"}, + Format: "", }, }, - "microsoft": { + "description": { SchemaProps: spec.SchemaProps{ - Description: "Microsoft holds microsoft authentication configuration", - Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.AuthenticationMicrosoft"), + Description: "Description describes the environment template", + Type: []string{"string"}, + Format: "", }, }, - "saml": { + "owner": { SchemaProps: spec.SchemaProps{ - Description: "SAML holds saml authentication configuration", - Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.AuthenticationSAML"), + Description: "Owner holds the owner of this object", + Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.UserOrTeam"), }, }, - "rancher": { + "access": { SchemaProps: spec.SchemaProps{ - Description: "Rancher holds the rancher authentication options", - Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.AuthenticationRancher"), + Description: "Access to the Devsy machine instance object itself", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.Access"), + }, + }, + }, }, }, - "password": { + "template": { SchemaProps: spec.SchemaProps{ - Description: "Password holds password authentication relevant information", - Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.AuthenticationPassword"), + Description: "Template is the inline template to use for Devsy environments", + Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.DevsyEnvironmentTemplateDefinition"), }, }, - "connectors": { + "versions": { SchemaProps: spec.SchemaProps{ - Description: "Connectors are optional additional connectors for Devsy.", + Description: "Versions are different versions of the template that can be referenced as well", Type: []string{"array"}, Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.ConnectorWithName"), + Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.DevsyEnvironmentTemplateVersion"), }, }, }, }, }, - "disableTeamCreation": { + }, + }, + }, + Dependencies: []string{ + "github.com/devsy-org/api/pkg/apis/storage/v1.Access", "github.com/devsy-org/api/pkg/apis/storage/v1.DevsyEnvironmentTemplateDefinition", "github.com/devsy-org/api/pkg/apis/storage/v1.DevsyEnvironmentTemplateVersion", "github.com/devsy-org/api/pkg/apis/storage/v1.UserOrTeam"}, + } +} + +func schema_pkg_apis_management_v1_DevsyEnvironmentTemplateStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "DevsyEnvironmentTemplateStatus holds the status.", + Type: []string{"object"}, + }, + }, + } +} + +func schema_pkg_apis_management_v1_DevsyUpgrade(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "DevsyUpgrade holds the upgrade information", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "kind": { SchemaProps: spec.SchemaProps{ - Description: "Prevents from team creation for the new groups associated with the user at the time of logging in through sso, Default behaviour is false, this means that teams will be created for new groups.", - Type: []string{"boolean"}, + Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + Type: []string{"string"}, Format: "", }, }, - "disableUserCreation": { + "apiVersion": { SchemaProps: spec.SchemaProps{ - Description: "DisableUserCreation prevents the SSO connectors from creating a new user on a users initial signin through sso. Default behaviour is false, this means that a new user object will be created once a user without a Kubernetes user object logs in.", - Type: []string{"boolean"}, + Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + Type: []string{"string"}, Format: "", }, }, - "accessKeyMaxTTLSeconds": { - SchemaProps: spec.SchemaProps{ - Description: "AccessKeyMaxTTLSeconds is the global maximum lifespan of an accesskey in seconds. Leaving it 0 or unspecified will disable it. Specifying 2592000 will mean all keys have a Time-To-Live of 30 days.", - Type: []string{"integer"}, - Format: "int64", - }, - }, - "loginAccessKeyTTLSeconds": { + "metadata": { SchemaProps: spec.SchemaProps{ - Description: "LoginAccessKeyTTLSeconds is the time in seconds an access key is kept until it is deleted. Leaving it unspecified will default to 20 days. Setting it to zero will disable the ttl. Specifying 2592000 will mean all keys have a default Time-To-Live of 30 days.", - Type: []string{"integer"}, - Format: "int64", + Default: map[string]interface{}{}, + Ref: ref(metav1.ObjectMeta{}.OpenAPIModelName()), }, }, - "customHttpHeaders": { + "spec": { SchemaProps: spec.SchemaProps{ - Description: "CustomHttpHeaders are additional headers that should be set for the authentication endpoints", - Type: []string{"object"}, - AdditionalProperties: &spec.SchemaOrBool{ - Allows: true, - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: "", - Type: []string{"string"}, - Format: "", - }, - }, - }, + Default: map[string]interface{}{}, + Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.DevsyUpgradeSpec"), }, }, - "groupsFilters": { + "status": { SchemaProps: spec.SchemaProps{ - Description: "GroupsFilters is a regex expression to only save matching sso groups into the user resource", - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: "", - Type: []string{"string"}, - Format: "", - }, - }, - }, + Default: map[string]interface{}{}, + Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.DevsyUpgradeStatus"), }, }, }, }, }, Dependencies: []string{ - "github.com/devsy-org/api/pkg/apis/management/v1.AuthenticationGithub", "github.com/devsy-org/api/pkg/apis/management/v1.AuthenticationGitlab", "github.com/devsy-org/api/pkg/apis/management/v1.AuthenticationGoogle", "github.com/devsy-org/api/pkg/apis/management/v1.AuthenticationMicrosoft", "github.com/devsy-org/api/pkg/apis/management/v1.AuthenticationOIDC", "github.com/devsy-org/api/pkg/apis/management/v1.AuthenticationPassword", "github.com/devsy-org/api/pkg/apis/management/v1.AuthenticationRancher", "github.com/devsy-org/api/pkg/apis/management/v1.AuthenticationSAML", "github.com/devsy-org/api/pkg/apis/management/v1.ConnectorWithName"}, + "github.com/devsy-org/api/pkg/apis/management/v1.DevsyUpgradeSpec", "github.com/devsy-org/api/pkg/apis/management/v1.DevsyUpgradeStatus", metav1.ObjectMeta{}.OpenAPIModelName()}, } } -func schema_pkg_apis_management_v1_AuthenticationGithub(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_DevsyUpgradeList(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ Type: []string{"object"}, Properties: map[string]spec.Schema{ - "clientId": { + "kind": { SchemaProps: spec.SchemaProps{ - Description: "ClientID holds the github client id", + Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", Type: []string{"string"}, Format: "", }, }, - "clientSecret": { + "apiVersion": { SchemaProps: spec.SchemaProps{ - Description: "ClientID holds the github client secret", - Default: "", + Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", Type: []string{"string"}, Format: "", }, }, - "redirectURI": { + "metadata": { SchemaProps: spec.SchemaProps{ - Description: "RedirectURI holds the redirect URI. Should be https://devsy.domain.tld/auth/github/callback", - Default: "", - Type: []string{"string"}, - Format: "", + Default: map[string]interface{}{}, + Ref: ref(metav1.ListMeta{}.OpenAPIModelName()), }, }, - "orgs": { + "items": { SchemaProps: spec.SchemaProps{ - Description: "Devsy queries the following organizations for group information. Group claims are formatted as \"(org):(team)\". For example if a user is part of the \"engineering\" team of the \"coreos\" org, the group claim would include \"coreos:engineering\".\n\nIf orgs are specified in the config then user MUST be a member of at least one of the specified orgs to authenticate with devsy.", - Type: []string{"array"}, + Type: []string{"array"}, Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.AuthenticationGithubOrg"), + Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.DevsyUpgrade"), }, }, }, }, }, - "hostName": { + }, + Required: []string{"items"}, + }, + }, + Dependencies: []string{ + "github.com/devsy-org/api/pkg/apis/management/v1.DevsyUpgrade", metav1.ListMeta{}.OpenAPIModelName()}, + } +} + +func schema_pkg_apis_management_v1_DevsyUpgradeSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "namespace": { SchemaProps: spec.SchemaProps{ - Description: "Required ONLY for GitHub Enterprise. This is the Hostname of the GitHub Enterprise account listed on the management console. Ensure this domain is routable on your network.", + Description: "If specified, updated the release in the given namespace", Type: []string{"string"}, Format: "", }, }, - "rootCA": { + "release": { SchemaProps: spec.SchemaProps{ - Description: "ONLY for GitHub Enterprise. Optional field. Used to support self-signed or untrusted CA root certificates.", + Description: "If specified, uses this as release name", Type: []string{"string"}, Format: "", }, }, + "version": { + SchemaProps: spec.SchemaProps{ + Type: []string{"string"}, + Format: "", + }, + }, }, - Required: []string{"clientSecret", "redirectURI"}, }, }, - Dependencies: []string{ - "github.com/devsy-org/api/pkg/apis/management/v1.AuthenticationGithubOrg"}, } } -func schema_pkg_apis_management_v1_AuthenticationGithubOrg(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_DevsyUpgradeStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "AuthenticationGithubOrg holds org-team filters, in which teams are optional.", + Type: []string{"object"}, + }, + }, + } +} + +func schema_pkg_apis_management_v1_DevsyWorkspaceInstance(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "DevsyWorkspaceInstance holds the DevsyWorkspaceInstance information", Type: []string{"object"}, Properties: map[string]spec.Schema{ - "name": { + "kind": { SchemaProps: spec.SchemaProps{ - Description: "Organization name in github (not slug, full name). Only users in this github organization can authenticate.", - Default: "", + Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", Type: []string{"string"}, Format: "", }, }, - "teams": { + "apiVersion": { SchemaProps: spec.SchemaProps{ - Description: "Names of teams in a github organization. A user will be able to authenticate if they are members of at least one of these teams. Users in the organization can authenticate if this field is omitted from the config file.", - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: "", - Type: []string{"string"}, - Format: "", - }, - }, - }, + Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + Type: []string{"string"}, + Format: "", + }, + }, + "metadata": { + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref(metav1.ObjectMeta{}.OpenAPIModelName()), + }, + }, + "spec": { + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.DevsyWorkspaceInstanceSpec"), + }, + }, + "status": { + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.DevsyWorkspaceInstanceStatus"), }, }, }, }, }, + Dependencies: []string{ + "github.com/devsy-org/api/pkg/apis/management/v1.DevsyWorkspaceInstanceSpec", "github.com/devsy-org/api/pkg/apis/management/v1.DevsyWorkspaceInstanceStatus", metav1.ObjectMeta{}.OpenAPIModelName()}, } } -func schema_pkg_apis_management_v1_AuthenticationGitlab(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_DevsyWorkspaceInstanceCancel(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ Type: []string{"object"}, Properties: map[string]spec.Schema{ - "clientId": { + "kind": { SchemaProps: spec.SchemaProps{ - Description: "Gitlab client id", - Default: "", + Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", Type: []string{"string"}, Format: "", }, }, - "clientSecret": { + "apiVersion": { SchemaProps: spec.SchemaProps{ - Description: "Gitlab client secret", - Default: "", + Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", Type: []string{"string"}, Format: "", }, }, - "redirectURI": { + "metadata": { SchemaProps: spec.SchemaProps{ - Description: "Redirect URI", - Default: "", + Default: map[string]interface{}{}, + Ref: ref(metav1.ObjectMeta{}.OpenAPIModelName()), + }, + }, + "taskId": { + SchemaProps: spec.SchemaProps{ + Description: "TaskID is the id of the task that should get cancelled", Type: []string{"string"}, Format: "", }, }, - "baseURL": { + }, + }, + }, + Dependencies: []string{ + metav1.ObjectMeta{}.OpenAPIModelName()}, + } +} + +func schema_pkg_apis_management_v1_DevsyWorkspaceInstanceCancelList(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "kind": { SchemaProps: spec.SchemaProps{ - Description: "BaseURL is optional, default = https://gitlab.com", + Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", Type: []string{"string"}, Format: "", }, }, - "groups": { + "apiVersion": { SchemaProps: spec.SchemaProps{ - Description: "Optional groups whitelist, communicated through the \"groups\" scope. If `groups` is omitted, all of the user's GitLab groups are returned. If `groups` is provided, this acts as a whitelist - only the user's GitLab groups that are in the configured `groups` below will go into the groups claim. Conversely, if the user is not in any of the configured `groups`, the user will not be authenticated.", - Type: []string{"array"}, + Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + Type: []string{"string"}, + Format: "", + }, + }, + "metadata": { + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref(metav1.ListMeta{}.OpenAPIModelName()), + }, + }, + "items": { + SchemaProps: spec.SchemaProps{ + Type: []string{"array"}, Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ - Default: "", - Type: []string{"string"}, - Format: "", + Default: map[string]interface{}{}, + Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.DevsyWorkspaceInstanceCancel"), }, }, }, }, }, }, - Required: []string{"clientId", "clientSecret", "redirectURI"}, + Required: []string{"items"}, }, }, + Dependencies: []string{ + "github.com/devsy-org/api/pkg/apis/management/v1.DevsyWorkspaceInstanceCancel", metav1.ListMeta{}.OpenAPIModelName()}, } } -func schema_pkg_apis_management_v1_AuthenticationGoogle(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_DevsyWorkspaceInstanceDownload(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ Type: []string{"object"}, Properties: map[string]spec.Schema{ - "clientId": { + "kind": { SchemaProps: spec.SchemaProps{ - Description: "Google client id", - Default: "", + Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", Type: []string{"string"}, Format: "", }, }, - "clientSecret": { + "apiVersion": { SchemaProps: spec.SchemaProps{ - Description: "Google client secret", - Default: "", + Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", Type: []string{"string"}, Format: "", }, }, - "redirectURI": { + "metadata": { SchemaProps: spec.SchemaProps{ - Description: "devsy redirect uri. E.g. https://devsy.my.domain/auth/google/callback", - Default: "", + Default: map[string]interface{}{}, + Ref: ref(metav1.ObjectMeta{}.OpenAPIModelName()), + }, + }, + }, + }, + }, + Dependencies: []string{ + metav1.ObjectMeta{}.OpenAPIModelName()}, + } +} + +func schema_pkg_apis_management_v1_DevsyWorkspaceInstanceDownloadList(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "kind": { + SchemaProps: spec.SchemaProps{ + Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", Type: []string{"string"}, Format: "", }, }, - "scopes": { + "apiVersion": { SchemaProps: spec.SchemaProps{ - Description: "defaults to \"profile\" and \"email\"", - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: "", - Type: []string{"string"}, - Format: "", - }, - }, - }, + Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + Type: []string{"string"}, + Format: "", }, }, - "hostedDomains": { + "metadata": { SchemaProps: spec.SchemaProps{ - Description: "Optional list of whitelisted domains If this field is nonempty, only users from a listed domain will be allowed to log in", - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: "", - Type: []string{"string"}, - Format: "", - }, - }, - }, + Default: map[string]interface{}{}, + Ref: ref(metav1.ListMeta{}.OpenAPIModelName()), }, }, - "groups": { + "items": { SchemaProps: spec.SchemaProps{ - Description: "Optional list of whitelisted groups If this field is nonempty, only users from a listed group will be allowed to log in", - Type: []string{"array"}, + Type: []string{"array"}, Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ - Default: "", - Type: []string{"string"}, - Format: "", + Default: map[string]interface{}{}, + Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.DevsyWorkspaceInstanceDownload"), }, }, }, }, }, - "serviceAccountFilePath": { + }, + Required: []string{"items"}, + }, + }, + Dependencies: []string{ + "github.com/devsy-org/api/pkg/apis/management/v1.DevsyWorkspaceInstanceDownload", metav1.ListMeta{}.OpenAPIModelName()}, + } +} + +func schema_pkg_apis_management_v1_DevsyWorkspaceInstanceDownloadOptions(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "kind": { SchemaProps: spec.SchemaProps{ - Description: "Optional path to service account json If nonempty, and groups claim is made, will use authentication from file to check groups with the admin directory api", + Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", Type: []string{"string"}, Format: "", }, }, - "adminEmail": { + "apiVersion": { SchemaProps: spec.SchemaProps{ - Description: "Required if ServiceAccountFilePath The email of a GSuite super user which the service account will impersonate when listing groups", + Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + Type: []string{"string"}, + Format: "", + }, + }, + "path": { + SchemaProps: spec.SchemaProps{ + Description: "Path is the path to download", Type: []string{"string"}, Format: "", }, }, }, - Required: []string{"clientId", "clientSecret", "redirectURI"}, }, }, } } -func schema_pkg_apis_management_v1_AuthenticationMicrosoft(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_DevsyWorkspaceInstanceList(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ Type: []string{"object"}, Properties: map[string]spec.Schema{ - "clientId": { - SchemaProps: spec.SchemaProps{ - Description: "Microsoft client id", - Default: "", - Type: []string{"string"}, - Format: "", - }, - }, - "clientSecret": { + "kind": { SchemaProps: spec.SchemaProps{ - Description: "Microsoft client secret", - Default: "", + Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", Type: []string{"string"}, Format: "", }, }, - "redirectURI": { + "apiVersion": { SchemaProps: spec.SchemaProps{ - Description: "devsy redirect uri. Usually https://devsy.my.domain/auth/microsoft/callback", - Default: "", + Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", Type: []string{"string"}, Format: "", }, }, - "tenant": { + "metadata": { SchemaProps: spec.SchemaProps{ - Description: "tenant configuration parameter controls what kinds of accounts may be authenticated in devsy. By default, all types of Microsoft accounts (consumers and organizations) can authenticate in devsy via Microsoft. To change this, set the tenant parameter to one of the following:\n\ncommon - both personal and business/school accounts can authenticate in devsy via Microsoft (default) consumers - only personal accounts can authenticate in devsy organizations - only business/school accounts can authenticate in devsy tenant uuid or tenant name - only accounts belonging to specific tenant identified by either tenant uuid or tenant name can authenticate in devsy", - Type: []string{"string"}, - Format: "", + Default: map[string]interface{}{}, + Ref: ref(metav1.ListMeta{}.OpenAPIModelName()), }, }, - "groups": { + "items": { SchemaProps: spec.SchemaProps{ - Description: "It is possible to require a user to be a member of a particular group in order to be successfully authenticated in devsy.", - Type: []string{"array"}, + Type: []string{"array"}, Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ - Default: "", - Type: []string{"string"}, - Format: "", + Default: map[string]interface{}{}, + Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.DevsyWorkspaceInstance"), }, }, }, }, }, - "onlySecurityGroups": { - SchemaProps: spec.SchemaProps{ - Description: "configuration option restricts the list to include only security groups. By default all groups (security, Office 365, mailing lists) are included.", - Type: []string{"boolean"}, - Format: "", - }, - }, - "useGroupsAsWhitelist": { - SchemaProps: spec.SchemaProps{ - Description: "Restrict the groups claims to include only the user’s groups that are in the configured groups", - Type: []string{"boolean"}, - Format: "", - }, - }, }, - Required: []string{"clientId", "clientSecret", "redirectURI"}, + Required: []string{"items"}, }, }, + Dependencies: []string{ + "github.com/devsy-org/api/pkg/apis/management/v1.DevsyWorkspaceInstance", metav1.ListMeta{}.OpenAPIModelName()}, } } -func schema_pkg_apis_management_v1_AuthenticationOIDC(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_DevsyWorkspaceInstanceLog(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ Type: []string{"object"}, Properties: map[string]spec.Schema{ - "issuerUrl": { - SchemaProps: spec.SchemaProps{ - Description: "IssuerURL is the URL the provider signs ID Tokens as. This will be the \"iss\" field of all tokens produced by the provider and is used for configuration discovery.\n\nThe URL is usually the provider's URL without a path, for example \"https://accounts.google.com\" or \"https://login.salesforce.com\".\n\nThe provider must implement configuration discovery. See: https://openid.net/specs/openid-connect-discovery-1_0.html#ProviderConfig", - Type: []string{"string"}, - Format: "", - }, - }, - "clientId": { - SchemaProps: spec.SchemaProps{ - Description: "ClientID the JWT must be issued for, the \"sub\" field. This plugin only trusts a single client to ensure the plugin can be used with public providers.\n\nThe plugin supports the \"authorized party\" OpenID Connect claim, which allows specialized providers to issue tokens to a client for a different client. See: https://openid.net/specs/openid-connect-core-1_0.html#IDToken", - Type: []string{"string"}, - Format: "", - }, - }, - "clientSecret": { - SchemaProps: spec.SchemaProps{ - Description: "ClientSecret to issue tokens from the OIDC provider", - Type: []string{"string"}, - Format: "", - }, - }, - "redirectURI": { - SchemaProps: spec.SchemaProps{ - Description: "devsy redirect uri. E.g. https://devsy.my.domain/auth/oidc/callback", - Type: []string{"string"}, - Format: "", - }, - }, - "postLogoutRedirectURI": { - SchemaProps: spec.SchemaProps{ - Description: "Devsy URI to be redirected to after successful logout by OIDC Provider", - Type: []string{"string"}, - Format: "", - }, - }, - "caFile": { - SchemaProps: spec.SchemaProps{ - Description: "Path to a PEM encoded root certificate of the provider. Optional", - Type: []string{"string"}, - Format: "", - }, - }, - "insecureCa": { - SchemaProps: spec.SchemaProps{ - Description: "Specify whether to communicate without validating SSL certificates", - Type: []string{"boolean"}, - Format: "", - }, - }, - "preferredUsername": { - SchemaProps: spec.SchemaProps{ - Description: "Configurable key which contains the preferred username claims", - Type: []string{"string"}, - Format: "", - }, - }, - "loftUsernameClaim": { - SchemaProps: spec.SchemaProps{ - Description: "LoftUsernameClaim is the JWT field to use as the user's username.", - Type: []string{"string"}, - Format: "", - }, - }, - "usernameClaim": { + "kind": { SchemaProps: spec.SchemaProps{ - Description: "UsernameClaim is the JWT field to use as the user's id.", + Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", Type: []string{"string"}, Format: "", }, }, - "emailClaim": { + "apiVersion": { SchemaProps: spec.SchemaProps{ - Description: "EmailClaim is the JWT field to use as the user's email.", + Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", Type: []string{"string"}, Format: "", }, }, - "allowedExtraClaims": { + "metadata": { SchemaProps: spec.SchemaProps{ - Description: "AllowedExtraClaims are claims of interest that are not part of User by default but may be provided by the OIDC provider.", - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: "", - Type: []string{"string"}, - Format: "", - }, - }, - }, + Default: map[string]interface{}{}, + Ref: ref(metav1.ObjectMeta{}.OpenAPIModelName()), }, }, - "usernamePrefix": { + }, + }, + }, + Dependencies: []string{ + metav1.ObjectMeta{}.OpenAPIModelName()}, + } +} + +func schema_pkg_apis_management_v1_DevsyWorkspaceInstanceLogList(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "kind": { SchemaProps: spec.SchemaProps{ - Description: "UsernamePrefix, if specified, causes claims mapping to username to be prefix with the provided value. A value \"oidc:\" would result in usernames like \"oidc:john\".", + Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", Type: []string{"string"}, Format: "", }, }, - "groupsClaim": { + "apiVersion": { SchemaProps: spec.SchemaProps{ - Description: "GroupsClaim, if specified, causes the OIDCAuthenticator to try to populate the user's groups with an ID Token field. If the GroupsClaim field is present in an ID Token the value must be a string or list of strings.", + Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", Type: []string{"string"}, Format: "", }, }, - "groups": { + "metadata": { SchemaProps: spec.SchemaProps{ - Description: "If required groups is non empty, access is denied if the user is not part of at least one of the specified groups.", - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: "", - Type: []string{"string"}, - Format: "", - }, - }, - }, + Default: map[string]interface{}{}, + Ref: ref(metav1.ListMeta{}.OpenAPIModelName()), }, }, - "scopes": { + "items": { SchemaProps: spec.SchemaProps{ - Description: "Scopes that should be sent to the server. If empty, defaults to \"email\" and \"profile\".", - Type: []string{"array"}, + Type: []string{"array"}, Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ - Default: "", - Type: []string{"string"}, - Format: "", + Default: map[string]interface{}{}, + Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.DevsyWorkspaceInstanceLog"), }, }, }, }, }, - "getUserInfo": { - SchemaProps: spec.SchemaProps{ - Description: "GetUserInfo, if specified, tells the OIDCAuthenticator to try to populate the user's information from the UserInfo.", - Type: []string{"boolean"}, - Format: "", - }, - }, - "groupsPrefix": { - SchemaProps: spec.SchemaProps{ - Description: "GroupsPrefix, if specified, causes claims mapping to group names to be prefixed with the value. A value \"oidc:\" would result in groups like \"oidc:engineering\" and \"oidc:marketing\".", - Type: []string{"string"}, - Format: "", - }, - }, - "type": { - SchemaProps: spec.SchemaProps{ - Description: "Type of the OIDC to show in the UI. Only for displaying purposes", - Type: []string{"string"}, - Format: "", - }, - }, }, + Required: []string{"items"}, }, }, + Dependencies: []string{ + "github.com/devsy-org/api/pkg/apis/management/v1.DevsyWorkspaceInstanceLog", metav1.ListMeta{}.OpenAPIModelName()}, } } -func schema_pkg_apis_management_v1_AuthenticationPassword(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_DevsyWorkspaceInstanceLogOptions(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ Type: []string{"object"}, Properties: map[string]spec.Schema{ - "disabled": { + "kind": { SchemaProps: spec.SchemaProps{ - Description: "If true login via password is disabled", - Type: []string{"boolean"}, + Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + Type: []string{"string"}, Format: "", }, }, - }, - }, - }, - } -} - -func schema_pkg_apis_management_v1_AuthenticationRancher(ref common.ReferenceCallback) common.OpenAPIDefinition { - return common.OpenAPIDefinition{ - Schema: spec.Schema{ - SchemaProps: spec.SchemaProps{ - Type: []string{"object"}, - Properties: map[string]spec.Schema{ - "host": { + "apiVersion": { SchemaProps: spec.SchemaProps{ - Description: "Host holds the rancher host, e.g. my-domain.com", + Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", Type: []string{"string"}, Format: "", }, }, - "bearerToken": { + "taskID": { SchemaProps: spec.SchemaProps{ - Description: "BearerToken holds the rancher API key in token username and password form. E.g. my-token:my-secret", + Description: "TaskID is the id of the task that is running", Type: []string{"string"}, Format: "", }, }, - "insecure": { + "follow": { SchemaProps: spec.SchemaProps{ - Description: "Insecure tells Devsy if the Rancher endpoint is insecure.", + Description: "Follow the log stream of the task. Defaults to false.", Type: []string{"boolean"}, Format: "", }, @@ -6592,172 +6776,197 @@ func schema_pkg_apis_management_v1_AuthenticationRancher(ref common.ReferenceCal } } -func schema_pkg_apis_management_v1_AuthenticationSAML(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_DevsyWorkspaceInstanceSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Type: []string{"object"}, + Description: "DevsyWorkspaceInstanceSpec holds the specification.", + Type: []string{"object"}, Properties: map[string]spec.Schema{ - "redirectURI": { + "displayName": { SchemaProps: spec.SchemaProps{ - Description: "If the response assertion status value contains a Destination element, it must match this value exactly. Usually looks like https://your-devsy-domain/auth/saml/callback", + Description: "DisplayName is the name that should be displayed in the UI", Type: []string{"string"}, Format: "", }, }, - "ssoURL": { + "description": { SchemaProps: spec.SchemaProps{ - Description: "SSO URL used for POST value.", + Description: "Description describes a Devsy machine instance", Type: []string{"string"}, Format: "", }, }, - "caData": { - SchemaProps: spec.SchemaProps{ - Description: "CAData is a base64 encoded string that holds the ca certificate for validating the signature of the SAML response. Either CAData, CA or InsecureSkipSignatureValidation needs to be defined.", - Type: []string{"string"}, - Format: "byte", - }, - }, - "usernameAttr": { + "owner": { SchemaProps: spec.SchemaProps{ - Description: "Name of attribute in the returned assertions to map to username", - Type: []string{"string"}, - Format: "", + Description: "Owner holds the owner of this object", + Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.UserOrTeam"), }, }, - "emailAttr": { + "presetRef": { SchemaProps: spec.SchemaProps{ - Description: "Name of attribute in the returned assertions to map to email", - Type: []string{"string"}, - Format: "", + Description: "PresetRef holds the DevsyWorkspacePreset template reference", + Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.PresetRef"), }, }, - "groupsAttr": { + "templateRef": { SchemaProps: spec.SchemaProps{ - Description: "Name of attribute in the returned assertions to map to groups", - Type: []string{"string"}, - Format: "", + Description: "TemplateRef holds the Devsy machine template reference", + Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.TemplateRef"), }, }, - "ca": { + "environmentRef": { SchemaProps: spec.SchemaProps{ - Description: "CA to use when validating the signature of the SAML response.", - Type: []string{"string"}, - Format: "", + Description: "EnvironmentRef is the reference to DevsyEnvironmentTemplate that should be used", + Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.EnvironmentRef"), }, }, - "insecureSkipSignatureValidation": { + "template": { SchemaProps: spec.SchemaProps{ - Description: "Ignore the ca cert", - Type: []string{"boolean"}, - Format: "", + Description: "Template is the inline template to use for Devsy machine creation. This is mutually exclusive with templateRef.", + Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.DevsyWorkspaceTemplateDefinition"), }, }, - "entityIssuer": { + "target": { SchemaProps: spec.SchemaProps{ - Description: "When provided Devsy will include this as the Issuer value during AuthnRequest. It will also override the redirectURI as the required audience when evaluating AudienceRestriction elements in the response.", - Type: []string{"string"}, - Format: "", + Description: "Target is the reference to the cluster holding this workspace", + Default: map[string]interface{}{}, + Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.WorkspaceTarget"), }, }, - "ssoIssuer": { + "runnerRef": { SchemaProps: spec.SchemaProps{ - Description: "Issuer value expected in the SAML response. Optional.", - Type: []string{"string"}, - Format: "", + Description: "RunnerRef is the reference to the runner holding this workspace", + Default: map[string]interface{}{}, + Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.RunnerRef"), }, }, - "groupsDelim": { + "parameters": { SchemaProps: spec.SchemaProps{ - Description: "If GroupsDelim is supplied the connector assumes groups are returned as a single string instead of multiple attribute values. This delimiter will be used split the groups string.", + Description: "Parameters are values to pass to the template. The values should be encoded as YAML string where each parameter is represented as a top-level field key.", Type: []string{"string"}, Format: "", }, }, - "allowedGroups": { + "access": { SchemaProps: spec.SchemaProps{ - Description: "List of groups to filter access based on membership", + Description: "Access to the Devsy machine instance object itself", Type: []string{"array"}, Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ - Default: "", - Type: []string{"string"}, - Format: "", + Default: map[string]interface{}{}, + Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.Access"), }, }, }, }, }, - "filterGroups": { + "preventWakeUpOnConnection": { SchemaProps: spec.SchemaProps{ - Description: "If used with allowed groups, only forwards the allowed groups and not all groups specified.", + Description: "PreventWakeUpOnConnection is used to prevent workspace that uses sleep mode from waking up on incomming ssh connection.", Type: []string{"boolean"}, Format: "", }, }, - "nameIDPolicyFormat": { - SchemaProps: spec.SchemaProps{ - Description: "Requested format of the NameID. The NameID value is is mapped to the ID Token 'sub' claim.\n\nThis can be an abbreviated form of the full URI with just the last component. For example, if this value is set to \"emailAddress\" the format will resolve to:\n\n\t\turn:oasis:names:tc:SAML:1.1:nameid-format:emailAddress\n\nIf no value is specified, this value defaults to:\n\n\t\turn:oasis:names:tc:SAML:2.0:nameid-format:persistent", - Type: []string{"string"}, - Format: "", - }, - }, }, }, }, + Dependencies: []string{ + "github.com/devsy-org/api/pkg/apis/storage/v1.Access", "github.com/devsy-org/api/pkg/apis/storage/v1.DevsyWorkspaceTemplateDefinition", "github.com/devsy-org/api/pkg/apis/storage/v1.EnvironmentRef", "github.com/devsy-org/api/pkg/apis/storage/v1.PresetRef", "github.com/devsy-org/api/pkg/apis/storage/v1.RunnerRef", "github.com/devsy-org/api/pkg/apis/storage/v1.TemplateRef", "github.com/devsy-org/api/pkg/apis/storage/v1.UserOrTeam", "github.com/devsy-org/api/pkg/apis/storage/v1.WorkspaceTarget"}, } } -func schema_pkg_apis_management_v1_Backup(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_DevsyWorkspaceInstanceStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "Backup holds the Backup information", + Description: "DevsyWorkspaceInstanceStatus holds the status.", Type: []string{"object"}, Properties: map[string]spec.Schema{ - "kind": { + "resolvedTarget": { SchemaProps: spec.SchemaProps{ - Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + Description: "ResolvedTarget is the resolved target of the workspace", + Default: map[string]interface{}{}, + Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.WorkspaceResolvedTarget"), + }, + }, + "lastWorkspaceStatus": { + SchemaProps: spec.SchemaProps{ + Description: "LastWorkspaceStatus is the last workspace status reported by the runner.", Type: []string{"string"}, Format: "", }, }, - "apiVersion": { + "phase": { SchemaProps: spec.SchemaProps{ - Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + Description: "Phase describes the current phase the Devsy machine instance is in", Type: []string{"string"}, Format: "", }, }, - "metadata": { + "reason": { SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref(metav1.ObjectMeta{}.OpenAPIModelName()), + Description: "Reason describes the reason in machine-readable form why the cluster is in the current phase", + Type: []string{"string"}, + Format: "", }, }, - "spec": { + "message": { SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.BackupSpec"), + Description: "Message describes the reason in human-readable form why the Devsy machine is in the current phase", + Type: []string{"string"}, + Format: "", }, }, - "status": { + "conditions": { SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.BackupStatus"), + Description: "Conditions holds several conditions the Devsy machine might be in", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("github.com/devsy-org/agentapi/pkg/apis/devsy/storage/v1.Condition"), + }, + }, + }, + }, + }, + "instance": { + SchemaProps: spec.SchemaProps{ + Description: "Instance is the template rendered with all the parameters", + Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.DevsyWorkspaceTemplateDefinition"), + }, + }, + "ignoreReconciliation": { + SchemaProps: spec.SchemaProps{ + Description: "IgnoreReconciliation ignores reconciliation for this object", + Type: []string{"boolean"}, + Format: "", + }, + }, + "kubernetes": { + SchemaProps: spec.SchemaProps{ + Description: "Kubernetes is the status of the workspace on kubernetes", + Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.DevsyWorkspaceInstanceKubernetesStatus"), + }, + }, + "sleepModeConfig": { + SchemaProps: spec.SchemaProps{ + Description: "SleepModeConfig is the sleep mode config of the workspace. This will only be shown in the front end.", + Ref: ref("github.com/devsy-org/agentapi/pkg/apis/devsy/cluster/v1.SleepModeConfig"), }, }, }, }, }, Dependencies: []string{ - "github.com/devsy-org/api/pkg/apis/management/v1.BackupSpec", "github.com/devsy-org/api/pkg/apis/management/v1.BackupStatus", metav1.ObjectMeta{}.OpenAPIModelName()}, + "github.com/devsy-org/agentapi/pkg/apis/devsy/cluster/v1.SleepModeConfig", "github.com/devsy-org/agentapi/pkg/apis/devsy/storage/v1.Condition", "github.com/devsy-org/api/pkg/apis/storage/v1.DevsyWorkspaceInstanceKubernetesStatus", "github.com/devsy-org/api/pkg/apis/storage/v1.DevsyWorkspaceTemplateDefinition", "github.com/devsy-org/api/pkg/apis/storage/v1.WorkspaceResolvedTarget"}, } } -func schema_pkg_apis_management_v1_BackupApply(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_DevsyWorkspaceInstanceStop(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ @@ -6786,18 +6995,24 @@ func schema_pkg_apis_management_v1_BackupApply(ref common.ReferenceCallback) com "spec": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.BackupApplySpec"), + Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.DevsyWorkspaceInstanceStopSpec"), + }, + }, + "status": { + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.DevsyWorkspaceInstanceStopStatus"), }, }, }, }, }, Dependencies: []string{ - "github.com/devsy-org/api/pkg/apis/management/v1.BackupApplySpec", metav1.ObjectMeta{}.OpenAPIModelName()}, + "github.com/devsy-org/api/pkg/apis/management/v1.DevsyWorkspaceInstanceStopSpec", "github.com/devsy-org/api/pkg/apis/management/v1.DevsyWorkspaceInstanceStopStatus", metav1.ObjectMeta{}.OpenAPIModelName()}, } } -func schema_pkg_apis_management_v1_BackupApplyList(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_DevsyWorkspaceInstanceStopList(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ @@ -6830,7 +7045,7 @@ func schema_pkg_apis_management_v1_BackupApplyList(ref common.ReferenceCallback) Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.BackupApply"), + Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.DevsyWorkspaceInstanceStop"), }, }, }, @@ -6841,26 +7056,19 @@ func schema_pkg_apis_management_v1_BackupApplyList(ref common.ReferenceCallback) }, }, Dependencies: []string{ - "github.com/devsy-org/api/pkg/apis/management/v1.BackupApply", metav1.ListMeta{}.OpenAPIModelName()}, + "github.com/devsy-org/api/pkg/apis/management/v1.DevsyWorkspaceInstanceStop", metav1.ListMeta{}.OpenAPIModelName()}, } } -func schema_pkg_apis_management_v1_BackupApplyOptions(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_DevsyWorkspaceInstanceStopSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ Type: []string{"object"}, Properties: map[string]spec.Schema{ - "kind": { - SchemaProps: spec.SchemaProps{ - Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", - Type: []string{"string"}, - Format: "", - }, - }, - "apiVersion": { + "options": { SchemaProps: spec.SchemaProps{ - Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + Description: "Options are the options to pass.", Type: []string{"string"}, Format: "", }, @@ -6871,16 +7079,15 @@ func schema_pkg_apis_management_v1_BackupApplyOptions(ref common.ReferenceCallba } } -func schema_pkg_apis_management_v1_BackupApplySpec(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_DevsyWorkspaceInstanceStopStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "BackupApplySpec defines the desired state of BackupApply", - Type: []string{"object"}, + Type: []string{"object"}, Properties: map[string]spec.Schema{ - "raw": { + "taskId": { SchemaProps: spec.SchemaProps{ - Description: "Raw is the raw backup to apply", + Description: "TaskID is the id of the task that is running", Type: []string{"string"}, Format: "", }, @@ -6891,118 +7098,66 @@ func schema_pkg_apis_management_v1_BackupApplySpec(ref common.ReferenceCallback) } } -func schema_pkg_apis_management_v1_BackupList(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_DevsyWorkspaceInstanceTask(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ Type: []string{"object"}, Properties: map[string]spec.Schema{ - "kind": { + "id": { SchemaProps: spec.SchemaProps{ - Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + Description: "ID is the id of the task", Type: []string{"string"}, Format: "", }, }, - "apiVersion": { + "type": { SchemaProps: spec.SchemaProps{ - Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + Description: "Type is the type of the task", Type: []string{"string"}, Format: "", }, }, - "metadata": { + "status": { SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref(metav1.ListMeta{}.OpenAPIModelName()), + Description: "Status is the status of the task", + Type: []string{"string"}, + Format: "", }, }, - "items": { + "result": { SchemaProps: spec.SchemaProps{ - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.Backup"), - }, - }, - }, - }, - }, - }, - Required: []string{"items"}, - }, - }, - Dependencies: []string{ - "github.com/devsy-org/api/pkg/apis/management/v1.Backup", metav1.ListMeta{}.OpenAPIModelName()}, - } -} - -func schema_pkg_apis_management_v1_BackupSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { - return common.OpenAPIDefinition{ - Schema: spec.Schema{ - SchemaProps: spec.SchemaProps{ - Description: "BackupSpec holds the spec", - Type: []string{"object"}, - }, - }, - } -} - -func schema_pkg_apis_management_v1_BackupStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { - return common.OpenAPIDefinition{ - Schema: spec.Schema{ - SchemaProps: spec.SchemaProps{ - Description: "BackupStatus holds the status", - Type: []string{"object"}, - Properties: map[string]spec.Schema{ - "rawBackup": { - SchemaProps: spec.SchemaProps{ - Type: []string{"string"}, - Format: "", + Description: "Result is the result of the task", + Type: []string{"string"}, + Format: "byte", }, }, - }, - }, - }, - } -} - -func schema_pkg_apis_management_v1_Cloud(ref common.ReferenceCallback) common.OpenAPIDefinition { - return common.OpenAPIDefinition{ - Schema: spec.Schema{ - SchemaProps: spec.SchemaProps{ - Type: []string{"object"}, - Properties: map[string]spec.Schema{ - "releaseChannel": { + "logs": { SchemaProps: spec.SchemaProps{ - Description: "ReleaseChannel specifies the release channel for the cloud configuration. This can be used to determine which updates or versions are applied.", + Description: "Logs is the compressed logs of the task", Type: []string{"string"}, - Format: "", + Format: "byte", }, }, - "maintenanceWindow": { + "createdAt": { SchemaProps: spec.SchemaProps{ - Description: "MaintenanceWindow specifies the maintenance window for the cloud configuration. This is a structured representation of the time window during which maintenance can occur.", - Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.MaintenanceWindow"), + Description: "CreatedAt is the timestamp when the task was created", + Ref: ref(metav1.Time{}.OpenAPIModelName()), }, }, }, }, }, Dependencies: []string{ - "github.com/devsy-org/api/pkg/apis/management/v1.MaintenanceWindow"}, + metav1.Time{}.OpenAPIModelName()}, } } -func schema_pkg_apis_management_v1_Cluster(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_DevsyWorkspaceInstanceTasks(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "Cluster holds the cluster information", - Type: []string{"object"}, + Type: []string{"object"}, Properties: map[string]spec.Schema{ "kind": { SchemaProps: spec.SchemaProps{ @@ -7024,32 +7179,32 @@ func schema_pkg_apis_management_v1_Cluster(ref common.ReferenceCallback) common. Ref: ref(metav1.ObjectMeta{}.OpenAPIModelName()), }, }, - "spec": { - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.ClusterSpec"), - }, - }, - "status": { + "tasks": { SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.ClusterStatus"), + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.DevsyWorkspaceInstanceTask"), + }, + }, + }, }, }, }, }, }, Dependencies: []string{ - "github.com/devsy-org/api/pkg/apis/management/v1.ClusterSpec", "github.com/devsy-org/api/pkg/apis/management/v1.ClusterStatus", metav1.ObjectMeta{}.OpenAPIModelName()}, + "github.com/devsy-org/api/pkg/apis/management/v1.DevsyWorkspaceInstanceTask", metav1.ObjectMeta{}.OpenAPIModelName()}, } } -func schema_pkg_apis_management_v1_ClusterAccess(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_DevsyWorkspaceInstanceTasksList(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "ClusterAccess holds the globalClusterAccess information", - Type: []string{"object"}, + Type: []string{"object"}, Properties: map[string]spec.Schema{ "kind": { SchemaProps: spec.SchemaProps{ @@ -7068,35 +7223,36 @@ func schema_pkg_apis_management_v1_ClusterAccess(ref common.ReferenceCallback) c "metadata": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref(metav1.ObjectMeta{}.OpenAPIModelName()), - }, - }, - "spec": { - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.ClusterAccessSpec"), + Ref: ref(metav1.ListMeta{}.OpenAPIModelName()), }, }, - "status": { + "items": { SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.ClusterAccessStatus"), + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.DevsyWorkspaceInstanceTasks"), + }, + }, + }, }, }, }, + Required: []string{"items"}, }, }, Dependencies: []string{ - "github.com/devsy-org/api/pkg/apis/management/v1.ClusterAccessSpec", "github.com/devsy-org/api/pkg/apis/management/v1.ClusterAccessStatus", metav1.ObjectMeta{}.OpenAPIModelName()}, + "github.com/devsy-org/api/pkg/apis/management/v1.DevsyWorkspaceInstanceTasks", metav1.ListMeta{}.OpenAPIModelName()}, } } -func schema_pkg_apis_management_v1_ClusterAccessKey(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_DevsyWorkspaceInstanceTasksOptions(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "ClusterAccessKey holds the access key for the cluster", - Type: []string{"object"}, + Type: []string{"object"}, Properties: map[string]spec.Schema{ "kind": { SchemaProps: spec.SchemaProps{ @@ -7112,36 +7268,9 @@ func schema_pkg_apis_management_v1_ClusterAccessKey(ref common.ReferenceCallback Format: "", }, }, - "metadata": { - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref(metav1.ObjectMeta{}.OpenAPIModelName()), - }, - }, - "accessKey": { - SchemaProps: spec.SchemaProps{ - Description: "AccessKey is the access key used by the agent", - Type: []string{"string"}, - Format: "", - }, - }, - "loftHost": { - SchemaProps: spec.SchemaProps{ - Description: "LoftHost is the devsy host used by the agent", - Type: []string{"string"}, - Format: "", - }, - }, - "insecure": { - SchemaProps: spec.SchemaProps{ - Description: "Insecure signals if the devsy host is insecure", - Type: []string{"boolean"}, - Format: "", - }, - }, - "caCert": { + "taskID": { SchemaProps: spec.SchemaProps{ - Description: "CaCert is an optional ca cert to use for the devsy host connection", + Description: "TaskID is the id of the task that is running", Type: []string{"string"}, Format: "", }, @@ -7149,12 +7278,10 @@ func schema_pkg_apis_management_v1_ClusterAccessKey(ref common.ReferenceCallback }, }, }, - Dependencies: []string{ - metav1.ObjectMeta{}.OpenAPIModelName()}, } } -func schema_pkg_apis_management_v1_ClusterAccessKeyList(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_DevsyWorkspaceInstanceTroubleshoot(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ @@ -7177,32 +7304,95 @@ func schema_pkg_apis_management_v1_ClusterAccessKeyList(ref common.ReferenceCall "metadata": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref(metav1.ListMeta{}.OpenAPIModelName()), + Ref: ref(metav1.ObjectMeta{}.OpenAPIModelName()), }, }, - "items": { + "state": { SchemaProps: spec.SchemaProps{ - Type: []string{"array"}, + Description: "State holds the workspaces state as given by 'devsy export'", + Type: []string{"string"}, + Format: "", + }, + }, + "workspace": { + SchemaProps: spec.SchemaProps{ + Description: "Workspace holds the workspace's instance object data", + Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.DevsyWorkspaceInstance"), + }, + }, + "template": { + SchemaProps: spec.SchemaProps{ + Description: "Template holds the workspace instance's template used to create it. This is the raw template, not the rendered one.", + Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.DevsyWorkspaceTemplate"), + }, + }, + "pods": { + SchemaProps: spec.SchemaProps{ + Description: "Pods is a list of pod objects that are linked to the workspace.", + Type: []string{"array"}, Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.ClusterAccessKey"), + Ref: ref(corev1.Pod{}.OpenAPIModelName()), + }, + }, + }, + }, + }, + "pvcs": { + SchemaProps: spec.SchemaProps{ + Description: "PVCs is a list of PVC objects that are linked to the workspace.", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref(corev1.PersistentVolumeClaim{}.OpenAPIModelName()), + }, + }, + }, + }, + }, + "netmaps": { + SchemaProps: spec.SchemaProps{ + Description: "Netmaps is a list of netmaps that are linked to the workspace.", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + }, + }, + }, + "errors": { + SchemaProps: spec.SchemaProps{ + Description: "Errors is a list of errors that occurred while trying to collect informations for troubleshooting.", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: "", + Type: []string{"string"}, + Format: "", }, }, }, }, }, }, - Required: []string{"items"}, }, }, Dependencies: []string{ - "github.com/devsy-org/api/pkg/apis/management/v1.ClusterAccessKey", metav1.ListMeta{}.OpenAPIModelName()}, + "github.com/devsy-org/api/pkg/apis/management/v1.DevsyWorkspaceInstance", "github.com/devsy-org/api/pkg/apis/storage/v1.DevsyWorkspaceTemplate", corev1.PersistentVolumeClaim{}.OpenAPIModelName(), corev1.Pod{}.OpenAPIModelName(), metav1.ObjectMeta{}.OpenAPIModelName()}, } } -func schema_pkg_apis_management_v1_ClusterAccessList(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_DevsyWorkspaceInstanceTroubleshootList(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ @@ -7235,7 +7425,7 @@ func schema_pkg_apis_management_v1_ClusterAccessList(ref common.ReferenceCallbac Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.ClusterAccess"), + Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.DevsyWorkspaceInstanceTroubleshoot"), }, }, }, @@ -7246,229 +7436,154 @@ func schema_pkg_apis_management_v1_ClusterAccessList(ref common.ReferenceCallbac }, }, Dependencies: []string{ - "github.com/devsy-org/api/pkg/apis/management/v1.ClusterAccess", metav1.ListMeta{}.OpenAPIModelName()}, + "github.com/devsy-org/api/pkg/apis/management/v1.DevsyWorkspaceInstanceTroubleshoot", metav1.ListMeta{}.OpenAPIModelName()}, } } -func schema_pkg_apis_management_v1_ClusterAccessRole(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_DevsyWorkspaceInstanceUp(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ Type: []string{"object"}, Properties: map[string]spec.Schema{ - "namespace": { + "kind": { SchemaProps: spec.SchemaProps{ - Description: "Namespace of the referenced object", + Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", Type: []string{"string"}, Format: "", }, }, - "name": { + "apiVersion": { SchemaProps: spec.SchemaProps{ - Description: "Name of the referenced object", + Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", Type: []string{"string"}, Format: "", }, }, - "displayName": { + "metadata": { SchemaProps: spec.SchemaProps{ - Description: "DisplayName is the name of the object to display in the UI", - Type: []string{"string"}, - Format: "", + Default: map[string]interface{}{}, + Ref: ref(metav1.ObjectMeta{}.OpenAPIModelName()), }, }, - "clusters": { + "spec": { SchemaProps: spec.SchemaProps{ - Description: "Clusters are the clusters that this assigned role applies", - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.ObjectName"), - }, - }, - }, + Default: map[string]interface{}{}, + Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.DevsyWorkspaceInstanceUpSpec"), }, }, - "assignedVia": { + "status": { SchemaProps: spec.SchemaProps{ - Description: "AssignedVia describes the resource that establishes the project membership", - Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.AssignedVia"), + Default: map[string]interface{}{}, + Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.DevsyWorkspaceInstanceUpStatus"), }, }, }, }, }, Dependencies: []string{ - "github.com/devsy-org/api/pkg/apis/management/v1.AssignedVia", "github.com/devsy-org/api/pkg/apis/management/v1.ObjectName"}, + "github.com/devsy-org/api/pkg/apis/management/v1.DevsyWorkspaceInstanceUpSpec", "github.com/devsy-org/api/pkg/apis/management/v1.DevsyWorkspaceInstanceUpStatus", metav1.ObjectMeta{}.OpenAPIModelName()}, } } -func schema_pkg_apis_management_v1_ClusterAccessSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_DevsyWorkspaceInstanceUpList(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "ClusterAccessSpec holds the specification", - Type: []string{"object"}, + Type: []string{"object"}, Properties: map[string]spec.Schema{ - "displayName": { + "kind": { SchemaProps: spec.SchemaProps{ - Description: "DisplayName is the name that should be displayed in the UI", + Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", Type: []string{"string"}, Format: "", }, }, - "description": { + "apiVersion": { SchemaProps: spec.SchemaProps{ - Description: "Description describes a cluster access object", + Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", Type: []string{"string"}, Format: "", }, }, - "owner": { - SchemaProps: spec.SchemaProps{ - Description: "Owner holds the owner of this object", - Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.UserOrTeam"), - }, - }, - "clusters": { + "metadata": { SchemaProps: spec.SchemaProps{ - Description: "Clusters are the clusters this template should be applied on.", - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: "", - Type: []string{"string"}, - Format: "", - }, - }, - }, + Default: map[string]interface{}{}, + Ref: ref(metav1.ListMeta{}.OpenAPIModelName()), }, }, - "access": { + "items": { SchemaProps: spec.SchemaProps{ - Description: "Access holds the access rights for users and teams", - Type: []string{"array"}, + Type: []string{"array"}, Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.Access"), + Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.DevsyWorkspaceInstanceUp"), }, }, }, }, }, - "localClusterAccessTemplate": { - SchemaProps: spec.SchemaProps{ - Description: "LocalClusterAccessTemplate holds the cluster access template", - Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.LocalClusterAccessTemplate"), - }, - }, }, + Required: []string{"items"}, }, }, Dependencies: []string{ - "github.com/devsy-org/api/pkg/apis/storage/v1.Access", "github.com/devsy-org/api/pkg/apis/storage/v1.LocalClusterAccessTemplate", "github.com/devsy-org/api/pkg/apis/storage/v1.UserOrTeam"}, + "github.com/devsy-org/api/pkg/apis/management/v1.DevsyWorkspaceInstanceUp", metav1.ListMeta{}.OpenAPIModelName()}, } } -func schema_pkg_apis_management_v1_ClusterAccessStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_DevsyWorkspaceInstanceUpSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "ClusterAccessStatus holds the status", - Type: []string{"object"}, + Type: []string{"object"}, Properties: map[string]spec.Schema{ - "clusters": { - SchemaProps: spec.SchemaProps{ - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.EntityInfo"), - }, - }, - }, - }, - }, - "users": { + "debug": { SchemaProps: spec.SchemaProps{ - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.UserOrTeamEntity"), - }, - }, - }, + Description: "Debug includes debug logs.", + Type: []string{"boolean"}, + Format: "", }, }, - "teams": { + "options": { SchemaProps: spec.SchemaProps{ - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.EntityInfo"), - }, - }, - }, + Description: "Options are the options to pass.", + Type: []string{"string"}, + Format: "", }, }, }, }, }, - Dependencies: []string{ - "github.com/devsy-org/api/pkg/apis/storage/v1.EntityInfo", "github.com/devsy-org/api/pkg/apis/storage/v1.UserOrTeamEntity"}, } } -func schema_pkg_apis_management_v1_ClusterAccounts(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_DevsyWorkspaceInstanceUpStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ Type: []string{"object"}, Properties: map[string]spec.Schema{ - "accounts": { - SchemaProps: spec.SchemaProps{ - Description: "Accounts are the accounts that belong to the user in the cluster", - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: "", - Type: []string{"string"}, - Format: "", - }, - }, - }, - }, - }, - "cluster": { + "taskId": { SchemaProps: spec.SchemaProps{ - Description: "Cluster is the cluster object", - Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.Cluster"), + Description: "TaskID is the id of the task that is running", + Type: []string{"string"}, + Format: "", }, }, }, }, }, - Dependencies: []string{ - "github.com/devsy-org/api/pkg/apis/storage/v1.Cluster"}, } } -func schema_pkg_apis_management_v1_ClusterAgentConfig(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_DevsyWorkspacePreset(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "ClusterAgentConfig holds the devsy agent configuration", + Description: "DevsyWorkspacePreset", Type: []string{"object"}, Properties: map[string]spec.Schema{ "kind": { @@ -7491,171 +7606,200 @@ func schema_pkg_apis_management_v1_ClusterAgentConfig(ref common.ReferenceCallba Ref: ref(metav1.ObjectMeta{}.OpenAPIModelName()), }, }, - "cluster": { - SchemaProps: spec.SchemaProps{ - Description: "Cluster is the cluster the agent is running in.", - Type: []string{"string"}, - Format: "", - }, - }, - "audit": { - SchemaProps: spec.SchemaProps{ - Description: "Audit holds the agent audit config", - Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.AgentAuditConfig"), - }, - }, - "defaultImageRegistry": { - SchemaProps: spec.SchemaProps{ - Description: "DefaultImageRegistry defines if we should prefix the virtual cluster image", - Type: []string{"string"}, - Format: "", - }, - }, - "tokenCaCert": { + "spec": { SchemaProps: spec.SchemaProps{ - Description: "TokenCaCert is the certificate authority the Devsy tokens will be signed with", - Type: []string{"string"}, - Format: "byte", + Default: map[string]interface{}{}, + Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.DevsyWorkspacePresetSpec"), }, }, - "loftHost": { + "status": { SchemaProps: spec.SchemaProps{ - Description: "LoftHost defines the host for the agent's devsy instance", - Type: []string{"string"}, - Format: "", + Default: map[string]interface{}{}, + Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.DevsyWorkspacePresetStatus"), }, }, - "projectNamespacePrefix": { + }, + }, + }, + Dependencies: []string{ + "github.com/devsy-org/api/pkg/apis/management/v1.DevsyWorkspacePresetSpec", "github.com/devsy-org/api/pkg/apis/management/v1.DevsyWorkspacePresetStatus", metav1.ObjectMeta{}.OpenAPIModelName()}, + } +} + +func schema_pkg_apis_management_v1_DevsyWorkspacePresetList(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "kind": { SchemaProps: spec.SchemaProps{ - Description: "ProjectNamespacePrefix holds the prefix for devsy project namespaces", + Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", Type: []string{"string"}, Format: "", }, }, - "loftInstanceID": { + "apiVersion": { SchemaProps: spec.SchemaProps{ - Description: "LoftInstanceID defines the instance id from the devsy instance", + Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", Type: []string{"string"}, Format: "", }, }, - "analyticsSpec": { - SchemaProps: spec.SchemaProps{ - Description: "AnalyticsSpec holds info needed for the agent to send analytics data to the analytics backend.", - Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.AgentAnalyticsSpec"), - }, - }, - "costControl": { + "metadata": { SchemaProps: spec.SchemaProps{ - Description: "CostControl holds the settings related to the Cost Control ROI dashboard and its metrics gathering infrastructure", - Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.AgentCostControlConfig"), + Default: map[string]interface{}{}, + Ref: ref(metav1.ListMeta{}.OpenAPIModelName()), }, }, - "authenticateVersionEndpoint": { + "items": { SchemaProps: spec.SchemaProps{ - Description: "AuthenticateVersionEndpoint will force authentication for the '/version' endpoint. Will only work with vCluster v0.27 & later", - Type: []string{"boolean"}, - Format: "", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.DevsyWorkspacePreset"), + }, + }, + }, }, }, }, - Required: []string{"analyticsSpec"}, + Required: []string{"items"}, }, }, Dependencies: []string{ - "github.com/devsy-org/api/pkg/apis/management/v1.AgentAnalyticsSpec", "github.com/devsy-org/api/pkg/apis/management/v1.AgentAuditConfig", "github.com/devsy-org/api/pkg/apis/management/v1.AgentCostControlConfig", metav1.ObjectMeta{}.OpenAPIModelName()}, + "github.com/devsy-org/api/pkg/apis/management/v1.DevsyWorkspacePreset", metav1.ListMeta{}.OpenAPIModelName()}, } } -func schema_pkg_apis_management_v1_ClusterAgentConfigCommon(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_DevsyWorkspacePresetSource(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Type: []string{"object"}, + Description: "DevsyWorkspacePresetSource", + Type: []string{"object"}, Properties: map[string]spec.Schema{ - "cluster": { + "git": { SchemaProps: spec.SchemaProps{ - Description: "Cluster is the cluster the agent is running in.", + Description: "Git stores path to git repo to use as workspace source", Type: []string{"string"}, Format: "", }, }, - "audit": { + "image": { SchemaProps: spec.SchemaProps{ - Description: "Audit holds the agent audit config", - Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.AgentAuditConfig"), + Description: "Image stores container image to use as workspace source", + Type: []string{"string"}, + Format: "", }, }, - "defaultImageRegistry": { + }, + }, + }, + } +} + +func schema_pkg_apis_management_v1_DevsyWorkspacePresetSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "DevsyWorkspacePresetSpec holds the specification.", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "displayName": { SchemaProps: spec.SchemaProps{ - Description: "DefaultImageRegistry defines if we should prefix the virtual cluster image", + Description: "DisplayName is the name that should be displayed in the UI", Type: []string{"string"}, Format: "", }, }, - "tokenCaCert": { + "source": { SchemaProps: spec.SchemaProps{ - Description: "TokenCaCert is the certificate authority the Devsy tokens will be signed with", - Type: []string{"string"}, - Format: "byte", + Description: "Source stores inline path of project source", + Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.DevsyWorkspacePresetSource"), }, }, - "loftHost": { + "infrastructureRef": { SchemaProps: spec.SchemaProps{ - Description: "LoftHost defines the host for the agent's devsy instance", - Type: []string{"string"}, - Format: "", + Description: "InfrastructureRef stores reference to DevsyWorkspaceTemplate to use", + Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.TemplateRef"), }, }, - "projectNamespacePrefix": { + "environmentRef": { SchemaProps: spec.SchemaProps{ - Description: "ProjectNamespacePrefix holds the prefix for devsy project namespaces", - Type: []string{"string"}, - Format: "", + Description: "EnvironmentRef stores reference to DevsyEnvironmentTemplate", + Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.EnvironmentRef"), }, }, - "loftInstanceID": { + "useProjectGitCredentials": { SchemaProps: spec.SchemaProps{ - Description: "LoftInstanceID defines the instance id from the devsy instance", - Type: []string{"string"}, + Description: "UseProjectGitCredentials specifies if the project git credentials should be used instead of local ones for this environment", + Type: []string{"boolean"}, Format: "", }, }, - "analyticsSpec": { + "owner": { SchemaProps: spec.SchemaProps{ - Description: "AnalyticsSpec holds info needed for the agent to send analytics data to the analytics backend.", - Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.AgentAnalyticsSpec"), + Description: "Owner holds the owner of this object", + Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.UserOrTeam"), }, }, - "costControl": { + "access": { SchemaProps: spec.SchemaProps{ - Description: "CostControl holds the settings related to the Cost Control ROI dashboard and its metrics gathering infrastructure", - Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.AgentCostControlConfig"), + Description: "Access to the Devsy machine instance object itself", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.Access"), + }, + }, + }, }, }, - "authenticateVersionEndpoint": { + "versions": { SchemaProps: spec.SchemaProps{ - Description: "AuthenticateVersionEndpoint will force authentication for the '/version' endpoint. Will only work with vCluster v0.27 & later", - Type: []string{"boolean"}, - Format: "", + Description: "Versions are different versions of the template that can be referenced as well", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.DevsyWorkspacePresetVersion"), + }, + }, + }, }, }, }, - Required: []string{"analyticsSpec"}, + Required: []string{"source", "infrastructureRef"}, }, }, Dependencies: []string{ - "github.com/devsy-org/api/pkg/apis/management/v1.AgentAnalyticsSpec", "github.com/devsy-org/api/pkg/apis/management/v1.AgentAuditConfig", "github.com/devsy-org/api/pkg/apis/management/v1.AgentCostControlConfig"}, + "github.com/devsy-org/api/pkg/apis/storage/v1.Access", "github.com/devsy-org/api/pkg/apis/storage/v1.DevsyWorkspacePresetSource", "github.com/devsy-org/api/pkg/apis/storage/v1.DevsyWorkspacePresetVersion", "github.com/devsy-org/api/pkg/apis/storage/v1.EnvironmentRef", "github.com/devsy-org/api/pkg/apis/storage/v1.TemplateRef", "github.com/devsy-org/api/pkg/apis/storage/v1.UserOrTeam"}, } } -func schema_pkg_apis_management_v1_ClusterAgentConfigList(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_DevsyWorkspacePresetStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Type: []string{"object"}, + Description: "DevsyWorkspacePresetStatus holds the status.", + Type: []string{"object"}, + }, + }, + } +} + +func schema_pkg_apis_management_v1_DevsyWorkspaceTemplate(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "DevsyWorkspaceTemplate holds the information", + Type: []string{"object"}, Properties: map[string]spec.Schema{ "kind": { SchemaProps: spec.SchemaProps{ @@ -7674,32 +7818,30 @@ func schema_pkg_apis_management_v1_ClusterAgentConfigList(ref common.ReferenceCa "metadata": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref(metav1.ListMeta{}.OpenAPIModelName()), + Ref: ref(metav1.ObjectMeta{}.OpenAPIModelName()), }, }, - "items": { + "spec": { SchemaProps: spec.SchemaProps{ - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.ClusterAgentConfig"), - }, - }, - }, + Default: map[string]interface{}{}, + Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.DevsyWorkspaceTemplateSpec"), + }, + }, + "status": { + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.DevsyWorkspaceTemplateStatus"), }, }, }, - Required: []string{"items"}, }, }, Dependencies: []string{ - "github.com/devsy-org/api/pkg/apis/management/v1.ClusterAgentConfig", metav1.ListMeta{}.OpenAPIModelName()}, + "github.com/devsy-org/api/pkg/apis/management/v1.DevsyWorkspaceTemplateSpec", "github.com/devsy-org/api/pkg/apis/management/v1.DevsyWorkspaceTemplateStatus", metav1.ObjectMeta{}.OpenAPIModelName()}, } } -func schema_pkg_apis_management_v1_ClusterCharts(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_DevsyWorkspaceTemplateList(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ @@ -7722,92 +7864,132 @@ func schema_pkg_apis_management_v1_ClusterCharts(ref common.ReferenceCallback) c "metadata": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref(metav1.ObjectMeta{}.OpenAPIModelName()), + Ref: ref(metav1.ListMeta{}.OpenAPIModelName()), }, }, - "charts": { + "items": { SchemaProps: spec.SchemaProps{ - Description: "Holds the available helm charts for this cluster", - Type: []string{"array"}, + Type: []string{"array"}, Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.HelmChart"), + Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.DevsyWorkspaceTemplate"), }, }, }, }, }, - "busy": { - SchemaProps: spec.SchemaProps{ - Description: "Busy will indicate if the chart parsing is still in progress.", - Type: []string{"boolean"}, - Format: "", - }, - }, }, - Required: []string{"charts"}, + Required: []string{"items"}, }, }, Dependencies: []string{ - "github.com/devsy-org/api/pkg/apis/storage/v1.HelmChart", metav1.ObjectMeta{}.OpenAPIModelName()}, + "github.com/devsy-org/api/pkg/apis/management/v1.DevsyWorkspaceTemplate", metav1.ListMeta{}.OpenAPIModelName()}, } } -func schema_pkg_apis_management_v1_ClusterChartsList(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_DevsyWorkspaceTemplateSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Type: []string{"object"}, + Description: "DevsyWorkspaceTemplateSpec holds the specification.", + Type: []string{"object"}, Properties: map[string]spec.Schema{ - "kind": { + "displayName": { SchemaProps: spec.SchemaProps{ - Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + Description: "DisplayName is the name that is shown in the UI", Type: []string{"string"}, Format: "", }, }, - "apiVersion": { + "description": { SchemaProps: spec.SchemaProps{ - Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + Description: "Description describes the virtual cluster template", Type: []string{"string"}, Format: "", }, }, - "metadata": { + "owner": { SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref(metav1.ListMeta{}.OpenAPIModelName()), + Description: "Owner holds the owner of this object", + Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.UserOrTeam"), }, }, - "items": { + "parameters": { SchemaProps: spec.SchemaProps{ - Type: []string{"array"}, + Description: "Parameters define additional app parameters that will set provider values", + Type: []string{"array"}, Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.ClusterCharts"), + Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.AppParameter"), + }, + }, + }, + }, + }, + "template": { + SchemaProps: spec.SchemaProps{ + Description: "Template holds the Devsy workspace template", + Default: map[string]interface{}{}, + Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.DevsyWorkspaceTemplateDefinition"), + }, + }, + "versions": { + SchemaProps: spec.SchemaProps{ + Description: "Versions are different versions of the template that can be referenced as well", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.DevsyWorkspaceTemplateVersion"), + }, + }, + }, + }, + }, + "access": { + SchemaProps: spec.SchemaProps{ + Description: "Access holds the access rights for users and teams", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.Access"), }, }, }, }, }, }, - Required: []string{"items"}, }, }, Dependencies: []string{ - "github.com/devsy-org/api/pkg/apis/management/v1.ClusterCharts", metav1.ListMeta{}.OpenAPIModelName()}, + "github.com/devsy-org/api/pkg/apis/storage/v1.Access", "github.com/devsy-org/api/pkg/apis/storage/v1.AppParameter", "github.com/devsy-org/api/pkg/apis/storage/v1.DevsyWorkspaceTemplateDefinition", "github.com/devsy-org/api/pkg/apis/storage/v1.DevsyWorkspaceTemplateVersion", "github.com/devsy-org/api/pkg/apis/storage/v1.UserOrTeam"}, } } -func schema_pkg_apis_management_v1_ClusterDomain(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_DevsyWorkspaceTemplateStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Type: []string{"object"}, + Description: "DevsyWorkspaceTemplateStatus holds the status.", + Type: []string{"object"}, + }, + }, + } +} + +func schema_pkg_apis_management_v1_DirectClusterEndpointToken(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "DirectClusterEndpointToken holds the object information", + Type: []string{"object"}, Properties: map[string]spec.Schema{ "kind": { SchemaProps: spec.SchemaProps{ @@ -7829,27 +8011,27 @@ func schema_pkg_apis_management_v1_ClusterDomain(ref common.ReferenceCallback) c Ref: ref(metav1.ObjectMeta{}.OpenAPIModelName()), }, }, - "target": { + "spec": { SchemaProps: spec.SchemaProps{ - Type: []string{"string"}, - Format: "", + Default: map[string]interface{}{}, + Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.DirectClusterEndpointTokenSpec"), }, }, - "domain": { + "status": { SchemaProps: spec.SchemaProps{ - Type: []string{"string"}, - Format: "", + Default: map[string]interface{}{}, + Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.DirectClusterEndpointTokenStatus"), }, }, }, }, }, Dependencies: []string{ - metav1.ObjectMeta{}.OpenAPIModelName()}, + "github.com/devsy-org/api/pkg/apis/management/v1.DirectClusterEndpointTokenSpec", "github.com/devsy-org/api/pkg/apis/management/v1.DirectClusterEndpointTokenStatus", metav1.ObjectMeta{}.OpenAPIModelName()}, } } -func schema_pkg_apis_management_v1_ClusterDomainList(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_DirectClusterEndpointTokenList(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ @@ -7882,7 +8064,7 @@ func schema_pkg_apis_management_v1_ClusterDomainList(ref common.ReferenceCallbac Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.ClusterDomain"), + Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.DirectClusterEndpointToken"), }, }, }, @@ -7893,84 +8075,63 @@ func schema_pkg_apis_management_v1_ClusterDomainList(ref common.ReferenceCallbac }, }, Dependencies: []string{ - "github.com/devsy-org/api/pkg/apis/management/v1.ClusterDomain", metav1.ListMeta{}.OpenAPIModelName()}, + "github.com/devsy-org/api/pkg/apis/management/v1.DirectClusterEndpointToken", metav1.ListMeta{}.OpenAPIModelName()}, } } -func schema_pkg_apis_management_v1_ClusterList(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_DirectClusterEndpointTokenSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Type: []string{"object"}, + Description: "DirectClusterEndpointTokenSpec holds the object specification", + Type: []string{"object"}, Properties: map[string]spec.Schema{ - "kind": { - SchemaProps: spec.SchemaProps{ - Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", - Type: []string{"string"}, - Format: "", - }, - }, - "apiVersion": { - SchemaProps: spec.SchemaProps{ - Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", - Type: []string{"string"}, - Format: "", - }, - }, - "metadata": { + "ttl": { SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref(metav1.ListMeta{}.OpenAPIModelName()), + Description: "The time to life for this access token in seconds", + Type: []string{"integer"}, + Format: "int64", }, }, - "items": { + "scope": { SchemaProps: spec.SchemaProps{ - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.Cluster"), - }, - }, - }, + Description: "Scope is the optional scope of the direct cluster endpoint", + Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.AccessKeyScope"), }, }, }, - Required: []string{"items"}, }, }, Dependencies: []string{ - "github.com/devsy-org/api/pkg/apis/management/v1.Cluster", metav1.ListMeta{}.OpenAPIModelName()}, + "github.com/devsy-org/api/pkg/apis/storage/v1.AccessKeyScope"}, } } -func schema_pkg_apis_management_v1_ClusterMember(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_DirectClusterEndpointTokenStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Type: []string{"object"}, + Description: "DirectClusterEndpointTokenStatus holds the object status", + Type: []string{"object"}, Properties: map[string]spec.Schema{ - "info": { + "token": { SchemaProps: spec.SchemaProps{ - Description: "Info about the user or team", - Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.EntityInfo"), + Type: []string{"string"}, + Format: "", }, }, }, }, }, - Dependencies: []string{ - "github.com/devsy-org/api/pkg/apis/storage/v1.EntityInfo"}, } } -func schema_pkg_apis_management_v1_ClusterMemberAccess(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_Event(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Type: []string{"object"}, + Description: "Event holds an event", + Type: []string{"object"}, Properties: map[string]spec.Schema{ "kind": { SchemaProps: spec.SchemaProps{ @@ -7992,43 +8153,27 @@ func schema_pkg_apis_management_v1_ClusterMemberAccess(ref common.ReferenceCallb Ref: ref(metav1.ObjectMeta{}.OpenAPIModelName()), }, }, - "teams": { + "spec": { SchemaProps: spec.SchemaProps{ - Description: "Teams holds all the teams that the current user has access to the cluster", - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.ClusterMember"), - }, - }, - }, + Default: map[string]interface{}{}, + Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.EventSpec"), }, }, - "users": { + "status": { SchemaProps: spec.SchemaProps{ - Description: "Users holds all the users that the current user has access to the cluster", - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.ClusterMember"), - }, - }, - }, + Default: map[string]interface{}{}, + Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.EventStatus"), }, }, }, }, }, Dependencies: []string{ - "github.com/devsy-org/api/pkg/apis/management/v1.ClusterMember", metav1.ObjectMeta{}.OpenAPIModelName()}, + "github.com/devsy-org/api/pkg/apis/management/v1.EventSpec", "github.com/devsy-org/api/pkg/apis/management/v1.EventStatus", metav1.ObjectMeta{}.OpenAPIModelName()}, } } -func schema_pkg_apis_management_v1_ClusterMemberAccessList(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_EventList(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ @@ -8061,7 +8206,7 @@ func schema_pkg_apis_management_v1_ClusterMemberAccessList(ref common.ReferenceC Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.ClusterMemberAccess"), + Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.Event"), }, }, }, @@ -8072,15 +8217,27 @@ func schema_pkg_apis_management_v1_ClusterMemberAccessList(ref common.ReferenceC }, }, Dependencies: []string{ - "github.com/devsy-org/api/pkg/apis/management/v1.ClusterMemberAccess", metav1.ListMeta{}.OpenAPIModelName()}, + "github.com/devsy-org/api/pkg/apis/management/v1.Event", metav1.ListMeta{}.OpenAPIModelName()}, } } -func schema_pkg_apis_management_v1_ClusterMembers(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_EventSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Type: []string{"object"}, + Description: "EventSpec holds the specification.", + Type: []string{"object"}, + }, + }, + } +} + +func schema_pkg_apis_management_v1_EventStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "EventStatus holds the status, which is the parsed raw config", + Type: []string{"object"}, Properties: map[string]spec.Schema{ "kind": { SchemaProps: spec.SchemaProps{ @@ -8096,195 +8253,147 @@ func schema_pkg_apis_management_v1_ClusterMembers(ref common.ReferenceCallback) Format: "", }, }, - "metadata": { + "level": { SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref(metav1.ObjectMeta{}.OpenAPIModelName()), + Description: "AuditLevel at which event was generated", + Default: "", + Type: []string{"string"}, + Format: "", }, }, - "teams": { + "auditID": { SchemaProps: spec.SchemaProps{ - Description: "Teams holds all the teams that have access to the cluster", - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.ClusterMember"), - }, - }, - }, + Description: "Unique audit ID, generated for each request.", + Default: "", + Type: []string{"string"}, + Format: "", }, }, - "users": { + "stage": { SchemaProps: spec.SchemaProps{ - Description: "Users holds all the users that have access to the cluster", - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.ClusterMember"), - }, - }, - }, + Description: "Stage of the request handling when this event instance was generated.", + Default: "", + Type: []string{"string"}, + Format: "", }, }, - }, - }, - }, - Dependencies: []string{ - "github.com/devsy-org/api/pkg/apis/management/v1.ClusterMember", metav1.ObjectMeta{}.OpenAPIModelName()}, - } -} - -func schema_pkg_apis_management_v1_ClusterMembersList(ref common.ReferenceCallback) common.OpenAPIDefinition { - return common.OpenAPIDefinition{ - Schema: spec.Schema{ - SchemaProps: spec.SchemaProps{ - Type: []string{"object"}, - Properties: map[string]spec.Schema{ - "kind": { + "requestURI": { SchemaProps: spec.SchemaProps{ - Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + Description: "RequestURI is the request URI as sent by the client to a server.", + Default: "", Type: []string{"string"}, Format: "", }, }, - "apiVersion": { + "verb": { SchemaProps: spec.SchemaProps{ - Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + Description: "Verb is the kubernetes verb associated with the request. For non-resource requests, this is the lower-cased HTTP method.", + Default: "", Type: []string{"string"}, Format: "", }, }, - "metadata": { + "user": { SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref(metav1.ListMeta{}.OpenAPIModelName()), + Description: "Authenticated user information.", + Default: map[string]interface{}{}, + Ref: ref("k8s.io/api/authentication/v1.UserInfo"), }, }, - "items": { + "impersonatedUser": { SchemaProps: spec.SchemaProps{ - Type: []string{"array"}, + Description: "Impersonated user information.", + Ref: ref("k8s.io/api/authentication/v1.UserInfo"), + }, + }, + "sourceIPs": { + SchemaProps: spec.SchemaProps{ + Description: "Source IPs, from where the request originated and intermediate proxies.", + Type: []string{"array"}, Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.ClusterMembers"), + Default: "", + Type: []string{"string"}, + Format: "", }, }, }, }, }, - }, - Required: []string{"items"}, - }, - }, - Dependencies: []string{ - "github.com/devsy-org/api/pkg/apis/management/v1.ClusterMembers", metav1.ListMeta{}.OpenAPIModelName()}, - } -} - -func schema_pkg_apis_management_v1_ClusterReset(ref common.ReferenceCallback) common.OpenAPIDefinition { - return common.OpenAPIDefinition{ - Schema: spec.Schema{ - SchemaProps: spec.SchemaProps{ - Type: []string{"object"}, - Properties: map[string]spec.Schema{ - "kind": { - SchemaProps: spec.SchemaProps{ - Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", - Type: []string{"string"}, - Format: "", - }, - }, - "apiVersion": { + "userAgent": { SchemaProps: spec.SchemaProps{ - Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + Description: "UserAgent records the user agent string reported by the client. Note that the UserAgent is provided by the client, and must not be trusted.", Type: []string{"string"}, Format: "", }, }, - "metadata": { + "objectRef": { SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref(metav1.ObjectMeta{}.OpenAPIModelName()), + Description: "Object reference this request is targeted at. Does not apply for List-type requests, or non-resource requests.", + Ref: ref("github.com/devsy-org/api/pkg/apis/audit/v1.ObjectReference"), }, }, - "agent": { + "responseStatus": { SchemaProps: spec.SchemaProps{ - Type: []string{"boolean"}, - Format: "", + Description: "The response status. For successful and non-successful responses, this will only include the Code and StatusSuccess. For panic type error responses, this will be auto-populated with the error Message.", + Ref: ref(metav1.Status{}.OpenAPIModelName()), }, }, - "rbac": { + "requestObject": { SchemaProps: spec.SchemaProps{ - Type: []string{"boolean"}, - Format: "", + Description: "API object from the request, in JSON format. The RequestObject is recorded as-is in the request (possibly re-encoded as JSON), prior to version conversion, defaulting, admission or merging. It is an external versioned object type, and may not be a valid object on its own. Omitted for non-resource requests. Only logged at Request Level and higher.", + Ref: ref(runtime.Unknown{}.OpenAPIModelName()), }, }, - }, - }, - }, - Dependencies: []string{ - metav1.ObjectMeta{}.OpenAPIModelName()}, - } -} - -func schema_pkg_apis_management_v1_ClusterResetList(ref common.ReferenceCallback) common.OpenAPIDefinition { - return common.OpenAPIDefinition{ - Schema: spec.Schema{ - SchemaProps: spec.SchemaProps{ - Type: []string{"object"}, - Properties: map[string]spec.Schema{ - "kind": { + "responseObject": { SchemaProps: spec.SchemaProps{ - Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", - Type: []string{"string"}, - Format: "", + Description: "API object returned in the response, in JSON. The ResponseObject is recorded after conversion to the external type, and serialized as JSON. Omitted for non-resource requests. Only logged at Response Level.", + Ref: ref(runtime.Unknown{}.OpenAPIModelName()), }, }, - "apiVersion": { + "requestReceivedTimestamp": { SchemaProps: spec.SchemaProps{ - Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", - Type: []string{"string"}, - Format: "", + Description: "Time the request reached the apiserver.", + Ref: ref(metav1.MicroTime{}.OpenAPIModelName()), }, }, - "metadata": { + "stageTimestamp": { SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref(metav1.ListMeta{}.OpenAPIModelName()), + Description: "Time the request reached current audit stage.", + Ref: ref(metav1.MicroTime{}.OpenAPIModelName()), }, }, - "items": { + "annotations": { SchemaProps: spec.SchemaProps{ - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ + Description: "Annotations is an unstructured key value map stored with an audit event that may be set by plugins invoked in the request serving chain, including authentication, authorization and admission plugins. Note that these annotations are for the audit event, and do not correspond to the metadata.annotations of the submitted object. Keys should uniquely identify the informing component to avoid name collisions (e.g. podsecuritypolicy.admission.k8s.io/policy). Values should be short. Annotations are included in the Metadata level.", + Type: []string{"object"}, + AdditionalProperties: &spec.SchemaOrBool{ + Allows: true, Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.ClusterReset"), + Default: "", + Type: []string{"string"}, + Format: "", }, }, }, }, }, }, - Required: []string{"items"}, + Required: []string{"level", "auditID", "stage", "requestURI", "verb", "user"}, }, }, Dependencies: []string{ - "github.com/devsy-org/api/pkg/apis/management/v1.ClusterReset", metav1.ListMeta{}.OpenAPIModelName()}, + "github.com/devsy-org/api/pkg/apis/audit/v1.ObjectReference", "k8s.io/api/authentication/v1.UserInfo", metav1.MicroTime{}.OpenAPIModelName(), metav1.Status{}.OpenAPIModelName(), runtime.Unknown{}.OpenAPIModelName()}, } } -func schema_pkg_apis_management_v1_ClusterRoleTemplate(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_Feature(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "ClusterRoleTemplate holds the clusterRoleTemplate information", + Description: "Feature holds the feature information", Type: []string{"object"}, Properties: map[string]spec.Schema{ "kind": { @@ -8310,24 +8419,24 @@ func schema_pkg_apis_management_v1_ClusterRoleTemplate(ref common.ReferenceCallb "spec": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.ClusterRoleTemplateSpec"), + Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.FeatureSpec"), }, }, "status": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.ClusterRoleTemplateStatus"), + Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.FeatureStatus"), }, }, }, }, }, Dependencies: []string{ - "github.com/devsy-org/api/pkg/apis/management/v1.ClusterRoleTemplateSpec", "github.com/devsy-org/api/pkg/apis/management/v1.ClusterRoleTemplateStatus", metav1.ObjectMeta{}.OpenAPIModelName()}, + "github.com/devsy-org/api/pkg/apis/management/v1.FeatureSpec", "github.com/devsy-org/api/pkg/apis/management/v1.FeatureStatus", metav1.ObjectMeta{}.OpenAPIModelName()}, } } -func schema_pkg_apis_management_v1_ClusterRoleTemplateList(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_FeatureList(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ @@ -8360,7 +8469,7 @@ func schema_pkg_apis_management_v1_ClusterRoleTemplateList(ref common.ReferenceC Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.ClusterRoleTemplate"), + Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.Feature"), }, }, }, @@ -8371,276 +8480,180 @@ func schema_pkg_apis_management_v1_ClusterRoleTemplateList(ref common.ReferenceC }, }, Dependencies: []string{ - "github.com/devsy-org/api/pkg/apis/management/v1.ClusterRoleTemplate", metav1.ListMeta{}.OpenAPIModelName()}, + "github.com/devsy-org/api/pkg/apis/management/v1.Feature", metav1.ListMeta{}.OpenAPIModelName()}, } } -func schema_pkg_apis_management_v1_ClusterRoleTemplateSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_FeatureSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "FeatureSpec holds the specification.", + Type: []string{"object"}, + }, + }, + } +} + +func schema_pkg_apis_management_v1_FeatureStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "ClusterRoleTemplateSpec holds the specification", + Description: "FeatureStatus holds the status.", Type: []string{"object"}, Properties: map[string]spec.Schema{ - "displayName": { + "name": { SchemaProps: spec.SchemaProps{ - Description: "DisplayName is the name that should be displayed in the UI", + Description: "Name is the name of the feature (FeatureName) This cannot be FeatureName because it needs to be downward compatible e.g. older Devsy version doesn't know a newer feature but it will still be received and still needs to be rendered in the license view", + Default: "", Type: []string{"string"}, Format: "", }, }, - "description": { + "displayName": { SchemaProps: spec.SchemaProps{ - Description: "Description describes a cluster role template object", - Type: []string{"string"}, - Format: "", + Type: []string{"string"}, + Format: "", }, }, - "owner": { + "preview": { SchemaProps: spec.SchemaProps{ - Description: "Owner holds the owner of this object", - Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.UserOrTeam"), + Description: "Preview represents whether the feature can be previewed if a user's license does not allow the feature", + Type: []string{"boolean"}, + Format: "", }, }, - "clusters": { + "allowBefore": { SchemaProps: spec.SchemaProps{ - Description: "Clusters are the clusters this template should be applied on.", - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: "", - Type: []string{"string"}, - Format: "", - }, - }, - }, + Description: "AllowBefore is an optional timestamp. If set, licenses issued before this time are allowed to use the feature even if it's not included in the license.", + Type: []string{"string"}, + Format: "", }, }, - "management": { + "status": { SchemaProps: spec.SchemaProps{ - Description: "Management defines if this cluster role should be created in the management instance.", - Type: []string{"boolean"}, + Description: "Status shows the status of the feature (see type FeatureStatus)", + Type: []string{"string"}, Format: "", }, }, - "access": { + "module": { SchemaProps: spec.SchemaProps{ - Description: "Access holds the access rights for users and teams", - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.Access"), - }, - }, - }, + Description: "Name of the module that this feature belongs to", + Type: []string{"string"}, + Format: "", }, }, - "clusterRoleTemplate": { + "internal": { SchemaProps: spec.SchemaProps{ - Description: "ClusterRoleTemplate holds the cluster role template", - Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.ClusterRoleTemplateTemplate"), + Description: "Internal marks internal features that should not be shown on the license view", + Type: []string{"boolean"}, + Format: "", }, }, - "localClusterRoleTemplate": { + "used": { SchemaProps: spec.SchemaProps{ - Description: "DEPRECATED: Use ClusterRoleTemplate instead LocalClusterRoleTemplate holds the cluster role template", - Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.LocalClusterRoleTemplate"), + Description: "Used marks features that are currently used in the product", + Type: []string{"boolean"}, + Format: "", }, }, }, + Required: []string{"name"}, }, }, - Dependencies: []string{ - "github.com/devsy-org/api/pkg/apis/storage/v1.Access", "github.com/devsy-org/api/pkg/apis/storage/v1.ClusterRoleTemplateTemplate", "github.com/devsy-org/api/pkg/apis/storage/v1.LocalClusterRoleTemplate", "github.com/devsy-org/api/pkg/apis/storage/v1.UserOrTeam"}, } } -func schema_pkg_apis_management_v1_ClusterRoleTemplateStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_GroupResources(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "ClusterRoleTemplateStatus holds the status", + Description: "GroupResources represents resource kinds in an API group.", Type: []string{"object"}, Properties: map[string]spec.Schema{ - "clusters": { + "group": { SchemaProps: spec.SchemaProps{ - Type: []string{"array"}, + Description: "Group is the name of the API group that contains the resources. The empty string represents the core API group.", + Type: []string{"string"}, + Format: "", + }, + }, + "resources": { + SchemaProps: spec.SchemaProps{ + Description: "Resources is a list of resources this rule applies to.\n\nFor example: 'pods' matches pods. 'pods/log' matches the log subresource of pods. '*' matches all resources and their subresources. 'pods/*' matches all subresources of pods. '*/scale' matches all scale subresources.\n\nIf wildcard is present, the validation rule will ensure resources do not overlap with each other.\n\nAn empty list implies all resources and subresources in this API groups apply.", + Type: []string{"array"}, Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ - Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.EntityInfo"), + Default: "", + Type: []string{"string"}, + Format: "", }, }, }, }, }, - }, - }, - }, - Dependencies: []string{ - "github.com/devsy-org/api/pkg/apis/storage/v1.EntityInfo"}, - } -} - -func schema_pkg_apis_management_v1_ClusterSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { - return common.OpenAPIDefinition{ - Schema: spec.Schema{ - SchemaProps: spec.SchemaProps{ - Description: "ClusterSpec holds the specification", - Type: []string{"object"}, - Properties: map[string]spec.Schema{ - "displayName": { - SchemaProps: spec.SchemaProps{ - Description: "If specified this name is displayed in the UI instead of the metadata name", - Type: []string{"string"}, - Format: "", - }, - }, - "description": { - SchemaProps: spec.SchemaProps{ - Description: "Description describes a cluster access object", - Type: []string{"string"}, - Format: "", - }, - }, - "owner": { - SchemaProps: spec.SchemaProps{ - Description: "Owner holds the owner of this object", - Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.UserOrTeam"), - }, - }, - "config": { - SchemaProps: spec.SchemaProps{ - Description: "Holds a reference to a secret that holds the kube config to access this cluster", - Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.SecretRef"), - }, - }, - "local": { - SchemaProps: spec.SchemaProps{ - Description: "Local specifies if it is the local cluster that should be connected, when this is specified, config is optional", - Type: []string{"boolean"}, - Format: "", - }, - }, - "networkPeer": { - SchemaProps: spec.SchemaProps{ - Description: "NetworkPeer specifies if the cluster is connected via tailscale, when this is specified, config is optional", - Type: []string{"boolean"}, - Format: "", - }, - }, - "managementNamespace": { - SchemaProps: spec.SchemaProps{ - Description: "The namespace where the cluster components will be installed in", - Type: []string{"string"}, - Format: "", - }, - }, - "unusable": { - SchemaProps: spec.SchemaProps{ - Description: "If unusable is true, no spaces or virtual clusters can be scheduled on this cluster.", - Type: []string{"boolean"}, - Format: "", - }, - }, - "access": { + "resourceNames": { SchemaProps: spec.SchemaProps{ - Description: "Access holds the access rights for users and teams", + Description: "ResourceNames is a list of resource instance names that the policy matches. Using this field requires Resources to be specified. An empty list implies that every instance of the resource is matched.", Type: []string{"array"}, Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.Access"), + Default: "", + Type: []string{"string"}, + Format: "", }, }, }, }, }, - "metrics": { - SchemaProps: spec.SchemaProps{ - Description: "Metrics holds the cluster's metrics backend configuration", - Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.Metrics"), - }, - }, - "opencost": { - SchemaProps: spec.SchemaProps{ - Description: "OpenCost holds the cluster's OpenCost backend configuration", - Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.OpenCost"), - }, - }, }, }, }, - Dependencies: []string{ - "github.com/devsy-org/api/pkg/apis/storage/v1.Access", "github.com/devsy-org/api/pkg/apis/storage/v1.Metrics", "github.com/devsy-org/api/pkg/apis/storage/v1.OpenCost", "github.com/devsy-org/api/pkg/apis/storage/v1.SecretRef", "github.com/devsy-org/api/pkg/apis/storage/v1.UserOrTeam"}, } } -func schema_pkg_apis_management_v1_ClusterStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_ImageBuilder(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "ClusterStatus holds the status", - Type: []string{"object"}, + Type: []string{"object"}, Properties: map[string]spec.Schema{ - "phase": { - SchemaProps: spec.SchemaProps{ - Type: []string{"string"}, - Format: "", - }, - }, - "reason": { - SchemaProps: spec.SchemaProps{ - Type: []string{"string"}, - Format: "", - }, - }, - "message": { + "enabled": { SchemaProps: spec.SchemaProps{ - Type: []string{"string"}, - Format: "", + Description: "Enabled specifies whether the remote image builder should be available. If it's not available building ad-hoc images from a devcontainer.json is not supported", + Type: []string{"boolean"}, + Format: "", }, }, - "conditions": { + "replicas": { SchemaProps: spec.SchemaProps{ - Description: "Conditions holds several conditions the cluster might be in", - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref(storagev1.Condition{}.OpenAPIModelName()), - }, - }, - }, + Description: "Replicas is the number of desired replicas.", + Type: []string{"integer"}, + Format: "int32", }, }, - "online": { + "resources": { SchemaProps: spec.SchemaProps{ - Description: "Online is whether the cluster is currently connected to the coordination server.", - Type: []string{"boolean"}, - Format: "", + Description: "Resources are compute resource required by the buildkit containers", + Ref: ref(corev1.ResourceRequirements{}.OpenAPIModelName()), }, }, }, }, }, Dependencies: []string{ - storagev1.Condition{}.OpenAPIModelName()}, + corev1.ResourceRequirements{}.OpenAPIModelName()}, } } -func schema_pkg_apis_management_v1_Config(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_IngressAuthToken(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "Config holds the devsy configuration", + Description: "IngressAuthToken holds the object information", Type: []string{"object"}, Properties: map[string]spec.Schema{ "kind": { @@ -8666,24 +8679,24 @@ func schema_pkg_apis_management_v1_Config(ref common.ReferenceCallback) common.O "spec": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.ConfigSpec"), + Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.IngressAuthTokenSpec"), }, }, "status": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.ConfigStatus"), + Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.IngressAuthTokenStatus"), }, }, }, }, }, Dependencies: []string{ - "github.com/devsy-org/api/pkg/apis/management/v1.ConfigSpec", "github.com/devsy-org/api/pkg/apis/management/v1.ConfigStatus", metav1.ObjectMeta{}.OpenAPIModelName()}, + "github.com/devsy-org/api/pkg/apis/management/v1.IngressAuthTokenSpec", "github.com/devsy-org/api/pkg/apis/management/v1.IngressAuthTokenStatus", metav1.ObjectMeta{}.OpenAPIModelName()}, } } -func schema_pkg_apis_management_v1_ConfigList(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_IngressAuthTokenList(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ @@ -8716,7 +8729,7 @@ func schema_pkg_apis_management_v1_ConfigList(ref common.ReferenceCallback) comm Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.Config"), + Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.IngressAuthToken"), }, }, }, @@ -8727,22 +8740,29 @@ func schema_pkg_apis_management_v1_ConfigList(ref common.ReferenceCallback) comm }, }, Dependencies: []string{ - "github.com/devsy-org/api/pkg/apis/management/v1.Config", metav1.ListMeta{}.OpenAPIModelName()}, + "github.com/devsy-org/api/pkg/apis/management/v1.IngressAuthToken", metav1.ListMeta{}.OpenAPIModelName()}, } } -func schema_pkg_apis_management_v1_ConfigSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_IngressAuthTokenSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "ConfigSpec holds the specification", + Description: "IngressAuthTokenSpec holds the object specification", Type: []string{"object"}, Properties: map[string]spec.Schema{ - "raw": { + "host": { + SchemaProps: spec.SchemaProps{ + Description: "Host is the host where the UI should get redirected", + Type: []string{"string"}, + Format: "", + }, + }, + "signature": { SchemaProps: spec.SchemaProps{ - Description: "Raw holds the raw config", + Description: "Signature is the signature of the agent for the host", Type: []string{"string"}, - Format: "byte", + Format: "", }, }, }, @@ -8751,236 +8771,237 @@ func schema_pkg_apis_management_v1_ConfigSpec(ref common.ReferenceCallback) comm } } -func schema_pkg_apis_management_v1_ConfigStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_IngressAuthTokenStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "ConfigStatus holds the status, which is the parsed raw config", + Description: "IngressAuthTokenStatus holds the object status", Type: []string{"object"}, Properties: map[string]spec.Schema{ - "auth": { - SchemaProps: spec.SchemaProps{ - Description: "Authentication holds the information for authentication", - Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.Authentication"), - }, - }, - "oidc": { - SchemaProps: spec.SchemaProps{ - Description: "DEPRECATED: Configure the OIDC clients using either the OIDC Client UI or a secret. By default, vCluster Platform as an OIDC Provider is enabled but does not function without OIDC clients.", - Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.OIDC"), - }, - }, - "apps": { - SchemaProps: spec.SchemaProps{ - Description: "Apps holds configuration around apps", - Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.Apps"), - }, - }, - "audit": { + "token": { SchemaProps: spec.SchemaProps{ - Description: "Audit holds audit configuration", - Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.Audit"), + Type: []string{"string"}, + Format: "", }, }, - "loftHost": { + }, + }, + }, + } +} + +func schema_pkg_apis_management_v1_Kiosk(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "Kiosk holds the kiosk types", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "kind": { SchemaProps: spec.SchemaProps{ - Description: "LoftHost holds the domain where the devsy instance is hosted. This should not include https or http. E.g. devsy.my-domain.com", + Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", Type: []string{"string"}, Format: "", }, }, - "projectNamespacePrefix": { + "apiVersion": { SchemaProps: spec.SchemaProps{ - Description: "ProjectNamespacePrefix holds the prefix for devsy project namespaces. Omitted defaults to \"p-\"", + Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", Type: []string{"string"}, Format: "", }, }, - "devPodSubDomain": { + "metadata": { SchemaProps: spec.SchemaProps{ - Description: "DevPodSubDomain holds a subdomain in the following form *.workspace.my-domain.com", - Type: []string{"string"}, - Format: "", + Default: map[string]interface{}{}, + Ref: ref(metav1.ObjectMeta{}.OpenAPIModelName()), }, }, - "uiSettings": { + "spec": { SchemaProps: spec.SchemaProps{ - Description: "UISettings holds the settings for modifying the Devsy user interface", - Ref: ref("github.com/devsy-org/api/pkg/apis/ui/v1.UISettingsConfig"), + Default: map[string]interface{}{}, + Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.KioskSpec"), }, }, - "vault": { + "status": { SchemaProps: spec.SchemaProps{ - Description: "VaultIntegration holds the vault integration configuration", - Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.VaultIntegrationSpec"), + Default: map[string]interface{}{}, + Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.KioskStatus"), }, }, - "disableConfigEndpoint": { + }, + }, + }, + Dependencies: []string{ + "github.com/devsy-org/api/pkg/apis/management/v1.KioskSpec", "github.com/devsy-org/api/pkg/apis/management/v1.KioskStatus", metav1.ObjectMeta{}.OpenAPIModelName()}, + } +} + +func schema_pkg_apis_management_v1_KioskList(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "kind": { SchemaProps: spec.SchemaProps{ - Description: "DisableDevsyConfigEndpoint will disable setting config via the UI and config.management.devsy.sh endpoint", - Type: []string{"boolean"}, + Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + Type: []string{"string"}, Format: "", }, }, - "authenticateVersionEndpoint": { + "apiVersion": { SchemaProps: spec.SchemaProps{ - Description: "AuthenticateVersionEndpoint will force authentication for the '/version' endpoint. Will only work with vCluster v0.27 & later", - Type: []string{"boolean"}, + Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + Type: []string{"string"}, Format: "", }, }, - "cloud": { - SchemaProps: spec.SchemaProps{ - Description: "Cloud holds the settings to be used exclusively in vCluster Cloud based environments and deployments.", - Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.Cloud"), - }, - }, - "costControl": { - SchemaProps: spec.SchemaProps{ - Description: "CostControl holds the settings related to the Cost Control ROI dashboard and its metrics gathering infrastructure", - Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.CostControl"), - }, - }, - "platformDB": { + "metadata": { SchemaProps: spec.SchemaProps{ - Description: "PlatformDB holds the settings related to the postgres database that platform uses to store data", - Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.PlatformDB"), + Default: map[string]interface{}{}, + Ref: ref(metav1.ListMeta{}.OpenAPIModelName()), }, }, - "imageBuilder": { + "items": { SchemaProps: spec.SchemaProps{ - Description: "ImageBuilder holds the settings related to the image builder", - Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.ImageBuilder"), + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.Kiosk"), + }, + }, + }, }, }, }, + Required: []string{"items"}, }, }, Dependencies: []string{ - "github.com/devsy-org/api/pkg/apis/management/v1.Apps", "github.com/devsy-org/api/pkg/apis/management/v1.Audit", "github.com/devsy-org/api/pkg/apis/management/v1.Authentication", "github.com/devsy-org/api/pkg/apis/management/v1.Cloud", "github.com/devsy-org/api/pkg/apis/management/v1.CostControl", "github.com/devsy-org/api/pkg/apis/management/v1.ImageBuilder", "github.com/devsy-org/api/pkg/apis/management/v1.OIDC", "github.com/devsy-org/api/pkg/apis/management/v1.PlatformDB", "github.com/devsy-org/api/pkg/apis/storage/v1.VaultIntegrationSpec", "github.com/devsy-org/api/pkg/apis/ui/v1.UISettingsConfig"}, + "github.com/devsy-org/api/pkg/apis/management/v1.Kiosk", metav1.ListMeta{}.OpenAPIModelName()}, } } -func schema_pkg_apis_management_v1_Connector(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_KioskSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ Type: []string{"object"}, Properties: map[string]spec.Schema{ - "oidc": { + "helmRelease": { SchemaProps: spec.SchemaProps{ - Description: "OIDC holds oidc authentication configuration", - Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.AuthenticationOIDC"), + Description: "cluster.devsy.sh", + Default: map[string]interface{}{}, + Ref: ref("github.com/devsy-org/agentapi/pkg/apis/devsy/cluster/v1.HelmRelease"), }, }, - "github": { + "sleepModeConfig": { SchemaProps: spec.SchemaProps{ - Description: "Github holds github authentication configuration", - Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.AuthenticationGithub"), + Default: map[string]interface{}{}, + Ref: ref("github.com/devsy-org/agentapi/pkg/apis/devsy/cluster/v1.SleepModeConfig"), }, }, - "gitlab": { + "chartInfo": { SchemaProps: spec.SchemaProps{ - Description: "Gitlab holds gitlab authentication configuration", - Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.AuthenticationGitlab"), + Default: map[string]interface{}{}, + Ref: ref("github.com/devsy-org/agentapi/pkg/apis/devsy/cluster/v1.ChartInfo"), }, }, - "google": { + "storageClusterQuota": { SchemaProps: spec.SchemaProps{ - Description: "Google holds google authentication configuration", - Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.AuthenticationGoogle"), + Description: "storage.devsy.sh", + Default: map[string]interface{}{}, + Ref: ref("github.com/devsy-org/agentapi/pkg/apis/devsy/storage/v1.ClusterQuota"), }, }, - "microsoft": { + "UISettings": { SchemaProps: spec.SchemaProps{ - Description: "Microsoft holds microsoft authentication configuration", - Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.AuthenticationMicrosoft"), + Description: "ui.devsy.sh", + Default: map[string]interface{}{}, + Ref: ref("github.com/devsy-org/api/pkg/apis/ui/v1.UISettings"), }, }, - "saml": { + "license": { SchemaProps: spec.SchemaProps{ - Description: "SAML holds saml authentication configuration", - Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.AuthenticationSAML"), + Default: map[string]interface{}{}, + Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.License"), }, }, - }, - }, - }, - Dependencies: []string{ - "github.com/devsy-org/api/pkg/apis/management/v1.AuthenticationGithub", "github.com/devsy-org/api/pkg/apis/management/v1.AuthenticationGitlab", "github.com/devsy-org/api/pkg/apis/management/v1.AuthenticationGoogle", "github.com/devsy-org/api/pkg/apis/management/v1.AuthenticationMicrosoft", "github.com/devsy-org/api/pkg/apis/management/v1.AuthenticationOIDC", "github.com/devsy-org/api/pkg/apis/management/v1.AuthenticationSAML"}, - } -} - -func schema_pkg_apis_management_v1_ConnectorWithName(ref common.ReferenceCallback) common.OpenAPIDefinition { - return common.OpenAPIDefinition{ - Schema: spec.Schema{ - SchemaProps: spec.SchemaProps{ - Type: []string{"object"}, - Properties: map[string]spec.Schema{ - "id": { + "nodeProviderBCMNodeWithResources": { SchemaProps: spec.SchemaProps{ - Description: "ID is the id that should show up in the url", - Type: []string{"string"}, - Format: "", + Description: "autoscaling", + Default: map[string]interface{}{}, + Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.NodeProviderBCMNodeWithResources"), }, }, - "displayName": { + "nodeProviderBCMGetResourcesResult": { SchemaProps: spec.SchemaProps{ - Description: "DisplayName is the name that should show up in the ui", - Type: []string{"string"}, - Format: "", + Default: map[string]interface{}{}, + Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.NodeProviderBCMGetResourcesResult"), }, }, - "oidc": { + "nodeProviderBCMTestConnectionResult": { SchemaProps: spec.SchemaProps{ - Description: "OIDC holds oidc authentication configuration", - Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.AuthenticationOIDC"), + Default: map[string]interface{}{}, + Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.NodeProviderBCMTestConnectionResult"), }, }, - "github": { + "nodeProviderCalculateCostResult": { SchemaProps: spec.SchemaProps{ - Description: "Github holds github authentication configuration", - Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.AuthenticationGithub"), + Default: map[string]interface{}{}, + Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.NodeProviderCalculateCostResult"), }, }, - "gitlab": { + "nodeProviderTerraformValidateResult": { SchemaProps: spec.SchemaProps{ - Description: "Gitlab holds gitlab authentication configuration", - Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.AuthenticationGitlab"), + Default: map[string]interface{}{}, + Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.NodeProviderTerraformValidateResult"), }, }, - "google": { + "nodeProviderExecResult": { SchemaProps: spec.SchemaProps{ - Description: "Google holds google authentication configuration", - Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.AuthenticationGoogle"), + Default: map[string]interface{}{}, + Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.NodeProviderExecResult"), }, }, - "microsoft": { + "nodeClaimData": { SchemaProps: spec.SchemaProps{ - Description: "Microsoft holds microsoft authentication configuration", - Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.AuthenticationMicrosoft"), + Default: map[string]interface{}{}, + Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.NodeClaimData"), }, }, - "saml": { + "nodeEnvironmentData": { SchemaProps: spec.SchemaProps{ - Description: "SAML holds saml authentication configuration", - Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.AuthenticationSAML"), + Default: map[string]interface{}{}, + Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.NodeEnvironmentData"), }, }, }, }, }, Dependencies: []string{ - "github.com/devsy-org/api/pkg/apis/management/v1.AuthenticationGithub", "github.com/devsy-org/api/pkg/apis/management/v1.AuthenticationGitlab", "github.com/devsy-org/api/pkg/apis/management/v1.AuthenticationGoogle", "github.com/devsy-org/api/pkg/apis/management/v1.AuthenticationMicrosoft", "github.com/devsy-org/api/pkg/apis/management/v1.AuthenticationOIDC", "github.com/devsy-org/api/pkg/apis/management/v1.AuthenticationSAML"}, + "github.com/devsy-org/agentapi/pkg/apis/devsy/cluster/v1.ChartInfo", "github.com/devsy-org/agentapi/pkg/apis/devsy/cluster/v1.HelmRelease", "github.com/devsy-org/agentapi/pkg/apis/devsy/cluster/v1.SleepModeConfig", "github.com/devsy-org/agentapi/pkg/apis/devsy/storage/v1.ClusterQuota", "github.com/devsy-org/api/pkg/apis/management/v1.License", "github.com/devsy-org/api/pkg/apis/management/v1.NodeClaimData", "github.com/devsy-org/api/pkg/apis/management/v1.NodeEnvironmentData", "github.com/devsy-org/api/pkg/apis/management/v1.NodeProviderBCMGetResourcesResult", "github.com/devsy-org/api/pkg/apis/management/v1.NodeProviderBCMNodeWithResources", "github.com/devsy-org/api/pkg/apis/management/v1.NodeProviderBCMTestConnectionResult", "github.com/devsy-org/api/pkg/apis/management/v1.NodeProviderCalculateCostResult", "github.com/devsy-org/api/pkg/apis/management/v1.NodeProviderExecResult", "github.com/devsy-org/api/pkg/apis/management/v1.NodeProviderTerraformValidateResult", "github.com/devsy-org/api/pkg/apis/ui/v1.UISettings"}, } } -func schema_pkg_apis_management_v1_ConvertVirtualClusterConfig(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_KioskStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "ConvertVirtualClusterConfig holds config request and response data for virtual clusters", + Type: []string{"object"}, + }, + }, + } +} + +func schema_pkg_apis_management_v1_License(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "License holds the license information.", Type: []string{"object"}, Properties: map[string]spec.Schema{ "kind": { @@ -9006,24 +9027,24 @@ func schema_pkg_apis_management_v1_ConvertVirtualClusterConfig(ref common.Refere "spec": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.ConvertVirtualClusterConfigSpec"), + Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.LicenseSpec"), }, }, "status": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.ConvertVirtualClusterConfigStatus"), + Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.LicenseStatus"), }, }, }, }, }, Dependencies: []string{ - "github.com/devsy-org/api/pkg/apis/management/v1.ConvertVirtualClusterConfigSpec", "github.com/devsy-org/api/pkg/apis/management/v1.ConvertVirtualClusterConfigStatus", metav1.ObjectMeta{}.OpenAPIModelName()}, + "github.com/devsy-org/api/pkg/apis/management/v1.LicenseSpec", "github.com/devsy-org/api/pkg/apis/management/v1.LicenseStatus", metav1.ObjectMeta{}.OpenAPIModelName()}, } } -func schema_pkg_apis_management_v1_ConvertVirtualClusterConfigList(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_LicenseList(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ @@ -9056,7 +9077,7 @@ func schema_pkg_apis_management_v1_ConvertVirtualClusterConfigList(ref common.Re Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.ConvertVirtualClusterConfig"), + Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.License"), }, }, }, @@ -9067,272 +9088,211 @@ func schema_pkg_apis_management_v1_ConvertVirtualClusterConfigList(ref common.Re }, }, Dependencies: []string{ - "github.com/devsy-org/api/pkg/apis/management/v1.ConvertVirtualClusterConfig", metav1.ListMeta{}.OpenAPIModelName()}, + "github.com/devsy-org/api/pkg/apis/management/v1.License", metav1.ListMeta{}.OpenAPIModelName()}, } } -func schema_pkg_apis_management_v1_ConvertVirtualClusterConfigSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_LicenseRequest(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "ConvertVirtualClusterConfigSpec holds the specification", + Description: "LicenseRequest holds license request information", Type: []string{"object"}, Properties: map[string]spec.Schema{ - "annotations": { + "kind": { SchemaProps: spec.SchemaProps{ - Description: "Annotations are annotations on the virtual cluster", - Type: []string{"object"}, - AdditionalProperties: &spec.SchemaOrBool{ - Allows: true, - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: "", - Type: []string{"string"}, - Format: "", - }, - }, - }, + Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + Type: []string{"string"}, + Format: "", }, }, - "distro": { + "apiVersion": { SchemaProps: spec.SchemaProps{ - Description: "Distro is the distro to be used for the config", + Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", Type: []string{"string"}, Format: "", }, }, - "values": { + "metadata": { SchemaProps: spec.SchemaProps{ - Description: "Values are the config values for the virtual cluster", - Type: []string{"string"}, - Format: "", + Default: map[string]interface{}{}, + Ref: ref(metav1.ObjectMeta{}.OpenAPIModelName()), }, }, - }, - }, - }, - } -} - -func schema_pkg_apis_management_v1_ConvertVirtualClusterConfigStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { - return common.OpenAPIDefinition{ - Schema: spec.Schema{ - SchemaProps: spec.SchemaProps{ - Description: "ConvertVirtualClusterConfigStatus holds the status", - Type: []string{"object"}, - Properties: map[string]spec.Schema{ - "values": { + "spec": { SchemaProps: spec.SchemaProps{ - Description: "Values are the converted config values for the virtual cluster", - Type: []string{"string"}, - Format: "", + Description: "Spec is the admin request spec (the input for the request).", + Default: map[string]interface{}{}, + Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.LicenseRequestSpec"), }, }, - "converted": { + "status": { SchemaProps: spec.SchemaProps{ - Description: "Converted signals if the Values have been converted from the old format", - Default: false, - Type: []string{"boolean"}, - Format: "", + Description: "Status is the admin request output (the output or result of the request).", + Default: map[string]interface{}{}, + Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.LicenseRequestStatus"), }, }, }, - Required: []string{"converted"}, }, }, + Dependencies: []string{ + "github.com/devsy-org/api/pkg/apis/management/v1.LicenseRequestSpec", "github.com/devsy-org/api/pkg/apis/management/v1.LicenseRequestStatus", metav1.ObjectMeta{}.OpenAPIModelName()}, } } -func schema_pkg_apis_management_v1_CostControl(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_LicenseRequestList(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ Type: []string{"object"}, Properties: map[string]spec.Schema{ - "enabled": { + "kind": { SchemaProps: spec.SchemaProps{ - Description: "Enabled specifies whether the ROI dashboard should be available in the UI, and if the metrics infrastructure that provides dashboard data is deployed", - Type: []string{"boolean"}, + Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + Type: []string{"string"}, Format: "", }, }, - "global": { - SchemaProps: spec.SchemaProps{ - Description: "Global are settings for globally managed components", - Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.CostControlGlobalConfig"), - }, - }, - "cluster": { - SchemaProps: spec.SchemaProps{ - Description: "Cluster are settings for each cluster's managed components. These settings apply to all connected clusters unless overridden by modifying the Cluster's spec", - Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.CostControlClusterConfig"), - }, - }, - "settings": { + "apiVersion": { SchemaProps: spec.SchemaProps{ - Description: "Settings specify price-related settings that are taken into account for the ROI dashboard calculations.", - Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.CostControlSettings"), + Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + Type: []string{"string"}, + Format: "", }, }, - }, - }, - }, - Dependencies: []string{ - "github.com/devsy-org/api/pkg/apis/management/v1.CostControlClusterConfig", "github.com/devsy-org/api/pkg/apis/management/v1.CostControlGlobalConfig", "github.com/devsy-org/api/pkg/apis/management/v1.CostControlSettings"}, - } -} - -func schema_pkg_apis_management_v1_CostControlClusterConfig(ref common.ReferenceCallback) common.OpenAPIDefinition { - return common.OpenAPIDefinition{ - Schema: spec.Schema{ - SchemaProps: spec.SchemaProps{ - Type: []string{"object"}, - Properties: map[string]spec.Schema{ - "metrics": { + "metadata": { SchemaProps: spec.SchemaProps{ - Description: "Metrics are settings applied to metric infrastructure in each connected cluster. These can be overridden in individual clusters by modifying the Cluster's spec", - Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.Metrics"), + Default: map[string]interface{}{}, + Ref: ref(metav1.ListMeta{}.OpenAPIModelName()), }, }, - "opencost": { + "items": { SchemaProps: spec.SchemaProps{ - Description: "OpenCost are settings applied to OpenCost deployments in each connected cluster. These can be overridden in individual clusters by modifying the Cluster's spec", - Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.OpenCost"), + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.LicenseRequest"), + }, + }, + }, }, }, }, + Required: []string{"items"}, }, }, Dependencies: []string{ - "github.com/devsy-org/api/pkg/apis/storage/v1.Metrics", "github.com/devsy-org/api/pkg/apis/storage/v1.OpenCost"}, + "github.com/devsy-org/api/pkg/apis/management/v1.LicenseRequest", metav1.ListMeta{}.OpenAPIModelName()}, } } -func schema_pkg_apis_management_v1_CostControlGPUSettings(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_LicenseRequestSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ Type: []string{"object"}, Properties: map[string]spec.Schema{ - "enabled": { + "url": { SchemaProps: spec.SchemaProps{ - Description: "Enabled specifies whether GPU settings should be available in the UI.", - Type: []string{"boolean"}, + Description: "URL is the url for the request.", + Type: []string{"string"}, Format: "", }, }, - "averageGPUPrice": { + "input": { SchemaProps: spec.SchemaProps{ - Description: "AvgGPUPrice specifies the average GPU price.", - Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.CostControlResourcePrice"), + Description: "Input is the input payload to send to the url.", + Default: map[string]interface{}{}, + Ref: ref("github.com/devsy-org/admin-apis/pkg/licenseapi.GenericRequestInput"), }, }, }, }, }, Dependencies: []string{ - "github.com/devsy-org/api/pkg/apis/management/v1.CostControlResourcePrice"}, + "github.com/devsy-org/admin-apis/pkg/licenseapi.GenericRequestInput"}, } } -func schema_pkg_apis_management_v1_CostControlGlobalConfig(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_LicenseRequestStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ Type: []string{"object"}, Properties: map[string]spec.Schema{ - "metrics": { + "output": { SchemaProps: spec.SchemaProps{ - Description: "Metrics these settings apply to metric infrastructure used to aggregate metrics across all connected clusters", - Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.Metrics"), + Description: "Output is where the request output is stored.", + Ref: ref("github.com/devsy-org/admin-apis/pkg/licenseapi.GenericRequestOutput"), }, }, }, }, }, Dependencies: []string{ - "github.com/devsy-org/api/pkg/apis/storage/v1.Metrics"}, + "github.com/devsy-org/admin-apis/pkg/licenseapi.GenericRequestOutput"}, } } -func schema_pkg_apis_management_v1_CostControlResourcePrice(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_LicenseSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ Type: []string{"object"}, - Properties: map[string]spec.Schema{ - "price": { - SchemaProps: spec.SchemaProps{ - Description: "Price specifies the price.", - Type: []string{"number"}, - Format: "double", - }, - }, - "timePeriod": { - SchemaProps: spec.SchemaProps{ - Description: "TimePeriod specifies the time period for the price.", - Type: []string{"string"}, - Format: "", - }, - }, - }, }, }, } } -func schema_pkg_apis_management_v1_CostControlSettings(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_LicenseStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ Type: []string{"object"}, Properties: map[string]spec.Schema{ - "priceCurrency": { - SchemaProps: spec.SchemaProps{ - Description: "PriceCurrency specifies the currency.", - Type: []string{"string"}, - Format: "", - }, - }, - "averageCPUPricePerNode": { - SchemaProps: spec.SchemaProps{ - Description: "AvgCPUPricePerNode specifies the average CPU price per node.", - Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.CostControlResourcePrice"), - }, - }, - "averageRAMPricePerNode": { + "license": { SchemaProps: spec.SchemaProps{ - Description: "AvgRAMPricePerNode specifies the average RAM price per node.", - Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.CostControlResourcePrice"), + Description: "License is the license data received from the license server.", + Ref: ref("github.com/devsy-org/admin-apis/pkg/licenseapi.License"), }, }, - "gpuSettings": { + "resourceUsage": { SchemaProps: spec.SchemaProps{ - Description: "GPUSettings specifies GPU related settings.", - Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.CostControlGPUSettings"), + Description: "ResourceUsage shows the current usage of license limit.", + Type: []string{"object"}, + AdditionalProperties: &spec.SchemaOrBool{ + Allows: true, + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("github.com/devsy-org/admin-apis/pkg/licenseapi.ResourceCount"), + }, + }, + }, }, }, - "controlPlanePricePerCluster": { + "platformDatabase": { SchemaProps: spec.SchemaProps{ - Description: "ControlPlanePricePerCluster specifies the price of one physical cluster.", - Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.CostControlResourcePrice"), + Description: "PlatformDatabase shows information about the platform database installation", + Ref: ref("github.com/devsy-org/admin-apis/pkg/licenseapi.PlatformDatabase"), }, }, }, }, }, Dependencies: []string{ - "github.com/devsy-org/api/pkg/apis/management/v1.CostControlGPUSettings", "github.com/devsy-org/api/pkg/apis/management/v1.CostControlResourcePrice"}, + "github.com/devsy-org/admin-apis/pkg/licenseapi.License", "github.com/devsy-org/admin-apis/pkg/licenseapi.PlatformDatabase", "github.com/devsy-org/admin-apis/pkg/licenseapi.ResourceCount"}, } } -func schema_pkg_apis_management_v1_DatabaseConnector(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_LicenseToken(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "DatabaseConnector represents a connector that can be used to provision and manage a backingstore for a vCluster", + Description: "License Token holds the license token information", Type: []string{"object"}, Properties: map[string]spec.Schema{ "kind": { @@ -9358,24 +9318,24 @@ func schema_pkg_apis_management_v1_DatabaseConnector(ref common.ReferenceCallbac "spec": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.DatabaseConnectorSpec"), + Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.LicenseTokenSpec"), }, }, "status": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.DatabaseConnectorStatus"), + Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.LicenseTokenStatus"), }, }, }, }, }, Dependencies: []string{ - "github.com/devsy-org/api/pkg/apis/management/v1.DatabaseConnectorSpec", "github.com/devsy-org/api/pkg/apis/management/v1.DatabaseConnectorStatus", metav1.ObjectMeta{}.OpenAPIModelName()}, + "github.com/devsy-org/api/pkg/apis/management/v1.LicenseTokenSpec", "github.com/devsy-org/api/pkg/apis/management/v1.LicenseTokenStatus", metav1.ObjectMeta{}.OpenAPIModelName()}, } } -func schema_pkg_apis_management_v1_DatabaseConnectorList(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_LicenseTokenList(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ @@ -9408,7 +9368,7 @@ func schema_pkg_apis_management_v1_DatabaseConnectorList(ref common.ReferenceCal Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.DatabaseConnector"), + Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.LicenseToken"), }, }, }, @@ -9419,25 +9379,23 @@ func schema_pkg_apis_management_v1_DatabaseConnectorList(ref common.ReferenceCal }, }, Dependencies: []string{ - "github.com/devsy-org/api/pkg/apis/management/v1.DatabaseConnector", metav1.ListMeta{}.OpenAPIModelName()}, + "github.com/devsy-org/api/pkg/apis/management/v1.LicenseToken", metav1.ListMeta{}.OpenAPIModelName()}, } } -func schema_pkg_apis_management_v1_DatabaseConnectorSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_LicenseTokenSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "DatabaseConnectorSpec holds the specification", - Type: []string{"object"}, + Type: []string{"object"}, Properties: map[string]spec.Schema{ - "type": { + "url": { SchemaProps: spec.SchemaProps{ - Description: "The client id of the client", - Type: []string{"string"}, - Format: "", + Type: []string{"string"}, + Format: "", }, }, - "displayName": { + "payload": { SchemaProps: spec.SchemaProps{ Type: []string{"string"}, Format: "", @@ -9449,197 +9407,125 @@ func schema_pkg_apis_management_v1_DatabaseConnectorSpec(ref common.ReferenceCal } } -func schema_pkg_apis_management_v1_DatabaseConnectorStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_LicenseTokenStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "DatabaseConnectorStatus holds the status", - Type: []string{"object"}, + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "token": { + SchemaProps: spec.SchemaProps{ + Ref: ref("github.com/devsy-org/admin-apis/pkg/licenseapi.InstanceTokenAuth"), + }, + }, + }, }, }, + Dependencies: []string{ + "github.com/devsy-org/admin-apis/pkg/licenseapi.InstanceTokenAuth"}, } } -func schema_pkg_apis_management_v1_DevPodEnvironmentTemplate(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_MaintenanceWindow(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "DevPodEnvironmentTemplate holds the DevPodEnvironmentTemplate information", - Type: []string{"object"}, + Type: []string{"object"}, Properties: map[string]spec.Schema{ - "kind": { + "dayOfWeek": { SchemaProps: spec.SchemaProps{ - Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + Description: "DayOfWeek specifies the day of the week for the maintenance window. It should be a string representing the day, e.g., \"Monday\", \"Tuesday\", etc.", Type: []string{"string"}, Format: "", }, }, - "apiVersion": { + "timeWindow": { SchemaProps: spec.SchemaProps{ - Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + Description: "TimeWindow specifies the time window for the maintenance. It should be a string representing the time range in 24-hour format, in UTC, e.g., \"02:00-03:00\".", Type: []string{"string"}, Format: "", }, }, - "metadata": { - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref(metav1.ObjectMeta{}.OpenAPIModelName()), - }, - }, - "spec": { - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.DevPodEnvironmentTemplateSpec"), - }, - }, - "status": { - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.DevPodEnvironmentTemplateStatus"), - }, - }, }, }, }, - Dependencies: []string{ - "github.com/devsy-org/api/pkg/apis/management/v1.DevPodEnvironmentTemplateSpec", "github.com/devsy-org/api/pkg/apis/management/v1.DevPodEnvironmentTemplateStatus", metav1.ObjectMeta{}.OpenAPIModelName()}, } } -func schema_pkg_apis_management_v1_DevPodEnvironmentTemplateList(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_ManagementRole(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ Type: []string{"object"}, Properties: map[string]spec.Schema{ - "kind": { + "namespace": { SchemaProps: spec.SchemaProps{ - Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + Description: "Namespace of the referenced object", Type: []string{"string"}, Format: "", }, }, - "apiVersion": { + "name": { SchemaProps: spec.SchemaProps{ - Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + Description: "Name of the referenced object", Type: []string{"string"}, Format: "", }, }, - "metadata": { + "displayName": { SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref(metav1.ListMeta{}.OpenAPIModelName()), + Description: "DisplayName is the name of the object to display in the UI", + Type: []string{"string"}, + Format: "", }, }, - "items": { + "assignedVia": { SchemaProps: spec.SchemaProps{ - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.DevPodEnvironmentTemplate"), - }, - }, - }, + Description: "AssignedVia describes the resource that establishes the project membership", + Default: map[string]interface{}{}, + Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.AssignedVia"), }, }, }, - Required: []string{"items"}, }, }, Dependencies: []string{ - "github.com/devsy-org/api/pkg/apis/management/v1.DevPodEnvironmentTemplate", metav1.ListMeta{}.OpenAPIModelName()}, + "github.com/devsy-org/api/pkg/apis/management/v1.AssignedVia"}, } } -func schema_pkg_apis_management_v1_DevPodEnvironmentTemplateSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_NamespacedNameArgs(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "DevPodEnvironmentTemplateSpec holds the specification", - Type: []string{"object"}, + Type: []string{"object"}, Properties: map[string]spec.Schema{ - "displayName": { - SchemaProps: spec.SchemaProps{ - Description: "DisplayName is the name that should be displayed in the UI", - Type: []string{"string"}, - Format: "", - }, - }, - "description": { - SchemaProps: spec.SchemaProps{ - Description: "Description describes the environment template", - Type: []string{"string"}, - Format: "", - }, - }, - "owner": { - SchemaProps: spec.SchemaProps{ - Description: "Owner holds the owner of this object", - Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.UserOrTeam"), - }, - }, - "access": { - SchemaProps: spec.SchemaProps{ - Description: "Access to the DevPod machine instance object itself", - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.Access"), - }, - }, - }, - }, - }, - "template": { + "namespace": { SchemaProps: spec.SchemaProps{ - Description: "Template is the inline template to use for DevPod environments", - Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.DevPodEnvironmentTemplateDefinition"), + Default: "", + Type: []string{"string"}, + Format: "", }, }, - "versions": { + "name": { SchemaProps: spec.SchemaProps{ - Description: "Versions are different versions of the template that can be referenced as well", - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.DevPodEnvironmentTemplateVersion"), - }, - }, - }, + Default: "", + Type: []string{"string"}, + Format: "", }, }, }, - }, - }, - Dependencies: []string{ - "github.com/devsy-org/api/pkg/apis/storage/v1.Access", "github.com/devsy-org/api/pkg/apis/storage/v1.DevPodEnvironmentTemplateDefinition", "github.com/devsy-org/api/pkg/apis/storage/v1.DevPodEnvironmentTemplateVersion", "github.com/devsy-org/api/pkg/apis/storage/v1.UserOrTeam"}, - } -} - -func schema_pkg_apis_management_v1_DevPodEnvironmentTemplateStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { - return common.OpenAPIDefinition{ - Schema: spec.Schema{ - SchemaProps: spec.SchemaProps{ - Description: "DevPodEnvironmentTemplateStatus holds the status", - Type: []string{"object"}, + Required: []string{"namespace", "name"}, }, }, } } -func schema_pkg_apis_management_v1_DevPodWorkspaceInstance(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_NodeClaim(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "DevPodWorkspaceInstance holds the DevPodWorkspaceInstance information", + Description: "NodeClaim holds the node claim for vCluster.", Type: []string{"object"}, Properties: map[string]spec.Schema{ "kind": { @@ -9665,65 +9551,66 @@ func schema_pkg_apis_management_v1_DevPodWorkspaceInstance(ref common.ReferenceC "spec": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.DevPodWorkspaceInstanceSpec"), + Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.NodeClaimSpec"), }, }, "status": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.DevPodWorkspaceInstanceStatus"), + Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.NodeClaimStatus"), }, }, }, }, }, Dependencies: []string{ - "github.com/devsy-org/api/pkg/apis/management/v1.DevPodWorkspaceInstanceSpec", "github.com/devsy-org/api/pkg/apis/management/v1.DevPodWorkspaceInstanceStatus", metav1.ObjectMeta{}.OpenAPIModelName()}, + "github.com/devsy-org/api/pkg/apis/management/v1.NodeClaimSpec", "github.com/devsy-org/api/pkg/apis/management/v1.NodeClaimStatus", metav1.ObjectMeta{}.OpenAPIModelName()}, } } -func schema_pkg_apis_management_v1_DevPodWorkspaceInstanceCancel(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_NodeClaimData(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ Type: []string{"object"}, Properties: map[string]spec.Schema{ - "kind": { + "userData": { SchemaProps: spec.SchemaProps{ - Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + Description: "UserData that should be used to start the node.", Type: []string{"string"}, Format: "", }, }, - "apiVersion": { + "state": { SchemaProps: spec.SchemaProps{ - Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + Description: "Terraform state of the node claim.", Type: []string{"string"}, - Format: "", - }, - }, - "metadata": { - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref(metav1.ObjectMeta{}.OpenAPIModelName()), + Format: "byte", }, }, - "taskId": { + "operations": { SchemaProps: spec.SchemaProps{ - Description: "TaskID is the id of the task that should get cancelled", - Type: []string{"string"}, - Format: "", + Description: "Operations that were applied to the node claim.", + Type: []string{"object"}, + AdditionalProperties: &spec.SchemaOrBool{ + Allows: true, + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.Operation"), + }, + }, + }, }, }, }, }, }, Dependencies: []string{ - metav1.ObjectMeta{}.OpenAPIModelName()}, + "github.com/devsy-org/api/pkg/apis/management/v1.Operation"}, } } -func schema_pkg_apis_management_v1_DevPodWorkspaceInstanceCancelList(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_NodeClaimList(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ @@ -9756,7 +9643,7 @@ func schema_pkg_apis_management_v1_DevPodWorkspaceInstanceCancelList(ref common. Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.DevPodWorkspaceInstanceCancel"), + Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.NodeClaim"), }, }, }, @@ -9767,97 +9654,182 @@ func schema_pkg_apis_management_v1_DevPodWorkspaceInstanceCancelList(ref common. }, }, Dependencies: []string{ - "github.com/devsy-org/api/pkg/apis/management/v1.DevPodWorkspaceInstanceCancel", metav1.ListMeta{}.OpenAPIModelName()}, + "github.com/devsy-org/api/pkg/apis/management/v1.NodeClaim", metav1.ListMeta{}.OpenAPIModelName()}, } } -func schema_pkg_apis_management_v1_DevPodWorkspaceInstanceDownload(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_NodeClaimSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Type: []string{"object"}, + Description: "NodeClaimSpec defines spec of node claim.", + Type: []string{"object"}, Properties: map[string]spec.Schema{ - "kind": { + "taints": { SchemaProps: spec.SchemaProps{ - Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + Description: "Taints will be applied to the NodeClaim's node.", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref(corev1.Taint{}.OpenAPIModelName()), + }, + }, + }, + }, + }, + "startupTaints": { + SchemaProps: spec.SchemaProps{ + Description: "StartupTaints are taints that are applied to nodes upon startup which are expected to be removed automatically within a short period of time, typically by a DaemonSet that tolerates the taint. These are commonly used by daemonsets to allow initialization and enforce startup ordering. StartupTaints are ignored for provisioning purposes in that pods are not required to tolerate a StartupTaint in order to have nodes provisioned for them.", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref(corev1.Taint{}.OpenAPIModelName()), + }, + }, + }, + }, + }, + "kubeletArgs": { + SchemaProps: spec.SchemaProps{ + Description: "KubeletArgs are additional arguments to pass to the kubelet.", + Type: []string{"object"}, + AdditionalProperties: &spec.SchemaOrBool{ + Allows: true, + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + }, + }, + }, + "desiredCapacity": { + SchemaProps: spec.SchemaProps{ + Description: "DesiredCapacity specifies the resources requested by the NodeClaim.", + Type: []string{"object"}, + AdditionalProperties: &spec.SchemaOrBool{ + Allows: true, + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Ref: ref(resource.Quantity{}.OpenAPIModelName()), + }, + }, + }, + }, + }, + "requirements": { + SchemaProps: spec.SchemaProps{ + Description: "Requirements are the requirements for the NodeClaim.", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref(corev1.NodeSelectorRequirement{}.OpenAPIModelName()), + }, + }, + }, + }, + }, + "providerRef": { + SchemaProps: spec.SchemaProps{ + Description: "ProviderRef is the name of the NodeProvider that this NodeClaim is based on.", Type: []string{"string"}, Format: "", }, }, - "apiVersion": { + "typeRef": { SchemaProps: spec.SchemaProps{ - Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + Description: "TypeRef is the full name of the NodeType that this NodeClaim is based on.", Type: []string{"string"}, Format: "", }, }, - "metadata": { + "vClusterRef": { SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref(metav1.ObjectMeta{}.OpenAPIModelName()), + Description: "DevsyRef references source vCluster. This is required.", + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + "controlPlane": { + SchemaProps: spec.SchemaProps{ + Description: "ControlPlane indicates if the node claim is for a control plane node.", + Type: []string{"boolean"}, + Format: "", }, }, }, + Required: []string{"vClusterRef"}, }, }, Dependencies: []string{ - metav1.ObjectMeta{}.OpenAPIModelName()}, + corev1.NodeSelectorRequirement{}.OpenAPIModelName(), corev1.Taint{}.OpenAPIModelName(), resource.Quantity{}.OpenAPIModelName()}, } } -func schema_pkg_apis_management_v1_DevPodWorkspaceInstanceDownloadList(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_NodeClaimStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ Type: []string{"object"}, Properties: map[string]spec.Schema{ - "kind": { + "phase": { SchemaProps: spec.SchemaProps{ - Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + Description: "Phase is the current lifecycle phase of the NodeClaim.", Type: []string{"string"}, Format: "", }, }, - "apiVersion": { + "reason": { SchemaProps: spec.SchemaProps{ - Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + Description: "Reason describes the reason in machine-readable form", Type: []string{"string"}, Format: "", }, }, - "metadata": { + "message": { SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref(metav1.ListMeta{}.OpenAPIModelName()), + Description: "Message describes the reason in human-readable form", + Type: []string{"string"}, + Format: "", }, }, - "items": { + "conditions": { SchemaProps: spec.SchemaProps{ - Type: []string{"array"}, + Description: "Conditions describe the current state of the platform NodeClaim.", + Type: []string{"array"}, Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.DevPodWorkspaceInstanceDownload"), + Ref: ref("github.com/devsy-org/agentapi/pkg/apis/devsy/storage/v1.Condition"), }, }, }, }, }, }, - Required: []string{"items"}, }, }, Dependencies: []string{ - "github.com/devsy-org/api/pkg/apis/management/v1.DevPodWorkspaceInstanceDownload", metav1.ListMeta{}.OpenAPIModelName()}, + "github.com/devsy-org/agentapi/pkg/apis/devsy/storage/v1.Condition"}, } } -func schema_pkg_apis_management_v1_DevPodWorkspaceInstanceDownloadOptions(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_NodeEnvironment(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Type: []string{"object"}, + Description: "NodeEnvironment holds the node environment for vCluster.", + Type: []string{"object"}, Properties: map[string]spec.Schema{ "kind": { SchemaProps: spec.SchemaProps{ @@ -9873,20 +9845,75 @@ func schema_pkg_apis_management_v1_DevPodWorkspaceInstanceDownloadOptions(ref co Format: "", }, }, - "path": { + "metadata": { SchemaProps: spec.SchemaProps{ - Description: "Path is the path to download", + Default: map[string]interface{}{}, + Ref: ref(metav1.ObjectMeta{}.OpenAPIModelName()), + }, + }, + "spec": { + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.NodeEnvironmentSpec"), + }, + }, + "status": { + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.NodeEnvironmentStatus"), + }, + }, + }, + }, + }, + Dependencies: []string{ + "github.com/devsy-org/api/pkg/apis/management/v1.NodeEnvironmentSpec", "github.com/devsy-org/api/pkg/apis/management/v1.NodeEnvironmentStatus", metav1.ObjectMeta{}.OpenAPIModelName()}, + } +} + +func schema_pkg_apis_management_v1_NodeEnvironmentData(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "outputs": { + SchemaProps: spec.SchemaProps{ + Description: "Outputs of the node environment.", Type: []string{"string"}, - Format: "", + Format: "byte", + }, + }, + "state": { + SchemaProps: spec.SchemaProps{ + Description: "Terraform state of the node environment.", + Type: []string{"string"}, + Format: "byte", + }, + }, + "operations": { + SchemaProps: spec.SchemaProps{ + Description: "Operations that were applied to the node environment.", + Type: []string{"object"}, + AdditionalProperties: &spec.SchemaOrBool{ + Allows: true, + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.Operation"), + }, + }, + }, }, }, }, }, }, + Dependencies: []string{ + "github.com/devsy-org/api/pkg/apis/management/v1.Operation"}, } } -func schema_pkg_apis_management_v1_DevPodWorkspaceInstanceList(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_NodeEnvironmentList(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ @@ -9919,7 +9946,7 @@ func schema_pkg_apis_management_v1_DevPodWorkspaceInstanceList(ref common.Refere Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.DevPodWorkspaceInstance"), + Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.NodeEnvironment"), }, }, }, @@ -9930,97 +9957,111 @@ func schema_pkg_apis_management_v1_DevPodWorkspaceInstanceList(ref common.Refere }, }, Dependencies: []string{ - "github.com/devsy-org/api/pkg/apis/management/v1.DevPodWorkspaceInstance", metav1.ListMeta{}.OpenAPIModelName()}, + "github.com/devsy-org/api/pkg/apis/management/v1.NodeEnvironment", metav1.ListMeta{}.OpenAPIModelName()}, } } -func schema_pkg_apis_management_v1_DevPodWorkspaceInstanceLog(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_NodeEnvironmentSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Type: []string{"object"}, + Description: "NodeEnvironmentSpec defines spec of node environment.", + Type: []string{"object"}, Properties: map[string]spec.Schema{ - "kind": { + "properties": { SchemaProps: spec.SchemaProps{ - Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", - Type: []string{"string"}, - Format: "", + Description: "Properties are the properties for the NodeEnvironment.", + Type: []string{"object"}, + AdditionalProperties: &spec.SchemaOrBool{ + Allows: true, + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + }, }, }, - "apiVersion": { + "providerRef": { SchemaProps: spec.SchemaProps{ - Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + Description: "ProviderRef is the name of the NodeProvider that this NodeEnvironment is based on.", + Default: "", Type: []string{"string"}, Format: "", }, }, - "metadata": { + "vClusterRef": { SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref(metav1.ObjectMeta{}.OpenAPIModelName()), + Description: "DevsyRef references source vCluster. This is required.", + Default: "", + Type: []string{"string"}, + Format: "", }, }, }, + Required: []string{"providerRef", "vClusterRef"}, }, }, - Dependencies: []string{ - metav1.ObjectMeta{}.OpenAPIModelName()}, } } -func schema_pkg_apis_management_v1_DevPodWorkspaceInstanceLogList(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_NodeEnvironmentStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ Type: []string{"object"}, Properties: map[string]spec.Schema{ - "kind": { + "phase": { SchemaProps: spec.SchemaProps{ - Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + Description: "Phase is the current lifecycle phase of the NodeEnvironment.", Type: []string{"string"}, Format: "", }, }, - "apiVersion": { + "reason": { SchemaProps: spec.SchemaProps{ - Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + Description: "Reason describes the reason in machine-readable form", Type: []string{"string"}, Format: "", }, }, - "metadata": { + "message": { SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref(metav1.ListMeta{}.OpenAPIModelName()), + Description: "Message describes the reason in human-readable form", + Type: []string{"string"}, + Format: "", }, }, - "items": { + "conditions": { SchemaProps: spec.SchemaProps{ - Type: []string{"array"}, + Description: "Conditions describe the current state of the platform NodeClaim.", + Type: []string{"array"}, Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.DevPodWorkspaceInstanceLog"), + Ref: ref("github.com/devsy-org/agentapi/pkg/apis/devsy/storage/v1.Condition"), }, }, }, }, }, }, - Required: []string{"items"}, }, }, Dependencies: []string{ - "github.com/devsy-org/api/pkg/apis/management/v1.DevPodWorkspaceInstanceLog", metav1.ListMeta{}.OpenAPIModelName()}, + "github.com/devsy-org/agentapi/pkg/apis/devsy/storage/v1.Condition"}, } } -func schema_pkg_apis_management_v1_DevPodWorkspaceInstanceLogOptions(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_NodeProvider(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Type: []string{"object"}, + Description: "NodeProvider holds the information of a node provider config. This resource defines various ways a node can be provisioned or configured.", + Type: []string{"object"}, Properties: map[string]spec.Schema{ "kind": { SchemaProps: spec.SchemaProps{ @@ -10036,217 +10077,190 @@ func schema_pkg_apis_management_v1_DevPodWorkspaceInstanceLogOptions(ref common. Format: "", }, }, - "taskID": { + "metadata": { SchemaProps: spec.SchemaProps{ - Description: "TaskID is the id of the task that is running", - Type: []string{"string"}, - Format: "", + Default: map[string]interface{}{}, + Ref: ref(metav1.ObjectMeta{}.OpenAPIModelName()), }, }, - "follow": { + "spec": { SchemaProps: spec.SchemaProps{ - Description: "Follow the log stream of the task. Defaults to false.", - Type: []string{"boolean"}, - Format: "", + Default: map[string]interface{}{}, + Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.NodeProviderSpec"), + }, + }, + "status": { + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.NodeProviderStatus"), }, }, }, }, }, + Dependencies: []string{ + "github.com/devsy-org/api/pkg/apis/management/v1.NodeProviderSpec", "github.com/devsy-org/api/pkg/apis/management/v1.NodeProviderStatus", metav1.ObjectMeta{}.OpenAPIModelName()}, } } -func schema_pkg_apis_management_v1_DevPodWorkspaceInstanceSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_NodeProviderBCMGetResourcesResult(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "DevPodWorkspaceInstanceSpec holds the specification", - Type: []string{"object"}, + Type: []string{"object"}, Properties: map[string]spec.Schema{ - "displayName": { - SchemaProps: spec.SchemaProps{ - Description: "DisplayName is the name that should be displayed in the UI", - Type: []string{"string"}, - Format: "", - }, - }, - "description": { - SchemaProps: spec.SchemaProps{ - Description: "Description describes a DevPod machine instance", - Type: []string{"string"}, - Format: "", - }, - }, - "owner": { - SchemaProps: spec.SchemaProps{ - Description: "Owner holds the owner of this object", - Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.UserOrTeam"), - }, - }, - "presetRef": { - SchemaProps: spec.SchemaProps{ - Description: "PresetRef holds the DevPodWorkspacePreset template reference", - Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.PresetRef"), - }, - }, - "templateRef": { - SchemaProps: spec.SchemaProps{ - Description: "TemplateRef holds the DevPod machine template reference", - Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.TemplateRef"), - }, - }, - "environmentRef": { - SchemaProps: spec.SchemaProps{ - Description: "EnvironmentRef is the reference to DevPodEnvironmentTemplate that should be used", - Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.EnvironmentRef"), - }, - }, - "template": { - SchemaProps: spec.SchemaProps{ - Description: "Template is the inline template to use for DevPod machine creation. This is mutually exclusive with templateRef.", - Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.DevPodWorkspaceTemplateDefinition"), - }, - }, - "target": { - SchemaProps: spec.SchemaProps{ - Description: "Target is the reference to the cluster holding this workspace", - Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.WorkspaceTarget"), - }, - }, - "runnerRef": { - SchemaProps: spec.SchemaProps{ - Description: "RunnerRef is the reference to the runner holding this workspace", - Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.RunnerRef"), - }, - }, - "parameters": { - SchemaProps: spec.SchemaProps{ - Description: "Parameters are values to pass to the template. The values should be encoded as YAML string where each parameter is represented as a top-level field key.", - Type: []string{"string"}, - Format: "", - }, - }, - "access": { + "nodes": { SchemaProps: spec.SchemaProps{ - Description: "Access to the DevPod machine instance object itself", - Type: []string{"array"}, + Type: []string{"array"}, Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.Access"), + Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.NodeProviderBCMNodeWithResources"), }, }, }, }, }, - "preventWakeUpOnConnection": { + "nodeGroups": { SchemaProps: spec.SchemaProps{ - Description: "PreventWakeUpOnConnection is used to prevent workspace that uses sleep mode from waking up on incomming ssh connection.", - Type: []string{"boolean"}, - Format: "", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.NodeProviderBCMNodeGroup"), + }, + }, + }, }, }, }, + Required: []string{"nodes", "nodeGroups"}, }, }, Dependencies: []string{ - "github.com/devsy-org/api/pkg/apis/storage/v1.Access", "github.com/devsy-org/api/pkg/apis/storage/v1.DevPodWorkspaceTemplateDefinition", "github.com/devsy-org/api/pkg/apis/storage/v1.EnvironmentRef", "github.com/devsy-org/api/pkg/apis/storage/v1.PresetRef", "github.com/devsy-org/api/pkg/apis/storage/v1.RunnerRef", "github.com/devsy-org/api/pkg/apis/storage/v1.TemplateRef", "github.com/devsy-org/api/pkg/apis/storage/v1.UserOrTeam", "github.com/devsy-org/api/pkg/apis/storage/v1.WorkspaceTarget"}, + "github.com/devsy-org/api/pkg/apis/management/v1.NodeProviderBCMNodeGroup", "github.com/devsy-org/api/pkg/apis/management/v1.NodeProviderBCMNodeWithResources"}, } } -func schema_pkg_apis_management_v1_DevPodWorkspaceInstanceStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_NodeProviderBCMNodeGroup(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "DevPodWorkspaceInstanceStatus holds the status", - Type: []string{"object"}, + Type: []string{"object"}, Properties: map[string]spec.Schema{ - "resolvedTarget": { - SchemaProps: spec.SchemaProps{ - Description: "ResolvedTarget is the resolved target of the workspace", - Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.WorkspaceResolvedTarget"), - }, - }, - "lastWorkspaceStatus": { - SchemaProps: spec.SchemaProps{ - Description: "LastWorkspaceStatus is the last workspace status reported by the runner.", - Type: []string{"string"}, - Format: "", - }, - }, - "phase": { + "name": { SchemaProps: spec.SchemaProps{ - Description: "Phase describes the current phase the DevPod machine instance is in", - Type: []string{"string"}, - Format: "", + Default: "", + Type: []string{"string"}, + Format: "", }, }, - "reason": { + "nodes": { SchemaProps: spec.SchemaProps{ - Description: "Reason describes the reason in machine-readable form why the cluster is in the current phase", - Type: []string{"string"}, - Format: "", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + }, }, }, - "message": { + }, + Required: []string{"name", "nodes"}, + }, + }, + } +} + +func schema_pkg_apis_management_v1_NodeProviderBCMNodeWithResources(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "name": { SchemaProps: spec.SchemaProps{ - Description: "Message describes the reason in human-readable form why the DevPod machine is in the current phase", - Type: []string{"string"}, - Format: "", + Default: "", + Type: []string{"string"}, + Format: "", }, }, - "conditions": { + "resources": { SchemaProps: spec.SchemaProps{ - Description: "Conditions holds several conditions the DevPod machine might be in", - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ + Type: []string{"object"}, + AdditionalProperties: &spec.SchemaOrBool{ + Allows: true, Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref(storagev1.Condition{}.OpenAPIModelName()), + Ref: ref(resource.Quantity{}.OpenAPIModelName()), }, }, }, }, }, - "instance": { - SchemaProps: spec.SchemaProps{ - Description: "Instance is the template rendered with all the parameters", - Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.DevPodWorkspaceTemplateDefinition"), - }, - }, - "ignoreReconciliation": { + }, + Required: []string{"name"}, + }, + }, + Dependencies: []string{ + resource.Quantity{}.OpenAPIModelName()}, + } +} + +func schema_pkg_apis_management_v1_NodeProviderBCMTestConnectionResult(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "success": { SchemaProps: spec.SchemaProps{ - Description: "IgnoreReconciliation ignores reconciliation for this object", - Type: []string{"boolean"}, - Format: "", + Default: false, + Type: []string{"boolean"}, + Format: "", }, }, - "kubernetes": { + "message": { SchemaProps: spec.SchemaProps{ - Description: "Kubernetes is the status of the workspace on kubernetes", - Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.DevPodWorkspaceInstanceKubernetesStatus"), + Default: "", + Type: []string{"string"}, + Format: "", }, }, - "sleepModeConfig": { + }, + Required: []string{"success", "message"}, + }, + }, + } +} + +func schema_pkg_apis_management_v1_NodeProviderCalculateCostResult(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "cost": { SchemaProps: spec.SchemaProps{ - Description: "SleepModeConfig is the sleep mode config of the workspace. This will only be shown in the front end.", - Ref: ref(v1.SleepModeConfig{}.OpenAPIModelName()), + Default: 0, + Type: []string{"integer"}, + Format: "int64", }, }, }, + Required: []string{"cost"}, }, }, - Dependencies: []string{ - v1.SleepModeConfig{}.OpenAPIModelName(), storagev1.Condition{}.OpenAPIModelName(), "github.com/devsy-org/api/pkg/apis/storage/v1.DevPodWorkspaceInstanceKubernetesStatus", "github.com/devsy-org/api/pkg/apis/storage/v1.DevPodWorkspaceTemplateDefinition", "github.com/devsy-org/api/pkg/apis/storage/v1.WorkspaceResolvedTarget"}, } } -func schema_pkg_apis_management_v1_DevPodWorkspaceInstanceStop(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_NodeProviderExec(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ @@ -10275,24 +10289,25 @@ func schema_pkg_apis_management_v1_DevPodWorkspaceInstanceStop(ref common.Refere "spec": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.DevPodWorkspaceInstanceStopSpec"), + Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.NodeProviderExecSpec"), }, }, "status": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.DevPodWorkspaceInstanceStopStatus"), + Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.NodeProviderExecStatus"), }, }, }, + Required: []string{"spec"}, }, }, Dependencies: []string{ - "github.com/devsy-org/api/pkg/apis/management/v1.DevPodWorkspaceInstanceStopSpec", "github.com/devsy-org/api/pkg/apis/management/v1.DevPodWorkspaceInstanceStopStatus", metav1.ObjectMeta{}.OpenAPIModelName()}, + "github.com/devsy-org/api/pkg/apis/management/v1.NodeProviderExecSpec", "github.com/devsy-org/api/pkg/apis/management/v1.NodeProviderExecStatus", metav1.ObjectMeta{}.OpenAPIModelName()}, } } -func schema_pkg_apis_management_v1_DevPodWorkspaceInstanceStopList(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_NodeProviderExecList(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ @@ -10325,7 +10340,7 @@ func schema_pkg_apis_management_v1_DevPodWorkspaceInstanceStopList(ref common.Re Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.DevPodWorkspaceInstanceStop"), + Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.NodeProviderExec"), }, }, }, @@ -10336,151 +10351,86 @@ func schema_pkg_apis_management_v1_DevPodWorkspaceInstanceStopList(ref common.Re }, }, Dependencies: []string{ - "github.com/devsy-org/api/pkg/apis/management/v1.DevPodWorkspaceInstanceStop", metav1.ListMeta{}.OpenAPIModelName()}, + "github.com/devsy-org/api/pkg/apis/management/v1.NodeProviderExec", metav1.ListMeta{}.OpenAPIModelName()}, } } -func schema_pkg_apis_management_v1_DevPodWorkspaceInstanceStopSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_NodeProviderExecResult(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ Type: []string{"object"}, Properties: map[string]spec.Schema{ - "options": { + "success": { SchemaProps: spec.SchemaProps{ - Description: "Options are the options to pass.", - Type: []string{"string"}, - Format: "", + Default: false, + Type: []string{"boolean"}, + Format: "", }, }, - }, - }, - }, - } -} - -func schema_pkg_apis_management_v1_DevPodWorkspaceInstanceStopStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { - return common.OpenAPIDefinition{ - Schema: spec.Schema{ - SchemaProps: spec.SchemaProps{ - Type: []string{"object"}, - Properties: map[string]spec.Schema{ - "taskId": { + "message": { SchemaProps: spec.SchemaProps{ - Description: "TaskID is the id of the task that is running", - Type: []string{"string"}, - Format: "", + Default: "", + Type: []string{"string"}, + Format: "", }, }, }, + Required: []string{"success", "message"}, }, }, } } -func schema_pkg_apis_management_v1_DevPodWorkspaceInstanceTask(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_NodeProviderExecSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ Type: []string{"object"}, Properties: map[string]spec.Schema{ - "id": { - SchemaProps: spec.SchemaProps{ - Description: "ID is the id of the task", - Type: []string{"string"}, - Format: "", - }, - }, - "type": { - SchemaProps: spec.SchemaProps{ - Description: "Type is the type of the task", - Type: []string{"string"}, - Format: "", - }, - }, - "status": { + "command": { SchemaProps: spec.SchemaProps{ - Description: "Status is the status of the task", + Description: "Command is the action to perform.", + Default: "", Type: []string{"string"}, Format: "", }, }, - "result": { - SchemaProps: spec.SchemaProps{ - Description: "Result is the result of the task", - Type: []string{"string"}, - Format: "byte", - }, - }, - "logs": { - SchemaProps: spec.SchemaProps{ - Description: "Logs is the compressed logs of the task", - Type: []string{"string"}, - Format: "byte", - }, - }, - "createdAt": { + "args": { SchemaProps: spec.SchemaProps{ - Description: "CreatedAt is the timestamp when the task was created", - Ref: ref(metav1.Time{}.OpenAPIModelName()), + Ref: ref(runtime.RawExtension{}.OpenAPIModelName()), }, }, }, + Required: []string{"command"}, }, }, Dependencies: []string{ - metav1.Time{}.OpenAPIModelName()}, + runtime.RawExtension{}.OpenAPIModelName()}, } } -func schema_pkg_apis_management_v1_DevPodWorkspaceInstanceTasks(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_NodeProviderExecStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ Type: []string{"object"}, Properties: map[string]spec.Schema{ - "kind": { - SchemaProps: spec.SchemaProps{ - Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", - Type: []string{"string"}, - Format: "", - }, - }, - "apiVersion": { - SchemaProps: spec.SchemaProps{ - Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", - Type: []string{"string"}, - Format: "", - }, - }, - "metadata": { - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref(metav1.ObjectMeta{}.OpenAPIModelName()), - }, - }, - "tasks": { + "result": { SchemaProps: spec.SchemaProps{ - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.DevPodWorkspaceInstanceTask"), - }, - }, - }, + Description: "Result is the output of the executed command.", + Ref: ref(runtime.RawExtension{}.OpenAPIModelName()), }, }, }, }, }, Dependencies: []string{ - "github.com/devsy-org/api/pkg/apis/management/v1.DevPodWorkspaceInstanceTask", metav1.ObjectMeta{}.OpenAPIModelName()}, + runtime.RawExtension{}.OpenAPIModelName()}, } } -func schema_pkg_apis_management_v1_DevPodWorkspaceInstanceTasksList(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_NodeProviderList(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ @@ -10513,7 +10463,7 @@ func schema_pkg_apis_management_v1_DevPodWorkspaceInstanceTasksList(ref common.R Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.DevPodWorkspaceInstanceTasks"), + Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.NodeProvider"), }, }, }, @@ -10524,33 +10474,38 @@ func schema_pkg_apis_management_v1_DevPodWorkspaceInstanceTasksList(ref common.R }, }, Dependencies: []string{ - "github.com/devsy-org/api/pkg/apis/management/v1.DevPodWorkspaceInstanceTasks", metav1.ListMeta{}.OpenAPIModelName()}, + "github.com/devsy-org/api/pkg/apis/management/v1.NodeProvider", metav1.ListMeta{}.OpenAPIModelName()}, } } -func schema_pkg_apis_management_v1_DevPodWorkspaceInstanceTasksOptions(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_NodeProviderSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Type: []string{"object"}, + Description: "NodeProviderSpec defines the desired state of NodeProvider. Only one of the provider types (Pods, BCM, Kubevirt) should be specified at a time.", + Type: []string{"object"}, Properties: map[string]spec.Schema{ - "kind": { + "bcm": { SchemaProps: spec.SchemaProps{ - Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", - Type: []string{"string"}, - Format: "", + Description: "BCM configures a node provider for BCM Bare Metal Cloud environments.", + Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.NodeProviderBCM"), }, }, - "apiVersion": { + "kubeVirt": { SchemaProps: spec.SchemaProps{ - Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", - Type: []string{"string"}, - Format: "", + Description: "Kubevirt configures a node provider using KubeVirt, enabling virtual machines to be provisioned as nodes within a vCluster.", + Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.NodeProviderKubeVirt"), }, }, - "taskID": { + "terraform": { SchemaProps: spec.SchemaProps{ - Description: "TaskID is the id of the task that is running", + Description: "Terraform configures a node provider using Terraform, enabling nodes to be provisioned using Terraform.", + Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.NodeProviderTerraform"), + }, + }, + "displayName": { + SchemaProps: spec.SchemaProps{ + Description: "DisplayName is the name that should be displayed in the UI", Type: []string{"string"}, Format: "", }, @@ -10558,121 +10513,136 @@ func schema_pkg_apis_management_v1_DevPodWorkspaceInstanceTasksOptions(ref commo }, }, }, + Dependencies: []string{ + "github.com/devsy-org/api/pkg/apis/storage/v1.NodeProviderBCM", "github.com/devsy-org/api/pkg/apis/storage/v1.NodeProviderKubeVirt", "github.com/devsy-org/api/pkg/apis/storage/v1.NodeProviderTerraform"}, } } -func schema_pkg_apis_management_v1_DevPodWorkspaceInstanceTroubleshoot(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_NodeProviderStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Type: []string{"object"}, - Properties: map[string]spec.Schema{ - "kind": { + Description: "NodeProviderStatus defines the observed state of NodeProvider.", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "conditions": { SchemaProps: spec.SchemaProps{ - Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", - Type: []string{"string"}, - Format: "", + Description: "Conditions describe the current state of the platform NodeProvider.", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("github.com/devsy-org/agentapi/pkg/apis/devsy/storage/v1.Condition"), + }, + }, + }, }, }, - "apiVersion": { + "reason": { SchemaProps: spec.SchemaProps{ - Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + Description: "Reason describes the reason in machine-readable form", Type: []string{"string"}, Format: "", }, }, - "metadata": { + "phase": { SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref(metav1.ObjectMeta{}.OpenAPIModelName()), + Description: "Phase is the current lifecycle phase of the NodeProvider.", + Type: []string{"string"}, + Format: "", }, }, - "state": { + "message": { SchemaProps: spec.SchemaProps{ - Description: "State holds the workspaces state as given by 'devpod export'", + Description: "Message is a human-readable message indicating details about why the NodeProvider is in its current state.", Type: []string{"string"}, Format: "", }, }, - "workspace": { + }, + }, + }, + Dependencies: []string{ + "github.com/devsy-org/agentapi/pkg/apis/devsy/storage/v1.Condition"}, + } +} + +func schema_pkg_apis_management_v1_NodeProviderTerraformValidateResult(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "success": { SchemaProps: spec.SchemaProps{ - Description: "Workspace holds the workspace's instance object data", - Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.DevPodWorkspaceInstance"), + Default: false, + Type: []string{"boolean"}, + Format: "", }, }, - "template": { + "output": { SchemaProps: spec.SchemaProps{ - Description: "Template holds the workspace instance's template used to create it. This is the raw template, not the rendered one.", - Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.DevPodWorkspaceTemplate"), + Default: "", + Type: []string{"string"}, + Format: "", }, }, - "pods": { + }, + Required: []string{"success", "output"}, + }, + }, + } +} + +func schema_pkg_apis_management_v1_NodeType(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "NodeType holds the information of a node type.", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "kind": { SchemaProps: spec.SchemaProps{ - Description: "Pods is a list of pod objects that are linked to the workspace.", - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref(corev1.Pod{}.OpenAPIModelName()), - }, - }, - }, + Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + Type: []string{"string"}, + Format: "", }, }, - "pvcs": { + "apiVersion": { SchemaProps: spec.SchemaProps{ - Description: "PVCs is a list of PVC objects that are linked to the workspace.", - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref(corev1.PersistentVolumeClaim{}.OpenAPIModelName()), - }, - }, - }, + Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + Type: []string{"string"}, + Format: "", }, }, - "netmaps": { + "metadata": { SchemaProps: spec.SchemaProps{ - Description: "Netmaps is a list of netmaps that are linked to the workspace.", - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: "", - Type: []string{"string"}, - Format: "", - }, - }, - }, + Default: map[string]interface{}{}, + Ref: ref(metav1.ObjectMeta{}.OpenAPIModelName()), }, }, - "errors": { + "spec": { SchemaProps: spec.SchemaProps{ - Description: "Errors is a list of errors that occurred while trying to collect informations for troubleshooting.", - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: "", - Type: []string{"string"}, - Format: "", - }, - }, - }, + Default: map[string]interface{}{}, + Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.NodeTypeSpec"), + }, + }, + "status": { + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.NodeTypeStatus"), }, }, }, }, }, Dependencies: []string{ - "github.com/devsy-org/api/pkg/apis/management/v1.DevPodWorkspaceInstance", "github.com/devsy-org/api/pkg/apis/storage/v1.DevPodWorkspaceTemplate", corev1.PersistentVolumeClaim{}.OpenAPIModelName(), corev1.Pod{}.OpenAPIModelName(), metav1.ObjectMeta{}.OpenAPIModelName()}, + "github.com/devsy-org/api/pkg/apis/management/v1.NodeTypeSpec", "github.com/devsy-org/api/pkg/apis/management/v1.NodeTypeStatus", metav1.ObjectMeta{}.OpenAPIModelName()}, } } -func schema_pkg_apis_management_v1_DevPodWorkspaceInstanceTroubleshootList(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_NodeTypeList(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ @@ -10705,7 +10675,7 @@ func schema_pkg_apis_management_v1_DevPodWorkspaceInstanceTroubleshootList(ref c Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.DevPodWorkspaceInstanceTroubleshoot"), + Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.NodeType"), }, }, }, @@ -10716,154 +10686,206 @@ func schema_pkg_apis_management_v1_DevPodWorkspaceInstanceTroubleshootList(ref c }, }, Dependencies: []string{ - "github.com/devsy-org/api/pkg/apis/management/v1.DevPodWorkspaceInstanceTroubleshoot", metav1.ListMeta{}.OpenAPIModelName()}, + "github.com/devsy-org/api/pkg/apis/management/v1.NodeType", metav1.ListMeta{}.OpenAPIModelName()}, } } -func schema_pkg_apis_management_v1_DevPodWorkspaceInstanceUp(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_NodeTypeSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ Type: []string{"object"}, Properties: map[string]spec.Schema{ - "kind": { + "providerRef": { SchemaProps: spec.SchemaProps{ - Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + Description: "ProviderRef is the node provider to use for this node type.", Type: []string{"string"}, Format: "", }, }, - "apiVersion": { + "properties": { SchemaProps: spec.SchemaProps{ - Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", - Type: []string{"string"}, - Format: "", + Description: "Properties returns a flexible set of properties that may be selected for scheduling.", + Type: []string{"object"}, + AdditionalProperties: &spec.SchemaOrBool{ + Allows: true, + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + }, }, }, - "metadata": { + "resources": { SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref(metav1.ObjectMeta{}.OpenAPIModelName()), + Description: "Resources lists the full resources for a single node.", + Type: []string{"object"}, + AdditionalProperties: &spec.SchemaOrBool{ + Allows: true, + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Ref: ref(resource.Quantity{}.OpenAPIModelName()), + }, + }, + }, }, }, - "spec": { + "overhead": { SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.DevPodWorkspaceInstanceUpSpec"), + Description: "Overhead defines the resource overhead for this node type.", + Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.NodeTypeOverhead"), }, }, - "status": { + "cost": { SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.DevPodWorkspaceInstanceUpStatus"), + Description: "Cost is the instance cost. The higher the cost, the less likely it is to be selected. If empty, cost is automatically calculated from the resources specified.", + Type: []string{"integer"}, + Format: "int64", + }, + }, + "displayName": { + SchemaProps: spec.SchemaProps{ + Description: "DisplayName is the name that should be displayed in the UI", + Type: []string{"string"}, + Format: "", }, }, }, }, }, Dependencies: []string{ - "github.com/devsy-org/api/pkg/apis/management/v1.DevPodWorkspaceInstanceUpSpec", "github.com/devsy-org/api/pkg/apis/management/v1.DevPodWorkspaceInstanceUpStatus", metav1.ObjectMeta{}.OpenAPIModelName()}, + "github.com/devsy-org/api/pkg/apis/storage/v1.NodeTypeOverhead", resource.Quantity{}.OpenAPIModelName()}, } } -func schema_pkg_apis_management_v1_DevPodWorkspaceInstanceUpList(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_NodeTypeStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ Type: []string{"object"}, Properties: map[string]spec.Schema{ - "kind": { + "phase": { SchemaProps: spec.SchemaProps{ - Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + Description: "Phase is the current lifecycle phase of the NodeType.", Type: []string{"string"}, Format: "", }, }, - "apiVersion": { + "reason": { SchemaProps: spec.SchemaProps{ - Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + Description: "Reason describes the reason in machine-readable form", Type: []string{"string"}, Format: "", }, }, - "metadata": { + "message": { SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref(metav1.ListMeta{}.OpenAPIModelName()), + Description: "Message describes the reason in human-readable form", + Type: []string{"string"}, + Format: "", }, }, - "items": { + "cost": { SchemaProps: spec.SchemaProps{ - Type: []string{"array"}, + Description: "Cost is the calculated instance cost from the resources specified or the price specified from spec. The higher the cost, the less likely it is to be selected.", + Type: []string{"integer"}, + Format: "int64", + }, + }, + "capacity": { + SchemaProps: spec.SchemaProps{ + Description: "Capacity is the capacity of the node type.", + Default: map[string]interface{}{}, + Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.NodeTypeCapacity"), + }, + }, + "requirements": { + SchemaProps: spec.SchemaProps{ + Description: "Requirements is the calculated requirements based of the properties for the node type.", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref(corev1.NodeSelectorRequirement{}.OpenAPIModelName()), + }, + }, + }, + }, + }, + "conditions": { + SchemaProps: spec.SchemaProps{ + Description: "Conditions holds several conditions the node type might be in", + Type: []string{"array"}, Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.DevPodWorkspaceInstanceUp"), + Ref: ref("github.com/devsy-org/agentapi/pkg/apis/devsy/storage/v1.Condition"), }, }, }, }, }, }, - Required: []string{"items"}, }, }, Dependencies: []string{ - "github.com/devsy-org/api/pkg/apis/management/v1.DevPodWorkspaceInstanceUp", metav1.ListMeta{}.OpenAPIModelName()}, + "github.com/devsy-org/agentapi/pkg/apis/devsy/storage/v1.Condition", "github.com/devsy-org/api/pkg/apis/storage/v1.NodeTypeCapacity", corev1.NodeSelectorRequirement{}.OpenAPIModelName()}, } } -func schema_pkg_apis_management_v1_DevPodWorkspaceInstanceUpSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_OIDC(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Type: []string{"object"}, + Description: "OIDC holds oidc provider relevant information", + Type: []string{"object"}, Properties: map[string]spec.Schema{ - "debug": { + "enabled": { SchemaProps: spec.SchemaProps{ - Description: "Debug includes debug logs.", + Description: "If true indicates that devsy will act as an OIDC server", Type: []string{"boolean"}, Format: "", }, }, - "options": { + "wildcardRedirect": { SchemaProps: spec.SchemaProps{ - Description: "Options are the options to pass.", - Type: []string{"string"}, + Description: "If true indicates that devsy will allow wildcard '*' in client redirectURIs", + Type: []string{"boolean"}, Format: "", }, }, - }, - }, - }, - } -} - -func schema_pkg_apis_management_v1_DevPodWorkspaceInstanceUpStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { - return common.OpenAPIDefinition{ - Schema: spec.Schema{ - SchemaProps: spec.SchemaProps{ - Type: []string{"object"}, - Properties: map[string]spec.Schema{ - "taskId": { + "clients": { SchemaProps: spec.SchemaProps{ - Description: "TaskID is the id of the task that is running", - Type: []string{"string"}, - Format: "", + Description: "The clients that are allowed to request devsy tokens", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.OIDCClientSpec"), + }, + }, + }, }, }, }, }, }, + Dependencies: []string{ + "github.com/devsy-org/api/pkg/apis/management/v1.OIDCClientSpec"}, } } -func schema_pkg_apis_management_v1_DevPodWorkspacePreset(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_OIDCClient(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "DevPodWorkspacePreset", + Description: "OIDCClient represents an OIDC client to use with Devsy as an OIDC provider", Type: []string{"object"}, Properties: map[string]spec.Schema{ "kind": { @@ -10889,24 +10911,24 @@ func schema_pkg_apis_management_v1_DevPodWorkspacePreset(ref common.ReferenceCal "spec": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.DevPodWorkspacePresetSpec"), + Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.OIDCClientSpec"), }, }, "status": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.DevPodWorkspacePresetStatus"), + Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.OIDCClientStatus"), }, }, }, }, }, Dependencies: []string{ - "github.com/devsy-org/api/pkg/apis/management/v1.DevPodWorkspacePresetSpec", "github.com/devsy-org/api/pkg/apis/management/v1.DevPodWorkspacePresetStatus", metav1.ObjectMeta{}.OpenAPIModelName()}, + "github.com/devsy-org/api/pkg/apis/management/v1.OIDCClientSpec", "github.com/devsy-org/api/pkg/apis/management/v1.OIDCClientStatus", metav1.ObjectMeta{}.OpenAPIModelName()}, } } -func schema_pkg_apis_management_v1_DevPodWorkspacePresetList(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_OIDCClientList(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ @@ -10939,7 +10961,7 @@ func schema_pkg_apis_management_v1_DevPodWorkspacePresetList(ref common.Referenc Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.DevPodWorkspacePreset"), + Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.OIDCClient"), }, }, }, @@ -10950,135 +10972,205 @@ func schema_pkg_apis_management_v1_DevPodWorkspacePresetList(ref common.Referenc }, }, Dependencies: []string{ - "github.com/devsy-org/api/pkg/apis/management/v1.DevPodWorkspacePreset", metav1.ListMeta{}.OpenAPIModelName()}, + "github.com/devsy-org/api/pkg/apis/management/v1.OIDCClient", metav1.ListMeta{}.OpenAPIModelName()}, } } -func schema_pkg_apis_management_v1_DevPodWorkspacePresetSource(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_OIDCClientSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "DevPodWorkspacePresetSource", + Description: "OIDCClientSpec holds the specification.", Type: []string{"object"}, Properties: map[string]spec.Schema{ - "git": { + "name": { SchemaProps: spec.SchemaProps{ - Description: "Git stores path to git repo to use as workspace source", + Description: "The client name", Type: []string{"string"}, Format: "", }, }, - "image": { + "clientId": { SchemaProps: spec.SchemaProps{ - Description: "Image stores container image to use as workspace source", + Description: "The client id of the client", + Type: []string{"string"}, + Format: "", + }, + }, + "clientSecret": { + SchemaProps: spec.SchemaProps{ + Description: "The client secret of the client", Type: []string{"string"}, Format: "", }, }, + "redirectURIs": { + SchemaProps: spec.SchemaProps{ + Description: "A registered set of redirect URIs. When redirecting from dex to the client, the URI requested to redirect to MUST match one of these values, unless the client is \"public\".", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + }, + }, + }, }, + Required: []string{"redirectURIs"}, }, }, } } -func schema_pkg_apis_management_v1_DevPodWorkspacePresetSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_OIDCClientStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "DevPodWorkspacePresetSpec holds the specification", + Description: "OIDCClientStatus holds the status.", Type: []string{"object"}, + }, + }, + } +} + +func schema_pkg_apis_management_v1_ObjectName(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"object"}, Properties: map[string]spec.Schema{ - "displayName": { + "namespace": { SchemaProps: spec.SchemaProps{ - Description: "DisplayName is the name that should be displayed in the UI", + Description: "Namespace of the referenced object", Type: []string{"string"}, Format: "", }, }, - "source": { - SchemaProps: spec.SchemaProps{ - Description: "Source stores inline path of project source", - Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.DevPodWorkspacePresetSource"), - }, - }, - "infrastructureRef": { + "name": { SchemaProps: spec.SchemaProps{ - Description: "InfrastructureRef stores reference to DevPodWorkspaceTemplate to use", - Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.TemplateRef"), + Description: "Name of the referenced object", + Type: []string{"string"}, + Format: "", }, }, - "environmentRef": { + "displayName": { SchemaProps: spec.SchemaProps{ - Description: "EnvironmentRef stores reference to DevPodEnvironmentTemplate", - Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.EnvironmentRef"), + Description: "DisplayName is the name of the object to display in the UI", + Type: []string{"string"}, + Format: "", }, }, - "useProjectGitCredentials": { + }, + }, + }, + } +} + +func schema_pkg_apis_management_v1_ObjectPermission(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "namespace": { SchemaProps: spec.SchemaProps{ - Description: "UseProjectGitCredentials specifies if the project git credentials should be used instead of local ones for this environment", - Type: []string{"boolean"}, + Description: "Namespace of the referenced object", + Type: []string{"string"}, Format: "", }, }, - "owner": { + "name": { SchemaProps: spec.SchemaProps{ - Description: "Owner holds the owner of this object", - Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.UserOrTeam"), + Description: "Name of the referenced object", + Type: []string{"string"}, + Format: "", }, }, - "access": { + "displayName": { SchemaProps: spec.SchemaProps{ - Description: "Access to the DevPod machine instance object itself", - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.Access"), - }, - }, - }, + Description: "DisplayName is the name of the object to display in the UI", + Type: []string{"string"}, + Format: "", }, }, - "versions": { + "verbs": { SchemaProps: spec.SchemaProps{ - Description: "Versions are different versions of the template that can be referenced as well", + Description: "Verbs is a list of actions allowed by the user on the object. '*' represents all verbs", Type: []string{"array"}, Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.DevPodWorkspacePresetVersion"), + Default: "", + Type: []string{"string"}, + Format: "", }, }, }, }, }, }, - Required: []string{"source", "infrastructureRef"}, + Required: []string{"verbs"}, }, }, - Dependencies: []string{ - "github.com/devsy-org/api/pkg/apis/storage/v1.Access", "github.com/devsy-org/api/pkg/apis/storage/v1.DevPodWorkspacePresetSource", "github.com/devsy-org/api/pkg/apis/storage/v1.DevPodWorkspacePresetVersion", "github.com/devsy-org/api/pkg/apis/storage/v1.EnvironmentRef", "github.com/devsy-org/api/pkg/apis/storage/v1.TemplateRef", "github.com/devsy-org/api/pkg/apis/storage/v1.UserOrTeam"}, } } -func schema_pkg_apis_management_v1_DevPodWorkspacePresetStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_Operation(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "DevPodWorkspacePresetStatus holds the status", - Type: []string{"object"}, + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "startTimestamp": { + SchemaProps: spec.SchemaProps{ + Description: "StartTimestamp of the operation.", + Ref: ref(metav1.Time{}.OpenAPIModelName()), + }, + }, + "endTimestamp": { + SchemaProps: spec.SchemaProps{ + Description: "EndTimestamp of the operation.", + Ref: ref(metav1.Time{}.OpenAPIModelName()), + }, + }, + "phase": { + SchemaProps: spec.SchemaProps{ + Description: "Phase of the operation.", + Type: []string{"string"}, + Format: "", + }, + }, + "logs": { + SchemaProps: spec.SchemaProps{ + Description: "Logs of the operation.", + Type: []string{"string"}, + Format: "byte", + }, + }, + "error": { + SchemaProps: spec.SchemaProps{ + Description: "Error of the operation.", + Type: []string{"string"}, + Format: "", + }, + }, + }, }, }, + Dependencies: []string{ + metav1.Time{}.OpenAPIModelName()}, } } -func schema_pkg_apis_management_v1_DevPodWorkspaceTemplate(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_OwnedAccessKey(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "DevPodWorkspaceTemplate holds the information", + Description: "OwnedAccessKey is an access key that is owned by the current user", Type: []string{"object"}, Properties: map[string]spec.Schema{ "kind": { @@ -11104,24 +11196,24 @@ func schema_pkg_apis_management_v1_DevPodWorkspaceTemplate(ref common.ReferenceC "spec": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.DevPodWorkspaceTemplateSpec"), + Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.OwnedAccessKeySpec"), }, }, "status": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.DevPodWorkspaceTemplateStatus"), + Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.OwnedAccessKeyStatus"), }, }, }, }, }, Dependencies: []string{ - "github.com/devsy-org/api/pkg/apis/management/v1.DevPodWorkspaceTemplateSpec", "github.com/devsy-org/api/pkg/apis/management/v1.DevPodWorkspaceTemplateStatus", metav1.ObjectMeta{}.OpenAPIModelName()}, + "github.com/devsy-org/api/pkg/apis/management/v1.OwnedAccessKeySpec", "github.com/devsy-org/api/pkg/apis/management/v1.OwnedAccessKeyStatus", metav1.ObjectMeta{}.OpenAPIModelName()}, } } -func schema_pkg_apis_management_v1_DevPodWorkspaceTemplateList(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_OwnedAccessKeyList(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ @@ -11154,7 +11246,7 @@ func schema_pkg_apis_management_v1_DevPodWorkspaceTemplateList(ref common.Refere Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.DevPodWorkspaceTemplate"), + Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.OwnedAccessKey"), }, }, }, @@ -11165,248 +11257,308 @@ func schema_pkg_apis_management_v1_DevPodWorkspaceTemplateList(ref common.Refere }, }, Dependencies: []string{ - "github.com/devsy-org/api/pkg/apis/management/v1.DevPodWorkspaceTemplate", metav1.ListMeta{}.OpenAPIModelName()}, + "github.com/devsy-org/api/pkg/apis/management/v1.OwnedAccessKey", metav1.ListMeta{}.OpenAPIModelName()}, } } -func schema_pkg_apis_management_v1_DevPodWorkspaceTemplateSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_OwnedAccessKeySpec(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "DevPodWorkspaceTemplateSpec holds the specification", - Type: []string{"object"}, + Type: []string{"object"}, Properties: map[string]spec.Schema{ "displayName": { SchemaProps: spec.SchemaProps{ - Description: "DisplayName is the name that is shown in the UI", + Description: "The display name shown in the UI", Type: []string{"string"}, Format: "", }, }, "description": { SchemaProps: spec.SchemaProps{ - Description: "Description describes the virtual cluster template", + Description: "Description describes an app", Type: []string{"string"}, Format: "", }, }, - "owner": { + "user": { SchemaProps: spec.SchemaProps{ - Description: "Owner holds the owner of this object", - Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.UserOrTeam"), + Description: "The user this access key refers to", + Type: []string{"string"}, + Format: "", }, }, - "parameters": { + "team": { SchemaProps: spec.SchemaProps{ - Description: "Parameters define additional app parameters that will set provider values", - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.AppParameter"), - }, - }, - }, + Description: "The team this access key refers to", + Type: []string{"string"}, + Format: "", }, }, - "template": { + "subject": { SchemaProps: spec.SchemaProps{ - Description: "Template holds the DevPod workspace template", - Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.DevPodWorkspaceTemplateDefinition"), + Description: "Subject is a generic subject that can be used instead of user or team", + Type: []string{"string"}, + Format: "", }, }, - "versions": { + "groups": { SchemaProps: spec.SchemaProps{ - Description: "Versions are different versions of the template that can be referenced as well", + Description: "Groups specifies extra groups to apply when using this access key", Type: []string{"array"}, Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.DevPodWorkspaceTemplateVersion"), + Default: "", + Type: []string{"string"}, + Format: "", }, }, }, }, }, - "access": { + "key": { SchemaProps: spec.SchemaProps{ - Description: "Access holds the access rights for users and teams", - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.Access"), - }, - }, - }, - }, - }, + Description: "The actual access key that will be used as a bearer token", + Type: []string{"string"}, + Format: "", + }, + }, + "disabled": { + SchemaProps: spec.SchemaProps{ + Description: "If this field is true, the access key is still allowed to exist, however will not work to access the api", + Type: []string{"boolean"}, + Format: "", + }, + }, + "ttl": { + SchemaProps: spec.SchemaProps{ + Description: "The time to life for this access key", + Type: []string{"integer"}, + Format: "int64", + }, + }, + "ttlAfterLastActivity": { + SchemaProps: spec.SchemaProps{ + Description: "If this is specified, the time to life for this access key will start after the lastActivity instead of creation timestamp", + Type: []string{"boolean"}, + Format: "", + }, + }, + "scope": { + SchemaProps: spec.SchemaProps{ + Description: "Scope defines the scope of the access key.", + Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.AccessKeyScope"), + }, + }, + "type": { + SchemaProps: spec.SchemaProps{ + Description: "The type of an access key, which basically describes if the access key is user managed or managed by devsy itself.", + Type: []string{"string"}, + Format: "", + }, + }, + "identity": { + SchemaProps: spec.SchemaProps{ + Description: "If available, contains information about the sso login data for this access key", + Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.SSOIdentity"), + }, + }, + "identityRefresh": { + SchemaProps: spec.SchemaProps{ + Description: "The last time the identity was refreshed", + Ref: ref(metav1.Time{}.OpenAPIModelName()), + }, + }, + "oidcProvider": { + SchemaProps: spec.SchemaProps{ + Description: "If the token is a refresh token, contains information about it", + Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.AccessKeyOIDCProvider"), + }, + }, + "parent": { + SchemaProps: spec.SchemaProps{ + Description: "DEPRECATED: do not use anymore Parent is used to share OIDC and external token information with multiple access keys. Since copying an OIDC refresh token would result in the other access keys becoming invalid after a refresh parent allows access keys to share that information.\n\nThe use case for this is primarily user generated access keys, which will have the users current access key as parent if it contains an OIDC token.", + Type: []string{"string"}, + Format: "", + }, + }, + "oidcLogin": { + SchemaProps: spec.SchemaProps{ + Description: "DEPRECATED: Use identity instead If available, contains information about the oidc login data for this access key", + Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.AccessKeyOIDC"), + }, + }, }, }, }, Dependencies: []string{ - "github.com/devsy-org/api/pkg/apis/storage/v1.Access", "github.com/devsy-org/api/pkg/apis/storage/v1.AppParameter", "github.com/devsy-org/api/pkg/apis/storage/v1.DevPodWorkspaceTemplateDefinition", "github.com/devsy-org/api/pkg/apis/storage/v1.DevPodWorkspaceTemplateVersion", "github.com/devsy-org/api/pkg/apis/storage/v1.UserOrTeam"}, + "github.com/devsy-org/api/pkg/apis/storage/v1.AccessKeyOIDC", "github.com/devsy-org/api/pkg/apis/storage/v1.AccessKeyOIDCProvider", "github.com/devsy-org/api/pkg/apis/storage/v1.AccessKeyScope", "github.com/devsy-org/api/pkg/apis/storage/v1.SSOIdentity", metav1.Time{}.OpenAPIModelName()}, } } -func schema_pkg_apis_management_v1_DevPodWorkspaceTemplateStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_OwnedAccessKeyStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "DevPodWorkspaceTemplateStatus holds the status", - Type: []string{"object"}, + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "lastActivity": { + SchemaProps: spec.SchemaProps{ + Description: "The last time this access key was used to access the api", + Ref: ref(metav1.Time{}.OpenAPIModelName()), + }, + }, + }, }, }, + Dependencies: []string{ + metav1.Time{}.OpenAPIModelName()}, } } -func schema_pkg_apis_management_v1_DevsyUpgrade(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_PlatformDB(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "DevsyUpgrade holds the upgrade information", - Type: []string{"object"}, + Type: []string{"object"}, Properties: map[string]spec.Schema{ - "kind": { - SchemaProps: spec.SchemaProps{ - Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", - Type: []string{"string"}, - Format: "", - }, - }, - "apiVersion": { + "storageClass": { SchemaProps: spec.SchemaProps{ - Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + Description: "StorageClass sets the storage class for the PersistentVolumeClaim used by the platform database statefulSet.", Type: []string{"string"}, Format: "", }, }, - "metadata": { - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref(metav1.ObjectMeta{}.OpenAPIModelName()), - }, - }, - "spec": { - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.DevsyUpgradeSpec"), - }, - }, - "status": { - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.DevsyUpgradeStatus"), - }, - }, }, }, }, - Dependencies: []string{ - "github.com/devsy-org/api/pkg/apis/management/v1.DevsyUpgradeSpec", "github.com/devsy-org/api/pkg/apis/management/v1.DevsyUpgradeStatus", metav1.ObjectMeta{}.OpenAPIModelName()}, } } -func schema_pkg_apis_management_v1_DevsyUpgradeList(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_PredefinedApp(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Type: []string{"object"}, + Description: "PredefinedApp holds information about a predefined app", + Type: []string{"object"}, Properties: map[string]spec.Schema{ - "kind": { + "chart": { SchemaProps: spec.SchemaProps{ - Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + Description: "Chart holds the repo/chart name of the predefined app", + Default: "", Type: []string{"string"}, Format: "", }, }, - "apiVersion": { + "initialVersion": { SchemaProps: spec.SchemaProps{ - Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + Description: "InitialVersion holds the initial version of this app. This version will be selected automatically.", Type: []string{"string"}, Format: "", }, }, - "metadata": { + "initialValues": { SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref(metav1.ListMeta{}.OpenAPIModelName()), + Description: "InitialValues holds the initial values for this app. The values will be prefilled automatically. There are certain placeholders that can be used within the values that are replaced by the devsy UI automatically.", + Type: []string{"string"}, + Format: "", }, }, - "items": { + "clusters": { SchemaProps: spec.SchemaProps{ - Type: []string{"array"}, + Description: "Holds the cluster names where to display this app", + Type: []string{"array"}, Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.DevsyUpgrade"), + Default: "", + Type: []string{"string"}, + Format: "", }, }, }, }, }, + "title": { + SchemaProps: spec.SchemaProps{ + Description: "Title is the name that should be displayed for the predefined app. If empty the chart name is used.", + Type: []string{"string"}, + Format: "", + }, + }, + "iconUrl": { + SchemaProps: spec.SchemaProps{ + Description: "IconURL specifies an url to the icon that should be displayed for this app. If none is specified the icon from the chart metadata is used.", + Type: []string{"string"}, + Format: "", + }, + }, + "readmeUrl": { + SchemaProps: spec.SchemaProps{ + Description: "ReadmeURL specifies an url to the readme page of this predefined app. If empty an url will be constructed to artifact hub.", + Type: []string{"string"}, + Format: "", + }, + }, }, - Required: []string{"items"}, }, }, - Dependencies: []string{ - "github.com/devsy-org/api/pkg/apis/management/v1.DevsyUpgrade", metav1.ListMeta{}.OpenAPIModelName()}, } } -func schema_pkg_apis_management_v1_DevsyUpgradeSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_Project(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Type: []string{"object"}, + Description: "Project holds the Project information", + Type: []string{"object"}, Properties: map[string]spec.Schema{ - "namespace": { + "kind": { SchemaProps: spec.SchemaProps{ - Description: "If specified, updated the release in the given namespace", + Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", Type: []string{"string"}, Format: "", }, }, - "release": { + "apiVersion": { SchemaProps: spec.SchemaProps{ - Description: "If specified, uses this as release name", + Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", Type: []string{"string"}, Format: "", }, }, - "version": { + "metadata": { SchemaProps: spec.SchemaProps{ - Type: []string{"string"}, - Format: "", + Default: map[string]interface{}{}, + Ref: ref(metav1.ObjectMeta{}.OpenAPIModelName()), + }, + }, + "spec": { + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.ProjectSpec"), + }, + }, + "status": { + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.ProjectStatus"), }, }, }, }, }, + Dependencies: []string{ + "github.com/devsy-org/api/pkg/apis/management/v1.ProjectSpec", "github.com/devsy-org/api/pkg/apis/management/v1.ProjectStatus", metav1.ObjectMeta{}.OpenAPIModelName()}, } } -func schema_pkg_apis_management_v1_DevsyUpgradeStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_ProjectChartInfo(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ Type: []string{"object"}, - }, - }, - } -} - -func schema_pkg_apis_management_v1_DirectClusterEndpointToken(ref common.ReferenceCallback) common.OpenAPIDefinition { - return common.OpenAPIDefinition{ - Schema: spec.Schema{ - SchemaProps: spec.SchemaProps{ - Description: "DirectClusterEndpointToken holds the object information", - Type: []string{"object"}, Properties: map[string]spec.Schema{ "kind": { SchemaProps: spec.SchemaProps{ @@ -11431,24 +11583,24 @@ func schema_pkg_apis_management_v1_DirectClusterEndpointToken(ref common.Referen "spec": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.DirectClusterEndpointTokenSpec"), + Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.ProjectChartInfoSpec"), }, }, "status": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.DirectClusterEndpointTokenStatus"), + Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.ProjectChartInfoStatus"), }, }, }, }, }, Dependencies: []string{ - "github.com/devsy-org/api/pkg/apis/management/v1.DirectClusterEndpointTokenSpec", "github.com/devsy-org/api/pkg/apis/management/v1.DirectClusterEndpointTokenStatus", metav1.ObjectMeta{}.OpenAPIModelName()}, + "github.com/devsy-org/api/pkg/apis/management/v1.ProjectChartInfoSpec", "github.com/devsy-org/api/pkg/apis/management/v1.ProjectChartInfoStatus", metav1.ObjectMeta{}.OpenAPIModelName()}, } } -func schema_pkg_apis_management_v1_DirectClusterEndpointTokenList(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_ProjectChartInfoList(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ @@ -11481,7 +11633,7 @@ func schema_pkg_apis_management_v1_DirectClusterEndpointTokenList(ref common.Ref Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.DirectClusterEndpointToken"), + Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.ProjectChartInfo"), }, }, }, @@ -11492,63 +11644,70 @@ func schema_pkg_apis_management_v1_DirectClusterEndpointTokenList(ref common.Ref }, }, Dependencies: []string{ - "github.com/devsy-org/api/pkg/apis/management/v1.DirectClusterEndpointToken", metav1.ListMeta{}.OpenAPIModelName()}, + "github.com/devsy-org/api/pkg/apis/management/v1.ProjectChartInfo", metav1.ListMeta{}.OpenAPIModelName()}, } } -func schema_pkg_apis_management_v1_DirectClusterEndpointTokenSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_ProjectChartInfoSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "DirectClusterEndpointTokenSpec holds the object specification", - Type: []string{"object"}, + Type: []string{"object"}, Properties: map[string]spec.Schema{ - "ttl": { - SchemaProps: spec.SchemaProps{ - Description: "The time to life for this access token in seconds", - Type: []string{"integer"}, - Format: "int64", - }, - }, - "scope": { + "chart": { SchemaProps: spec.SchemaProps{ - Description: "Scope is the optional scope of the direct cluster endpoint", - Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.AccessKeyScope"), + Description: "Chart holds information about a chart that should get deployed", + Default: map[string]interface{}{}, + Ref: ref("github.com/devsy-org/agentapi/pkg/apis/devsy/cluster/v1.Chart"), }, }, }, }, }, Dependencies: []string{ - "github.com/devsy-org/api/pkg/apis/storage/v1.AccessKeyScope"}, + "github.com/devsy-org/agentapi/pkg/apis/devsy/cluster/v1.Chart"}, } } -func schema_pkg_apis_management_v1_DirectClusterEndpointTokenStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_ProjectChartInfoStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "DirectClusterEndpointTokenStatus holds the object status", - Type: []string{"object"}, + Type: []string{"object"}, Properties: map[string]spec.Schema{ - "token": { + "metadata": { SchemaProps: spec.SchemaProps{ - Type: []string{"string"}, - Format: "", + Description: "Metadata provides information about a chart", + Ref: ref("github.com/devsy-org/agentapi/pkg/apis/devsy/cluster/v1.Metadata"), + }, + }, + "readme": { + SchemaProps: spec.SchemaProps{ + Description: "Readme is the readme of the chart", + Type: []string{"string"}, + Format: "", + }, + }, + "values": { + SchemaProps: spec.SchemaProps{ + Description: "Values are the default values of the chart", + Type: []string{"string"}, + Format: "", }, }, }, }, }, + Dependencies: []string{ + "github.com/devsy-org/agentapi/pkg/apis/devsy/cluster/v1.Metadata"}, } } -func schema_pkg_apis_management_v1_Event(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_ProjectCharts(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "Event holds an event", - Type: []string{"object"}, + Type: []string{"object"}, Properties: map[string]spec.Schema{ "kind": { SchemaProps: spec.SchemaProps{ @@ -11570,27 +11729,37 @@ func schema_pkg_apis_management_v1_Event(ref common.ReferenceCallback) common.Op Ref: ref(metav1.ObjectMeta{}.OpenAPIModelName()), }, }, - "spec": { + "charts": { SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.EventSpec"), + Description: "Holds the available helm charts for this cluster", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.HelmChart"), + }, + }, + }, }, }, - "status": { + "busy": { SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.EventStatus"), + Description: "Busy will indicate if the chart parsing is still in progress.", + Type: []string{"boolean"}, + Format: "", }, }, }, + Required: []string{"charts"}, }, }, Dependencies: []string{ - "github.com/devsy-org/api/pkg/apis/management/v1.EventSpec", "github.com/devsy-org/api/pkg/apis/management/v1.EventStatus", metav1.ObjectMeta{}.OpenAPIModelName()}, + "github.com/devsy-org/api/pkg/apis/storage/v1.HelmChart", metav1.ObjectMeta{}.OpenAPIModelName()}, } } -func schema_pkg_apis_management_v1_EventList(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_ProjectChartsList(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ @@ -11623,7 +11792,7 @@ func schema_pkg_apis_management_v1_EventList(ref common.ReferenceCallback) commo Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.Event"), + Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.ProjectCharts"), }, }, }, @@ -11634,27 +11803,15 @@ func schema_pkg_apis_management_v1_EventList(ref common.ReferenceCallback) commo }, }, Dependencies: []string{ - "github.com/devsy-org/api/pkg/apis/management/v1.Event", metav1.ListMeta{}.OpenAPIModelName()}, - } -} - -func schema_pkg_apis_management_v1_EventSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { - return common.OpenAPIDefinition{ - Schema: spec.Schema{ - SchemaProps: spec.SchemaProps{ - Description: "EventSpec holds the specification", - Type: []string{"object"}, - }, - }, + "github.com/devsy-org/api/pkg/apis/management/v1.ProjectCharts", metav1.ListMeta{}.OpenAPIModelName()}, } } -func schema_pkg_apis_management_v1_EventStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_ProjectClusters(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "EventStatus holds the status, which is the parsed raw config", - Type: []string{"object"}, + Type: []string{"object"}, Properties: map[string]spec.Schema{ "kind": { SchemaProps: spec.SchemaProps{ @@ -11670,147 +11827,87 @@ func schema_pkg_apis_management_v1_EventStatus(ref common.ReferenceCallback) com Format: "", }, }, - "level": { - SchemaProps: spec.SchemaProps{ - Description: "AuditLevel at which event was generated", - Default: "", - Type: []string{"string"}, - Format: "", - }, - }, - "auditID": { - SchemaProps: spec.SchemaProps{ - Description: "Unique audit ID, generated for each request.", - Default: "", - Type: []string{"string"}, - Format: "", - }, - }, - "stage": { - SchemaProps: spec.SchemaProps{ - Description: "Stage of the request handling when this event instance was generated.", - Default: "", - Type: []string{"string"}, - Format: "", - }, - }, - "requestURI": { - SchemaProps: spec.SchemaProps{ - Description: "RequestURI is the request URI as sent by the client to a server.", - Default: "", - Type: []string{"string"}, - Format: "", - }, - }, - "verb": { - SchemaProps: spec.SchemaProps{ - Description: "Verb is the kubernetes verb associated with the request. For non-resource requests, this is the lower-cased HTTP method.", - Default: "", - Type: []string{"string"}, - Format: "", - }, - }, - "user": { - SchemaProps: spec.SchemaProps{ - Description: "Authenticated user information.", - Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/authentication/v1.UserInfo"), - }, - }, - "impersonatedUser": { + "metadata": { SchemaProps: spec.SchemaProps{ - Description: "Impersonated user information.", - Ref: ref("k8s.io/api/authentication/v1.UserInfo"), + Default: map[string]interface{}{}, + Ref: ref(metav1.ObjectMeta{}.OpenAPIModelName()), }, }, - "sourceIPs": { + "clusters": { SchemaProps: spec.SchemaProps{ - Description: "Source IPs, from where the request originated and intermediate proxies.", + Description: "Clusters holds all the allowed clusters", Type: []string{"array"}, Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ - Default: "", - Type: []string{"string"}, - Format: "", + Default: map[string]interface{}{}, + Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.Cluster"), }, }, }, }, }, - "userAgent": { + }, + }, + }, + Dependencies: []string{ + "github.com/devsy-org/api/pkg/apis/management/v1.Cluster", metav1.ObjectMeta{}.OpenAPIModelName()}, + } +} + +func schema_pkg_apis_management_v1_ProjectClustersList(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "kind": { SchemaProps: spec.SchemaProps{ - Description: "UserAgent records the user agent string reported by the client. Note that the UserAgent is provided by the client, and must not be trusted.", + Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", Type: []string{"string"}, Format: "", }, }, - "objectRef": { - SchemaProps: spec.SchemaProps{ - Description: "Object reference this request is targeted at. Does not apply for List-type requests, or non-resource requests.", - Ref: ref("github.com/devsy-org/api/pkg/apis/audit/v1.ObjectReference"), - }, - }, - "responseStatus": { - SchemaProps: spec.SchemaProps{ - Description: "The response status. For successful and non-successful responses, this will only include the Code and StatusSuccess. For panic type error responses, this will be auto-populated with the error Message.", - Ref: ref(metav1.Status{}.OpenAPIModelName()), - }, - }, - "requestObject": { - SchemaProps: spec.SchemaProps{ - Description: "API object from the request, in JSON format. The RequestObject is recorded as-is in the request (possibly re-encoded as JSON), prior to version conversion, defaulting, admission or merging. It is an external versioned object type, and may not be a valid object on its own. Omitted for non-resource requests. Only logged at Request Level and higher.", - Ref: ref("k8s.io/apimachinery/pkg/runtime.Unknown"), - }, - }, - "responseObject": { - SchemaProps: spec.SchemaProps{ - Description: "API object returned in the response, in JSON. The ResponseObject is recorded after conversion to the external type, and serialized as JSON. Omitted for non-resource requests. Only logged at Response Level.", - Ref: ref("k8s.io/apimachinery/pkg/runtime.Unknown"), - }, - }, - "requestReceivedTimestamp": { + "apiVersion": { SchemaProps: spec.SchemaProps{ - Description: "Time the request reached the apiserver.", - Ref: ref(metav1.MicroTime{}.OpenAPIModelName()), + Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + Type: []string{"string"}, + Format: "", }, }, - "stageTimestamp": { + "metadata": { SchemaProps: spec.SchemaProps{ - Description: "Time the request reached current audit stage.", - Ref: ref(metav1.MicroTime{}.OpenAPIModelName()), + Default: map[string]interface{}{}, + Ref: ref(metav1.ListMeta{}.OpenAPIModelName()), }, }, - "annotations": { + "items": { SchemaProps: spec.SchemaProps{ - Description: "Annotations is an unstructured key value map stored with an audit event that may be set by plugins invoked in the request serving chain, including authentication, authorization and admission plugins. Note that these annotations are for the audit event, and do not correspond to the metadata.annotations of the submitted object. Keys should uniquely identify the informing component to avoid name collisions (e.g. podsecuritypolicy.admission.k8s.io/policy). Values should be short. Annotations are included in the Metadata level.", - Type: []string{"object"}, - AdditionalProperties: &spec.SchemaOrBool{ - Allows: true, + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ - Default: "", - Type: []string{"string"}, - Format: "", + Default: map[string]interface{}{}, + Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.ProjectClusters"), }, }, }, }, }, }, - Required: []string{"level", "auditID", "stage", "requestURI", "verb", "user"}, + Required: []string{"items"}, }, }, Dependencies: []string{ - "github.com/devsy-org/api/pkg/apis/audit/v1.ObjectReference", "k8s.io/api/authentication/v1.UserInfo", metav1.MicroTime{}.OpenAPIModelName(), metav1.Status{}.OpenAPIModelName(), "k8s.io/apimachinery/pkg/runtime.Unknown"}, + "github.com/devsy-org/api/pkg/apis/management/v1.ProjectClusters", metav1.ListMeta{}.OpenAPIModelName()}, } } -func schema_pkg_apis_management_v1_Feature(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_ProjectImportSpace(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "Feature holds the feature information", + Description: "ProjectImportSpace holds project space import information", Type: []string{"object"}, Properties: map[string]spec.Schema{ "kind": { @@ -11833,27 +11930,23 @@ func schema_pkg_apis_management_v1_Feature(ref common.ReferenceCallback) common. Ref: ref(metav1.ObjectMeta{}.OpenAPIModelName()), }, }, - "spec": { - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.FeatureSpec"), - }, - }, - "status": { + "sourceSpace": { SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.FeatureStatus"), + Description: "SourceSpace is the space to import into this project", + Default: map[string]interface{}{}, + Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.ProjectImportSpaceSource"), }, }, }, + Required: []string{"sourceSpace"}, }, }, Dependencies: []string{ - "github.com/devsy-org/api/pkg/apis/management/v1.FeatureSpec", "github.com/devsy-org/api/pkg/apis/management/v1.FeatureStatus", metav1.ObjectMeta{}.OpenAPIModelName()}, + "github.com/devsy-org/api/pkg/apis/management/v1.ProjectImportSpaceSource", metav1.ObjectMeta{}.OpenAPIModelName()}, } } -func schema_pkg_apis_management_v1_FeatureList(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_ProjectImportSpaceList(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ @@ -11886,7 +11979,7 @@ func schema_pkg_apis_management_v1_FeatureList(ref common.ReferenceCallback) com Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.Feature"), + Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.ProjectImportSpace"), }, }, }, @@ -11897,181 +11990,117 @@ func schema_pkg_apis_management_v1_FeatureList(ref common.ReferenceCallback) com }, }, Dependencies: []string{ - "github.com/devsy-org/api/pkg/apis/management/v1.Feature", metav1.ListMeta{}.OpenAPIModelName()}, - } -} - -func schema_pkg_apis_management_v1_FeatureSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { - return common.OpenAPIDefinition{ - Schema: spec.Schema{ - SchemaProps: spec.SchemaProps{ - Description: "FeatureSpec holds the specification", - Type: []string{"object"}, - }, - }, + "github.com/devsy-org/api/pkg/apis/management/v1.ProjectImportSpace", metav1.ListMeta{}.OpenAPIModelName()}, } } -func schema_pkg_apis_management_v1_FeatureStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_ProjectImportSpaceSource(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "FeatureStatus holds the status", - Type: []string{"object"}, + Type: []string{"object"}, Properties: map[string]spec.Schema{ "name": { SchemaProps: spec.SchemaProps{ - Description: "Name is the name of the feature (FeatureName) This cannot be FeatureName because it needs to be downward compatible e.g. older Devsy version doesn't know a newer feature but it will still be received and still needs to be rendered in the license view", - Default: "", + Description: "Name of the space to import", Type: []string{"string"}, Format: "", }, }, - "displayName": { + "cluster": { SchemaProps: spec.SchemaProps{ - Type: []string{"string"}, - Format: "", + Description: "Cluster name of the cluster the space is running on", + Type: []string{"string"}, + Format: "", }, }, - "preview": { + "importName": { SchemaProps: spec.SchemaProps{ - Description: "Preview represents whether the feature can be previewed if a user's license does not allow the feature", - Type: []string{"boolean"}, - Format: "", - }, - }, - "allowBefore": { - SchemaProps: spec.SchemaProps{ - Description: "AllowBefore is an optional timestamp. If set, licenses issued before this time are allowed to use the feature even if it's not included in the license.", - Type: []string{"string"}, - Format: "", - }, - }, - "status": { - SchemaProps: spec.SchemaProps{ - Description: "Status shows the status of the feature (see type FeatureStatus)", - Type: []string{"string"}, - Format: "", - }, - }, - "module": { - SchemaProps: spec.SchemaProps{ - Description: "Name of the module that this feature belongs to", + Description: "ImportName is an optional name to use as the spaceinstance name, if not provided the space name will be used", Type: []string{"string"}, Format: "", }, }, - "internal": { - SchemaProps: spec.SchemaProps{ - Description: "Internal marks internal features that should not be shown on the license view", - Type: []string{"boolean"}, - Format: "", - }, - }, - "used": { - SchemaProps: spec.SchemaProps{ - Description: "Used marks features that are currently used in the product", - Type: []string{"boolean"}, - Format: "", - }, - }, }, - Required: []string{"name"}, }, }, } } -func schema_pkg_apis_management_v1_GroupResources(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_ProjectList(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "GroupResources represents resource kinds in an API group.", - Type: []string{"object"}, + Type: []string{"object"}, Properties: map[string]spec.Schema{ - "group": { + "kind": { SchemaProps: spec.SchemaProps{ - Description: "Group is the name of the API group that contains the resources. The empty string represents the core API group.", + Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", Type: []string{"string"}, Format: "", }, }, - "resources": { + "apiVersion": { SchemaProps: spec.SchemaProps{ - Description: "Resources is a list of resources this rule applies to.\n\nFor example: 'pods' matches pods. 'pods/log' matches the log subresource of pods. '*' matches all resources and their subresources. 'pods/*' matches all subresources of pods. '*/scale' matches all scale subresources.\n\nIf wildcard is present, the validation rule will ensure resources do not overlap with each other.\n\nAn empty list implies all resources and subresources in this API groups apply.", - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: "", - Type: []string{"string"}, - Format: "", - }, - }, - }, + Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + Type: []string{"string"}, + Format: "", }, }, - "resourceNames": { + "metadata": { SchemaProps: spec.SchemaProps{ - Description: "ResourceNames is a list of resource instance names that the policy matches. Using this field requires Resources to be specified. An empty list implies that every instance of the resource is matched.", - Type: []string{"array"}, + Default: map[string]interface{}{}, + Ref: ref(metav1.ListMeta{}.OpenAPIModelName()), + }, + }, + "items": { + SchemaProps: spec.SchemaProps{ + Type: []string{"array"}, Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ - Default: "", - Type: []string{"string"}, - Format: "", + Default: map[string]interface{}{}, + Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.Project"), }, }, }, }, }, }, + Required: []string{"items"}, }, }, + Dependencies: []string{ + "github.com/devsy-org/api/pkg/apis/management/v1.Project", metav1.ListMeta{}.OpenAPIModelName()}, } } -func schema_pkg_apis_management_v1_ImageBuilder(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_ProjectMember(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ Type: []string{"object"}, Properties: map[string]spec.Schema{ - "enabled": { - SchemaProps: spec.SchemaProps{ - Description: "Enabled specifies whether the remote image builder should be available. If it's not available building ad-hoc images from a devcontainer.json is not supported", - Type: []string{"boolean"}, - Format: "", - }, - }, - "replicas": { - SchemaProps: spec.SchemaProps{ - Description: "Replicas is the number of desired replicas.", - Type: []string{"integer"}, - Format: "int32", - }, - }, - "resources": { + "info": { SchemaProps: spec.SchemaProps{ - Description: "Resources are compute resource required by the buildkit containers", - Ref: ref(corev1.ResourceRequirements{}.OpenAPIModelName()), + Description: "Info about the user or team", + Default: map[string]interface{}{}, + Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.EntityInfo"), }, }, }, }, }, Dependencies: []string{ - corev1.ResourceRequirements{}.OpenAPIModelName()}, + "github.com/devsy-org/api/pkg/apis/storage/v1.EntityInfo"}, } } -func schema_pkg_apis_management_v1_IngressAuthToken(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_ProjectMembers(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "IngressAuthToken holds the object information", - Type: []string{"object"}, + Type: []string{"object"}, Properties: map[string]spec.Schema{ "kind": { SchemaProps: spec.SchemaProps{ @@ -12093,27 +12122,43 @@ func schema_pkg_apis_management_v1_IngressAuthToken(ref common.ReferenceCallback Ref: ref(metav1.ObjectMeta{}.OpenAPIModelName()), }, }, - "spec": { + "teams": { SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.IngressAuthTokenSpec"), + Description: "Teams holds all the teams that have access to the cluster", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.ProjectMember"), + }, + }, + }, }, }, - "status": { + "users": { SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.IngressAuthTokenStatus"), + Description: "Users holds all the users that have access to the cluster", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.ProjectMember"), + }, + }, + }, }, }, }, }, }, Dependencies: []string{ - "github.com/devsy-org/api/pkg/apis/management/v1.IngressAuthTokenSpec", "github.com/devsy-org/api/pkg/apis/management/v1.IngressAuthTokenStatus", metav1.ObjectMeta{}.OpenAPIModelName()}, + "github.com/devsy-org/api/pkg/apis/management/v1.ProjectMember", metav1.ObjectMeta{}.OpenAPIModelName()}, } } -func schema_pkg_apis_management_v1_IngressAuthTokenList(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_ProjectMembersList(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ @@ -12146,7 +12191,7 @@ func schema_pkg_apis_management_v1_IngressAuthTokenList(ref common.ReferenceCall Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.IngressAuthToken"), + Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.ProjectMembers"), }, }, }, @@ -12157,61 +12202,64 @@ func schema_pkg_apis_management_v1_IngressAuthTokenList(ref common.ReferenceCall }, }, Dependencies: []string{ - "github.com/devsy-org/api/pkg/apis/management/v1.IngressAuthToken", metav1.ListMeta{}.OpenAPIModelName()}, + "github.com/devsy-org/api/pkg/apis/management/v1.ProjectMembers", metav1.ListMeta{}.OpenAPIModelName()}, } } -func schema_pkg_apis_management_v1_IngressAuthTokenSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_ProjectMembership(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "IngressAuthTokenSpec holds the object specification", - Type: []string{"object"}, + Type: []string{"object"}, Properties: map[string]spec.Schema{ - "host": { + "namespace": { SchemaProps: spec.SchemaProps{ - Description: "Host is the host where the UI should get redirected", + Description: "Namespace of the referenced object", Type: []string{"string"}, Format: "", }, }, - "signature": { + "name": { SchemaProps: spec.SchemaProps{ - Description: "Signature is the signature of the agent for the host", + Description: "Name of the referenced object", Type: []string{"string"}, Format: "", }, }, - }, - }, - }, - } -} - -func schema_pkg_apis_management_v1_IngressAuthTokenStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { - return common.OpenAPIDefinition{ - Schema: spec.Schema{ - SchemaProps: spec.SchemaProps{ - Description: "IngressAuthTokenStatus holds the object status", - Type: []string{"object"}, - Properties: map[string]spec.Schema{ - "token": { + "displayName": { SchemaProps: spec.SchemaProps{ - Type: []string{"string"}, - Format: "", + Description: "DisplayName is the name of the object to display in the UI", + Type: []string{"string"}, + Format: "", + }, + }, + "role": { + SchemaProps: spec.SchemaProps{ + Description: "Role is the role given to the member", + Default: map[string]interface{}{}, + Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.ProjectRole"), + }, + }, + "assignedVia": { + SchemaProps: spec.SchemaProps{ + Description: "AssignedVia describes the resource that establishes the project membership", + Default: map[string]interface{}{}, + Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.AssignedVia"), }, }, }, }, }, + Dependencies: []string{ + "github.com/devsy-org/api/pkg/apis/management/v1.AssignedVia", "github.com/devsy-org/api/pkg/apis/management/v1.ProjectRole"}, } } -func schema_pkg_apis_management_v1_Kiosk(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_ProjectMigrateSpaceInstance(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "Kiosk holds the kiosk types", + Description: "ProjectMigrateSpaceInstance holds project spaceinstance migrate information", Type: []string{"object"}, Properties: map[string]spec.Schema{ "kind": { @@ -12234,27 +12282,23 @@ func schema_pkg_apis_management_v1_Kiosk(ref common.ReferenceCallback) common.Op Ref: ref(metav1.ObjectMeta{}.OpenAPIModelName()), }, }, - "spec": { - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.KioskSpec"), - }, - }, - "status": { + "sourceSpaceInstance": { SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.KioskStatus"), + Description: "SourceSpaceInstance is the spaceinstance to migrate into this project", + Default: map[string]interface{}{}, + Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.ProjectMigrateSpaceInstanceSource"), }, }, }, + Required: []string{"sourceSpaceInstance"}, }, }, Dependencies: []string{ - "github.com/devsy-org/api/pkg/apis/management/v1.KioskSpec", "github.com/devsy-org/api/pkg/apis/management/v1.KioskStatus", metav1.ObjectMeta{}.OpenAPIModelName()}, + "github.com/devsy-org/api/pkg/apis/management/v1.ProjectMigrateSpaceInstanceSource", metav1.ObjectMeta{}.OpenAPIModelName()}, } } -func schema_pkg_apis_management_v1_KioskList(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_ProjectMigrateSpaceInstanceList(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ @@ -12287,7 +12331,7 @@ func schema_pkg_apis_management_v1_KioskList(ref common.ReferenceCallback) commo Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.Kiosk"), + Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.ProjectMigrateSpaceInstance"), }, }, }, @@ -12298,127 +12342,41 @@ func schema_pkg_apis_management_v1_KioskList(ref common.ReferenceCallback) commo }, }, Dependencies: []string{ - "github.com/devsy-org/api/pkg/apis/management/v1.Kiosk", metav1.ListMeta{}.OpenAPIModelName()}, + "github.com/devsy-org/api/pkg/apis/management/v1.ProjectMigrateSpaceInstance", metav1.ListMeta{}.OpenAPIModelName()}, } } -func schema_pkg_apis_management_v1_KioskSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_ProjectMigrateSpaceInstanceSource(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ Type: []string{"object"}, Properties: map[string]spec.Schema{ - "helmRelease": { - SchemaProps: spec.SchemaProps{ - Description: "cluster.devsy.sh", - Default: map[string]interface{}{}, - Ref: ref(v1.HelmRelease{}.OpenAPIModelName()), - }, - }, - "sleepModeConfig": { - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref(v1.SleepModeConfig{}.OpenAPIModelName()), - }, - }, - "chartInfo": { - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref(v1.ChartInfo{}.OpenAPIModelName()), - }, - }, - "storageClusterQuota": { - SchemaProps: spec.SchemaProps{ - Description: "storage.devsy.sh", - Default: map[string]interface{}{}, - Ref: ref(storagev1.ClusterQuota{}.OpenAPIModelName()), - }, - }, - "UISettings": { - SchemaProps: spec.SchemaProps{ - Description: "ui.devsy.sh", - Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/ui/v1.UISettings"), - }, - }, - "license": { - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.License"), - }, - }, - "nodeProviderBCMNodeWithResources": { - SchemaProps: spec.SchemaProps{ - Description: "autoscaling", - Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.NodeProviderBCMNodeWithResources"), - }, - }, - "nodeProviderBCMGetResourcesResult": { - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.NodeProviderBCMGetResourcesResult"), - }, - }, - "nodeProviderBCMTestConnectionResult": { - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.NodeProviderBCMTestConnectionResult"), - }, - }, - "nodeProviderCalculateCostResult": { - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.NodeProviderCalculateCostResult"), - }, - }, - "nodeProviderTerraformValidateResult": { - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.NodeProviderTerraformValidateResult"), - }, - }, - "nodeProviderExecResult": { - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.NodeProviderExecResult"), - }, - }, - "nodeClaimData": { + "name": { SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.NodeClaimData"), + Description: "Name of the spaceinstance to migrate", + Type: []string{"string"}, + Format: "", }, }, - "nodeEnvironmentData": { + "namespace": { SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.NodeEnvironmentData"), + Description: "Namespace of the spaceinstance to migrate", + Type: []string{"string"}, + Format: "", }, }, }, }, }, - Dependencies: []string{ - v1.ChartInfo{}.OpenAPIModelName(), v1.HelmRelease{}.OpenAPIModelName(), v1.SleepModeConfig{}.OpenAPIModelName(), storagev1.ClusterQuota{}.OpenAPIModelName(), "github.com/devsy-org/api/pkg/apis/management/v1.License", "github.com/devsy-org/api/pkg/apis/management/v1.NodeClaimData", "github.com/devsy-org/api/pkg/apis/management/v1.NodeEnvironmentData", "github.com/devsy-org/api/pkg/apis/management/v1.NodeProviderBCMGetResourcesResult", "github.com/devsy-org/api/pkg/apis/management/v1.NodeProviderBCMNodeWithResources", "github.com/devsy-org/api/pkg/apis/management/v1.NodeProviderBCMTestConnectionResult", "github.com/devsy-org/api/pkg/apis/management/v1.NodeProviderCalculateCostResult", "github.com/devsy-org/api/pkg/apis/management/v1.NodeProviderExecResult", "github.com/devsy-org/api/pkg/apis/management/v1.NodeProviderTerraformValidateResult", "github.com/devsy-org/api/pkg/apis/ui/v1.UISettings"}, - } -} - -func schema_pkg_apis_management_v1_KioskStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { - return common.OpenAPIDefinition{ - Schema: spec.Schema{ - SchemaProps: spec.SchemaProps{ - Type: []string{"object"}, - }, - }, } } -func schema_pkg_apis_management_v1_License(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_ProjectMigrateVirtualClusterInstance(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "License holds the license information", + Description: "ProjectMigrateVirtualClusterInstance holds project devsyinstance migrate information", Type: []string{"object"}, Properties: map[string]spec.Schema{ "kind": { @@ -12441,27 +12399,23 @@ func schema_pkg_apis_management_v1_License(ref common.ReferenceCallback) common. Ref: ref(metav1.ObjectMeta{}.OpenAPIModelName()), }, }, - "spec": { - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.LicenseSpec"), - }, - }, - "status": { + "sourceVirtualClusterInstance": { SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.LicenseStatus"), + Description: "SourceVirtualClusterInstance is the virtual cluster instance to migrate into this project", + Default: map[string]interface{}{}, + Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.ProjectMigrateVirtualClusterInstanceSource"), }, }, }, + Required: []string{"sourceVirtualClusterInstance"}, }, }, Dependencies: []string{ - "github.com/devsy-org/api/pkg/apis/management/v1.LicenseSpec", "github.com/devsy-org/api/pkg/apis/management/v1.LicenseStatus", metav1.ObjectMeta{}.OpenAPIModelName()}, + "github.com/devsy-org/api/pkg/apis/management/v1.ProjectMigrateVirtualClusterInstanceSource", metav1.ObjectMeta{}.OpenAPIModelName()}, } } -func schema_pkg_apis_management_v1_LicenseList(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_ProjectMigrateVirtualClusterInstanceList(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ @@ -12494,7 +12448,7 @@ func schema_pkg_apis_management_v1_LicenseList(ref common.ReferenceCallback) com Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.License"), + Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.ProjectMigrateVirtualClusterInstance"), }, }, }, @@ -12505,16 +12459,41 @@ func schema_pkg_apis_management_v1_LicenseList(ref common.ReferenceCallback) com }, }, Dependencies: []string{ - "github.com/devsy-org/api/pkg/apis/management/v1.License", metav1.ListMeta{}.OpenAPIModelName()}, + "github.com/devsy-org/api/pkg/apis/management/v1.ProjectMigrateVirtualClusterInstance", metav1.ListMeta{}.OpenAPIModelName()}, } } -func schema_pkg_apis_management_v1_LicenseRequest(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_ProjectMigrateVirtualClusterInstanceSource(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "LicenseRequest holds license request information", - Type: []string{"object"}, + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "name": { + SchemaProps: spec.SchemaProps{ + Description: "Name of the virtual cluster instance to migrate", + Type: []string{"string"}, + Format: "", + }, + }, + "namespace": { + SchemaProps: spec.SchemaProps{ + Description: "Namespace of the virtual cluster instance to migrate", + Type: []string{"string"}, + Format: "", + }, + }, + }, + }, + }, + } +} + +func schema_pkg_apis_management_v1_ProjectNodeTypes(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"object"}, Properties: map[string]spec.Schema{ "kind": { SchemaProps: spec.SchemaProps{ @@ -12536,29 +12515,43 @@ func schema_pkg_apis_management_v1_LicenseRequest(ref common.ReferenceCallback) Ref: ref(metav1.ObjectMeta{}.OpenAPIModelName()), }, }, - "spec": { + "nodeProviders": { SchemaProps: spec.SchemaProps{ - Description: "Spec is the admin request spec (the input for the request).", - Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.LicenseRequestSpec"), + Description: "NodeProviders holds all the allowed node providers for the project", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.NodeProvider"), + }, + }, + }, }, }, - "status": { + "nodeTypes": { SchemaProps: spec.SchemaProps{ - Description: "Status is the admin request output (the output or result of the request).", - Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.LicenseRequestStatus"), + Description: "NodeTypes holds all the allowed node types for the project", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.NodeType"), + }, + }, + }, }, }, }, }, }, Dependencies: []string{ - "github.com/devsy-org/api/pkg/apis/management/v1.LicenseRequestSpec", "github.com/devsy-org/api/pkg/apis/management/v1.LicenseRequestStatus", metav1.ObjectMeta{}.OpenAPIModelName()}, + "github.com/devsy-org/api/pkg/apis/storage/v1.NodeProvider", "github.com/devsy-org/api/pkg/apis/storage/v1.NodeType", metav1.ObjectMeta{}.OpenAPIModelName()}, } } -func schema_pkg_apis_management_v1_LicenseRequestList(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_ProjectNodeTypesList(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ @@ -12591,7 +12584,7 @@ func schema_pkg_apis_management_v1_LicenseRequestList(ref common.ReferenceCallba Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.LicenseRequest"), + Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.ProjectNodeTypes"), }, }, }, @@ -12602,114 +12595,55 @@ func schema_pkg_apis_management_v1_LicenseRequestList(ref common.ReferenceCallba }, }, Dependencies: []string{ - "github.com/devsy-org/api/pkg/apis/management/v1.LicenseRequest", metav1.ListMeta{}.OpenAPIModelName()}, + "github.com/devsy-org/api/pkg/apis/management/v1.ProjectNodeTypes", metav1.ListMeta{}.OpenAPIModelName()}, } } -func schema_pkg_apis_management_v1_LicenseRequestSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_ProjectRole(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ Type: []string{"object"}, Properties: map[string]spec.Schema{ - "url": { + "namespace": { SchemaProps: spec.SchemaProps{ - Description: "URL is the url for the request.", + Description: "Namespace of the referenced object", Type: []string{"string"}, Format: "", }, }, - "input": { - SchemaProps: spec.SchemaProps{ - Description: "Input is the input payload to send to the url.", - Default: map[string]interface{}{}, - Ref: ref(licenseapi.GenericRequestInput{}.OpenAPIModelName()), - }, - }, - }, - }, - }, - Dependencies: []string{ - licenseapi.GenericRequestInput{}.OpenAPIModelName()}, - } -} - -func schema_pkg_apis_management_v1_LicenseRequestStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { - return common.OpenAPIDefinition{ - Schema: spec.Schema{ - SchemaProps: spec.SchemaProps{ - Type: []string{"object"}, - Properties: map[string]spec.Schema{ - "output": { - SchemaProps: spec.SchemaProps{ - Description: "Output is where the request output is stored.", - Ref: ref(licenseapi.GenericRequestOutput{}.OpenAPIModelName()), - }, - }, - }, - }, - }, - Dependencies: []string{ - licenseapi.GenericRequestOutput{}.OpenAPIModelName()}, - } -} - -func schema_pkg_apis_management_v1_LicenseSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { - return common.OpenAPIDefinition{ - Schema: spec.Schema{ - SchemaProps: spec.SchemaProps{ - Type: []string{"object"}, - }, - }, - } -} - -func schema_pkg_apis_management_v1_LicenseStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { - return common.OpenAPIDefinition{ - Schema: spec.Schema{ - SchemaProps: spec.SchemaProps{ - Type: []string{"object"}, - Properties: map[string]spec.Schema{ - "license": { + "name": { SchemaProps: spec.SchemaProps{ - Description: "License is the license data received from the license server.", - Ref: ref(licenseapi.License{}.OpenAPIModelName()), + Description: "Name of the referenced object", + Type: []string{"string"}, + Format: "", }, }, - "resourceUsage": { + "displayName": { SchemaProps: spec.SchemaProps{ - Description: "ResourceUsage shows the current usage of license limit.", - Type: []string{"object"}, - AdditionalProperties: &spec.SchemaOrBool{ - Allows: true, - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref(licenseapi.ResourceCount{}.OpenAPIModelName()), - }, - }, - }, + Description: "DisplayName is the name of the object to display in the UI", + Type: []string{"string"}, + Format: "", }, }, - "platformDatabase": { + "isAdmin": { SchemaProps: spec.SchemaProps{ - Description: "PlatformDatabase shows information about the platform database installation", - Ref: ref(licenseapi.PlatformDatabase{}.OpenAPIModelName()), + Description: "IsAdmin describes whether this is an admin project role", + Type: []string{"boolean"}, + Format: "", }, }, }, }, }, - Dependencies: []string{ - licenseapi.License{}.OpenAPIModelName(), licenseapi.PlatformDatabase{}.OpenAPIModelName(), licenseapi.ResourceCount{}.OpenAPIModelName()}, } } -func schema_pkg_apis_management_v1_LicenseToken(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_ProjectSecret(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "License Token holds the license token information", + Description: "ProjectSecret holds the Project Secret information", Type: []string{"object"}, Properties: map[string]spec.Schema{ "kind": { @@ -12735,24 +12669,24 @@ func schema_pkg_apis_management_v1_LicenseToken(ref common.ReferenceCallback) co "spec": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.LicenseTokenSpec"), + Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.ProjectSecretSpec"), }, }, "status": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.LicenseTokenStatus"), + Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.ProjectSecretStatus"), }, }, }, }, }, Dependencies: []string{ - "github.com/devsy-org/api/pkg/apis/management/v1.LicenseTokenSpec", "github.com/devsy-org/api/pkg/apis/management/v1.LicenseTokenStatus", metav1.ObjectMeta{}.OpenAPIModelName()}, + "github.com/devsy-org/api/pkg/apis/management/v1.ProjectSecretSpec", "github.com/devsy-org/api/pkg/apis/management/v1.ProjectSecretStatus", metav1.ObjectMeta{}.OpenAPIModelName()}, } } -func schema_pkg_apis_management_v1_LicenseTokenList(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_ProjectSecretList(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ @@ -12785,7 +12719,7 @@ func schema_pkg_apis_management_v1_LicenseTokenList(ref common.ReferenceCallback Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.LicenseToken"), + Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.ProjectSecret"), }, }, }, @@ -12796,224 +12730,281 @@ func schema_pkg_apis_management_v1_LicenseTokenList(ref common.ReferenceCallback }, }, Dependencies: []string{ - "github.com/devsy-org/api/pkg/apis/management/v1.LicenseToken", metav1.ListMeta{}.OpenAPIModelName()}, + "github.com/devsy-org/api/pkg/apis/management/v1.ProjectSecret", metav1.ListMeta{}.OpenAPIModelName()}, } } -func schema_pkg_apis_management_v1_LicenseTokenSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_ProjectSecretSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Type: []string{"object"}, + Description: "ProjectSecretSpec holds the specification.", + Type: []string{"object"}, Properties: map[string]spec.Schema{ - "url": { + "displayName": { SchemaProps: spec.SchemaProps{ - Type: []string{"string"}, - Format: "", + Description: "DisplayName is the name that should be displayed in the UI", + Type: []string{"string"}, + Format: "", }, }, - "payload": { + "description": { SchemaProps: spec.SchemaProps{ - Type: []string{"string"}, - Format: "", + Description: "Description describes a Project secret", + Type: []string{"string"}, + Format: "", + }, + }, + "owner": { + SchemaProps: spec.SchemaProps{ + Description: "Owner holds the owner of this object", + Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.UserOrTeam"), + }, + }, + "data": { + SchemaProps: spec.SchemaProps{ + Description: "Data contains the secret data. Each key must consist of alphanumeric characters, '-', '_' or '.'. The serialized form of the secret data is a base64 encoded string, representing the arbitrary (possibly non-string) data value here. Described in https://tools.ietf.org/html/rfc4648#section-4", + Type: []string{"object"}, + AdditionalProperties: &spec.SchemaOrBool{ + Allows: true, + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"string"}, + Format: "byte", + }, + }, + }, + }, + }, + "access": { + SchemaProps: spec.SchemaProps{ + Description: "Access holds the access rights for users and teams", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.Access"), + }, + }, + }, }, }, }, }, }, + Dependencies: []string{ + "github.com/devsy-org/api/pkg/apis/storage/v1.Access", "github.com/devsy-org/api/pkg/apis/storage/v1.UserOrTeam"}, } } -func schema_pkg_apis_management_v1_LicenseTokenStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_ProjectSecretStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Type: []string{"object"}, + Description: "ProjectSecretStatus holds the status.", + Type: []string{"object"}, Properties: map[string]spec.Schema{ - "token": { + "conditions": { SchemaProps: spec.SchemaProps{ - Ref: ref(licenseapi.InstanceTokenAuth{}.OpenAPIModelName()), + Description: "Conditions holds several conditions the project might be in", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("github.com/devsy-org/agentapi/pkg/apis/devsy/storage/v1.Condition"), + }, + }, + }, }, }, }, }, }, Dependencies: []string{ - licenseapi.InstanceTokenAuth{}.OpenAPIModelName()}, + "github.com/devsy-org/agentapi/pkg/apis/devsy/storage/v1.Condition"}, } } -func schema_pkg_apis_management_v1_MaintenanceWindow(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_ProjectSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Type: []string{"object"}, + Description: "ProjectSpec holds the specification.", + Type: []string{"object"}, Properties: map[string]spec.Schema{ - "dayOfWeek": { + "displayName": { SchemaProps: spec.SchemaProps{ - Description: "DayOfWeek specifies the day of the week for the maintenance window. It should be a string representing the day, e.g., \"Monday\", \"Tuesday\", etc.", + Description: "DisplayName is the name that should be displayed in the UI", Type: []string{"string"}, Format: "", }, }, - "timeWindow": { + "description": { SchemaProps: spec.SchemaProps{ - Description: "TimeWindow specifies the time window for the maintenance. It should be a string representing the time range in 24-hour format, in UTC, e.g., \"02:00-03:00\".", + Description: "Description describes an app", Type: []string{"string"}, Format: "", }, }, - }, - }, - }, - } -} - -func schema_pkg_apis_management_v1_ManagementRole(ref common.ReferenceCallback) common.OpenAPIDefinition { - return common.OpenAPIDefinition{ - Schema: spec.Schema{ - SchemaProps: spec.SchemaProps{ - Type: []string{"object"}, - Properties: map[string]spec.Schema{ - "namespace": { + "owner": { SchemaProps: spec.SchemaProps{ - Description: "Namespace of the referenced object", - Type: []string{"string"}, - Format: "", + Description: "Owner holds the owner of this object", + Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.UserOrTeam"), }, }, - "name": { + "quotas": { SchemaProps: spec.SchemaProps{ - Description: "Name of the referenced object", - Type: []string{"string"}, - Format: "", + Description: "Quotas define the quotas inside the project", + Default: map[string]interface{}{}, + Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.Quotas"), }, }, - "displayName": { + "allowedClusters": { SchemaProps: spec.SchemaProps{ - Description: "DisplayName is the name of the object to display in the UI", - Type: []string{"string"}, - Format: "", + Description: "AllowedClusters are target clusters that are allowed to target with environments.", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.AllowedCluster"), + }, + }, + }, }, }, - "assignedVia": { + "allowedRunners": { SchemaProps: spec.SchemaProps{ - Description: "AssignedVia describes the resource that establishes the project membership", + Description: "AllowedRunners are target runners that are allowed to target with Devsy environments.", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.AllowedRunner"), + }, + }, + }, + }, + }, + "allowedTemplates": { + SchemaProps: spec.SchemaProps{ + Description: "AllowedTemplates are the templates that are allowed to use in this project.", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.AllowedTemplate"), + }, + }, + }, + }, + }, + "requireTemplate": { + SchemaProps: spec.SchemaProps{ + Description: "RequireTemplate configures if a template is required for instance creation.", Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.AssignedVia"), + Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.RequireTemplate"), }, }, - }, - }, - }, - Dependencies: []string{ - "github.com/devsy-org/api/pkg/apis/management/v1.AssignedVia"}, - } -} - -func schema_pkg_apis_management_v1_NamespacedNameArgs(ref common.ReferenceCallback) common.OpenAPIDefinition { - return common.OpenAPIDefinition{ - Schema: spec.Schema{ - SchemaProps: spec.SchemaProps{ - Type: []string{"object"}, - Properties: map[string]spec.Schema{ - "namespace": { + "requirePreset": { SchemaProps: spec.SchemaProps{ - Default: "", - Type: []string{"string"}, - Format: "", + Description: "RequirePreset configures if a preset is required for instance creation.", + Default: map[string]interface{}{}, + Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.RequirePreset"), }, }, - "name": { + "members": { SchemaProps: spec.SchemaProps{ - Default: "", - Type: []string{"string"}, - Format: "", + Description: "Members are the users and teams that are part of this project", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.Member"), + }, + }, + }, }, }, - }, - Required: []string{"namespace", "name"}, - }, - }, - } -} - -func schema_pkg_apis_management_v1_NodeClaim(ref common.ReferenceCallback) common.OpenAPIDefinition { - return common.OpenAPIDefinition{ - Schema: spec.Schema{ - SchemaProps: spec.SchemaProps{ - Description: "NodeClaim holds the node claim for vCluster.", - Type: []string{"object"}, - Properties: map[string]spec.Schema{ - "kind": { + "access": { SchemaProps: spec.SchemaProps{ - Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", - Type: []string{"string"}, - Format: "", + Description: "Access holds the access rights for users and teams", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.Access"), + }, + }, + }, }, }, - "apiVersion": { + "namespacePattern": { SchemaProps: spec.SchemaProps{ - Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", - Type: []string{"string"}, - Format: "", + Description: "NamespacePattern specifies template patterns to use for creating each space or virtual cluster's namespace", + Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.NamespacePattern"), }, }, - "metadata": { + "argoCD": { SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref(metav1.ObjectMeta{}.OpenAPIModelName()), + Description: "ArgoIntegration holds information about ArgoCD Integration", + Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.ArgoIntegrationSpec"), }, }, - "spec": { + "vault": { SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.NodeClaimSpec"), + Description: "VaultIntegration holds information about Vault Integration", + Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.VaultIntegrationSpec"), }, }, - "status": { + "rancher": { SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.NodeClaimStatus"), + Description: "RancherIntegration holds information about Rancher Integration", + Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.RancherIntegrationSpec"), + }, + }, + "devPod": { + SchemaProps: spec.SchemaProps{ + Description: "Devsy holds Devsy specific configuration for project", + Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.DevsyProjectSpec"), }, }, }, }, }, Dependencies: []string{ - "github.com/devsy-org/api/pkg/apis/management/v1.NodeClaimSpec", "github.com/devsy-org/api/pkg/apis/management/v1.NodeClaimStatus", metav1.ObjectMeta{}.OpenAPIModelName()}, + "github.com/devsy-org/api/pkg/apis/storage/v1.Access", "github.com/devsy-org/api/pkg/apis/storage/v1.AllowedCluster", "github.com/devsy-org/api/pkg/apis/storage/v1.AllowedRunner", "github.com/devsy-org/api/pkg/apis/storage/v1.AllowedTemplate", "github.com/devsy-org/api/pkg/apis/storage/v1.ArgoIntegrationSpec", "github.com/devsy-org/api/pkg/apis/storage/v1.DevsyProjectSpec", "github.com/devsy-org/api/pkg/apis/storage/v1.Member", "github.com/devsy-org/api/pkg/apis/storage/v1.NamespacePattern", "github.com/devsy-org/api/pkg/apis/storage/v1.Quotas", "github.com/devsy-org/api/pkg/apis/storage/v1.RancherIntegrationSpec", "github.com/devsy-org/api/pkg/apis/storage/v1.RequirePreset", "github.com/devsy-org/api/pkg/apis/storage/v1.RequireTemplate", "github.com/devsy-org/api/pkg/apis/storage/v1.UserOrTeam", "github.com/devsy-org/api/pkg/apis/storage/v1.VaultIntegrationSpec"}, } } -func schema_pkg_apis_management_v1_NodeClaimData(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_ProjectStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Type: []string{"object"}, + Description: "ProjectStatus holds the status.", + Type: []string{"object"}, Properties: map[string]spec.Schema{ - "userData": { - SchemaProps: spec.SchemaProps{ - Description: "UserData that should be used to start the node.", - Type: []string{"string"}, - Format: "", - }, - }, - "state": { + "quotas": { SchemaProps: spec.SchemaProps{ - Description: "Terraform state of the node claim.", - Type: []string{"string"}, - Format: "byte", + Description: "Quotas holds the quota status.", + Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.QuotaStatus"), }, }, - "operations": { + "conditions": { SchemaProps: spec.SchemaProps{ - Description: "Operations that were applied to the node claim.", - Type: []string{"object"}, - AdditionalProperties: &spec.SchemaOrBool{ - Allows: true, + Description: "Conditions holds several conditions the project might be in", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ - Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.Operation"), + Default: map[string]interface{}{}, + Ref: ref("github.com/devsy-org/agentapi/pkg/apis/devsy/storage/v1.Condition"), }, }, }, @@ -13023,11 +13014,11 @@ func schema_pkg_apis_management_v1_NodeClaimData(ref common.ReferenceCallback) c }, }, Dependencies: []string{ - "github.com/devsy-org/api/pkg/apis/management/v1.Operation"}, + "github.com/devsy-org/agentapi/pkg/apis/devsy/storage/v1.Condition", "github.com/devsy-org/api/pkg/apis/storage/v1.QuotaStatus"}, } } -func schema_pkg_apis_management_v1_NodeClaimList(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_ProjectTemplates(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ @@ -13050,202 +13041,168 @@ func schema_pkg_apis_management_v1_NodeClaimList(ref common.ReferenceCallback) c "metadata": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref(metav1.ListMeta{}.OpenAPIModelName()), + Ref: ref(metav1.ObjectMeta{}.OpenAPIModelName()), }, }, - "items": { + "defaultVirtualClusterTemplate": { SchemaProps: spec.SchemaProps{ - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.NodeClaim"), - }, - }, - }, + Description: "DefaultVirtualClusterTemplate is the default template for the project", + Type: []string{"string"}, + Format: "", }, }, - }, - Required: []string{"items"}, - }, - }, - Dependencies: []string{ - "github.com/devsy-org/api/pkg/apis/management/v1.NodeClaim", metav1.ListMeta{}.OpenAPIModelName()}, - } -} - -func schema_pkg_apis_management_v1_NodeClaimSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { - return common.OpenAPIDefinition{ - Schema: spec.Schema{ - SchemaProps: spec.SchemaProps{ - Description: "NodeClaimSpec defines spec of node claim.", - Type: []string{"object"}, - Properties: map[string]spec.Schema{ - "taints": { + "virtualClusterTemplates": { SchemaProps: spec.SchemaProps{ - Description: "Taints will be applied to the NodeClaim's node.", + Description: "VirtualClusterTemplates holds all the allowed virtual cluster templates", Type: []string{"array"}, Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref(corev1.Taint{}.OpenAPIModelName()), + Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.VirtualClusterTemplate"), }, }, }, }, }, - "startupTaints": { + "defaultSpaceTemplate": { SchemaProps: spec.SchemaProps{ - Description: "StartupTaints are taints that are applied to nodes upon startup which are expected to be removed automatically within a short period of time, typically by a DaemonSet that tolerates the taint. These are commonly used by daemonsets to allow initialization and enforce startup ordering. StartupTaints are ignored for provisioning purposes in that pods are not required to tolerate a StartupTaint in order to have nodes provisioned for them.", + Description: "DefaultSpaceTemplate", + Type: []string{"string"}, + Format: "", + }, + }, + "spaceTemplates": { + SchemaProps: spec.SchemaProps{ + Description: "SpaceTemplates holds all the allowed space templates", Type: []string{"array"}, Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref(corev1.Taint{}.OpenAPIModelName()), + Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.SpaceTemplate"), }, }, }, }, }, - "kubeletArgs": { + "defaultDevPodWorkspaceTemplate": { SchemaProps: spec.SchemaProps{ - Description: "KubeletArgs are additional arguments to pass to the kubelet.", - Type: []string{"object"}, - AdditionalProperties: &spec.SchemaOrBool{ - Allows: true, + Description: "DefaultDevsyWorkspaceTemplate", + Type: []string{"string"}, + Format: "", + }, + }, + "devPodWorkspaceTemplates": { + SchemaProps: spec.SchemaProps{ + Description: "DevsyWorkspaceTemplates holds all the allowed space templates", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ - Default: "", - Type: []string{"string"}, - Format: "", + Default: map[string]interface{}{}, + Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.DevsyWorkspaceTemplate"), }, }, }, }, }, - "desiredCapacity": { + "devPodEnvironmentTemplates": { SchemaProps: spec.SchemaProps{ - Description: "DesiredCapacity specifies the resources requested by the NodeClaim.", - Type: []string{"object"}, - AdditionalProperties: &spec.SchemaOrBool{ - Allows: true, + Description: "DevsyEnvironmentTemplates holds all the allowed environment templates", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ - Ref: ref("k8s.io/apimachinery/pkg/api/resource.Quantity"), + Default: map[string]interface{}{}, + Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.DevsyEnvironmentTemplate"), }, }, }, }, }, - "requirements": { + "devPodWorkspacePresets": { SchemaProps: spec.SchemaProps{ - Description: "Requirements are the requirements for the NodeClaim.", + Description: "DevsyWorkspacePresets holds all the allowed workspace presets", Type: []string{"array"}, Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref(corev1.NodeSelectorRequirement{}.OpenAPIModelName()), + Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.DevsyWorkspacePreset"), }, }, }, }, }, - "providerRef": { - SchemaProps: spec.SchemaProps{ - Description: "ProviderRef is the name of the NodeProvider that this NodeClaim is based on.", - Type: []string{"string"}, - Format: "", - }, - }, - "typeRef": { - SchemaProps: spec.SchemaProps{ - Description: "TypeRef is the full name of the NodeType that this NodeClaim is based on.", - Type: []string{"string"}, - Format: "", - }, - }, - "vClusterRef": { + "defaultDevPodEnvironmentTemplate": { SchemaProps: spec.SchemaProps{ - Description: "DevsyRef references source vCluster. This is required.", - Default: "", + Description: "DefaultDevsyEnvironmentTemplate", Type: []string{"string"}, Format: "", }, }, - "controlPlane": { - SchemaProps: spec.SchemaProps{ - Description: "ControlPlane indicates if the node claim is for a control plane node.", - Type: []string{"boolean"}, - Format: "", - }, - }, }, - Required: []string{"vClusterRef"}, }, }, Dependencies: []string{ - corev1.NodeSelectorRequirement{}.OpenAPIModelName(), corev1.Taint{}.OpenAPIModelName(), "k8s.io/apimachinery/pkg/api/resource.Quantity"}, + "github.com/devsy-org/api/pkg/apis/management/v1.DevsyEnvironmentTemplate", "github.com/devsy-org/api/pkg/apis/management/v1.DevsyWorkspacePreset", "github.com/devsy-org/api/pkg/apis/management/v1.DevsyWorkspaceTemplate", "github.com/devsy-org/api/pkg/apis/management/v1.SpaceTemplate", "github.com/devsy-org/api/pkg/apis/management/v1.VirtualClusterTemplate", metav1.ObjectMeta{}.OpenAPIModelName()}, } } -func schema_pkg_apis_management_v1_NodeClaimStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_ProjectTemplatesList(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ Type: []string{"object"}, Properties: map[string]spec.Schema{ - "phase": { + "kind": { SchemaProps: spec.SchemaProps{ - Description: "Phase is the current lifecycle phase of the NodeClaim.", + Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", Type: []string{"string"}, Format: "", }, }, - "reason": { + "apiVersion": { SchemaProps: spec.SchemaProps{ - Description: "Reason describes the reason in machine-readable form", + Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", Type: []string{"string"}, Format: "", }, }, - "message": { + "metadata": { SchemaProps: spec.SchemaProps{ - Description: "Message describes the reason in human-readable form", - Type: []string{"string"}, - Format: "", + Default: map[string]interface{}{}, + Ref: ref(metav1.ListMeta{}.OpenAPIModelName()), }, }, - "conditions": { + "items": { SchemaProps: spec.SchemaProps{ - Description: "Conditions describe the current state of the platform NodeClaim.", - Type: []string{"array"}, + Type: []string{"array"}, Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref(storagev1.Condition{}.OpenAPIModelName()), + Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.ProjectTemplates"), }, }, }, }, }, }, + Required: []string{"items"}, }, }, Dependencies: []string{ - storagev1.Condition{}.OpenAPIModelName()}, + "github.com/devsy-org/api/pkg/apis/management/v1.ProjectTemplates", metav1.ListMeta{}.OpenAPIModelName()}, } } -func schema_pkg_apis_management_v1_NodeEnvironment(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_RedirectToken(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "NodeEnvironment holds the node environment for vCluster.", + Description: "RedirectToken holds the object information", Type: []string{"object"}, Properties: map[string]spec.Schema{ "kind": { @@ -13271,66 +13228,44 @@ func schema_pkg_apis_management_v1_NodeEnvironment(ref common.ReferenceCallback) "spec": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.NodeEnvironmentSpec"), + Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.RedirectTokenSpec"), }, }, "status": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.NodeEnvironmentStatus"), + Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.RedirectTokenStatus"), }, }, }, }, }, Dependencies: []string{ - "github.com/devsy-org/api/pkg/apis/management/v1.NodeEnvironmentSpec", "github.com/devsy-org/api/pkg/apis/management/v1.NodeEnvironmentStatus", metav1.ObjectMeta{}.OpenAPIModelName()}, + "github.com/devsy-org/api/pkg/apis/management/v1.RedirectTokenSpec", "github.com/devsy-org/api/pkg/apis/management/v1.RedirectTokenStatus", metav1.ObjectMeta{}.OpenAPIModelName()}, } } -func schema_pkg_apis_management_v1_NodeEnvironmentData(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_RedirectTokenClaims(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Type: []string{"object"}, + Description: "RedirectTokenClaims holds the private claims of the redirect token", + Type: []string{"object"}, Properties: map[string]spec.Schema{ - "outputs": { - SchemaProps: spec.SchemaProps{ - Description: "Outputs of the node environment.", - Type: []string{"string"}, - Format: "byte", - }, - }, - "state": { + "url": { SchemaProps: spec.SchemaProps{ - Description: "Terraform state of the node environment.", + Description: "URL is the url to redirect to.", Type: []string{"string"}, - Format: "byte", - }, - }, - "operations": { - SchemaProps: spec.SchemaProps{ - Description: "Operations that were applied to the node environment.", - Type: []string{"object"}, - AdditionalProperties: &spec.SchemaOrBool{ - Allows: true, - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.Operation"), - }, - }, - }, + Format: "", }, }, }, }, }, - Dependencies: []string{ - "github.com/devsy-org/api/pkg/apis/management/v1.Operation"}, } } -func schema_pkg_apis_management_v1_NodeEnvironmentList(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_RedirectTokenList(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ @@ -13363,7 +13298,7 @@ func schema_pkg_apis_management_v1_NodeEnvironmentList(ref common.ReferenceCallb Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.NodeEnvironment"), + Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.RedirectToken"), }, }, }, @@ -13374,110 +13309,54 @@ func schema_pkg_apis_management_v1_NodeEnvironmentList(ref common.ReferenceCallb }, }, Dependencies: []string{ - "github.com/devsy-org/api/pkg/apis/management/v1.NodeEnvironment", metav1.ListMeta{}.OpenAPIModelName()}, + "github.com/devsy-org/api/pkg/apis/management/v1.RedirectToken", metav1.ListMeta{}.OpenAPIModelName()}, } } -func schema_pkg_apis_management_v1_NodeEnvironmentSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_RedirectTokenSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "NodeEnvironmentSpec defines spec of node environment.", + Description: "RedirectTokenSpec holds the object specification", Type: []string{"object"}, Properties: map[string]spec.Schema{ - "properties": { - SchemaProps: spec.SchemaProps{ - Description: "Properties are the properties for the NodeEnvironment.", - Type: []string{"object"}, - AdditionalProperties: &spec.SchemaOrBool{ - Allows: true, - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: "", - Type: []string{"string"}, - Format: "", - }, - }, - }, - }, - }, - "providerRef": { - SchemaProps: spec.SchemaProps{ - Description: "ProviderRef is the name of the NodeProvider that this NodeEnvironment is based on.", - Default: "", - Type: []string{"string"}, - Format: "", - }, - }, - "vClusterRef": { + "token": { SchemaProps: spec.SchemaProps{ - Description: "DevsyRef references source vCluster. This is required.", - Default: "", + Description: "Token is the token that includes the redirect request", Type: []string{"string"}, Format: "", }, }, }, - Required: []string{"providerRef", "vClusterRef"}, }, }, } } -func schema_pkg_apis_management_v1_NodeEnvironmentStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_RedirectTokenStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Type: []string{"object"}, + Description: "RedirectTokenStatus holds the object status", + Type: []string{"object"}, Properties: map[string]spec.Schema{ - "phase": { + "redirectURL": { SchemaProps: spec.SchemaProps{ - Description: "Phase is the current lifecycle phase of the NodeEnvironment.", - Type: []string{"string"}, - Format: "", - }, - }, - "reason": { - SchemaProps: spec.SchemaProps{ - Description: "Reason describes the reason in machine-readable form", - Type: []string{"string"}, - Format: "", - }, - }, - "message": { - SchemaProps: spec.SchemaProps{ - Description: "Message describes the reason in human-readable form", - Type: []string{"string"}, - Format: "", - }, - }, - "conditions": { - SchemaProps: spec.SchemaProps{ - Description: "Conditions describe the current state of the platform NodeClaim.", - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref(storagev1.Condition{}.OpenAPIModelName()), - }, - }, - }, + Type: []string{"string"}, + Format: "", }, }, }, }, }, - Dependencies: []string{ - storagev1.Condition{}.OpenAPIModelName()}, } } -func schema_pkg_apis_management_v1_NodeProvider(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_RegisterVirtualCluster(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "NodeProvider holds the information of a node provider config. This resource defines various ways a node can be provisioned or configured.", + Description: "RegisterVirtualCluster holds config request and response data for virtual clusters", Type: []string{"object"}, Properties: map[string]spec.Schema{ "kind": { @@ -13503,185 +13382,159 @@ func schema_pkg_apis_management_v1_NodeProvider(ref common.ReferenceCallback) co "spec": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.NodeProviderSpec"), + Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.RegisterVirtualClusterSpec"), }, }, "status": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.NodeProviderStatus"), + Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.RegisterVirtualClusterStatus"), }, }, }, }, }, Dependencies: []string{ - "github.com/devsy-org/api/pkg/apis/management/v1.NodeProviderSpec", "github.com/devsy-org/api/pkg/apis/management/v1.NodeProviderStatus", metav1.ObjectMeta{}.OpenAPIModelName()}, + "github.com/devsy-org/api/pkg/apis/management/v1.RegisterVirtualClusterSpec", "github.com/devsy-org/api/pkg/apis/management/v1.RegisterVirtualClusterStatus", metav1.ObjectMeta{}.OpenAPIModelName()}, } } -func schema_pkg_apis_management_v1_NodeProviderBCMGetResourcesResult(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_RegisterVirtualClusterList(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ Type: []string{"object"}, Properties: map[string]spec.Schema{ - "nodes": { + "kind": { SchemaProps: spec.SchemaProps{ - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.NodeProviderBCMNodeWithResources"), - }, - }, - }, + Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + Type: []string{"string"}, + Format: "", }, }, - "nodeGroups": { + "apiVersion": { + SchemaProps: spec.SchemaProps{ + Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + Type: []string{"string"}, + Format: "", + }, + }, + "metadata": { + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref(metav1.ListMeta{}.OpenAPIModelName()), + }, + }, + "items": { SchemaProps: spec.SchemaProps{ Type: []string{"array"}, Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.NodeProviderBCMNodeGroup"), + Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.RegisterVirtualCluster"), }, }, }, }, }, }, - Required: []string{"nodes", "nodeGroups"}, + Required: []string{"items"}, }, }, Dependencies: []string{ - "github.com/devsy-org/api/pkg/apis/management/v1.NodeProviderBCMNodeGroup", "github.com/devsy-org/api/pkg/apis/management/v1.NodeProviderBCMNodeWithResources"}, + "github.com/devsy-org/api/pkg/apis/management/v1.RegisterVirtualCluster", metav1.ListMeta{}.OpenAPIModelName()}, } } -func schema_pkg_apis_management_v1_NodeProviderBCMNodeGroup(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_RegisterVirtualClusterSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Type: []string{"object"}, + Description: "RegisterVirtualClusterSpec holds the specification.", + Type: []string{"object"}, Properties: map[string]spec.Schema{ - "name": { + "serviceUID": { SchemaProps: spec.SchemaProps{ - Default: "", - Type: []string{"string"}, - Format: "", + Description: "ServiceUID uniquely identifies the virtual cluster based on the service uid.", + Type: []string{"string"}, + Format: "", }, }, - "nodes": { + "project": { SchemaProps: spec.SchemaProps{ - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: "", - Type: []string{"string"}, - Format: "", - }, - }, - }, + Description: "Project is the project name the virtual cluster should be in.", + Type: []string{"string"}, + Format: "", }, }, - }, - Required: []string{"name", "nodes"}, - }, - }, - } -} - -func schema_pkg_apis_management_v1_NodeProviderBCMNodeWithResources(ref common.ReferenceCallback) common.OpenAPIDefinition { - return common.OpenAPIDefinition{ - Schema: spec.Schema{ - SchemaProps: spec.SchemaProps{ - Type: []string{"object"}, - Properties: map[string]spec.Schema{ "name": { SchemaProps: spec.SchemaProps{ - Default: "", - Type: []string{"string"}, - Format: "", + Description: "Name is the virtual cluster instance name. If the name is already taken, the platform will construct a name for the devsy based on the service uid and this name.", + Type: []string{"string"}, + Format: "", }, }, - "resources": { + "forceName": { SchemaProps: spec.SchemaProps{ - Type: []string{"object"}, - AdditionalProperties: &spec.SchemaOrBool{ - Allows: true, - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Ref: ref("k8s.io/apimachinery/pkg/api/resource.Quantity"), - }, - }, - }, + Description: "ForceName specifies if the name should be used or creation will fail.", + Type: []string{"boolean"}, + Format: "", }, }, - }, - Required: []string{"name"}, - }, - }, - Dependencies: []string{ - "k8s.io/apimachinery/pkg/api/resource.Quantity"}, - } -} - -func schema_pkg_apis_management_v1_NodeProviderBCMTestConnectionResult(ref common.ReferenceCallback) common.OpenAPIDefinition { - return common.OpenAPIDefinition{ - Schema: spec.Schema{ - SchemaProps: spec.SchemaProps{ - Type: []string{"object"}, - Properties: map[string]spec.Schema{ - "success": { + "chart": { SchemaProps: spec.SchemaProps{ - Default: false, - Type: []string{"boolean"}, - Format: "", + Description: "Chart specifies the vCluster chart.", + Type: []string{"string"}, + Format: "", }, }, - "message": { + "version": { SchemaProps: spec.SchemaProps{ - Default: "", - Type: []string{"string"}, - Format: "", + Description: "Version specifies the vCluster version.", + Type: []string{"string"}, + Format: "", + }, + }, + "values": { + SchemaProps: spec.SchemaProps{ + Description: "Values specifies the vCluster config.", + Type: []string{"string"}, + Format: "", }, }, }, - Required: []string{"success", "message"}, }, }, } } -func schema_pkg_apis_management_v1_NodeProviderCalculateCostResult(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_RegisterVirtualClusterStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Type: []string{"object"}, + Description: "RegisterVirtualClusterStatus holds the status.", + Type: []string{"object"}, Properties: map[string]spec.Schema{ - "cost": { + "name": { SchemaProps: spec.SchemaProps{ - Default: 0, - Type: []string{"integer"}, - Format: "int64", + Description: "Name is the actual name of the virtual cluster instance.", + Type: []string{"string"}, + Format: "", }, }, }, - Required: []string{"cost"}, }, }, } } -func schema_pkg_apis_management_v1_NodeProviderExec(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_ResetAccessKey(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Type: []string{"object"}, + Description: "ResetAccessKey is an access key that is owned by another user", + Type: []string{"object"}, Properties: map[string]spec.Schema{ "kind": { SchemaProps: spec.SchemaProps{ @@ -13706,25 +13559,24 @@ func schema_pkg_apis_management_v1_NodeProviderExec(ref common.ReferenceCallback "spec": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.NodeProviderExecSpec"), + Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.ResetAccessKeySpec"), }, }, "status": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.NodeProviderExecStatus"), + Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.ResetAccessKeyStatus"), }, }, }, - Required: []string{"spec"}, }, }, Dependencies: []string{ - "github.com/devsy-org/api/pkg/apis/management/v1.NodeProviderExecSpec", "github.com/devsy-org/api/pkg/apis/management/v1.NodeProviderExecStatus", metav1.ObjectMeta{}.OpenAPIModelName()}, + "github.com/devsy-org/api/pkg/apis/management/v1.ResetAccessKeySpec", "github.com/devsy-org/api/pkg/apis/management/v1.ResetAccessKeyStatus", metav1.ObjectMeta{}.OpenAPIModelName()}, } } -func schema_pkg_apis_management_v1_NodeProviderExecList(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_ResetAccessKeyList(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ @@ -13757,7 +13609,7 @@ func schema_pkg_apis_management_v1_NodeProviderExecList(ref common.ReferenceCall Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.NodeProviderExec"), + Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.ResetAccessKey"), }, }, }, @@ -13768,255 +13620,171 @@ func schema_pkg_apis_management_v1_NodeProviderExecList(ref common.ReferenceCall }, }, Dependencies: []string{ - "github.com/devsy-org/api/pkg/apis/management/v1.NodeProviderExec", metav1.ListMeta{}.OpenAPIModelName()}, - } -} - -func schema_pkg_apis_management_v1_NodeProviderExecResult(ref common.ReferenceCallback) common.OpenAPIDefinition { - return common.OpenAPIDefinition{ - Schema: spec.Schema{ - SchemaProps: spec.SchemaProps{ - Type: []string{"object"}, - Properties: map[string]spec.Schema{ - "success": { - SchemaProps: spec.SchemaProps{ - Default: false, - Type: []string{"boolean"}, - Format: "", - }, - }, - "message": { - SchemaProps: spec.SchemaProps{ - Default: "", - Type: []string{"string"}, - Format: "", - }, - }, - }, - Required: []string{"success", "message"}, - }, - }, + "github.com/devsy-org/api/pkg/apis/management/v1.ResetAccessKey", metav1.ListMeta{}.OpenAPIModelName()}, } } -func schema_pkg_apis_management_v1_NodeProviderExecSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_ResetAccessKeySpec(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ Type: []string{"object"}, Properties: map[string]spec.Schema{ - "command": { + "displayName": { SchemaProps: spec.SchemaProps{ - Description: "Command is the action to perform.", - Default: "", + Description: "The display name shown in the UI", Type: []string{"string"}, Format: "", }, }, - "args": { - SchemaProps: spec.SchemaProps{ - Ref: ref("k8s.io/apimachinery/pkg/runtime.RawExtension"), - }, - }, - }, - Required: []string{"command"}, - }, - }, - Dependencies: []string{ - "k8s.io/apimachinery/pkg/runtime.RawExtension"}, - } -} - -func schema_pkg_apis_management_v1_NodeProviderExecStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { - return common.OpenAPIDefinition{ - Schema: spec.Schema{ - SchemaProps: spec.SchemaProps{ - Type: []string{"object"}, - Properties: map[string]spec.Schema{ - "result": { + "description": { SchemaProps: spec.SchemaProps{ - Description: "Result is the output of the executed command.", - Ref: ref("k8s.io/apimachinery/pkg/runtime.RawExtension"), + Description: "Description describes an app", + Type: []string{"string"}, + Format: "", }, }, - }, - }, - }, - Dependencies: []string{ - "k8s.io/apimachinery/pkg/runtime.RawExtension"}, - } -} - -func schema_pkg_apis_management_v1_NodeProviderList(ref common.ReferenceCallback) common.OpenAPIDefinition { - return common.OpenAPIDefinition{ - Schema: spec.Schema{ - SchemaProps: spec.SchemaProps{ - Type: []string{"object"}, - Properties: map[string]spec.Schema{ - "kind": { + "user": { SchemaProps: spec.SchemaProps{ - Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + Description: "The user this access key refers to", Type: []string{"string"}, Format: "", }, }, - "apiVersion": { + "team": { SchemaProps: spec.SchemaProps{ - Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + Description: "The team this access key refers to", Type: []string{"string"}, Format: "", }, }, - "metadata": { + "subject": { SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref(metav1.ListMeta{}.OpenAPIModelName()), + Description: "Subject is a generic subject that can be used instead of user or team", + Type: []string{"string"}, + Format: "", }, }, - "items": { + "groups": { SchemaProps: spec.SchemaProps{ - Type: []string{"array"}, + Description: "Groups specifies extra groups to apply when using this access key", + Type: []string{"array"}, Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.NodeProvider"), + Default: "", + Type: []string{"string"}, + Format: "", }, }, }, }, }, - }, - Required: []string{"items"}, - }, - }, - Dependencies: []string{ - "github.com/devsy-org/api/pkg/apis/management/v1.NodeProvider", metav1.ListMeta{}.OpenAPIModelName()}, - } -} - -func schema_pkg_apis_management_v1_NodeProviderSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { - return common.OpenAPIDefinition{ - Schema: spec.Schema{ - SchemaProps: spec.SchemaProps{ - Description: "NodeProviderSpec defines the desired state of NodeProvider. Only one of the provider types (Pods, BCM, Kubevirt) should be specified at a time.", - Type: []string{"object"}, - Properties: map[string]spec.Schema{ - "bcm": { + "key": { SchemaProps: spec.SchemaProps{ - Description: "BCM configures a node provider for BCM Bare Metal Cloud environments.", - Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.NodeProviderBCM"), + Description: "The actual access key that will be used as a bearer token", + Type: []string{"string"}, + Format: "", }, }, - "kubeVirt": { + "disabled": { SchemaProps: spec.SchemaProps{ - Description: "Kubevirt configures a node provider using KubeVirt, enabling virtual machines to be provisioned as nodes within a vCluster.", - Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.NodeProviderKubeVirt"), + Description: "If this field is true, the access key is still allowed to exist, however will not work to access the api", + Type: []string{"boolean"}, + Format: "", }, }, - "terraform": { + "ttl": { SchemaProps: spec.SchemaProps{ - Description: "Terraform configures a node provider using Terraform, enabling nodes to be provisioned using Terraform.", - Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.NodeProviderTerraform"), + Description: "The time to life for this access key", + Type: []string{"integer"}, + Format: "int64", }, }, - "displayName": { + "ttlAfterLastActivity": { SchemaProps: spec.SchemaProps{ - Description: "DisplayName is the name that should be displayed in the UI", - Type: []string{"string"}, + Description: "If this is specified, the time to life for this access key will start after the lastActivity instead of creation timestamp", + Type: []string{"boolean"}, Format: "", }, }, - }, - }, - }, - Dependencies: []string{ - "github.com/devsy-org/api/pkg/apis/storage/v1.NodeProviderBCM", "github.com/devsy-org/api/pkg/apis/storage/v1.NodeProviderKubeVirt", "github.com/devsy-org/api/pkg/apis/storage/v1.NodeProviderTerraform"}, - } -} - -func schema_pkg_apis_management_v1_NodeProviderStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { - return common.OpenAPIDefinition{ - Schema: spec.Schema{ - SchemaProps: spec.SchemaProps{ - Description: "NodeProviderStatus defines the observed state of NodeProvider.", - Type: []string{"object"}, - Properties: map[string]spec.Schema{ - "conditions": { + "scope": { SchemaProps: spec.SchemaProps{ - Description: "Conditions describe the current state of the platform NodeProvider.", - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref(storagev1.Condition{}.OpenAPIModelName()), - }, - }, - }, + Description: "Scope defines the scope of the access key.", + Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.AccessKeyScope"), }, }, - "reason": { + "type": { SchemaProps: spec.SchemaProps{ - Description: "Reason describes the reason in machine-readable form", + Description: "The type of an access key, which basically describes if the access key is user managed or managed by devsy itself.", Type: []string{"string"}, Format: "", }, }, - "phase": { + "identity": { SchemaProps: spec.SchemaProps{ - Description: "Phase is the current lifecycle phase of the NodeProvider.", - Type: []string{"string"}, - Format: "", + Description: "If available, contains information about the sso login data for this access key", + Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.SSOIdentity"), }, }, - "message": { + "identityRefresh": { SchemaProps: spec.SchemaProps{ - Description: "Message is a human-readable message indicating details about why the NodeProvider is in its current state.", + Description: "The last time the identity was refreshed", + Ref: ref(metav1.Time{}.OpenAPIModelName()), + }, + }, + "oidcProvider": { + SchemaProps: spec.SchemaProps{ + Description: "If the token is a refresh token, contains information about it", + Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.AccessKeyOIDCProvider"), + }, + }, + "parent": { + SchemaProps: spec.SchemaProps{ + Description: "DEPRECATED: do not use anymore Parent is used to share OIDC and external token information with multiple access keys. Since copying an OIDC refresh token would result in the other access keys becoming invalid after a refresh parent allows access keys to share that information.\n\nThe use case for this is primarily user generated access keys, which will have the users current access key as parent if it contains an OIDC token.", Type: []string{"string"}, Format: "", }, }, + "oidcLogin": { + SchemaProps: spec.SchemaProps{ + Description: "DEPRECATED: Use identity instead If available, contains information about the oidc login data for this access key", + Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.AccessKeyOIDC"), + }, + }, }, }, }, Dependencies: []string{ - storagev1.Condition{}.OpenAPIModelName()}, + "github.com/devsy-org/api/pkg/apis/storage/v1.AccessKeyOIDC", "github.com/devsy-org/api/pkg/apis/storage/v1.AccessKeyOIDCProvider", "github.com/devsy-org/api/pkg/apis/storage/v1.AccessKeyScope", "github.com/devsy-org/api/pkg/apis/storage/v1.SSOIdentity", metav1.Time{}.OpenAPIModelName()}, } } -func schema_pkg_apis_management_v1_NodeProviderTerraformValidateResult(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_ResetAccessKeyStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ Type: []string{"object"}, Properties: map[string]spec.Schema{ - "success": { - SchemaProps: spec.SchemaProps{ - Default: false, - Type: []string{"boolean"}, - Format: "", - }, - }, - "output": { + "lastActivity": { SchemaProps: spec.SchemaProps{ - Default: "", - Type: []string{"string"}, - Format: "", + Description: "The last time this access key was used to access the api", + Ref: ref(metav1.Time{}.OpenAPIModelName()), }, }, }, - Required: []string{"success", "output"}, }, }, + Dependencies: []string{ + metav1.Time{}.OpenAPIModelName()}, } } -func schema_pkg_apis_management_v1_NodeType(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_Self(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "NodeType holds the information of a node type.", + Description: "Self holds information about the currently logged in user", Type: []string{"object"}, Properties: map[string]spec.Schema{ "kind": { @@ -14042,24 +13810,24 @@ func schema_pkg_apis_management_v1_NodeType(ref common.ReferenceCallback) common "spec": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.NodeTypeSpec"), + Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.SelfSpec"), }, }, "status": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.NodeTypeStatus"), + Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.SelfStatus"), }, }, }, }, }, Dependencies: []string{ - "github.com/devsy-org/api/pkg/apis/management/v1.NodeTypeSpec", "github.com/devsy-org/api/pkg/apis/management/v1.NodeTypeStatus", metav1.ObjectMeta{}.OpenAPIModelName()}, + "github.com/devsy-org/api/pkg/apis/management/v1.SelfSpec", "github.com/devsy-org/api/pkg/apis/management/v1.SelfStatus", metav1.ObjectMeta{}.OpenAPIModelName()}, } } -func schema_pkg_apis_management_v1_NodeTypeList(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_SelfList(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ @@ -14092,7 +13860,7 @@ func schema_pkg_apis_management_v1_NodeTypeList(ref common.ReferenceCallback) co Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.NodeType"), + Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.Self"), }, }, }, @@ -14103,69 +13871,19 @@ func schema_pkg_apis_management_v1_NodeTypeList(ref common.ReferenceCallback) co }, }, Dependencies: []string{ - "github.com/devsy-org/api/pkg/apis/management/v1.NodeType", metav1.ListMeta{}.OpenAPIModelName()}, + "github.com/devsy-org/api/pkg/apis/management/v1.Self", metav1.ListMeta{}.OpenAPIModelName()}, } } -func schema_pkg_apis_management_v1_NodeTypeSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_SelfSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ Type: []string{"object"}, Properties: map[string]spec.Schema{ - "providerRef": { - SchemaProps: spec.SchemaProps{ - Description: "ProviderRef is the node provider to use for this node type.", - Type: []string{"string"}, - Format: "", - }, - }, - "properties": { - SchemaProps: spec.SchemaProps{ - Description: "Properties returns a flexible set of properties that may be selected for scheduling.", - Type: []string{"object"}, - AdditionalProperties: &spec.SchemaOrBool{ - Allows: true, - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: "", - Type: []string{"string"}, - Format: "", - }, - }, - }, - }, - }, - "resources": { - SchemaProps: spec.SchemaProps{ - Description: "Resources lists the full resources for a single node.", - Type: []string{"object"}, - AdditionalProperties: &spec.SchemaOrBool{ - Allows: true, - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Ref: ref("k8s.io/apimachinery/pkg/api/resource.Quantity"), - }, - }, - }, - }, - }, - "overhead": { - SchemaProps: spec.SchemaProps{ - Description: "Overhead defines the resource overhead for this node type.", - Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.NodeTypeOverhead"), - }, - }, - "cost": { - SchemaProps: spec.SchemaProps{ - Description: "Cost is the instance cost. The higher the cost, the less likely it is to be selected. If empty, cost is automatically calculated from the resources specified.", - Type: []string{"integer"}, - Format: "int64", - }, - }, - "displayName": { + "accessKey": { SchemaProps: spec.SchemaProps{ - Description: "DisplayName is the name that should be displayed in the UI", + Description: "AccessKey is an optional access key to use instead of the provided one", Type: []string{"string"}, Format: "", }, @@ -14173,136 +13891,117 @@ func schema_pkg_apis_management_v1_NodeTypeSpec(ref common.ReferenceCallback) co }, }, }, - Dependencies: []string{ - "github.com/devsy-org/api/pkg/apis/storage/v1.NodeTypeOverhead", "k8s.io/apimachinery/pkg/api/resource.Quantity"}, } } -func schema_pkg_apis_management_v1_NodeTypeStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_SelfStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ Type: []string{"object"}, Properties: map[string]spec.Schema{ - "phase": { + "user": { SchemaProps: spec.SchemaProps{ - Description: "Phase is the current lifecycle phase of the NodeType.", - Type: []string{"string"}, - Format: "", + Description: "The name of the currently logged in user", + Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.UserInfo"), }, }, - "reason": { + "team": { SchemaProps: spec.SchemaProps{ - Description: "Reason describes the reason in machine-readable form", - Type: []string{"string"}, - Format: "", + Description: "The name of the currently logged in team", + Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.EntityInfo"), }, }, - "message": { + "accessKey": { SchemaProps: spec.SchemaProps{ - Description: "Message describes the reason in human-readable form", + Description: "The name of the currently used access key", Type: []string{"string"}, Format: "", }, }, - "cost": { + "accessKeyScope": { SchemaProps: spec.SchemaProps{ - Description: "Cost is the calculated instance cost from the resources specified or the price specified from spec. The higher the cost, the less likely it is to be selected.", - Type: []string{"integer"}, - Format: "int64", + Description: "The scope of the currently used access key", + Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.AccessKeyScope"), }, }, - "capacity": { + "accessKeyType": { SchemaProps: spec.SchemaProps{ - Description: "Capacity is the capacity of the node type.", - Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.NodeTypeCapacity"), + Description: "The type of the currently used access key", + Type: []string{"string"}, + Format: "", }, }, - "requirements": { + "subject": { SchemaProps: spec.SchemaProps{ - Description: "Requirements is the calculated requirements based of the properties for the node type.", - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref(corev1.NodeSelectorRequirement{}.OpenAPIModelName()), - }, - }, - }, + Description: "The subject of the currently logged in user", + Type: []string{"string"}, + Format: "", }, }, - "conditions": { + "uid": { SchemaProps: spec.SchemaProps{ - Description: "Conditions holds several conditions the node type might be in", + Description: "UID is the user uid", + Type: []string{"string"}, + Format: "", + }, + }, + "groups": { + SchemaProps: spec.SchemaProps{ + Description: "The groups of the currently logged in user", Type: []string{"array"}, Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref(storagev1.Condition{}.OpenAPIModelName()), + Default: "", + Type: []string{"string"}, + Format: "", }, }, }, }, }, - }, - }, - }, - Dependencies: []string{ - storagev1.Condition{}.OpenAPIModelName(), "github.com/devsy-org/api/pkg/apis/storage/v1.NodeTypeCapacity", corev1.NodeSelectorRequirement{}.OpenAPIModelName()}, - } -} - -func schema_pkg_apis_management_v1_OIDC(ref common.ReferenceCallback) common.OpenAPIDefinition { - return common.OpenAPIDefinition{ - Schema: spec.Schema{ - SchemaProps: spec.SchemaProps{ - Description: "OIDC holds oidc provider relevant information", - Type: []string{"object"}, - Properties: map[string]spec.Schema{ - "enabled": { + "chatAuthToken": { SchemaProps: spec.SchemaProps{ - Description: "If true indicates that devsy will act as an OIDC server", - Type: []string{"boolean"}, + Description: "ChatAuthToken is the token used to authenticate with the in-product chat widget in the UI", + Type: []string{"string"}, Format: "", }, }, - "wildcardRedirect": { + "instanceID": { SchemaProps: spec.SchemaProps{ - Description: "If true indicates that devsy will allow wildcard '*' in client redirectURIs", - Type: []string{"boolean"}, + Description: "InstanceID is the devsy instance id", + Type: []string{"string"}, Format: "", }, }, - "clients": { + "loftHost": { SchemaProps: spec.SchemaProps{ - Description: "The clients that are allowed to request devsy tokens", - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.OIDCClientSpec"), - }, - }, - }, + Description: "DevsyHost is the host of the devsy instance", + Type: []string{"string"}, + Format: "", + }, + }, + "projectNamespacePrefix": { + SchemaProps: spec.SchemaProps{ + Description: "ProjectNamespacePrefix is the prefix used to name project namespaces after defaulting has been applied", + Type: []string{"string"}, + Format: "", }, }, }, }, }, Dependencies: []string{ - "github.com/devsy-org/api/pkg/apis/management/v1.OIDCClientSpec"}, + "github.com/devsy-org/api/pkg/apis/management/v1.UserInfo", "github.com/devsy-org/api/pkg/apis/storage/v1.AccessKeyScope", "github.com/devsy-org/api/pkg/apis/storage/v1.EntityInfo"}, } } -func schema_pkg_apis_management_v1_OIDCClient(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_SelfSubjectAccessReview(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "OIDCClient represents an OIDC client to use with Devsy as an OIDC provider", + Description: "User holds the user information", Type: []string{"object"}, Properties: map[string]spec.Schema{ "kind": { @@ -14328,24 +14027,24 @@ func schema_pkg_apis_management_v1_OIDCClient(ref common.ReferenceCallback) comm "spec": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.OIDCClientSpec"), + Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.SelfSubjectAccessReviewSpec"), }, }, "status": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.OIDCClientStatus"), + Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.SelfSubjectAccessReviewStatus"), }, }, }, }, }, Dependencies: []string{ - "github.com/devsy-org/api/pkg/apis/management/v1.OIDCClientSpec", "github.com/devsy-org/api/pkg/apis/management/v1.OIDCClientStatus", metav1.ObjectMeta{}.OpenAPIModelName()}, + "github.com/devsy-org/api/pkg/apis/management/v1.SelfSubjectAccessReviewSpec", "github.com/devsy-org/api/pkg/apis/management/v1.SelfSubjectAccessReviewStatus", metav1.ObjectMeta{}.OpenAPIModelName()}, } } -func schema_pkg_apis_management_v1_OIDCClientList(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_SelfSubjectAccessReviewList(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ @@ -14378,7 +14077,7 @@ func schema_pkg_apis_management_v1_OIDCClientList(ref common.ReferenceCallback) Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.OIDCClient"), + Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.SelfSubjectAccessReview"), }, }, }, @@ -14389,205 +14088,313 @@ func schema_pkg_apis_management_v1_OIDCClientList(ref common.ReferenceCallback) }, }, Dependencies: []string{ - "github.com/devsy-org/api/pkg/apis/management/v1.OIDCClient", metav1.ListMeta{}.OpenAPIModelName()}, + "github.com/devsy-org/api/pkg/apis/management/v1.SelfSubjectAccessReview", metav1.ListMeta{}.OpenAPIModelName()}, } } -func schema_pkg_apis_management_v1_OIDCClientSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_SelfSubjectAccessReviewSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "OIDCClientSpec holds the specification", - Type: []string{"object"}, + Type: []string{"object"}, Properties: map[string]spec.Schema{ - "name": { + "resourceAttributes": { SchemaProps: spec.SchemaProps{ - Description: "The client name", - Type: []string{"string"}, + Description: "ResourceAuthorizationAttributes describes information for a resource access request", + Ref: ref("k8s.io/api/authorization/v1.ResourceAttributes"), + }, + }, + "nonResourceAttributes": { + SchemaProps: spec.SchemaProps{ + Description: "NonResourceAttributes describes information for a non-resource access request", + Ref: ref("k8s.io/api/authorization/v1.NonResourceAttributes"), + }, + }, + }, + }, + }, + Dependencies: []string{ + "k8s.io/api/authorization/v1.NonResourceAttributes", "k8s.io/api/authorization/v1.ResourceAttributes"}, + } +} + +func schema_pkg_apis_management_v1_SelfSubjectAccessReviewStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "allowed": { + SchemaProps: spec.SchemaProps{ + Description: "Allowed is required. True if the action would be allowed, false otherwise.", + Default: false, + Type: []string{"boolean"}, Format: "", }, }, - "clientId": { + "denied": { SchemaProps: spec.SchemaProps{ - Description: "The client id of the client", - Type: []string{"string"}, + Description: "Denied is optional. True if the action would be denied, otherwise false. If both allowed is false and denied is false, then the authorizer has no opinion on whether to authorize the action. Denied may not be true if Allowed is true.", + Type: []string{"boolean"}, Format: "", }, }, - "clientSecret": { + "reason": { SchemaProps: spec.SchemaProps{ - Description: "The client secret of the client", + Description: "Reason is optional. It indicates why a request was allowed or denied.", Type: []string{"string"}, Format: "", }, }, - "redirectURIs": { + "evaluationError": { SchemaProps: spec.SchemaProps{ - Description: "A registered set of redirect URIs. When redirecting from dex to the client, the URI requested to redirect to MUST match one of these values, unless the client is \"public\".", - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: "", - Type: []string{"string"}, - Format: "", - }, - }, - }, + Description: "EvaluationError is an indication that some error occurred during the authorization check. It is entirely possible to get an error and be able to continue determine authorization status in spite of it. For instance, RBAC can be missing a role, but enough roles are still present and bound to reason about the request.", + Type: []string{"string"}, + Format: "", }, }, }, - Required: []string{"redirectURIs"}, + Required: []string{"allowed"}, }, }, } } -func schema_pkg_apis_management_v1_OIDCClientStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_SharedSecret(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "OIDCClientStatus holds the status", + Description: "SharedSecret holds the secret information", Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "kind": { + SchemaProps: spec.SchemaProps{ + Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + Type: []string{"string"}, + Format: "", + }, + }, + "apiVersion": { + SchemaProps: spec.SchemaProps{ + Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + Type: []string{"string"}, + Format: "", + }, + }, + "metadata": { + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref(metav1.ObjectMeta{}.OpenAPIModelName()), + }, + }, + "spec": { + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.SharedSecretSpec"), + }, + }, + "status": { + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.SharedSecretStatus"), + }, + }, + }, }, }, + Dependencies: []string{ + "github.com/devsy-org/api/pkg/apis/management/v1.SharedSecretSpec", "github.com/devsy-org/api/pkg/apis/management/v1.SharedSecretStatus", metav1.ObjectMeta{}.OpenAPIModelName()}, } } -func schema_pkg_apis_management_v1_ObjectName(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_SharedSecretList(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ Type: []string{"object"}, Properties: map[string]spec.Schema{ - "namespace": { + "kind": { SchemaProps: spec.SchemaProps{ - Description: "Namespace of the referenced object", + Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", Type: []string{"string"}, Format: "", }, }, - "name": { + "apiVersion": { SchemaProps: spec.SchemaProps{ - Description: "Name of the referenced object", + Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", Type: []string{"string"}, Format: "", }, }, - "displayName": { + "metadata": { SchemaProps: spec.SchemaProps{ - Description: "DisplayName is the name of the object to display in the UI", - Type: []string{"string"}, - Format: "", + Default: map[string]interface{}{}, + Ref: ref(metav1.ListMeta{}.OpenAPIModelName()), + }, + }, + "items": { + SchemaProps: spec.SchemaProps{ + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.SharedSecret"), + }, + }, + }, }, }, }, + Required: []string{"items"}, }, }, + Dependencies: []string{ + "github.com/devsy-org/api/pkg/apis/management/v1.SharedSecret", metav1.ListMeta{}.OpenAPIModelName()}, } } -func schema_pkg_apis_management_v1_ObjectPermission(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_SharedSecretSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Type: []string{"object"}, + Description: "SharedSecretSpec holds the specification.", + Type: []string{"object"}, Properties: map[string]spec.Schema{ - "namespace": { + "displayName": { SchemaProps: spec.SchemaProps{ - Description: "Namespace of the referenced object", + Description: "DisplayName is the name that should be displayed in the UI", Type: []string{"string"}, Format: "", }, }, - "name": { + "description": { SchemaProps: spec.SchemaProps{ - Description: "Name of the referenced object", + Description: "Description describes a shared secret", Type: []string{"string"}, Format: "", }, }, - "displayName": { + "owner": { SchemaProps: spec.SchemaProps{ - Description: "DisplayName is the name of the object to display in the UI", - Type: []string{"string"}, - Format: "", + Description: "Owner holds the owner of this object", + Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.UserOrTeam"), }, }, - "verbs": { + "data": { SchemaProps: spec.SchemaProps{ - Description: "Verbs is a list of actions allowed by the user on the object. '*' represents all verbs", + Description: "Data contains the secret data. Each key must consist of alphanumeric characters, '-', '_' or '.'. The serialized form of the secret data is a base64 encoded string, representing the arbitrary (possibly non-string) data value here. Described in https://tools.ietf.org/html/rfc4648#section-4", + Type: []string{"object"}, + AdditionalProperties: &spec.SchemaOrBool{ + Allows: true, + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"string"}, + Format: "byte", + }, + }, + }, + }, + }, + "access": { + SchemaProps: spec.SchemaProps{ + Description: "Access holds the access rights for users and teams which will be transformed to Roles and RoleBindings", Type: []string{"array"}, Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ - Default: "", - Type: []string{"string"}, - Format: "", + Default: map[string]interface{}{}, + Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.Access"), }, }, }, }, }, }, - Required: []string{"verbs"}, }, }, + Dependencies: []string{ + "github.com/devsy-org/api/pkg/apis/storage/v1.Access", "github.com/devsy-org/api/pkg/apis/storage/v1.UserOrTeam"}, } } -func schema_pkg_apis_management_v1_Operation(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_SharedSecretStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "SharedSecretStatus holds the status.", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "conditions": { + SchemaProps: spec.SchemaProps{ + Description: "Conditions holds several conditions the project might be in", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("github.com/devsy-org/agentapi/pkg/apis/devsy/storage/v1.Condition"), + }, + }, + }, + }, + }, + }, + }, + }, + Dependencies: []string{ + "github.com/devsy-org/agentapi/pkg/apis/devsy/storage/v1.Condition"}, + } +} + +func schema_pkg_apis_management_v1_SnapshotTaken(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ Type: []string{"object"}, Properties: map[string]spec.Schema{ - "startTimestamp": { + "id": { SchemaProps: spec.SchemaProps{ - Description: "StartTimestamp of the operation.", - Ref: ref(metav1.Time{}.OpenAPIModelName()), + Type: []string{"string"}, + Format: "", }, }, - "endTimestamp": { + "url": { SchemaProps: spec.SchemaProps{ - Description: "EndTimestamp of the operation.", - Ref: ref(metav1.Time{}.OpenAPIModelName()), + Type: []string{"string"}, + Format: "", }, }, - "phase": { + "timestamp": { SchemaProps: spec.SchemaProps{ - Description: "Phase of the operation.", - Type: []string{"string"}, - Format: "", + Type: []string{"string"}, + Format: "", }, }, - "logs": { + "reason": { SchemaProps: spec.SchemaProps{ - Description: "Logs of the operation.", - Type: []string{"string"}, - Format: "byte", + Type: []string{"string"}, + Format: "", }, }, - "error": { + "status": { SchemaProps: spec.SchemaProps{ - Description: "Error of the operation.", - Type: []string{"string"}, - Format: "", + Type: []string{"string"}, + Format: "", }, }, }, }, }, - Dependencies: []string{ - metav1.Time{}.OpenAPIModelName()}, } } -func schema_pkg_apis_management_v1_OwnedAccessKey(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_SpaceInstance(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "OwnedAccessKey is an access key that is owned by the current user", + Description: "SpaceInstance holds the SpaceInstance information", Type: []string{"object"}, Properties: map[string]spec.Schema{ "kind": { @@ -14613,24 +14420,24 @@ func schema_pkg_apis_management_v1_OwnedAccessKey(ref common.ReferenceCallback) "spec": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.OwnedAccessKeySpec"), + Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.SpaceInstanceSpec"), }, }, "status": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.OwnedAccessKeyStatus"), + Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.SpaceInstanceStatus"), }, }, }, }, }, Dependencies: []string{ - "github.com/devsy-org/api/pkg/apis/management/v1.OwnedAccessKeySpec", "github.com/devsy-org/api/pkg/apis/management/v1.OwnedAccessKeyStatus", metav1.ObjectMeta{}.OpenAPIModelName()}, + "github.com/devsy-org/api/pkg/apis/management/v1.SpaceInstanceSpec", "github.com/devsy-org/api/pkg/apis/management/v1.SpaceInstanceStatus", metav1.ObjectMeta{}.OpenAPIModelName()}, } } -func schema_pkg_apis_management_v1_OwnedAccessKeyList(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_SpaceInstanceList(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ @@ -14663,7 +14470,7 @@ func schema_pkg_apis_management_v1_OwnedAccessKeyList(ref common.ReferenceCallba Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.OwnedAccessKey"), + Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.SpaceInstance"), }, }, }, @@ -14674,262 +14481,240 @@ func schema_pkg_apis_management_v1_OwnedAccessKeyList(ref common.ReferenceCallba }, }, Dependencies: []string{ - "github.com/devsy-org/api/pkg/apis/management/v1.OwnedAccessKey", metav1.ListMeta{}.OpenAPIModelName()}, + "github.com/devsy-org/api/pkg/apis/management/v1.SpaceInstance", metav1.ListMeta{}.OpenAPIModelName()}, } } -func schema_pkg_apis_management_v1_OwnedAccessKeySpec(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_SpaceInstanceSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Type: []string{"object"}, + Description: "SpaceInstanceSpec holds the specification.", + Type: []string{"object"}, Properties: map[string]spec.Schema{ "displayName": { SchemaProps: spec.SchemaProps{ - Description: "The display name shown in the UI", + Description: "DisplayName is the name that should be displayed in the UI", Type: []string{"string"}, Format: "", }, }, "description": { SchemaProps: spec.SchemaProps{ - Description: "Description describes an app", + Description: "Description describes a space instance", Type: []string{"string"}, Format: "", }, }, - "user": { + "owner": { SchemaProps: spec.SchemaProps{ - Description: "The user this access key refers to", - Type: []string{"string"}, - Format: "", + Description: "Owner holds the owner of this object", + Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.UserOrTeam"), }, }, - "team": { + "templateRef": { SchemaProps: spec.SchemaProps{ - Description: "The team this access key refers to", - Type: []string{"string"}, - Format: "", + Description: "TemplateRef holds the space template reference", + Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.TemplateRef"), }, }, - "subject": { + "template": { SchemaProps: spec.SchemaProps{ - Description: "Subject is a generic subject that can be used instead of user or team", + Description: "Template is the inline template to use for space creation. This is mutually exclusive with templateRef.", + Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.SpaceTemplateDefinition"), + }, + }, + "clusterRef": { + SchemaProps: spec.SchemaProps{ + Description: "ClusterRef is the reference to the connected cluster holding this space", + Default: map[string]interface{}{}, + Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.ClusterRef"), + }, + }, + "parameters": { + SchemaProps: spec.SchemaProps{ + Description: "Parameters are values to pass to the template. The values should be encoded as YAML string where each parameter is represented as a top-level field key.", Type: []string{"string"}, Format: "", }, }, - "groups": { + "extraAccessRules": { SchemaProps: spec.SchemaProps{ - Description: "Groups specifies extra groups to apply when using this access key", + Description: "ExtraAccessRules defines extra rules which users and teams should have which access to the virtual cluster.", Type: []string{"array"}, Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ - Default: "", - Type: []string{"string"}, - Format: "", + Default: map[string]interface{}{}, + Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.InstanceAccessRule"), }, }, }, }, }, - "key": { + "access": { SchemaProps: spec.SchemaProps{ - Description: "The actual access key that will be used as a bearer token", - Type: []string{"string"}, - Format: "", + Description: "Access holds the access rights for users and teams", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.Access"), + }, + }, + }, }, }, - "disabled": { + }, + }, + }, + Dependencies: []string{ + "github.com/devsy-org/api/pkg/apis/storage/v1.Access", "github.com/devsy-org/api/pkg/apis/storage/v1.ClusterRef", "github.com/devsy-org/api/pkg/apis/storage/v1.InstanceAccessRule", "github.com/devsy-org/api/pkg/apis/storage/v1.SpaceTemplateDefinition", "github.com/devsy-org/api/pkg/apis/storage/v1.TemplateRef", "github.com/devsy-org/api/pkg/apis/storage/v1.UserOrTeam"}, + } +} + +func schema_pkg_apis_management_v1_SpaceInstanceStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "SpaceInstanceStatus holds the status.", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "phase": { SchemaProps: spec.SchemaProps{ - Description: "If this field is true, the access key is still allowed to exist, however will not work to access the api", - Type: []string{"boolean"}, + Description: "Phase describes the current phase the space instance is in", + Type: []string{"string"}, Format: "", }, }, - "ttl": { + "reason": { SchemaProps: spec.SchemaProps{ - Description: "The time to life for this access key", - Type: []string{"integer"}, - Format: "int64", + Description: "Reason describes the reason in machine-readable form", + Type: []string{"string"}, + Format: "", }, }, - "ttlAfterLastActivity": { + "message": { SchemaProps: spec.SchemaProps{ - Description: "If this is specified, the time to life for this access key will start after the lastActivity instead of creation timestamp", - Type: []string{"boolean"}, + Description: "Message describes the reason in human-readable form", + Type: []string{"string"}, Format: "", }, }, - "scope": { + "conditions": { SchemaProps: spec.SchemaProps{ - Description: "Scope defines the scope of the access key.", - Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.AccessKeyScope"), + Description: "Conditions holds several conditions the virtual cluster might be in", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("github.com/devsy-org/agentapi/pkg/apis/devsy/storage/v1.Condition"), + }, + }, + }, }, }, - "type": { + "spaceObjects": { SchemaProps: spec.SchemaProps{ - Description: "The type of an access key, which basically describes if the access key is user managed or managed by devsy itself.", - Type: []string{"string"}, - Format: "", + Description: "SpaceObjects are the objects that were applied within the virtual cluster space", + Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.ObjectsStatus"), }, }, - "identity": { + "space": { SchemaProps: spec.SchemaProps{ - Description: "If available, contains information about the sso login data for this access key", - Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.SSOIdentity"), + Description: "Space is the template rendered with all the parameters", + Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.SpaceTemplateDefinition"), }, }, - "identityRefresh": { + "ignoreReconciliation": { SchemaProps: spec.SchemaProps{ - Description: "The last time the identity was refreshed", - Ref: ref(metav1.Time{}.OpenAPIModelName()), + Description: "IgnoreReconciliation tells the controller to ignore reconciliation for this instance -- this is primarily used when migrating virtual cluster instances from project to project; this prevents a situation where there are two virtual cluster instances representing the same virtual cluster which could cause issues with concurrent reconciliations of the same object. Once the virtual cluster instance has been cloned and placed into the new project, this (the \"old\") virtual cluster instance can safely be deleted.", + Type: []string{"boolean"}, + Format: "", }, }, - "oidcProvider": { + "sleepModeConfig": { SchemaProps: spec.SchemaProps{ - Description: "If the token is a refresh token, contains information about it", - Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.AccessKeyOIDCProvider"), + Description: "SleepModeConfig is the sleep mode config of the space. This will only be shown in the front end.", + Ref: ref("github.com/devsy-org/agentapi/pkg/apis/devsy/cluster/v1.SleepModeConfig"), }, }, - "parent": { + "canUse": { SchemaProps: spec.SchemaProps{ - Description: "DEPRECATED: do not use anymore Parent is used to share OIDC and external token information with multiple access keys. Since copying an OIDC refresh token would result in the other access keys becoming invalid after a refresh parent allows access keys to share that information.\n\nThe use case for this is primarily user generated access keys, which will have the users current access key as parent if it contains an OIDC token.", - Type: []string{"string"}, + Description: "CanUse specifies if the requester can use the instance", + Type: []string{"boolean"}, Format: "", }, }, - "oidcLogin": { - SchemaProps: spec.SchemaProps{ - Description: "DEPRECATED: Use identity instead If available, contains information about the oidc login data for this access key", - Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.AccessKeyOIDC"), - }, - }, - }, - }, - }, - Dependencies: []string{ - "github.com/devsy-org/api/pkg/apis/storage/v1.AccessKeyOIDC", "github.com/devsy-org/api/pkg/apis/storage/v1.AccessKeyOIDCProvider", "github.com/devsy-org/api/pkg/apis/storage/v1.AccessKeyScope", "github.com/devsy-org/api/pkg/apis/storage/v1.SSOIdentity", metav1.Time{}.OpenAPIModelName()}, - } -} - -func schema_pkg_apis_management_v1_OwnedAccessKeyStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { - return common.OpenAPIDefinition{ - Schema: spec.Schema{ - SchemaProps: spec.SchemaProps{ - Type: []string{"object"}, - Properties: map[string]spec.Schema{ - "lastActivity": { - SchemaProps: spec.SchemaProps{ - Description: "The last time this access key was used to access the api", - Ref: ref(metav1.Time{}.OpenAPIModelName()), - }, - }, - }, - }, - }, - Dependencies: []string{ - metav1.Time{}.OpenAPIModelName()}, - } -} - -func schema_pkg_apis_management_v1_PlatformDB(ref common.ReferenceCallback) common.OpenAPIDefinition { - return common.OpenAPIDefinition{ - Schema: spec.Schema{ - SchemaProps: spec.SchemaProps{ - Type: []string{"object"}, - Properties: map[string]spec.Schema{ - "storageClass": { + "canUpdate": { SchemaProps: spec.SchemaProps{ - Description: "StorageClass sets the storage class for the PersistentVolumeClaim used by the platform database statefulSet.", - Type: []string{"string"}, + Description: "CanUpdate specifies if the requester can update the instance", + Type: []string{"boolean"}, Format: "", }, }, }, }, }, + Dependencies: []string{ + "github.com/devsy-org/agentapi/pkg/apis/devsy/cluster/v1.SleepModeConfig", "github.com/devsy-org/agentapi/pkg/apis/devsy/storage/v1.Condition", "github.com/devsy-org/api/pkg/apis/storage/v1.ObjectsStatus", "github.com/devsy-org/api/pkg/apis/storage/v1.SpaceTemplateDefinition"}, } } -func schema_pkg_apis_management_v1_PredefinedApp(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_SpaceTemplate(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "PredefinedApp holds information about a predefined app", + Description: "SpaceTemplate holds the information", Type: []string{"object"}, Properties: map[string]spec.Schema{ - "chart": { - SchemaProps: spec.SchemaProps{ - Description: "Chart holds the repo/chart name of the predefined app", - Default: "", - Type: []string{"string"}, - Format: "", - }, - }, - "initialVersion": { + "kind": { SchemaProps: spec.SchemaProps{ - Description: "InitialVersion holds the initial version of this app. This version will be selected automatically.", + Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", Type: []string{"string"}, Format: "", }, }, - "initialValues": { + "apiVersion": { SchemaProps: spec.SchemaProps{ - Description: "InitialValues holds the initial values for this app. The values will be prefilled automatically. There are certain placeholders that can be used within the values that are replaced by the devsy UI automatically.", + Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", Type: []string{"string"}, Format: "", }, }, - "clusters": { - SchemaProps: spec.SchemaProps{ - Description: "Holds the cluster names where to display this app", - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: "", - Type: []string{"string"}, - Format: "", - }, - }, - }, - }, - }, - "title": { + "metadata": { SchemaProps: spec.SchemaProps{ - Description: "Title is the name that should be displayed for the predefined app. If empty the chart name is used.", - Type: []string{"string"}, - Format: "", + Default: map[string]interface{}{}, + Ref: ref(metav1.ObjectMeta{}.OpenAPIModelName()), }, }, - "iconUrl": { + "spec": { SchemaProps: spec.SchemaProps{ - Description: "IconURL specifies an url to the icon that should be displayed for this app. If none is specified the icon from the chart metadata is used.", - Type: []string{"string"}, - Format: "", + Default: map[string]interface{}{}, + Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.SpaceTemplateSpec"), }, }, - "readmeUrl": { + "status": { SchemaProps: spec.SchemaProps{ - Description: "ReadmeURL specifies an url to the readme page of this predefined app. If empty an url will be constructed to artifact hub.", - Type: []string{"string"}, - Format: "", + Default: map[string]interface{}{}, + Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.SpaceTemplateStatus"), }, }, }, }, }, + Dependencies: []string{ + "github.com/devsy-org/api/pkg/apis/management/v1.SpaceTemplateSpec", "github.com/devsy-org/api/pkg/apis/management/v1.SpaceTemplateStatus", metav1.ObjectMeta{}.OpenAPIModelName()}, } } -func schema_pkg_apis_management_v1_Project(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_SpaceTemplateList(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "Project holds the Project information", - Type: []string{"object"}, + Type: []string{"object"}, Properties: map[string]spec.Schema{ "kind": { SchemaProps: spec.SchemaProps{ @@ -14948,183 +14733,242 @@ func schema_pkg_apis_management_v1_Project(ref common.ReferenceCallback) common. "metadata": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref(metav1.ObjectMeta{}.OpenAPIModelName()), - }, - }, - "spec": { - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.ProjectSpec"), + Ref: ref(metav1.ListMeta{}.OpenAPIModelName()), }, }, - "status": { + "items": { SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.ProjectStatus"), + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.SpaceTemplate"), + }, + }, + }, }, }, }, + Required: []string{"items"}, }, }, Dependencies: []string{ - "github.com/devsy-org/api/pkg/apis/management/v1.ProjectSpec", "github.com/devsy-org/api/pkg/apis/management/v1.ProjectStatus", metav1.ObjectMeta{}.OpenAPIModelName()}, + "github.com/devsy-org/api/pkg/apis/management/v1.SpaceTemplate", metav1.ListMeta{}.OpenAPIModelName()}, } } -func schema_pkg_apis_management_v1_ProjectChartInfo(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_SpaceTemplateSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Type: []string{"object"}, + Description: "SpaceTemplateSpec holds the specification.", + Type: []string{"object"}, Properties: map[string]spec.Schema{ - "kind": { + "displayName": { SchemaProps: spec.SchemaProps{ - Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + Description: "DisplayName is the name that is shown in the UI", Type: []string{"string"}, Format: "", }, }, - "apiVersion": { + "description": { SchemaProps: spec.SchemaProps{ - Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + Description: "Description describes the space template", Type: []string{"string"}, Format: "", }, }, - "metadata": { + "owner": { SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref(metav1.ObjectMeta{}.OpenAPIModelName()), + Description: "Owner holds the owner of this object", + Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.UserOrTeam"), }, }, - "spec": { + "template": { SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.ProjectChartInfoSpec"), + Description: "Template holds the space template", + Default: map[string]interface{}{}, + Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.SpaceTemplateDefinition"), }, }, - "status": { + "parameters": { SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.ProjectChartInfoStatus"), + Description: "Parameters define additional app parameters that will set helm values", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.AppParameter"), + }, + }, + }, + }, + }, + "versions": { + SchemaProps: spec.SchemaProps{ + Description: "Versions are different space template versions that can be referenced as well", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.SpaceTemplateVersion"), + }, + }, + }, + }, + }, + "access": { + SchemaProps: spec.SchemaProps{ + Description: "Access holds the access rights for users and teams", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.Access"), + }, + }, + }, }, }, }, }, }, Dependencies: []string{ - "github.com/devsy-org/api/pkg/apis/management/v1.ProjectChartInfoSpec", "github.com/devsy-org/api/pkg/apis/management/v1.ProjectChartInfoStatus", metav1.ObjectMeta{}.OpenAPIModelName()}, + "github.com/devsy-org/api/pkg/apis/storage/v1.Access", "github.com/devsy-org/api/pkg/apis/storage/v1.AppParameter", "github.com/devsy-org/api/pkg/apis/storage/v1.SpaceTemplateDefinition", "github.com/devsy-org/api/pkg/apis/storage/v1.SpaceTemplateVersion", "github.com/devsy-org/api/pkg/apis/storage/v1.UserOrTeam"}, } } -func schema_pkg_apis_management_v1_ProjectChartInfoList(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_SpaceTemplateStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Type: []string{"object"}, + Description: "SpaceTemplateStatus holds the status.", + Type: []string{"object"}, Properties: map[string]spec.Schema{ - "kind": { - SchemaProps: spec.SchemaProps{ - Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", - Type: []string{"string"}, - Format: "", - }, - }, - "apiVersion": { - SchemaProps: spec.SchemaProps{ - Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", - Type: []string{"string"}, - Format: "", - }, - }, - "metadata": { - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref(metav1.ListMeta{}.OpenAPIModelName()), - }, - }, - "items": { + "apps": { SchemaProps: spec.SchemaProps{ Type: []string{"array"}, Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.ProjectChartInfo"), + Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.EntityInfo"), }, }, }, }, }, }, - Required: []string{"items"}, }, }, Dependencies: []string{ - "github.com/devsy-org/api/pkg/apis/management/v1.ProjectChartInfo", metav1.ListMeta{}.OpenAPIModelName()}, + "github.com/devsy-org/api/pkg/apis/storage/v1.EntityInfo"}, } } -func schema_pkg_apis_management_v1_ProjectChartInfoSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_StandaloneEtcdPeer(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ Type: []string{"object"}, Properties: map[string]spec.Schema{ - "chart": { + "name": { SchemaProps: spec.SchemaProps{ - Description: "Chart holds information about a chart that should get deployed", - Default: map[string]interface{}{}, - Ref: ref(v1.Chart{}.OpenAPIModelName()), + Description: "Name is the name of the peer.", + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + "address": { + SchemaProps: spec.SchemaProps{ + Description: "Address is the address of the peer.", + Default: "", + Type: []string{"string"}, + Format: "", }, }, }, + Required: []string{"name", "address"}, }, }, - Dependencies: []string{ - v1.Chart{}.OpenAPIModelName()}, } } -func schema_pkg_apis_management_v1_ProjectChartInfoStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_StandaloneEtcdPeerCoordinator(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ Type: []string{"object"}, Properties: map[string]spec.Schema{ - "metadata": { + "name": { SchemaProps: spec.SchemaProps{ - Description: "Metadata provides information about a chart", - Ref: ref(v1.Metadata{}.OpenAPIModelName()), + Description: "Name is the name of the peer.", + Default: "", + Type: []string{"string"}, + Format: "", }, }, - "readme": { + "address": { SchemaProps: spec.SchemaProps{ - Description: "Readme is the readme of the chart", + Description: "Address is the address of the peer.", + Default: "", Type: []string{"string"}, Format: "", }, }, - "values": { + "isCoordinator": { SchemaProps: spec.SchemaProps{ - Description: "Values are the default values of the chart", - Type: []string{"string"}, + Description: "IsCoordinator is true if the peer is the coordinator.", + Default: false, + Type: []string{"boolean"}, Format: "", }, }, }, + Required: []string{"name", "address", "isCoordinator"}, }, }, - Dependencies: []string{ - v1.Metadata{}.OpenAPIModelName()}, } } -func schema_pkg_apis_management_v1_ProjectCharts(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_StandalonePKI(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Type: []string{"object"}, + Description: "StandalonePKI is a map of certificates filenames and certs", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "certificates": { + SchemaProps: spec.SchemaProps{ + Type: []string{"object"}, + AdditionalProperties: &spec.SchemaOrBool{ + Allows: true, + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"string"}, + Format: "byte", + }, + }, + }, + }, + }, + }, + Required: []string{"certificates"}, + }, + }, + } +} + +func schema_pkg_apis_management_v1_SubjectAccessReview(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "User holds the user information", + Type: []string{"object"}, Properties: map[string]spec.Schema{ "kind": { SchemaProps: spec.SchemaProps{ @@ -15146,37 +14990,27 @@ func schema_pkg_apis_management_v1_ProjectCharts(ref common.ReferenceCallback) c Ref: ref(metav1.ObjectMeta{}.OpenAPIModelName()), }, }, - "charts": { + "spec": { SchemaProps: spec.SchemaProps{ - Description: "Holds the available helm charts for this cluster", - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.HelmChart"), - }, - }, - }, + Default: map[string]interface{}{}, + Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.SubjectAccessReviewSpec"), }, }, - "busy": { + "status": { SchemaProps: spec.SchemaProps{ - Description: "Busy will indicate if the chart parsing is still in progress.", - Type: []string{"boolean"}, - Format: "", + Default: map[string]interface{}{}, + Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.SubjectAccessReviewStatus"), }, }, }, - Required: []string{"charts"}, }, }, Dependencies: []string{ - "github.com/devsy-org/api/pkg/apis/storage/v1.HelmChart", metav1.ObjectMeta{}.OpenAPIModelName()}, + "github.com/devsy-org/api/pkg/apis/management/v1.SubjectAccessReviewSpec", "github.com/devsy-org/api/pkg/apis/management/v1.SubjectAccessReviewStatus", metav1.ObjectMeta{}.OpenAPIModelName()}, } } -func schema_pkg_apis_management_v1_ProjectChartsList(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_SubjectAccessReviewList(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ @@ -15209,7 +15043,7 @@ func schema_pkg_apis_management_v1_ProjectChartsList(ref common.ReferenceCallbac Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.ProjectCharts"), + Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.SubjectAccessReview"), }, }, }, @@ -15220,111 +15054,140 @@ func schema_pkg_apis_management_v1_ProjectChartsList(ref common.ReferenceCallbac }, }, Dependencies: []string{ - "github.com/devsy-org/api/pkg/apis/management/v1.ProjectCharts", metav1.ListMeta{}.OpenAPIModelName()}, + "github.com/devsy-org/api/pkg/apis/management/v1.SubjectAccessReview", metav1.ListMeta{}.OpenAPIModelName()}, } } -func schema_pkg_apis_management_v1_ProjectClusters(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_SubjectAccessReviewSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ Type: []string{"object"}, Properties: map[string]spec.Schema{ - "kind": { + "resourceAttributes": { SchemaProps: spec.SchemaProps{ - Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", - Type: []string{"string"}, - Format: "", + Description: "ResourceAuthorizationAttributes describes information for a resource access request", + Ref: ref("k8s.io/api/authorization/v1.ResourceAttributes"), }, }, - "apiVersion": { + "nonResourceAttributes": { SchemaProps: spec.SchemaProps{ - Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", - Type: []string{"string"}, - Format: "", + Description: "NonResourceAttributes describes information for a non-resource access request", + Ref: ref("k8s.io/api/authorization/v1.NonResourceAttributes"), }, }, - "metadata": { + "user": { SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref(metav1.ObjectMeta{}.OpenAPIModelName()), + Description: "User is the user you're testing for. If you specify \"User\" but not \"Groups\", then is it interpreted as \"What if User were not a member of any groups", + Type: []string{"string"}, + Format: "", }, }, - "clusters": { + "groups": { + VendorExtensible: spec.VendorExtensible{ + Extensions: spec.Extensions{ + "x-kubernetes-list-type": "atomic", + }, + }, SchemaProps: spec.SchemaProps{ - Description: "Clusters holds all the allowed clusters", + Description: "Groups is the groups you're testing for.", Type: []string{"array"}, Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.Cluster"), + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + }, + }, + }, + "extra": { + SchemaProps: spec.SchemaProps{ + Description: "Extra corresponds to the user.Info.GetExtra() method from the authenticator. Since that is input to the authorizer it needs a reflection here.", + Type: []string{"object"}, + AdditionalProperties: &spec.SchemaOrBool{ + Allows: true, + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + }, }, }, }, }, }, + "uid": { + SchemaProps: spec.SchemaProps{ + Description: "UID information about the requesting user.", + Type: []string{"string"}, + Format: "", + }, + }, }, }, }, Dependencies: []string{ - "github.com/devsy-org/api/pkg/apis/management/v1.Cluster", metav1.ObjectMeta{}.OpenAPIModelName()}, + "k8s.io/api/authorization/v1.NonResourceAttributes", "k8s.io/api/authorization/v1.ResourceAttributes"}, } } -func schema_pkg_apis_management_v1_ProjectClustersList(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_SubjectAccessReviewStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ Type: []string{"object"}, Properties: map[string]spec.Schema{ - "kind": { + "allowed": { SchemaProps: spec.SchemaProps{ - Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", - Type: []string{"string"}, + Description: "Allowed is required. True if the action would be allowed, false otherwise.", + Default: false, + Type: []string{"boolean"}, Format: "", }, }, - "apiVersion": { + "denied": { SchemaProps: spec.SchemaProps{ - Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", - Type: []string{"string"}, + Description: "Denied is optional. True if the action would be denied, otherwise false. If both allowed is false and denied is false, then the authorizer has no opinion on whether to authorize the action. Denied may not be true if Allowed is true.", + Type: []string{"boolean"}, Format: "", }, }, - "metadata": { + "reason": { SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref(metav1.ListMeta{}.OpenAPIModelName()), + Description: "Reason is optional. It indicates why a request was allowed or denied.", + Type: []string{"string"}, + Format: "", }, }, - "items": { + "evaluationError": { SchemaProps: spec.SchemaProps{ - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.ProjectClusters"), - }, - }, - }, + Description: "EvaluationError is an indication that some error occurred during the authorization check. It is entirely possible to get an error and be able to continue determine authorization status in spite of it. For instance, RBAC can be missing a role, but enough roles are still present and bound to reason about the request.", + Type: []string{"string"}, + Format: "", }, }, }, - Required: []string{"items"}, + Required: []string{"allowed"}, }, }, - Dependencies: []string{ - "github.com/devsy-org/api/pkg/apis/management/v1.ProjectClusters", metav1.ListMeta{}.OpenAPIModelName()}, } } -func schema_pkg_apis_management_v1_ProjectImportSpace(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_Task(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "ProjectImportSpace holds project space import information", + Description: "Task holds the Task information", Type: []string{"object"}, Properties: map[string]spec.Schema{ "kind": { @@ -15347,23 +15210,27 @@ func schema_pkg_apis_management_v1_ProjectImportSpace(ref common.ReferenceCallba Ref: ref(metav1.ObjectMeta{}.OpenAPIModelName()), }, }, - "sourceSpace": { + "spec": { SchemaProps: spec.SchemaProps{ - Description: "SourceSpace is the space to import into this project", - Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.ProjectImportSpaceSource"), + Default: map[string]interface{}{}, + Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.TaskSpec"), + }, + }, + "status": { + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.TaskStatus"), }, }, }, - Required: []string{"sourceSpace"}, }, }, Dependencies: []string{ - "github.com/devsy-org/api/pkg/apis/management/v1.ProjectImportSpaceSource", metav1.ObjectMeta{}.OpenAPIModelName()}, + "github.com/devsy-org/api/pkg/apis/management/v1.TaskSpec", "github.com/devsy-org/api/pkg/apis/management/v1.TaskStatus", metav1.ObjectMeta{}.OpenAPIModelName()}, } } -func schema_pkg_apis_management_v1_ProjectImportSpaceList(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_TaskList(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ @@ -15396,7 +15263,7 @@ func schema_pkg_apis_management_v1_ProjectImportSpaceList(ref common.ReferenceCa Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.ProjectImportSpace"), + Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.Task"), }, }, }, @@ -15407,44 +15274,45 @@ func schema_pkg_apis_management_v1_ProjectImportSpaceList(ref common.ReferenceCa }, }, Dependencies: []string{ - "github.com/devsy-org/api/pkg/apis/management/v1.ProjectImportSpace", metav1.ListMeta{}.OpenAPIModelName()}, + "github.com/devsy-org/api/pkg/apis/management/v1.Task", metav1.ListMeta{}.OpenAPIModelName()}, } } -func schema_pkg_apis_management_v1_ProjectImportSpaceSource(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_TaskLog(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ Type: []string{"object"}, Properties: map[string]spec.Schema{ - "name": { + "kind": { SchemaProps: spec.SchemaProps{ - Description: "Name of the space to import", + Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", Type: []string{"string"}, Format: "", }, }, - "cluster": { + "apiVersion": { SchemaProps: spec.SchemaProps{ - Description: "Cluster name of the cluster the space is running on", + Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", Type: []string{"string"}, Format: "", }, }, - "importName": { + "metadata": { SchemaProps: spec.SchemaProps{ - Description: "ImportName is an optional name to use as the spaceinstance name, if not provided the space name will be used", - Type: []string{"string"}, - Format: "", + Default: map[string]interface{}{}, + Ref: ref(metav1.ObjectMeta{}.OpenAPIModelName()), }, }, }, }, }, + Dependencies: []string{ + metav1.ObjectMeta{}.OpenAPIModelName()}, } } -func schema_pkg_apis_management_v1_ProjectList(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_TaskLogList(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ @@ -15477,7 +15345,7 @@ func schema_pkg_apis_management_v1_ProjectList(ref common.ReferenceCallback) com Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.Project"), + Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.TaskLog"), }, }, }, @@ -15488,38 +15356,17 @@ func schema_pkg_apis_management_v1_ProjectList(ref common.ReferenceCallback) com }, }, Dependencies: []string{ - "github.com/devsy-org/api/pkg/apis/management/v1.Project", metav1.ListMeta{}.OpenAPIModelName()}, + "github.com/devsy-org/api/pkg/apis/management/v1.TaskLog", metav1.ListMeta{}.OpenAPIModelName()}, } } -func schema_pkg_apis_management_v1_ProjectMember(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_TaskLogOptions(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ Type: []string{"object"}, Properties: map[string]spec.Schema{ - "info": { - SchemaProps: spec.SchemaProps{ - Description: "Info about the user or team", - Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.EntityInfo"), - }, - }, - }, - }, - }, - Dependencies: []string{ - "github.com/devsy-org/api/pkg/apis/storage/v1.EntityInfo"}, - } -} - -func schema_pkg_apis_management_v1_ProjectMembers(ref common.ReferenceCallback) common.OpenAPIDefinition { - return common.OpenAPIDefinition{ - Schema: spec.Schema{ - SchemaProps: spec.SchemaProps{ - Type: []string{"object"}, - Properties: map[string]spec.Schema{ - "kind": { + "kind": { SchemaProps: spec.SchemaProps{ Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", Type: []string{"string"}, @@ -15533,150 +15380,203 @@ func schema_pkg_apis_management_v1_ProjectMembers(ref common.ReferenceCallback) Format: "", }, }, - "metadata": { + "follow": { SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref(metav1.ObjectMeta{}.OpenAPIModelName()), + Description: "Follow the log stream of the pod. Defaults to false.", + Type: []string{"boolean"}, + Format: "", }, }, - "teams": { + "previous": { SchemaProps: spec.SchemaProps{ - Description: "Teams holds all the teams that have access to the cluster", - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.ProjectMember"), - }, - }, - }, + Description: "Return previous terminated container logs. Defaults to false.", + Type: []string{"boolean"}, + Format: "", }, }, - "users": { + "sinceSeconds": { SchemaProps: spec.SchemaProps{ - Description: "Users holds all the users that have access to the cluster", - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.ProjectMember"), - }, - }, - }, + Description: "A relative time in seconds before the current time from which to show logs. If this value precedes the time a pod was started, only logs since the pod start will be returned. If this value is in the future, no logs will be returned. Only one of sinceSeconds or sinceTime may be specified.", + Type: []string{"integer"}, + Format: "int64", + }, + }, + "sinceTime": { + SchemaProps: spec.SchemaProps{ + Description: "An RFC3339 timestamp from which to show logs. If this value precedes the time a pod was started, only logs since the pod start will be returned. If this value is in the future, no logs will be returned. Only one of sinceSeconds or sinceTime may be specified.", + Ref: ref(metav1.Time{}.OpenAPIModelName()), + }, + }, + "timestamps": { + SchemaProps: spec.SchemaProps{ + Description: "If true, add an RFC3339 or RFC3339Nano timestamp at the beginning of every line of log output. Defaults to false.", + Type: []string{"boolean"}, + Format: "", + }, + }, + "tailLines": { + SchemaProps: spec.SchemaProps{ + Description: "If set, the number of lines from the end of the logs to show. If not specified, logs are shown from the creation of the container or sinceSeconds or sinceTime", + Type: []string{"integer"}, + Format: "int64", + }, + }, + "limitBytes": { + SchemaProps: spec.SchemaProps{ + Description: "If set, the number of bytes to read from the server before terminating the log output. This may not display a complete final line of logging, and may return slightly more or slightly less than the specified limit.", + Type: []string{"integer"}, + Format: "int64", + }, + }, + "insecureSkipTLSVerifyBackend": { + SchemaProps: spec.SchemaProps{ + Description: "insecureSkipTLSVerifyBackend indicates that the apiserver should not confirm the validity of the serving certificate of the backend it is connecting to. This will make the HTTPS connection between the apiserver and the backend insecure. This means the apiserver cannot verify the log data it is receiving came from the real kubelet. If the kubelet is configured to verify the apiserver's TLS credentials, it does not mean the connection to the real kubelet is vulnerable to a man in the middle attack (e.g. an attacker could not intercept the actual log data coming from the real kubelet).", + Type: []string{"boolean"}, + Format: "", }, }, }, }, }, Dependencies: []string{ - "github.com/devsy-org/api/pkg/apis/management/v1.ProjectMember", metav1.ObjectMeta{}.OpenAPIModelName()}, + metav1.Time{}.OpenAPIModelName()}, } } -func schema_pkg_apis_management_v1_ProjectMembersList(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_TaskSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Type: []string{"object"}, + Description: "TaskSpec holds the specification.", + Type: []string{"object"}, Properties: map[string]spec.Schema{ - "kind": { - SchemaProps: spec.SchemaProps{ - Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", - Type: []string{"string"}, - Format: "", - }, - }, - "apiVersion": { + "displayName": { SchemaProps: spec.SchemaProps{ - Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + Description: "DisplayName is the name that should be displayed in the UI", Type: []string{"string"}, Format: "", }, }, - "metadata": { - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref(metav1.ListMeta{}.OpenAPIModelName()), - }, - }, - "items": { + "access": { SchemaProps: spec.SchemaProps{ - Type: []string{"array"}, + Description: "Access holds the access rights for users and teams", + Type: []string{"array"}, Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.ProjectMembers"), + Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.Access"), }, }, }, }, }, + "scope": { + SchemaProps: spec.SchemaProps{ + Description: "Scope defines the scope of the access key.", + Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.AccessKeyScope"), + }, + }, + "owner": { + SchemaProps: spec.SchemaProps{ + Description: "Owner holds the owner of this object", + Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.UserOrTeam"), + }, + }, + "target": { + SchemaProps: spec.SchemaProps{ + Description: "Target where this task should get executed", + Default: map[string]interface{}{}, + Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.Target"), + }, + }, + "task": { + SchemaProps: spec.SchemaProps{ + Description: "Task defines the task to execute", + Default: map[string]interface{}{}, + Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.TaskDefinition"), + }, + }, }, - Required: []string{"items"}, }, }, Dependencies: []string{ - "github.com/devsy-org/api/pkg/apis/management/v1.ProjectMembers", metav1.ListMeta{}.OpenAPIModelName()}, + "github.com/devsy-org/api/pkg/apis/storage/v1.Access", "github.com/devsy-org/api/pkg/apis/storage/v1.AccessKeyScope", "github.com/devsy-org/api/pkg/apis/storage/v1.Target", "github.com/devsy-org/api/pkg/apis/storage/v1.TaskDefinition", "github.com/devsy-org/api/pkg/apis/storage/v1.UserOrTeam"}, } } -func schema_pkg_apis_management_v1_ProjectMembership(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_TaskStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Type: []string{"object"}, + Description: "TaskStatus holds the status.", + Type: []string{"object"}, Properties: map[string]spec.Schema{ - "namespace": { + "started": { SchemaProps: spec.SchemaProps{ - Description: "Namespace of the referenced object", - Type: []string{"string"}, + Description: "Started determines if the task was started", + Type: []string{"boolean"}, Format: "", }, }, - "name": { + "conditions": { SchemaProps: spec.SchemaProps{ - Description: "Name of the referenced object", - Type: []string{"string"}, - Format: "", + Description: "Conditions holds several conditions the virtual cluster might be in", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("github.com/devsy-org/agentapi/pkg/apis/devsy/storage/v1.Condition"), + }, + }, + }, }, }, - "displayName": { + "podPhase": { SchemaProps: spec.SchemaProps{ - Description: "DisplayName is the name of the object to display in the UI", + Description: "PodPhase describes the phase this task is in\n\nPossible enum values:\n - `\"Failed\"` means that all containers in the pod have terminated, and at least one container has terminated in a failure (exited with a non-zero exit code or was stopped by the system).\n - `\"Pending\"` means the pod has been accepted by the system, but one or more of the containers has not been started. This includes time before being bound to a node, as well as time spent pulling images onto the host.\n - `\"Running\"` means the pod has been bound to a node and all of the containers have been started. At least one container is still running or is in the process of being restarted.\n - `\"Succeeded\"` means that all containers in the pod have voluntarily terminated with a container exit code of 0, and the system is not going to restart any of these containers.\n - `\"Unknown\"` means that for some reason the state of the pod could not be obtained, typically due to an error in communicating with the host of the pod. Deprecated: It isn't being set since 2015 (74da3b14b0c0f658b3bb8d2def5094686d0e9095)", Type: []string{"string"}, Format: "", + Enum: []interface{}{"Failed", "Pending", "Running", "Succeeded", "Unknown"}, }, }, - "role": { + "observedGeneration": { SchemaProps: spec.SchemaProps{ - Description: "Role is the role given to the member", - Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.ProjectRole"), + Description: "ObservedGeneration is the latest generation observed by the controller.", + Type: []string{"integer"}, + Format: "int64", }, }, - "assignedVia": { + "containerState": { SchemaProps: spec.SchemaProps{ - Description: "AssignedVia describes the resource that establishes the project membership", - Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.AssignedVia"), + Description: "DEPRECATED: This is not set anymore after migrating to runners ContainerState describes the container state of the task", + Ref: ref(corev1.ContainerStatus{}.OpenAPIModelName()), + }, + }, + "owner": { + SchemaProps: spec.SchemaProps{ + Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.UserOrTeamEntity"), + }, + }, + "cluster": { + SchemaProps: spec.SchemaProps{ + Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.EntityInfo"), }, }, }, }, }, Dependencies: []string{ - "github.com/devsy-org/api/pkg/apis/management/v1.AssignedVia", "github.com/devsy-org/api/pkg/apis/management/v1.ProjectRole"}, + "github.com/devsy-org/agentapi/pkg/apis/devsy/storage/v1.Condition", "github.com/devsy-org/api/pkg/apis/storage/v1.EntityInfo", "github.com/devsy-org/api/pkg/apis/storage/v1.UserOrTeamEntity", corev1.ContainerStatus{}.OpenAPIModelName()}, } } -func schema_pkg_apis_management_v1_ProjectMigrateSpaceInstance(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_Team(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "ProjectMigrateSpaceInstance holds project spaceinstance migrate information", + Description: "Team holds the team information.", Type: []string{"object"}, Properties: map[string]spec.Schema{ "kind": { @@ -15699,23 +15599,27 @@ func schema_pkg_apis_management_v1_ProjectMigrateSpaceInstance(ref common.Refere Ref: ref(metav1.ObjectMeta{}.OpenAPIModelName()), }, }, - "sourceSpaceInstance": { + "spec": { SchemaProps: spec.SchemaProps{ - Description: "SourceSpaceInstance is the spaceinstance to migrate into this project", - Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.ProjectMigrateSpaceInstanceSource"), + Default: map[string]interface{}{}, + Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.TeamSpec"), + }, + }, + "status": { + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.TeamStatus"), }, }, }, - Required: []string{"sourceSpaceInstance"}, }, }, Dependencies: []string{ - "github.com/devsy-org/api/pkg/apis/management/v1.ProjectMigrateSpaceInstanceSource", metav1.ObjectMeta{}.OpenAPIModelName()}, + "github.com/devsy-org/api/pkg/apis/management/v1.TeamSpec", "github.com/devsy-org/api/pkg/apis/management/v1.TeamStatus", metav1.ObjectMeta{}.OpenAPIModelName()}, } } -func schema_pkg_apis_management_v1_ProjectMigrateSpaceInstanceList(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_TeamAccessKeys(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ @@ -15738,63 +15642,83 @@ func schema_pkg_apis_management_v1_ProjectMigrateSpaceInstanceList(ref common.Re "metadata": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref(metav1.ListMeta{}.OpenAPIModelName()), + Ref: ref(metav1.ObjectMeta{}.OpenAPIModelName()), }, }, - "items": { + "accessKeys": { SchemaProps: spec.SchemaProps{ Type: []string{"array"}, Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.ProjectMigrateSpaceInstance"), + Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.OwnedAccessKey"), }, }, }, }, }, }, - Required: []string{"items"}, }, }, Dependencies: []string{ - "github.com/devsy-org/api/pkg/apis/management/v1.ProjectMigrateSpaceInstance", metav1.ListMeta{}.OpenAPIModelName()}, + "github.com/devsy-org/api/pkg/apis/management/v1.OwnedAccessKey", metav1.ObjectMeta{}.OpenAPIModelName()}, } } -func schema_pkg_apis_management_v1_ProjectMigrateSpaceInstanceSource(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_TeamAccessKeysList(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ Type: []string{"object"}, Properties: map[string]spec.Schema{ - "name": { + "kind": { SchemaProps: spec.SchemaProps{ - Description: "Name of the spaceinstance to migrate", + Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", Type: []string{"string"}, Format: "", }, }, - "namespace": { + "apiVersion": { SchemaProps: spec.SchemaProps{ - Description: "Namespace of the spaceinstance to migrate", + Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", Type: []string{"string"}, Format: "", }, }, + "metadata": { + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref(metav1.ListMeta{}.OpenAPIModelName()), + }, + }, + "items": { + SchemaProps: spec.SchemaProps{ + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.TeamAccessKeys"), + }, + }, + }, + }, + }, }, + Required: []string{"items"}, }, }, + Dependencies: []string{ + "github.com/devsy-org/api/pkg/apis/management/v1.TeamAccessKeys", metav1.ListMeta{}.OpenAPIModelName()}, } } -func schema_pkg_apis_management_v1_ProjectMigrateVirtualClusterInstance(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_TeamClusters(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "ProjectMigrateVirtualClusterInstance holds project devsyinstance migrate information", - Type: []string{"object"}, + Type: []string{"object"}, Properties: map[string]spec.Schema{ "kind": { SchemaProps: spec.SchemaProps{ @@ -15816,23 +15740,28 @@ func schema_pkg_apis_management_v1_ProjectMigrateVirtualClusterInstance(ref comm Ref: ref(metav1.ObjectMeta{}.OpenAPIModelName()), }, }, - "sourceVirtualClusterInstance": { + "clusters": { SchemaProps: spec.SchemaProps{ - Description: "SourceVirtualClusterInstance is the virtual cluster instance to migrate into this project", - Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.ProjectMigrateVirtualClusterInstanceSource"), + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.ClusterAccounts"), + }, + }, + }, }, }, }, - Required: []string{"sourceVirtualClusterInstance"}, }, }, Dependencies: []string{ - "github.com/devsy-org/api/pkg/apis/management/v1.ProjectMigrateVirtualClusterInstanceSource", metav1.ObjectMeta{}.OpenAPIModelName()}, + "github.com/devsy-org/api/pkg/apis/management/v1.ClusterAccounts", metav1.ObjectMeta{}.OpenAPIModelName()}, } } -func schema_pkg_apis_management_v1_ProjectMigrateVirtualClusterInstanceList(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_TeamClustersList(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ @@ -15865,7 +15794,7 @@ func schema_pkg_apis_management_v1_ProjectMigrateVirtualClusterInstanceList(ref Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.ProjectMigrateVirtualClusterInstance"), + Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.TeamClusters"), }, }, }, @@ -15876,37 +15805,59 @@ func schema_pkg_apis_management_v1_ProjectMigrateVirtualClusterInstanceList(ref }, }, Dependencies: []string{ - "github.com/devsy-org/api/pkg/apis/management/v1.ProjectMigrateVirtualClusterInstance", metav1.ListMeta{}.OpenAPIModelName()}, + "github.com/devsy-org/api/pkg/apis/management/v1.TeamClusters", metav1.ListMeta{}.OpenAPIModelName()}, } } -func schema_pkg_apis_management_v1_ProjectMigrateVirtualClusterInstanceSource(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_TeamList(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ Type: []string{"object"}, Properties: map[string]spec.Schema{ - "name": { + "kind": { SchemaProps: spec.SchemaProps{ - Description: "Name of the virtual cluster instance to migrate", + Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", Type: []string{"string"}, Format: "", }, }, - "namespace": { + "apiVersion": { SchemaProps: spec.SchemaProps{ - Description: "Namespace of the virtual cluster instance to migrate", + Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", Type: []string{"string"}, Format: "", }, }, + "metadata": { + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref(metav1.ListMeta{}.OpenAPIModelName()), + }, + }, + "items": { + SchemaProps: spec.SchemaProps{ + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.Team"), + }, + }, + }, + }, + }, }, + Required: []string{"items"}, }, }, + Dependencies: []string{ + "github.com/devsy-org/api/pkg/apis/management/v1.Team", metav1.ListMeta{}.OpenAPIModelName()}, } } -func schema_pkg_apis_management_v1_ProjectNodeTypes(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_TeamObjectPermissions(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ @@ -15932,29 +15883,14 @@ func schema_pkg_apis_management_v1_ProjectNodeTypes(ref common.ReferenceCallback Ref: ref(metav1.ObjectMeta{}.OpenAPIModelName()), }, }, - "nodeProviders": { - SchemaProps: spec.SchemaProps{ - Description: "NodeProviders holds all the allowed node providers for the project", - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.NodeProvider"), - }, - }, - }, - }, - }, - "nodeTypes": { + "objectPermissions": { SchemaProps: spec.SchemaProps{ - Description: "NodeTypes holds all the allowed node types for the project", - Type: []string{"array"}, + Type: []string{"array"}, Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.NodeType"), + Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.ObjectPermission"), }, }, }, @@ -15964,11 +15900,11 @@ func schema_pkg_apis_management_v1_ProjectNodeTypes(ref common.ReferenceCallback }, }, Dependencies: []string{ - "github.com/devsy-org/api/pkg/apis/storage/v1.NodeProvider", "github.com/devsy-org/api/pkg/apis/storage/v1.NodeType", metav1.ObjectMeta{}.OpenAPIModelName()}, + "github.com/devsy-org/api/pkg/apis/management/v1.ObjectPermission", metav1.ObjectMeta{}.OpenAPIModelName()}, } } -func schema_pkg_apis_management_v1_ProjectNodeTypesList(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_TeamObjectPermissionsList(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ @@ -16001,7 +15937,7 @@ func schema_pkg_apis_management_v1_ProjectNodeTypesList(ref common.ReferenceCall Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.ProjectNodeTypes"), + Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.TeamObjectPermissions"), }, }, }, @@ -16012,98 +15948,115 @@ func schema_pkg_apis_management_v1_ProjectNodeTypesList(ref common.ReferenceCall }, }, Dependencies: []string{ - "github.com/devsy-org/api/pkg/apis/management/v1.ProjectNodeTypes", metav1.ListMeta{}.OpenAPIModelName()}, + "github.com/devsy-org/api/pkg/apis/management/v1.TeamObjectPermissions", metav1.ListMeta{}.OpenAPIModelName()}, } } -func schema_pkg_apis_management_v1_ProjectRole(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_TeamPermissions(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ Type: []string{"object"}, Properties: map[string]spec.Schema{ - "namespace": { - SchemaProps: spec.SchemaProps{ - Description: "Namespace of the referenced object", - Type: []string{"string"}, - Format: "", - }, - }, - "name": { + "kind": { SchemaProps: spec.SchemaProps{ - Description: "Name of the referenced object", + Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", Type: []string{"string"}, Format: "", }, }, - "displayName": { + "apiVersion": { SchemaProps: spec.SchemaProps{ - Description: "DisplayName is the name of the object to display in the UI", + Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", Type: []string{"string"}, Format: "", }, }, - "isAdmin": { + "metadata": { SchemaProps: spec.SchemaProps{ - Description: "IsAdmin describes whether this is an admin project role", - Type: []string{"boolean"}, - Format: "", + Default: map[string]interface{}{}, + Ref: ref(metav1.ObjectMeta{}.OpenAPIModelName()), }, }, - }, - }, - }, - } -} - -func schema_pkg_apis_management_v1_ProjectSecret(ref common.ReferenceCallback) common.OpenAPIDefinition { - return common.OpenAPIDefinition{ - Schema: spec.Schema{ - SchemaProps: spec.SchemaProps{ - Description: "ProjectSecret holds the Project Secret information", - Type: []string{"object"}, - Properties: map[string]spec.Schema{ - "kind": { + "members": { SchemaProps: spec.SchemaProps{ - Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", - Type: []string{"string"}, - Format: "", + Description: "Members gives users that are team members", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.ObjectName"), + }, + }, + }, }, }, - "apiVersion": { + "projectMemberships": { SchemaProps: spec.SchemaProps{ - Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", - Type: []string{"string"}, - Format: "", + Description: "ProjectMemberships gives information about the team's project membership", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.ProjectMembership"), + }, + }, + }, }, }, - "metadata": { + "managementRoles": { SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref(metav1.ObjectMeta{}.OpenAPIModelName()), + Description: "ManagementRoles gives information about the team's assigned management roles", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.ManagementRole"), + }, + }, + }, }, }, - "spec": { + "clusterAccessRoles": { SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.ProjectSecretSpec"), + Description: "ClustersAccessRoles gives information about the team's assigned cluster roles and the clusters they apply to", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.ClusterAccessRole"), + }, + }, + }, }, }, - "status": { + "virtualClusterRoles": { SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.ProjectSecretStatus"), + Description: "VirtualClusterRoles give information about the team's cluster role within the virtual cluster", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.VirtualClusterRole"), + }, + }, + }, }, }, }, }, }, Dependencies: []string{ - "github.com/devsy-org/api/pkg/apis/management/v1.ProjectSecretSpec", "github.com/devsy-org/api/pkg/apis/management/v1.ProjectSecretStatus", metav1.ObjectMeta{}.OpenAPIModelName()}, + "github.com/devsy-org/api/pkg/apis/management/v1.ClusterAccessRole", "github.com/devsy-org/api/pkg/apis/management/v1.ManagementRole", "github.com/devsy-org/api/pkg/apis/management/v1.ObjectName", "github.com/devsy-org/api/pkg/apis/management/v1.ProjectMembership", "github.com/devsy-org/api/pkg/apis/management/v1.VirtualClusterRole", metav1.ObjectMeta{}.OpenAPIModelName()}, } } -func schema_pkg_apis_management_v1_ProjectSecretList(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_TeamPermissionsList(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ @@ -16136,7 +16089,7 @@ func schema_pkg_apis_management_v1_ProjectSecretList(ref common.ReferenceCallbac Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.ProjectSecret"), + Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.TeamPermissions"), }, }, }, @@ -16147,27 +16100,26 @@ func schema_pkg_apis_management_v1_ProjectSecretList(ref common.ReferenceCallbac }, }, Dependencies: []string{ - "github.com/devsy-org/api/pkg/apis/management/v1.ProjectSecret", metav1.ListMeta{}.OpenAPIModelName()}, + "github.com/devsy-org/api/pkg/apis/management/v1.TeamPermissions", metav1.ListMeta{}.OpenAPIModelName()}, } } -func schema_pkg_apis_management_v1_ProjectSecretSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_TeamSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "ProjectSecretSpec holds the specification", - Type: []string{"object"}, + Type: []string{"object"}, Properties: map[string]spec.Schema{ "displayName": { SchemaProps: spec.SchemaProps{ - Description: "DisplayName is the name that should be displayed in the UI", + Description: "The display name shown in the UI", Type: []string{"string"}, Format: "", }, }, "description": { SchemaProps: spec.SchemaProps{ - Description: "Description describes a Project secret", + Description: "Description describes a cluster access object", Type: []string{"string"}, Format: "", }, @@ -16178,171 +16130,65 @@ func schema_pkg_apis_management_v1_ProjectSecretSpec(ref common.ReferenceCallbac Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.UserOrTeam"), }, }, - "data": { + "username": { SchemaProps: spec.SchemaProps{ - Description: "Data contains the secret data. Each key must consist of alphanumeric characters, '-', '_' or '.'. The serialized form of the secret data is a base64 encoded string, representing the arbitrary (possibly non-string) data value here. Described in https://tools.ietf.org/html/rfc4648#section-4", - Type: []string{"object"}, - AdditionalProperties: &spec.SchemaOrBool{ - Allows: true, + Description: "The username of the team that will be used for identification and docker registry namespace", + Type: []string{"string"}, + Format: "", + }, + }, + "users": { + SchemaProps: spec.SchemaProps{ + Description: "The devsy users that belong to a team", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ - Type: []string{"string"}, - Format: "byte", + Default: "", + Type: []string{"string"}, + Format: "", }, }, }, }, }, - "access": { + "groups": { SchemaProps: spec.SchemaProps{ - Description: "Access holds the access rights for users and teams", + Description: "The groups defined in a token that belong to a team", Type: []string{"array"}, Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.Access"), + Default: "", + Type: []string{"string"}, + Format: "", }, }, }, }, }, - }, - }, - }, - Dependencies: []string{ - "github.com/devsy-org/api/pkg/apis/storage/v1.Access", "github.com/devsy-org/api/pkg/apis/storage/v1.UserOrTeam"}, - } -} - -func schema_pkg_apis_management_v1_ProjectSecretStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { - return common.OpenAPIDefinition{ - Schema: spec.Schema{ - SchemaProps: spec.SchemaProps{ - Description: "ProjectSecretStatus holds the status", - Type: []string{"object"}, - Properties: map[string]spec.Schema{ - "conditions": { - SchemaProps: spec.SchemaProps{ - Description: "Conditions holds several conditions the project might be in", - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref(storagev1.Condition{}.OpenAPIModelName()), - }, - }, - }, - }, - }, - }, - }, - }, - Dependencies: []string{ - storagev1.Condition{}.OpenAPIModelName()}, - } -} - -func schema_pkg_apis_management_v1_ProjectSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { - return common.OpenAPIDefinition{ - Schema: spec.Schema{ - SchemaProps: spec.SchemaProps{ - Description: "ProjectSpec holds the specification", - Type: []string{"object"}, - Properties: map[string]spec.Schema{ - "displayName": { - SchemaProps: spec.SchemaProps{ - Description: "DisplayName is the name that should be displayed in the UI", - Type: []string{"string"}, - Format: "", - }, - }, - "description": { - SchemaProps: spec.SchemaProps{ - Description: "Description describes an app", - Type: []string{"string"}, - Format: "", - }, - }, - "owner": { - SchemaProps: spec.SchemaProps{ - Description: "Owner holds the owner of this object", - Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.UserOrTeam"), - }, - }, - "quotas": { - SchemaProps: spec.SchemaProps{ - Description: "Quotas define the quotas inside the project", - Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.Quotas"), - }, - }, - "allowedClusters": { - SchemaProps: spec.SchemaProps{ - Description: "AllowedClusters are target clusters that are allowed to target with environments.", - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.AllowedCluster"), - }, - }, - }, - }, - }, - "allowedRunners": { - SchemaProps: spec.SchemaProps{ - Description: "AllowedRunners are target runners that are allowed to target with DevPod environments.", - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.AllowedRunner"), - }, - }, - }, - }, - }, - "allowedTemplates": { + "imagePullSecrets": { SchemaProps: spec.SchemaProps{ - Description: "AllowedTemplates are the templates that are allowed to use in this project.", + Description: "ImagePullSecrets holds secret references to image pull secrets the team has access to.", Type: []string{"array"}, Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.AllowedTemplate"), + Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.KindSecretRef"), }, }, }, }, }, - "requireTemplate": { - SchemaProps: spec.SchemaProps{ - Description: "RequireTemplate configures if a template is required for instance creation.", - Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.RequireTemplate"), - }, - }, - "requirePreset": { - SchemaProps: spec.SchemaProps{ - Description: "RequirePreset configures if a preset is required for instance creation.", - Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.RequirePreset"), - }, - }, - "members": { + "clusterRoles": { SchemaProps: spec.SchemaProps{ - Description: "Members are the users and teams that are part of this project", + Description: "ClusterRoles define the cluster roles that the users should have assigned in the cluster.", Type: []string{"array"}, Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.Member"), + Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.ClusterRoleRef"), }, }, }, @@ -16362,84 +16208,30 @@ func schema_pkg_apis_management_v1_ProjectSpec(ref common.ReferenceCallback) com }, }, }, - "namespacePattern": { - SchemaProps: spec.SchemaProps{ - Description: "NamespacePattern specifies template patterns to use for creating each space or virtual cluster's namespace", - Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.NamespacePattern"), - }, - }, - "argoCD": { - SchemaProps: spec.SchemaProps{ - Description: "ArgoIntegration holds information about ArgoCD Integration", - Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.ArgoIntegrationSpec"), - }, - }, - "vault": { - SchemaProps: spec.SchemaProps{ - Description: "VaultIntegration holds information about Vault Integration", - Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.VaultIntegrationSpec"), - }, - }, - "rancher": { - SchemaProps: spec.SchemaProps{ - Description: "RancherIntegration holds information about Rancher Integration", - Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.RancherIntegrationSpec"), - }, - }, - "devPod": { - SchemaProps: spec.SchemaProps{ - Description: "DevPod holds DevPod specific configuration for project", - Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.DevPodProjectSpec"), - }, - }, }, }, }, Dependencies: []string{ - "github.com/devsy-org/api/pkg/apis/storage/v1.Access", "github.com/devsy-org/api/pkg/apis/storage/v1.AllowedCluster", "github.com/devsy-org/api/pkg/apis/storage/v1.AllowedRunner", "github.com/devsy-org/api/pkg/apis/storage/v1.AllowedTemplate", "github.com/devsy-org/api/pkg/apis/storage/v1.ArgoIntegrationSpec", "github.com/devsy-org/api/pkg/apis/storage/v1.DevPodProjectSpec", "github.com/devsy-org/api/pkg/apis/storage/v1.Member", "github.com/devsy-org/api/pkg/apis/storage/v1.NamespacePattern", "github.com/devsy-org/api/pkg/apis/storage/v1.Quotas", "github.com/devsy-org/api/pkg/apis/storage/v1.RancherIntegrationSpec", "github.com/devsy-org/api/pkg/apis/storage/v1.RequirePreset", "github.com/devsy-org/api/pkg/apis/storage/v1.RequireTemplate", "github.com/devsy-org/api/pkg/apis/storage/v1.UserOrTeam", "github.com/devsy-org/api/pkg/apis/storage/v1.VaultIntegrationSpec"}, + "github.com/devsy-org/api/pkg/apis/storage/v1.Access", "github.com/devsy-org/api/pkg/apis/storage/v1.ClusterRoleRef", "github.com/devsy-org/api/pkg/apis/storage/v1.KindSecretRef", "github.com/devsy-org/api/pkg/apis/storage/v1.UserOrTeam"}, } } -func schema_pkg_apis_management_v1_ProjectStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_TeamStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "ProjectStatus holds the status", - Type: []string{"object"}, - Properties: map[string]spec.Schema{ - "quotas": { - SchemaProps: spec.SchemaProps{ - Description: "Quotas holds the quota status", - Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.QuotaStatus"), - }, - }, - "conditions": { - SchemaProps: spec.SchemaProps{ - Description: "Conditions holds several conditions the project might be in", - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref(storagev1.Condition{}.OpenAPIModelName()), - }, - }, - }, - }, - }, - }, + Type: []string{"object"}, }, }, - Dependencies: []string{ - storagev1.Condition{}.OpenAPIModelName(), "github.com/devsy-org/api/pkg/apis/storage/v1.QuotaStatus"}, } } -func schema_pkg_apis_management_v1_ProjectTemplates(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_TranslateDevsyResourceName(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Type: []string{"object"}, + Description: "TranslateDevsyResourceName holds rename request and response data for given resource", + Type: []string{"object"}, Properties: map[string]spec.Schema{ "kind": { SchemaProps: spec.SchemaProps{ @@ -16461,165 +16253,137 @@ func schema_pkg_apis_management_v1_ProjectTemplates(ref common.ReferenceCallback Ref: ref(metav1.ObjectMeta{}.OpenAPIModelName()), }, }, - "defaultVirtualClusterTemplate": { + "spec": { SchemaProps: spec.SchemaProps{ - Description: "DefaultVirtualClusterTemplate is the default template for the project", - Type: []string{"string"}, - Format: "", + Default: map[string]interface{}{}, + Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.TranslateDevsyResourceNameSpec"), }, }, - "virtualClusterTemplates": { + "status": { SchemaProps: spec.SchemaProps{ - Description: "VirtualClusterTemplates holds all the allowed virtual cluster templates", - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.VirtualClusterTemplate"), - }, - }, - }, + Default: map[string]interface{}{}, + Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.TranslateDevsyResourceNameStatus"), }, }, - "defaultSpaceTemplate": { + }, + }, + }, + Dependencies: []string{ + "github.com/devsy-org/api/pkg/apis/management/v1.TranslateDevsyResourceNameSpec", "github.com/devsy-org/api/pkg/apis/management/v1.TranslateDevsyResourceNameStatus", metav1.ObjectMeta{}.OpenAPIModelName()}, + } +} + +func schema_pkg_apis_management_v1_TranslateDevsyResourceNameList(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "kind": { SchemaProps: spec.SchemaProps{ - Description: "DefaultSpaceTemplate", + Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", Type: []string{"string"}, Format: "", }, }, - "spaceTemplates": { - SchemaProps: spec.SchemaProps{ - Description: "SpaceTemplates holds all the allowed space templates", - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.SpaceTemplate"), - }, - }, - }, - }, - }, - "defaultDevPodWorkspaceTemplate": { + "apiVersion": { SchemaProps: spec.SchemaProps{ - Description: "DefaultDevPodWorkspaceTemplate", + Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", Type: []string{"string"}, Format: "", }, }, - "devPodWorkspaceTemplates": { - SchemaProps: spec.SchemaProps{ - Description: "DevPodWorkspaceTemplates holds all the allowed space templates", - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.DevPodWorkspaceTemplate"), - }, - }, - }, - }, - }, - "devPodEnvironmentTemplates": { + "metadata": { SchemaProps: spec.SchemaProps{ - Description: "DevPodEnvironmentTemplates holds all the allowed environment templates", - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.DevPodEnvironmentTemplate"), - }, - }, - }, + Default: map[string]interface{}{}, + Ref: ref(metav1.ListMeta{}.OpenAPIModelName()), }, }, - "devPodWorkspacePresets": { + "items": { SchemaProps: spec.SchemaProps{ - Description: "DevPodWorkspacePresets holds all the allowed workspace presets", - Type: []string{"array"}, + Type: []string{"array"}, Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.DevPodWorkspacePreset"), + Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.TranslateDevsyResourceName"), }, }, }, }, }, - "defaultDevPodEnvironmentTemplate": { - SchemaProps: spec.SchemaProps{ - Description: "DefaultDevPodEnvironmentTemplate", - Type: []string{"string"}, - Format: "", - }, - }, }, + Required: []string{"items"}, }, }, Dependencies: []string{ - "github.com/devsy-org/api/pkg/apis/management/v1.DevPodEnvironmentTemplate", "github.com/devsy-org/api/pkg/apis/management/v1.DevPodWorkspacePreset", "github.com/devsy-org/api/pkg/apis/management/v1.DevPodWorkspaceTemplate", "github.com/devsy-org/api/pkg/apis/management/v1.SpaceTemplate", "github.com/devsy-org/api/pkg/apis/management/v1.VirtualClusterTemplate", metav1.ObjectMeta{}.OpenAPIModelName()}, + "github.com/devsy-org/api/pkg/apis/management/v1.TranslateDevsyResourceName", metav1.ListMeta{}.OpenAPIModelName()}, } } -func schema_pkg_apis_management_v1_ProjectTemplatesList(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_TranslateDevsyResourceNameSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Type: []string{"object"}, + Description: "TranslateDevsyResourceNameSpec holds the specification.", + Type: []string{"object"}, Properties: map[string]spec.Schema{ - "kind": { + "name": { SchemaProps: spec.SchemaProps{ - Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + Description: "Name is the name of resource we want to rename", + Default: "", Type: []string{"string"}, Format: "", }, }, - "apiVersion": { + "namespace": { SchemaProps: spec.SchemaProps{ - Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + Description: "Namespace is the name of namespace in which this resource is running", + Default: "", Type: []string{"string"}, Format: "", }, }, - "metadata": { + "devsyName": { SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref(metav1.ListMeta{}.OpenAPIModelName()), + Description: "DevsyName is the name of vCluster in which this resource is running", + Default: "", + Type: []string{"string"}, + Format: "", }, }, - "items": { + }, + Required: []string{"name", "namespace", "devsyName"}, + }, + }, + } +} + +func schema_pkg_apis_management_v1_TranslateDevsyResourceNameStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "TranslateDevsyResourceNameStatus holds the status.", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "name": { SchemaProps: spec.SchemaProps{ - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.ProjectTemplates"), - }, - }, - }, + Description: "Name is the converted name of resource", + Type: []string{"string"}, + Format: "", }, }, }, - Required: []string{"items"}, }, }, - Dependencies: []string{ - "github.com/devsy-org/api/pkg/apis/management/v1.ProjectTemplates", metav1.ListMeta{}.OpenAPIModelName()}, } } -func schema_pkg_apis_management_v1_RedirectToken(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_UsageDownload(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "RedirectToken holds the object information", + Description: "UsageDownload returns a zip of CSV files containing table data from the usage postgres database", Type: []string{"object"}, Properties: map[string]spec.Schema{ "kind": { @@ -16645,44 +16409,24 @@ func schema_pkg_apis_management_v1_RedirectToken(ref common.ReferenceCallback) c "spec": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.RedirectTokenSpec"), + Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.UsageDownloadSpec"), }, }, "status": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.RedirectTokenStatus"), + Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.UsageDownloadStatus"), }, }, }, }, }, Dependencies: []string{ - "github.com/devsy-org/api/pkg/apis/management/v1.RedirectTokenSpec", "github.com/devsy-org/api/pkg/apis/management/v1.RedirectTokenStatus", metav1.ObjectMeta{}.OpenAPIModelName()}, - } -} - -func schema_pkg_apis_management_v1_RedirectTokenClaims(ref common.ReferenceCallback) common.OpenAPIDefinition { - return common.OpenAPIDefinition{ - Schema: spec.Schema{ - SchemaProps: spec.SchemaProps{ - Description: "RedirectTokenClaims holds the private claims of the redirect token", - Type: []string{"object"}, - Properties: map[string]spec.Schema{ - "url": { - SchemaProps: spec.SchemaProps{ - Description: "URL is the url to redirect to.", - Type: []string{"string"}, - Format: "", - }, - }, - }, - }, - }, + "github.com/devsy-org/api/pkg/apis/management/v1.UsageDownloadSpec", "github.com/devsy-org/api/pkg/apis/management/v1.UsageDownloadStatus", metav1.ObjectMeta{}.OpenAPIModelName()}, } } -func schema_pkg_apis_management_v1_RedirectTokenList(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_UsageDownloadList(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ @@ -16715,7 +16459,7 @@ func schema_pkg_apis_management_v1_RedirectTokenList(ref common.ReferenceCallbac Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.RedirectToken"), + Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.UsageDownload"), }, }, }, @@ -16726,54 +16470,35 @@ func schema_pkg_apis_management_v1_RedirectTokenList(ref common.ReferenceCallbac }, }, Dependencies: []string{ - "github.com/devsy-org/api/pkg/apis/management/v1.RedirectToken", metav1.ListMeta{}.OpenAPIModelName()}, + "github.com/devsy-org/api/pkg/apis/management/v1.UsageDownload", metav1.ListMeta{}.OpenAPIModelName()}, } } -func schema_pkg_apis_management_v1_RedirectTokenSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_UsageDownloadSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "RedirectTokenSpec holds the object specification", - Type: []string{"object"}, - Properties: map[string]spec.Schema{ - "token": { - SchemaProps: spec.SchemaProps{ - Description: "Token is the token that includes the redirect request", - Type: []string{"string"}, - Format: "", - }, - }, - }, + Type: []string{"object"}, }, }, } } -func schema_pkg_apis_management_v1_RedirectTokenStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_UsageDownloadStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "RedirectTokenStatus holds the object status", - Type: []string{"object"}, - Properties: map[string]spec.Schema{ - "redirectURL": { - SchemaProps: spec.SchemaProps{ - Type: []string{"string"}, - Format: "", - }, - }, - }, + Type: []string{"object"}, }, }, } } -func schema_pkg_apis_management_v1_RegisterVirtualCluster(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_User(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "RegisterVirtualCluster holds config request and response data for virtual clusters", + Description: "User holds the user information.", Type: []string{"object"}, Properties: map[string]spec.Schema{ "kind": { @@ -16799,24 +16524,24 @@ func schema_pkg_apis_management_v1_RegisterVirtualCluster(ref common.ReferenceCa "spec": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.RegisterVirtualClusterSpec"), + Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.UserSpec"), }, }, "status": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.RegisterVirtualClusterStatus"), + Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.UserStatus"), }, }, }, }, }, Dependencies: []string{ - "github.com/devsy-org/api/pkg/apis/management/v1.RegisterVirtualClusterSpec", "github.com/devsy-org/api/pkg/apis/management/v1.RegisterVirtualClusterStatus", metav1.ObjectMeta{}.OpenAPIModelName()}, + "github.com/devsy-org/api/pkg/apis/management/v1.UserSpec", "github.com/devsy-org/api/pkg/apis/management/v1.UserStatus", metav1.ObjectMeta{}.OpenAPIModelName()}, } } -func schema_pkg_apis_management_v1_RegisterVirtualClusterList(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_UserAccessKeys(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ @@ -16839,119 +16564,83 @@ func schema_pkg_apis_management_v1_RegisterVirtualClusterList(ref common.Referen "metadata": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref(metav1.ListMeta{}.OpenAPIModelName()), + Ref: ref(metav1.ObjectMeta{}.OpenAPIModelName()), }, }, - "items": { + "accessKeys": { SchemaProps: spec.SchemaProps{ Type: []string{"array"}, Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.RegisterVirtualCluster"), + Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.OwnedAccessKey"), }, }, }, }, }, }, - Required: []string{"items"}, }, }, Dependencies: []string{ - "github.com/devsy-org/api/pkg/apis/management/v1.RegisterVirtualCluster", metav1.ListMeta{}.OpenAPIModelName()}, + "github.com/devsy-org/api/pkg/apis/management/v1.OwnedAccessKey", metav1.ObjectMeta{}.OpenAPIModelName()}, } } -func schema_pkg_apis_management_v1_RegisterVirtualClusterSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_UserAccessKeysList(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "RegisterVirtualClusterSpec holds the specification", - Type: []string{"object"}, + Type: []string{"object"}, Properties: map[string]spec.Schema{ - "serviceUID": { - SchemaProps: spec.SchemaProps{ - Description: "ServiceUID uniquely identifies the virtual cluster based on the service uid.", - Type: []string{"string"}, - Format: "", - }, - }, - "project": { - SchemaProps: spec.SchemaProps{ - Description: "Project is the project name the virtual cluster should be in.", - Type: []string{"string"}, - Format: "", - }, - }, - "name": { - SchemaProps: spec.SchemaProps{ - Description: "Name is the virtual cluster instance name. If the name is already taken, the platform will construct a name for the devsy based on the service uid and this name.", - Type: []string{"string"}, - Format: "", - }, - }, - "forceName": { - SchemaProps: spec.SchemaProps{ - Description: "ForceName specifies if the name should be used or creation will fail.", - Type: []string{"boolean"}, - Format: "", - }, - }, - "chart": { + "kind": { SchemaProps: spec.SchemaProps{ - Description: "Chart specifies the vCluster chart.", + Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", Type: []string{"string"}, Format: "", }, }, - "version": { + "apiVersion": { SchemaProps: spec.SchemaProps{ - Description: "Version specifies the vCluster version.", + Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", Type: []string{"string"}, Format: "", }, }, - "values": { + "metadata": { SchemaProps: spec.SchemaProps{ - Description: "Values specifies the vCluster config.", - Type: []string{"string"}, - Format: "", + Default: map[string]interface{}{}, + Ref: ref(metav1.ListMeta{}.OpenAPIModelName()), }, }, - }, - }, - }, - } -} - -func schema_pkg_apis_management_v1_RegisterVirtualClusterStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { - return common.OpenAPIDefinition{ - Schema: spec.Schema{ - SchemaProps: spec.SchemaProps{ - Description: "RegisterVirtualClusterStatus holds the status", - Type: []string{"object"}, - Properties: map[string]spec.Schema{ - "name": { + "items": { SchemaProps: spec.SchemaProps{ - Description: "Name is the actual name of the virtual cluster instance.", - Type: []string{"string"}, - Format: "", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.UserAccessKeys"), + }, + }, + }, }, }, }, + Required: []string{"items"}, }, }, + Dependencies: []string{ + "github.com/devsy-org/api/pkg/apis/management/v1.UserAccessKeys", metav1.ListMeta{}.OpenAPIModelName()}, } } -func schema_pkg_apis_management_v1_ResetAccessKey(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_UserClusters(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "ResetAccessKey is an access key that is owned by another user", - Type: []string{"object"}, + Type: []string{"object"}, Properties: map[string]spec.Schema{ "kind": { SchemaProps: spec.SchemaProps{ @@ -16973,27 +16662,28 @@ func schema_pkg_apis_management_v1_ResetAccessKey(ref common.ReferenceCallback) Ref: ref(metav1.ObjectMeta{}.OpenAPIModelName()), }, }, - "spec": { - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.ResetAccessKeySpec"), - }, - }, - "status": { + "clusters": { SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.ResetAccessKeyStatus"), + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.ClusterAccounts"), + }, + }, + }, }, }, }, }, }, Dependencies: []string{ - "github.com/devsy-org/api/pkg/apis/management/v1.ResetAccessKeySpec", "github.com/devsy-org/api/pkg/apis/management/v1.ResetAccessKeyStatus", metav1.ObjectMeta{}.OpenAPIModelName()}, + "github.com/devsy-org/api/pkg/apis/management/v1.ClusterAccounts", metav1.ObjectMeta{}.OpenAPIModelName()}, } } -func schema_pkg_apis_management_v1_ResetAccessKeyList(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_UserClustersList(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ @@ -17026,7 +16716,7 @@ func schema_pkg_apis_management_v1_ResetAccessKeyList(ref common.ReferenceCallba Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.ResetAccessKey"), + Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.UserClusters"), }, }, }, @@ -17037,16 +16727,23 @@ func schema_pkg_apis_management_v1_ResetAccessKeyList(ref common.ReferenceCallba }, }, Dependencies: []string{ - "github.com/devsy-org/api/pkg/apis/management/v1.ResetAccessKey", metav1.ListMeta{}.OpenAPIModelName()}, + "github.com/devsy-org/api/pkg/apis/management/v1.UserClusters", metav1.ListMeta{}.OpenAPIModelName()}, } } -func schema_pkg_apis_management_v1_ResetAccessKeySpec(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_UserInfo(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ Type: []string{"object"}, Properties: map[string]spec.Schema{ + "name": { + SchemaProps: spec.SchemaProps{ + Description: "Name is the kubernetes name of the object", + Type: []string{"string"}, + Format: "", + }, + }, "displayName": { SchemaProps: spec.SchemaProps{ Description: "The display name shown in the UI", @@ -17054,155 +16751,108 @@ func schema_pkg_apis_management_v1_ResetAccessKeySpec(ref common.ReferenceCallba Format: "", }, }, - "description": { + "icon": { SchemaProps: spec.SchemaProps{ - Description: "Description describes an app", + Description: "Icon is the icon of the user / team", Type: []string{"string"}, Format: "", }, }, - "user": { + "username": { SchemaProps: spec.SchemaProps{ - Description: "The user this access key refers to", + Description: "The username that is used to login", Type: []string{"string"}, Format: "", }, }, - "team": { + "email": { SchemaProps: spec.SchemaProps{ - Description: "The team this access key refers to", + Description: "The users email address", Type: []string{"string"}, Format: "", }, }, "subject": { SchemaProps: spec.SchemaProps{ - Description: "Subject is a generic subject that can be used instead of user or team", + Description: "The user subject", Type: []string{"string"}, Format: "", }, }, - "groups": { + "teams": { SchemaProps: spec.SchemaProps{ - Description: "Groups specifies extra groups to apply when using this access key", + Description: "Teams are the teams the user is part of", Type: []string{"array"}, Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ - Default: "", - Type: []string{"string"}, - Format: "", + Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.EntityInfo"), }, }, }, }, }, - "key": { + }, + }, + }, + Dependencies: []string{ + "github.com/devsy-org/api/pkg/apis/storage/v1.EntityInfo"}, + } +} + +func schema_pkg_apis_management_v1_UserList(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "kind": { SchemaProps: spec.SchemaProps{ - Description: "The actual access key that will be used as a bearer token", + Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", Type: []string{"string"}, Format: "", }, }, - "disabled": { - SchemaProps: spec.SchemaProps{ - Description: "If this field is true, the access key is still allowed to exist, however will not work to access the api", - Type: []string{"boolean"}, - Format: "", - }, - }, - "ttl": { - SchemaProps: spec.SchemaProps{ - Description: "The time to life for this access key", - Type: []string{"integer"}, - Format: "int64", - }, - }, - "ttlAfterLastActivity": { - SchemaProps: spec.SchemaProps{ - Description: "If this is specified, the time to life for this access key will start after the lastActivity instead of creation timestamp", - Type: []string{"boolean"}, - Format: "", - }, - }, - "scope": { - SchemaProps: spec.SchemaProps{ - Description: "Scope defines the scope of the access key.", - Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.AccessKeyScope"), - }, - }, - "type": { + "apiVersion": { SchemaProps: spec.SchemaProps{ - Description: "The type of an access key, which basically describes if the access key is user managed or managed by devsy itself.", + Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", Type: []string{"string"}, Format: "", }, }, - "identity": { - SchemaProps: spec.SchemaProps{ - Description: "If available, contains information about the sso login data for this access key", - Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.SSOIdentity"), - }, - }, - "identityRefresh": { - SchemaProps: spec.SchemaProps{ - Description: "The last time the identity was refreshed", - Ref: ref(metav1.Time{}.OpenAPIModelName()), - }, - }, - "oidcProvider": { - SchemaProps: spec.SchemaProps{ - Description: "If the token is a refresh token, contains information about it", - Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.AccessKeyOIDCProvider"), - }, - }, - "parent": { + "metadata": { SchemaProps: spec.SchemaProps{ - Description: "DEPRECATED: do not use anymore Parent is used to share OIDC and external token information with multiple access keys. Since copying an OIDC refresh token would result in the other access keys becoming invalid after a refresh parent allows access keys to share that information.\n\nThe use case for this is primarily user generated access keys, which will have the users current access key as parent if it contains an OIDC token.", - Type: []string{"string"}, - Format: "", + Default: map[string]interface{}{}, + Ref: ref(metav1.ListMeta{}.OpenAPIModelName()), }, }, - "oidcLogin": { + "items": { SchemaProps: spec.SchemaProps{ - Description: "DEPRECATED: Use identity instead If available, contains information about the oidc login data for this access key", - Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.AccessKeyOIDC"), + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.User"), + }, + }, + }, }, }, }, + Required: []string{"items"}, }, }, Dependencies: []string{ - "github.com/devsy-org/api/pkg/apis/storage/v1.AccessKeyOIDC", "github.com/devsy-org/api/pkg/apis/storage/v1.AccessKeyOIDCProvider", "github.com/devsy-org/api/pkg/apis/storage/v1.AccessKeyScope", "github.com/devsy-org/api/pkg/apis/storage/v1.SSOIdentity", metav1.Time{}.OpenAPIModelName()}, + "github.com/devsy-org/api/pkg/apis/management/v1.User", metav1.ListMeta{}.OpenAPIModelName()}, } } -func schema_pkg_apis_management_v1_ResetAccessKeyStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_UserObjectPermissions(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ Type: []string{"object"}, - Properties: map[string]spec.Schema{ - "lastActivity": { - SchemaProps: spec.SchemaProps{ - Description: "The last time this access key was used to access the api", - Ref: ref(metav1.Time{}.OpenAPIModelName()), - }, - }, - }, - }, - }, - Dependencies: []string{ - metav1.Time{}.OpenAPIModelName()}, - } -} - -func schema_pkg_apis_management_v1_Self(ref common.ReferenceCallback) common.OpenAPIDefinition { - return common.OpenAPIDefinition{ - Schema: spec.Schema{ - SchemaProps: spec.SchemaProps{ - Description: "Self holds information about the currently logged in user", - Type: []string{"object"}, Properties: map[string]spec.Schema{ "kind": { SchemaProps: spec.SchemaProps{ @@ -17224,27 +16874,28 @@ func schema_pkg_apis_management_v1_Self(ref common.ReferenceCallback) common.Ope Ref: ref(metav1.ObjectMeta{}.OpenAPIModelName()), }, }, - "spec": { - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.SelfSpec"), - }, - }, - "status": { + "objectPermissions": { SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.SelfStatus"), + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.ObjectPermission"), + }, + }, + }, }, }, }, }, }, Dependencies: []string{ - "github.com/devsy-org/api/pkg/apis/management/v1.SelfSpec", "github.com/devsy-org/api/pkg/apis/management/v1.SelfStatus", metav1.ObjectMeta{}.OpenAPIModelName()}, + "github.com/devsy-org/api/pkg/apis/management/v1.ObjectPermission", metav1.ObjectMeta{}.OpenAPIModelName()}, } } -func schema_pkg_apis_management_v1_SelfList(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_UserObjectPermissionsList(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ @@ -17277,7 +16928,7 @@ func schema_pkg_apis_management_v1_SelfList(ref common.ReferenceCallback) common Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.Self"), + Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.UserObjectPermissions"), }, }, }, @@ -17288,138 +16939,147 @@ func schema_pkg_apis_management_v1_SelfList(ref common.ReferenceCallback) common }, }, Dependencies: []string{ - "github.com/devsy-org/api/pkg/apis/management/v1.Self", metav1.ListMeta{}.OpenAPIModelName()}, + "github.com/devsy-org/api/pkg/apis/management/v1.UserObjectPermissions", metav1.ListMeta{}.OpenAPIModelName()}, } } -func schema_pkg_apis_management_v1_SelfSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_UserPermissions(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ Type: []string{"object"}, Properties: map[string]spec.Schema{ - "accessKey": { + "kind": { SchemaProps: spec.SchemaProps{ - Description: "AccessKey is an optional access key to use instead of the provided one", + Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", Type: []string{"string"}, Format: "", }, }, - }, - }, - }, - } -} - -func schema_pkg_apis_management_v1_SelfStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { - return common.OpenAPIDefinition{ - Schema: spec.Schema{ - SchemaProps: spec.SchemaProps{ - Type: []string{"object"}, - Properties: map[string]spec.Schema{ - "user": { - SchemaProps: spec.SchemaProps{ - Description: "The name of the currently logged in user", - Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.UserInfo"), - }, - }, - "team": { - SchemaProps: spec.SchemaProps{ - Description: "The name of the currently logged in team", - Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.EntityInfo"), - }, - }, - "accessKey": { + "apiVersion": { SchemaProps: spec.SchemaProps{ - Description: "The name of the currently used access key", + Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", Type: []string{"string"}, Format: "", }, }, - "accessKeyScope": { - SchemaProps: spec.SchemaProps{ - Description: "The scope of the currently used access key", - Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.AccessKeyScope"), - }, - }, - "accessKeyType": { + "metadata": { SchemaProps: spec.SchemaProps{ - Description: "The type of the currently used access key", - Type: []string{"string"}, - Format: "", + Default: map[string]interface{}{}, + Ref: ref(metav1.ObjectMeta{}.OpenAPIModelName()), }, }, - "subject": { + "clusterRoles": { SchemaProps: spec.SchemaProps{ - Description: "The subject of the currently logged in user", - Type: []string{"string"}, - Format: "", + Description: "ClusterRoles that apply to the user.", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.UserPermissionsRole"), + }, + }, + }, }, }, - "uid": { + "namespaceRoles": { SchemaProps: spec.SchemaProps{ - Description: "UID is the user uid", - Type: []string{"string"}, - Format: "", + Description: "NamespaceRoles that apply to the user. Can be either regular roles or cluster roles that are namespace scoped.", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.UserPermissionsRole"), + }, + }, + }, }, }, - "groups": { + "teamMemberships": { SchemaProps: spec.SchemaProps{ - Description: "The groups of the currently logged in user", + Description: "TeamMemberships gives information about the user's team membership", Type: []string{"array"}, Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ - Default: "", - Type: []string{"string"}, - Format: "", + Default: map[string]interface{}{}, + Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.ObjectName"), }, }, }, }, }, - "chatAuthToken": { + "projectMemberships": { SchemaProps: spec.SchemaProps{ - Description: "ChatAuthToken is the token used to authenticate with the in-product chat widget in the UI", - Type: []string{"string"}, - Format: "", + Description: "ProjectMemberships gives information about the user's project membership", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.ProjectMembership"), + }, + }, + }, }, }, - "instanceID": { + "managementRoles": { SchemaProps: spec.SchemaProps{ - Description: "InstanceID is the devsy instance id", - Type: []string{"string"}, - Format: "", + Description: "ManagementRoles gives information about the user's assigned management roles", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.ManagementRole"), + }, + }, + }, }, }, - "loftHost": { + "clusterAccessRoles": { SchemaProps: spec.SchemaProps{ - Description: "LoftHost is the host of the devsy instance", - Type: []string{"string"}, - Format: "", + Description: "ClustersAccessRoles gives information about the user's assigned cluster roles and the clusters they apply to", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.ClusterAccessRole"), + }, + }, + }, }, }, - "projectNamespacePrefix": { + "virtualClusterRoles": { SchemaProps: spec.SchemaProps{ - Description: "ProjectNamespacePrefix is the prefix used to name project namespaces after defaulting has been applied", - Type: []string{"string"}, - Format: "", + Description: "VirtualClusterRoles give information about the user's cluster role within the virtual cluster", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.VirtualClusterRole"), + }, + }, + }, }, }, }, }, }, Dependencies: []string{ - "github.com/devsy-org/api/pkg/apis/management/v1.UserInfo", "github.com/devsy-org/api/pkg/apis/storage/v1.AccessKeyScope", "github.com/devsy-org/api/pkg/apis/storage/v1.EntityInfo"}, + "github.com/devsy-org/api/pkg/apis/management/v1.ClusterAccessRole", "github.com/devsy-org/api/pkg/apis/management/v1.ManagementRole", "github.com/devsy-org/api/pkg/apis/management/v1.ObjectName", "github.com/devsy-org/api/pkg/apis/management/v1.ProjectMembership", "github.com/devsy-org/api/pkg/apis/management/v1.UserPermissionsRole", "github.com/devsy-org/api/pkg/apis/management/v1.VirtualClusterRole", metav1.ObjectMeta{}.OpenAPIModelName()}, } } -func schema_pkg_apis_management_v1_SelfSubjectAccessReview(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_UserPermissionsList(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "User holds the user information", - Type: []string{"object"}, + Type: []string{"object"}, Properties: map[string]spec.Schema{ "kind": { SchemaProps: spec.SchemaProps{ @@ -17438,193 +17098,178 @@ func schema_pkg_apis_management_v1_SelfSubjectAccessReview(ref common.ReferenceC "metadata": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref(metav1.ObjectMeta{}.OpenAPIModelName()), - }, - }, - "spec": { - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.SelfSubjectAccessReviewSpec"), + Ref: ref(metav1.ListMeta{}.OpenAPIModelName()), }, }, - "status": { + "items": { SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.SelfSubjectAccessReviewStatus"), + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.UserPermissions"), + }, + }, + }, }, }, }, + Required: []string{"items"}, }, }, Dependencies: []string{ - "github.com/devsy-org/api/pkg/apis/management/v1.SelfSubjectAccessReviewSpec", "github.com/devsy-org/api/pkg/apis/management/v1.SelfSubjectAccessReviewStatus", metav1.ObjectMeta{}.OpenAPIModelName()}, + "github.com/devsy-org/api/pkg/apis/management/v1.UserPermissions", metav1.ListMeta{}.OpenAPIModelName()}, } } -func schema_pkg_apis_management_v1_SelfSubjectAccessReviewList(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_UserPermissionsRole(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ Type: []string{"object"}, Properties: map[string]spec.Schema{ - "kind": { + "clusterRole": { SchemaProps: spec.SchemaProps{ - Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + Description: "ClusterRole is the name of the cluster role assigned to this user.", Type: []string{"string"}, Format: "", }, }, - "apiVersion": { + "role": { SchemaProps: spec.SchemaProps{ - Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + Description: "Role is the name of the role assigned to this user.", Type: []string{"string"}, Format: "", }, }, - "metadata": { + "namespace": { SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref(metav1.ListMeta{}.OpenAPIModelName()), + Description: "Namespace where this rules are valid.", + Type: []string{"string"}, + Format: "", }, }, - "items": { + "rules": { SchemaProps: spec.SchemaProps{ - Type: []string{"array"}, + Description: "Rules are the roles rules", + Type: []string{"array"}, Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.SelfSubjectAccessReview"), + Ref: ref(rbacv1.PolicyRule{}.OpenAPIModelName()), }, }, }, }, }, }, - Required: []string{"items"}, }, }, Dependencies: []string{ - "github.com/devsy-org/api/pkg/apis/management/v1.SelfSubjectAccessReview", metav1.ListMeta{}.OpenAPIModelName()}, + rbacv1.PolicyRule{}.OpenAPIModelName()}, } } -func schema_pkg_apis_management_v1_SelfSubjectAccessReviewSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_UserProfile(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ Type: []string{"object"}, Properties: map[string]spec.Schema{ - "resourceAttributes": { + "kind": { SchemaProps: spec.SchemaProps{ - Description: "ResourceAuthorizationAttributes describes information for a resource access request", - Ref: ref("k8s.io/api/authorization/v1.ResourceAttributes"), + Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + Type: []string{"string"}, + Format: "", }, }, - "nonResourceAttributes": { + "apiVersion": { SchemaProps: spec.SchemaProps{ - Description: "NonResourceAttributes describes information for a non-resource access request", - Ref: ref("k8s.io/api/authorization/v1.NonResourceAttributes"), + Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + Type: []string{"string"}, + Format: "", }, }, - }, - }, - }, - Dependencies: []string{ - "k8s.io/api/authorization/v1.NonResourceAttributes", "k8s.io/api/authorization/v1.ResourceAttributes"}, - } -} - -func schema_pkg_apis_management_v1_SelfSubjectAccessReviewStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { - return common.OpenAPIDefinition{ - Schema: spec.Schema{ - SchemaProps: spec.SchemaProps{ - Type: []string{"object"}, - Properties: map[string]spec.Schema{ - "allowed": { + "metadata": { SchemaProps: spec.SchemaProps{ - Description: "Allowed is required. True if the action would be allowed, false otherwise.", - Default: false, - Type: []string{"boolean"}, - Format: "", + Default: map[string]interface{}{}, + Ref: ref(metav1.ObjectMeta{}.OpenAPIModelName()), }, }, - "denied": { + "displayName": { SchemaProps: spec.SchemaProps{ - Description: "Denied is optional. True if the action would be denied, otherwise false. If both allowed is false and denied is false, then the authorizer has no opinion on whether to authorize the action. Denied may not be true if Allowed is true.", - Type: []string{"boolean"}, + Description: "The new display name shown in the UI", + Type: []string{"string"}, Format: "", }, }, - "reason": { + "username": { SchemaProps: spec.SchemaProps{ - Description: "Reason is optional. It indicates why a request was allowed or denied.", + Description: "Username is the new username of the user", Type: []string{"string"}, Format: "", }, }, - "evaluationError": { + "password": { SchemaProps: spec.SchemaProps{ - Description: "EvaluationError is an indication that some error occurred during the authorization check. It is entirely possible to get an error and be able to continue determine authorization status in spite of it. For instance, RBAC can be missing a role, but enough roles are still present and bound to reason about the request.", + Description: "Password is the new password of the user", Type: []string{"string"}, Format: "", }, }, - }, - Required: []string{"allowed"}, - }, - }, - } -} - -func schema_pkg_apis_management_v1_SharedSecret(ref common.ReferenceCallback) common.OpenAPIDefinition { - return common.OpenAPIDefinition{ - Schema: spec.Schema{ - SchemaProps: spec.SchemaProps{ - Description: "SharedSecret holds the secret information", - Type: []string{"object"}, - Properties: map[string]spec.Schema{ - "kind": { + "currentPassword": { SchemaProps: spec.SchemaProps{ - Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + Description: "CurrentPassword is the current password of the user", Type: []string{"string"}, Format: "", }, }, - "apiVersion": { + "email": { SchemaProps: spec.SchemaProps{ - Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + Description: "Email is the new email of the user", Type: []string{"string"}, Format: "", }, }, - "metadata": { + "icon": { SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref(metav1.ObjectMeta{}.OpenAPIModelName()), + Description: "Icon is the new icon of the user", + Type: []string{"string"}, + Format: "", }, }, - "spec": { + "custom": { SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.SharedSecretSpec"), + Description: "Custom is custom information that should be saved of the user", + Type: []string{"string"}, + Format: "", }, }, - "status": { + "secrets": { SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.SharedSecretStatus"), + Description: "Secrets is a map of secret names to secret data", + Type: []string{"object"}, + AdditionalProperties: &spec.SchemaOrBool{ + Allows: true, + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.UserProfileSecret"), + }, + }, + }, }, }, }, }, }, Dependencies: []string{ - "github.com/devsy-org/api/pkg/apis/management/v1.SharedSecretSpec", "github.com/devsy-org/api/pkg/apis/management/v1.SharedSecretStatus", metav1.ObjectMeta{}.OpenAPIModelName()}, + "github.com/devsy-org/api/pkg/apis/management/v1.UserProfileSecret", metav1.ObjectMeta{}.OpenAPIModelName()}, } } -func schema_pkg_apis_management_v1_SharedSecretList(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_UserProfileList(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ @@ -17657,7 +17302,7 @@ func schema_pkg_apis_management_v1_SharedSecretList(ref common.ReferenceCallback Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.SharedSecret"), + Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.UserProfile"), }, }, }, @@ -17668,47 +17313,250 @@ func schema_pkg_apis_management_v1_SharedSecretList(ref common.ReferenceCallback }, }, Dependencies: []string{ - "github.com/devsy-org/api/pkg/apis/management/v1.SharedSecret", metav1.ListMeta{}.OpenAPIModelName()}, + "github.com/devsy-org/api/pkg/apis/management/v1.UserProfile", metav1.ListMeta{}.OpenAPIModelName()}, } } -func schema_pkg_apis_management_v1_SharedSecretSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_UserProfileSecret(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "SharedSecretSpec holds the specification", - Type: []string{"object"}, + Type: []string{"object"}, Properties: map[string]spec.Schema{ - "displayName": { + "type": { SchemaProps: spec.SchemaProps{ - Description: "DisplayName is the name that should be displayed in the UI", + Description: "Type is the type of the secret", Type: []string{"string"}, Format: "", }, }, - "description": { + "data": { SchemaProps: spec.SchemaProps{ - Description: "Description describes a shared secret", + Description: "Data is the data of the secret", Type: []string{"string"}, Format: "", }, }, - "owner": { + }, + }, + }, + } +} + +func schema_pkg_apis_management_v1_UserQuotasOptions(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "kind": { SchemaProps: spec.SchemaProps{ - Description: "Owner holds the owner of this object", + Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + Type: []string{"string"}, + Format: "", + }, + }, + "apiVersion": { + SchemaProps: spec.SchemaProps{ + Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + Type: []string{"string"}, + Format: "", + }, + }, + "cluster": { + SchemaProps: spec.SchemaProps{ + Description: "Cluster where to retrieve quotas from", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + }, + }, + }, + }, + }, + }, + } +} + +func schema_pkg_apis_management_v1_UserSpacesOptions(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "kind": { + SchemaProps: spec.SchemaProps{ + Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + Type: []string{"string"}, + Format: "", + }, + }, + "apiVersion": { + SchemaProps: spec.SchemaProps{ + Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + Type: []string{"string"}, + Format: "", + }, + }, + "cluster": { + SchemaProps: spec.SchemaProps{ + Description: "Cluster where to retrieve spaces from", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + }, + }, + }, + }, + }, + }, + } +} + +func schema_pkg_apis_management_v1_UserSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "displayName": { + SchemaProps: spec.SchemaProps{ + Description: "The display name shown in the UI", + Type: []string{"string"}, + Format: "", + }, + }, + "description": { + SchemaProps: spec.SchemaProps{ + Description: "Description describes a cluster access object", + Type: []string{"string"}, + Format: "", + }, + }, + "owner": { + SchemaProps: spec.SchemaProps{ + Description: "Owner holds the owner of this object", Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.UserOrTeam"), }, }, - "data": { + "username": { SchemaProps: spec.SchemaProps{ - Description: "Data contains the secret data. Each key must consist of alphanumeric characters, '-', '_' or '.'. The serialized form of the secret data is a base64 encoded string, representing the arbitrary (possibly non-string) data value here. Described in https://tools.ietf.org/html/rfc4648#section-4", - Type: []string{"object"}, - AdditionalProperties: &spec.SchemaOrBool{ - Allows: true, + Description: "The username that is used to login", + Type: []string{"string"}, + Format: "", + }, + }, + "icon": { + SchemaProps: spec.SchemaProps{ + Description: "The URL to an icon that should be shown for the user", + Type: []string{"string"}, + Format: "", + }, + }, + "email": { + SchemaProps: spec.SchemaProps{ + Description: "The users email address", + Type: []string{"string"}, + Format: "", + }, + }, + "subject": { + SchemaProps: spec.SchemaProps{ + Description: "The user subject as presented by the token", + Type: []string{"string"}, + Format: "", + }, + }, + "groups": { + SchemaProps: spec.SchemaProps{ + Description: "The groups the user has access to", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ - Type: []string{"string"}, - Format: "byte", + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + }, + }, + }, + "ssoGroups": { + SchemaProps: spec.SchemaProps{ + Description: "SSOGroups is used to remember groups that were added from sso.", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + }, + }, + }, + "passwordRef": { + SchemaProps: spec.SchemaProps{ + Description: "A reference to the user password", + Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.SecretRef"), + }, + }, + "codesRef": { + SchemaProps: spec.SchemaProps{ + Description: "A reference to the users access keys", + Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.SecretRef"), + }, + }, + "imagePullSecrets": { + SchemaProps: spec.SchemaProps{ + Description: "ImagePullSecrets holds secret references to image pull secrets the user has access to.", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.KindSecretRef"), + }, + }, + }, + }, + }, + "tokenGeneration": { + SchemaProps: spec.SchemaProps{ + Description: "TokenGeneration can be used to invalidate all user tokens", + Type: []string{"integer"}, + Format: "int64", + }, + }, + "disabled": { + SchemaProps: spec.SchemaProps{ + Description: "If disabled is true, an user will not be able to login anymore. All other user resources are unaffected and other users can still interact with this user", + Type: []string{"boolean"}, + Format: "", + }, + }, + "clusterRoles": { + SchemaProps: spec.SchemaProps{ + Description: "ClusterRoles define the cluster roles that the users should have assigned in the cluster.", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.ClusterRoleRef"), }, }, }, @@ -17716,7 +17564,7 @@ func schema_pkg_apis_management_v1_SharedSecretSpec(ref common.ReferenceCallback }, "access": { SchemaProps: spec.SchemaProps{ - Description: "Access holds the access rights for users and teams which will be transformed to Roles and RoleBindings", + Description: "Access holds the access rights for users and teams", Type: []string{"array"}, Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ @@ -17728,30 +17576,47 @@ func schema_pkg_apis_management_v1_SharedSecretSpec(ref common.ReferenceCallback }, }, }, + "extraClaims": { + SchemaProps: spec.SchemaProps{ + Description: "ExtraClaims are additional claims that have been added to the user by an admin.", + Type: []string{"object"}, + AdditionalProperties: &spec.SchemaOrBool{ + Allows: true, + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + }, + }, + }, }, }, }, Dependencies: []string{ - "github.com/devsy-org/api/pkg/apis/storage/v1.Access", "github.com/devsy-org/api/pkg/apis/storage/v1.UserOrTeam"}, + "github.com/devsy-org/api/pkg/apis/storage/v1.Access", "github.com/devsy-org/api/pkg/apis/storage/v1.ClusterRoleRef", "github.com/devsy-org/api/pkg/apis/storage/v1.KindSecretRef", "github.com/devsy-org/api/pkg/apis/storage/v1.SecretRef", "github.com/devsy-org/api/pkg/apis/storage/v1.UserOrTeam"}, } } -func schema_pkg_apis_management_v1_SharedSecretStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_UserStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "SharedSecretStatus holds the status", + Description: "UserStatus holds the status of an user", Type: []string{"object"}, Properties: map[string]spec.Schema{ - "conditions": { + "teams": { SchemaProps: spec.SchemaProps{ - Description: "Conditions holds several conditions the project might be in", + Description: "Teams the user is currently part of", Type: []string{"array"}, Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref(storagev1.Condition{}.OpenAPIModelName()), + Default: "", + Type: []string{"string"}, + Format: "", }, }, }, @@ -17760,45 +17625,42 @@ func schema_pkg_apis_management_v1_SharedSecretStatus(ref common.ReferenceCallba }, }, }, - Dependencies: []string{ - storagev1.Condition{}.OpenAPIModelName()}, } } -func schema_pkg_apis_management_v1_SnapshotTaken(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_UserVirtualClustersOptions(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ Type: []string{"object"}, Properties: map[string]spec.Schema{ - "id": { - SchemaProps: spec.SchemaProps{ - Type: []string{"string"}, - Format: "", - }, - }, - "url": { - SchemaProps: spec.SchemaProps{ - Type: []string{"string"}, - Format: "", - }, - }, - "timestamp": { + "kind": { SchemaProps: spec.SchemaProps{ - Type: []string{"string"}, - Format: "", + Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + Type: []string{"string"}, + Format: "", }, }, - "reason": { + "apiVersion": { SchemaProps: spec.SchemaProps{ - Type: []string{"string"}, - Format: "", + Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + Type: []string{"string"}, + Format: "", }, }, - "status": { + "cluster": { SchemaProps: spec.SchemaProps{ - Type: []string{"string"}, - Format: "", + Description: "Cluster where to retrieve virtual clusters from", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + }, }, }, }, @@ -17807,11 +17669,11 @@ func schema_pkg_apis_management_v1_SnapshotTaken(ref common.ReferenceCallback) c } } -func schema_pkg_apis_management_v1_SpaceInstance(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_VirtualClusterAccessKey(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "SpaceInstance holds the SpaceInstance information", + Description: "VirtualClusterAccessKey holds the access key for the virtual cluster", Type: []string{"object"}, Properties: map[string]spec.Schema{ "kind": { @@ -17834,27 +17696,22 @@ func schema_pkg_apis_management_v1_SpaceInstance(ref common.ReferenceCallback) c Ref: ref(metav1.ObjectMeta{}.OpenAPIModelName()), }, }, - "spec": { - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.SpaceInstanceSpec"), - }, - }, - "status": { + "accessKey": { SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.SpaceInstanceStatus"), + Description: "AccessKey is the access key used by the agent", + Type: []string{"string"}, + Format: "", }, }, }, }, }, Dependencies: []string{ - "github.com/devsy-org/api/pkg/apis/management/v1.SpaceInstanceSpec", "github.com/devsy-org/api/pkg/apis/management/v1.SpaceInstanceStatus", metav1.ObjectMeta{}.OpenAPIModelName()}, + metav1.ObjectMeta{}.OpenAPIModelName()}, } } -func schema_pkg_apis_management_v1_SpaceInstanceList(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_VirtualClusterAccessKeyList(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ @@ -17887,7 +17744,7 @@ func schema_pkg_apis_management_v1_SpaceInstanceList(ref common.ReferenceCallbac Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.SpaceInstance"), + Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.VirtualClusterAccessKey"), }, }, }, @@ -17898,193 +17755,195 @@ func schema_pkg_apis_management_v1_SpaceInstanceList(ref common.ReferenceCallbac }, }, Dependencies: []string{ - "github.com/devsy-org/api/pkg/apis/management/v1.SpaceInstance", metav1.ListMeta{}.OpenAPIModelName()}, + "github.com/devsy-org/api/pkg/apis/management/v1.VirtualClusterAccessKey", metav1.ListMeta{}.OpenAPIModelName()}, } } -func schema_pkg_apis_management_v1_SpaceInstanceSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_VirtualClusterExternalDatabase(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "SpaceInstanceSpec holds the specification", + Description: "VirtualClusterExternalDatabase holds kube config request and response data for virtual clusters", Type: []string{"object"}, Properties: map[string]spec.Schema{ - "displayName": { + "kind": { SchemaProps: spec.SchemaProps{ - Description: "DisplayName is the name that should be displayed in the UI", + Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", Type: []string{"string"}, Format: "", }, }, - "description": { + "apiVersion": { SchemaProps: spec.SchemaProps{ - Description: "Description describes a space instance", + Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", Type: []string{"string"}, Format: "", }, }, - "owner": { + "metadata": { SchemaProps: spec.SchemaProps{ - Description: "Owner holds the owner of this object", - Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.UserOrTeam"), + Default: map[string]interface{}{}, + Ref: ref(metav1.ObjectMeta{}.OpenAPIModelName()), }, }, - "templateRef": { + "spec": { SchemaProps: spec.SchemaProps{ - Description: "TemplateRef holds the space template reference", - Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.TemplateRef"), + Default: map[string]interface{}{}, + Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.VirtualClusterExternalDatabaseSpec"), }, }, - "template": { + "status": { SchemaProps: spec.SchemaProps{ - Description: "Template is the inline template to use for space creation. This is mutually exclusive with templateRef.", - Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.SpaceTemplateDefinition"), + Default: map[string]interface{}{}, + Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.VirtualClusterExternalDatabaseStatus"), }, }, - "clusterRef": { + }, + }, + }, + Dependencies: []string{ + "github.com/devsy-org/api/pkg/apis/management/v1.VirtualClusterExternalDatabaseSpec", "github.com/devsy-org/api/pkg/apis/management/v1.VirtualClusterExternalDatabaseStatus", metav1.ObjectMeta{}.OpenAPIModelName()}, + } +} + +func schema_pkg_apis_management_v1_VirtualClusterExternalDatabaseList(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "kind": { SchemaProps: spec.SchemaProps{ - Description: "ClusterRef is the reference to the connected cluster holding this space", - Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.ClusterRef"), + Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + Type: []string{"string"}, + Format: "", }, }, - "parameters": { + "apiVersion": { SchemaProps: spec.SchemaProps{ - Description: "Parameters are values to pass to the template. The values should be encoded as YAML string where each parameter is represented as a top-level field key.", + Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", Type: []string{"string"}, Format: "", }, }, - "extraAccessRules": { + "metadata": { SchemaProps: spec.SchemaProps{ - Description: "ExtraAccessRules defines extra rules which users and teams should have which access to the virtual cluster.", - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.InstanceAccessRule"), - }, - }, - }, + Default: map[string]interface{}{}, + Ref: ref(metav1.ListMeta{}.OpenAPIModelName()), }, }, - "access": { + "items": { SchemaProps: spec.SchemaProps{ - Description: "Access holds the access rights for users and teams", - Type: []string{"array"}, + Type: []string{"array"}, Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.Access"), + Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.VirtualClusterExternalDatabase"), }, }, }, }, }, }, + Required: []string{"items"}, }, }, Dependencies: []string{ - "github.com/devsy-org/api/pkg/apis/storage/v1.Access", "github.com/devsy-org/api/pkg/apis/storage/v1.ClusterRef", "github.com/devsy-org/api/pkg/apis/storage/v1.InstanceAccessRule", "github.com/devsy-org/api/pkg/apis/storage/v1.SpaceTemplateDefinition", "github.com/devsy-org/api/pkg/apis/storage/v1.TemplateRef", "github.com/devsy-org/api/pkg/apis/storage/v1.UserOrTeam"}, + "github.com/devsy-org/api/pkg/apis/management/v1.VirtualClusterExternalDatabase", metav1.ListMeta{}.OpenAPIModelName()}, } } -func schema_pkg_apis_management_v1_SpaceInstanceStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_VirtualClusterExternalDatabaseSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "SpaceInstanceStatus holds the status", - Type: []string{"object"}, + Type: []string{"object"}, Properties: map[string]spec.Schema{ - "phase": { + "connector": { SchemaProps: spec.SchemaProps{ - Description: "Phase describes the current phase the space instance is in", + Description: "Connector specifies the secret that should be used to connect to an external database server. The connection is used to manage a user and database for the vCluster. A data source endpoint constructed from the created user and database is returned on status. The secret specified by connector should contain the following fields: endpoint - the endpoint where the database server can be accessed user - the database username password - the password for the database username port - the port to be used in conjunction with the endpoint to connect to the databse server. This is commonly 3306", Type: []string{"string"}, Format: "", }, }, - "reason": { + }, + }, + }, + } +} + +func schema_pkg_apis_management_v1_VirtualClusterExternalDatabaseStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "dataSource": { SchemaProps: spec.SchemaProps{ - Description: "Reason describes the reason in machine-readable form", + Description: "DataSource holds a datasource endpoint constructed from the vCluster's designated user and database. The user and database are created from the given connector.", Type: []string{"string"}, Format: "", }, }, - "message": { + }, + }, + }, + } +} + +func schema_pkg_apis_management_v1_VirtualClusterInstance(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "VirtualClusterInstance holds the VirtualClusterInstance information", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "kind": { SchemaProps: spec.SchemaProps{ - Description: "Message describes the reason in human-readable form", + Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", Type: []string{"string"}, Format: "", }, }, - "conditions": { - SchemaProps: spec.SchemaProps{ - Description: "Conditions holds several conditions the virtual cluster might be in", - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref(storagev1.Condition{}.OpenAPIModelName()), - }, - }, - }, - }, - }, - "spaceObjects": { - SchemaProps: spec.SchemaProps{ - Description: "SpaceObjects are the objects that were applied within the virtual cluster space", - Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.ObjectsStatus"), - }, - }, - "space": { - SchemaProps: spec.SchemaProps{ - Description: "Space is the template rendered with all the parameters", - Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.SpaceTemplateDefinition"), - }, - }, - "ignoreReconciliation": { + "apiVersion": { SchemaProps: spec.SchemaProps{ - Description: "IgnoreReconciliation tells the controller to ignore reconciliation for this instance -- this is primarily used when migrating virtual cluster instances from project to project; this prevents a situation where there are two virtual cluster instances representing the same virtual cluster which could cause issues with concurrent reconciliations of the same object. Once the virtual cluster instance has been cloned and placed into the new project, this (the \"old\") virtual cluster instance can safely be deleted.", - Type: []string{"boolean"}, + Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + Type: []string{"string"}, Format: "", }, }, - "sleepModeConfig": { + "metadata": { SchemaProps: spec.SchemaProps{ - Description: "SleepModeConfig is the sleep mode config of the space. This will only be shown in the front end.", - Ref: ref(v1.SleepModeConfig{}.OpenAPIModelName()), + Default: map[string]interface{}{}, + Ref: ref(metav1.ObjectMeta{}.OpenAPIModelName()), }, }, - "canUse": { + "spec": { SchemaProps: spec.SchemaProps{ - Description: "CanUse specifies if the requester can use the instance", - Type: []string{"boolean"}, - Format: "", + Default: map[string]interface{}{}, + Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.VirtualClusterInstanceSpec"), }, }, - "canUpdate": { + "status": { SchemaProps: spec.SchemaProps{ - Description: "CanUpdate specifies if the requester can update the instance", - Type: []string{"boolean"}, - Format: "", + Default: map[string]interface{}{}, + Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.VirtualClusterInstanceStatus"), }, }, }, }, }, Dependencies: []string{ - v1.SleepModeConfig{}.OpenAPIModelName(), storagev1.Condition{}.OpenAPIModelName(), "github.com/devsy-org/api/pkg/apis/storage/v1.ObjectsStatus", "github.com/devsy-org/api/pkg/apis/storage/v1.SpaceTemplateDefinition"}, + "github.com/devsy-org/api/pkg/apis/management/v1.VirtualClusterInstanceSpec", "github.com/devsy-org/api/pkg/apis/management/v1.VirtualClusterInstanceStatus", metav1.ObjectMeta{}.OpenAPIModelName()}, } } -func schema_pkg_apis_management_v1_SpaceTemplate(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_VirtualClusterInstanceKubeConfig(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "SpaceTemplate holds the information", + Description: "VirtualClusterInstanceKubeConfig holds kube config request and response data for virtual clusters", Type: []string{"object"}, Properties: map[string]spec.Schema{ "kind": { @@ -18110,24 +17969,24 @@ func schema_pkg_apis_management_v1_SpaceTemplate(ref common.ReferenceCallback) c "spec": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.SpaceTemplateSpec"), + Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.VirtualClusterInstanceKubeConfigSpec"), }, }, "status": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.SpaceTemplateStatus"), + Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.VirtualClusterInstanceKubeConfigStatus"), }, }, }, }, }, Dependencies: []string{ - "github.com/devsy-org/api/pkg/apis/management/v1.SpaceTemplateSpec", "github.com/devsy-org/api/pkg/apis/management/v1.SpaceTemplateStatus", metav1.ObjectMeta{}.OpenAPIModelName()}, + "github.com/devsy-org/api/pkg/apis/management/v1.VirtualClusterInstanceKubeConfigSpec", "github.com/devsy-org/api/pkg/apis/management/v1.VirtualClusterInstanceKubeConfigStatus", metav1.ObjectMeta{}.OpenAPIModelName()}, } } -func schema_pkg_apis_management_v1_SpaceTemplateList(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_VirtualClusterInstanceKubeConfigList(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ @@ -18160,7 +18019,7 @@ func schema_pkg_apis_management_v1_SpaceTemplateList(ref common.ReferenceCallbac Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.SpaceTemplate"), + Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.VirtualClusterInstanceKubeConfig"), }, }, }, @@ -18171,221 +18030,115 @@ func schema_pkg_apis_management_v1_SpaceTemplateList(ref common.ReferenceCallbac }, }, Dependencies: []string{ - "github.com/devsy-org/api/pkg/apis/management/v1.SpaceTemplate", metav1.ListMeta{}.OpenAPIModelName()}, + "github.com/devsy-org/api/pkg/apis/management/v1.VirtualClusterInstanceKubeConfig", metav1.ListMeta{}.OpenAPIModelName()}, } } -func schema_pkg_apis_management_v1_SpaceTemplateSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_VirtualClusterInstanceKubeConfigSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "SpaceTemplateSpec holds the specification", - Type: []string{"object"}, + Type: []string{"object"}, Properties: map[string]spec.Schema{ - "displayName": { + "certificateTTL": { SchemaProps: spec.SchemaProps{ - Description: "DisplayName is the name that is shown in the UI", - Type: []string{"string"}, - Format: "", + Description: "CertificateTTL holds the ttl (in seconds) to set for the certificate associated with the returned kubeconfig. This field is optional, if no value is provided, the certificate TTL will be set to one day. If set to zero, this will cause devsy to pass nil to the certificate signing request, which will result in the certificate being valid for the clusters `cluster-signing-duration` value which is typically one year.", + Type: []string{"integer"}, + Format: "int32", }, }, - "description": { + "server": { SchemaProps: spec.SchemaProps{ - Description: "Description describes the space template", + Description: "Server allows user to override server in the kubeconfig.", Type: []string{"string"}, Format: "", }, }, - "owner": { + "clientCert": { SchemaProps: spec.SchemaProps{ - Description: "Owner holds the owner of this object", - Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.UserOrTeam"), - }, - }, - "template": { - SchemaProps: spec.SchemaProps{ - Description: "Template holds the space template", - Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.SpaceTemplateDefinition"), - }, - }, - "parameters": { - SchemaProps: spec.SchemaProps{ - Description: "Parameters define additional app parameters that will set helm values", - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.AppParameter"), - }, - }, - }, - }, - }, - "versions": { - SchemaProps: spec.SchemaProps{ - Description: "Versions are different space template versions that can be referenced as well", - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.SpaceTemplateVersion"), - }, - }, - }, - }, - }, - "access": { - SchemaProps: spec.SchemaProps{ - Description: "Access holds the access rights for users and teams", - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.Access"), - }, - }, - }, - }, - }, - }, - }, - }, - Dependencies: []string{ - "github.com/devsy-org/api/pkg/apis/storage/v1.Access", "github.com/devsy-org/api/pkg/apis/storage/v1.AppParameter", "github.com/devsy-org/api/pkg/apis/storage/v1.SpaceTemplateDefinition", "github.com/devsy-org/api/pkg/apis/storage/v1.SpaceTemplateVersion", "github.com/devsy-org/api/pkg/apis/storage/v1.UserOrTeam"}, - } -} - -func schema_pkg_apis_management_v1_SpaceTemplateStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { - return common.OpenAPIDefinition{ - Schema: spec.Schema{ - SchemaProps: spec.SchemaProps{ - Description: "SpaceTemplateStatus holds the status", - Type: []string{"object"}, - Properties: map[string]spec.Schema{ - "apps": { - SchemaProps: spec.SchemaProps{ - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.EntityInfo"), - }, - }, - }, + Description: "ClientCert, if set to true, will return kube config with generated client certs instead of platform token", + Type: []string{"boolean"}, + Format: "", }, }, }, }, }, - Dependencies: []string{ - "github.com/devsy-org/api/pkg/apis/storage/v1.EntityInfo"}, } } -func schema_pkg_apis_management_v1_StandaloneEtcdPeer(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_VirtualClusterInstanceKubeConfigStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ Type: []string{"object"}, Properties: map[string]spec.Schema{ - "name": { - SchemaProps: spec.SchemaProps{ - Description: "Name is the name of the peer.", - Default: "", - Type: []string{"string"}, - Format: "", - }, - }, - "address": { + "kubeConfig": { SchemaProps: spec.SchemaProps{ - Description: "Address is the address of the peer.", - Default: "", + Description: "KubeConfig holds the final kubeconfig output", Type: []string{"string"}, Format: "", }, }, }, - Required: []string{"name", "address"}, }, }, } } -func schema_pkg_apis_management_v1_StandaloneEtcdPeerCoordinator(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_VirtualClusterInstanceList(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ Type: []string{"object"}, Properties: map[string]spec.Schema{ - "name": { + "kind": { SchemaProps: spec.SchemaProps{ - Description: "Name is the name of the peer.", - Default: "", + Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", Type: []string{"string"}, Format: "", }, }, - "address": { + "apiVersion": { SchemaProps: spec.SchemaProps{ - Description: "Address is the address of the peer.", - Default: "", + Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", Type: []string{"string"}, Format: "", }, }, - "isCoordinator": { + "metadata": { SchemaProps: spec.SchemaProps{ - Description: "IsCoordinator is true if the peer is the coordinator.", - Default: false, - Type: []string{"boolean"}, - Format: "", + Default: map[string]interface{}{}, + Ref: ref(metav1.ListMeta{}.OpenAPIModelName()), }, }, - }, - Required: []string{"name", "address", "isCoordinator"}, - }, - }, - } -} - -func schema_pkg_apis_management_v1_StandalonePKI(ref common.ReferenceCallback) common.OpenAPIDefinition { - return common.OpenAPIDefinition{ - Schema: spec.Schema{ - SchemaProps: spec.SchemaProps{ - Description: "StandalonePKI is a map of certificates filenames and certs", - Type: []string{"object"}, - Properties: map[string]spec.Schema{ - "certificates": { + "items": { SchemaProps: spec.SchemaProps{ - Type: []string{"object"}, - AdditionalProperties: &spec.SchemaOrBool{ - Allows: true, + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ - Type: []string{"string"}, - Format: "byte", + Default: map[string]interface{}{}, + Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.VirtualClusterInstance"), }, }, }, }, }, }, - Required: []string{"certificates"}, + Required: []string{"items"}, }, }, + Dependencies: []string{ + "github.com/devsy-org/api/pkg/apis/management/v1.VirtualClusterInstance", metav1.ListMeta{}.OpenAPIModelName()}, } } -func schema_pkg_apis_management_v1_SubjectAccessReview(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_VirtualClusterInstanceLog(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "User holds the user information", - Type: []string{"object"}, + Type: []string{"object"}, Properties: map[string]spec.Schema{ "kind": { SchemaProps: spec.SchemaProps{ @@ -18407,27 +18160,15 @@ func schema_pkg_apis_management_v1_SubjectAccessReview(ref common.ReferenceCallb Ref: ref(metav1.ObjectMeta{}.OpenAPIModelName()), }, }, - "spec": { - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.SubjectAccessReviewSpec"), - }, - }, - "status": { - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.SubjectAccessReviewStatus"), - }, - }, }, }, }, Dependencies: []string{ - "github.com/devsy-org/api/pkg/apis/management/v1.SubjectAccessReviewSpec", "github.com/devsy-org/api/pkg/apis/management/v1.SubjectAccessReviewStatus", metav1.ObjectMeta{}.OpenAPIModelName()}, + metav1.ObjectMeta{}.OpenAPIModelName()}, } } -func schema_pkg_apis_management_v1_SubjectAccessReviewList(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_VirtualClusterInstanceLogList(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ @@ -18460,7 +18201,7 @@ func schema_pkg_apis_management_v1_SubjectAccessReviewList(ref common.ReferenceC Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.SubjectAccessReview"), + Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.VirtualClusterInstanceLog"), }, }, }, @@ -18471,141 +18212,105 @@ func schema_pkg_apis_management_v1_SubjectAccessReviewList(ref common.ReferenceC }, }, Dependencies: []string{ - "github.com/devsy-org/api/pkg/apis/management/v1.SubjectAccessReview", metav1.ListMeta{}.OpenAPIModelName()}, + "github.com/devsy-org/api/pkg/apis/management/v1.VirtualClusterInstanceLog", metav1.ListMeta{}.OpenAPIModelName()}, } } -func schema_pkg_apis_management_v1_SubjectAccessReviewSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_VirtualClusterInstanceLogOptions(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ Type: []string{"object"}, Properties: map[string]spec.Schema{ - "resourceAttributes": { + "kind": { SchemaProps: spec.SchemaProps{ - Description: "ResourceAuthorizationAttributes describes information for a resource access request", - Ref: ref("k8s.io/api/authorization/v1.ResourceAttributes"), + Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + Type: []string{"string"}, + Format: "", }, }, - "nonResourceAttributes": { + "apiVersion": { SchemaProps: spec.SchemaProps{ - Description: "NonResourceAttributes describes information for a non-resource access request", - Ref: ref("k8s.io/api/authorization/v1.NonResourceAttributes"), + Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + Type: []string{"string"}, + Format: "", }, }, - "user": { + "container": { SchemaProps: spec.SchemaProps{ - Description: "User is the user you're testing for. If you specify \"User\" but not \"Groups\", then is it interpreted as \"What if User were not a member of any groups", + Description: "The container for which to stream logs. Defaults to only container if there is one container in the pod.", Type: []string{"string"}, Format: "", }, }, - "groups": { - VendorExtensible: spec.VendorExtensible{ - Extensions: spec.Extensions{ - "x-kubernetes-list-type": "atomic", - }, + "follow": { + SchemaProps: spec.SchemaProps{ + Description: "Follow the log stream of the pod. Defaults to false.", + Type: []string{"boolean"}, + Format: "", }, + }, + "previous": { SchemaProps: spec.SchemaProps{ - Description: "Groups is the groups you're testing for.", - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: "", - Type: []string{"string"}, - Format: "", - }, - }, - }, + Description: "Return previous terminated container logs. Defaults to false.", + Type: []string{"boolean"}, + Format: "", }, }, - "extra": { + "sinceSeconds": { SchemaProps: spec.SchemaProps{ - Description: "Extra corresponds to the user.Info.GetExtra() method from the authenticator. Since that is input to the authorizer it needs a reflection here.", - Type: []string{"object"}, - AdditionalProperties: &spec.SchemaOrBool{ - Allows: true, - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: "", - Type: []string{"string"}, - Format: "", - }, - }, - }, - }, - }, - }, + Description: "A relative time in seconds before the current time from which to show logs. If this value precedes the time a pod was started, only logs since the pod start will be returned. If this value is in the future, no logs will be returned. Only one of sinceSeconds or sinceTime may be specified.", + Type: []string{"integer"}, + Format: "int64", }, }, - "uid": { + "sinceTime": { SchemaProps: spec.SchemaProps{ - Description: "UID information about the requesting user.", - Type: []string{"string"}, - Format: "", + Description: "An RFC3339 timestamp from which to show logs. If this value precedes the time a pod was started, only logs since the pod start will be returned. If this value is in the future, no logs will be returned. Only one of sinceSeconds or sinceTime may be specified.", + Ref: ref(metav1.Time{}.OpenAPIModelName()), }, }, - }, - }, - }, - Dependencies: []string{ - "k8s.io/api/authorization/v1.NonResourceAttributes", "k8s.io/api/authorization/v1.ResourceAttributes"}, - } -} - -func schema_pkg_apis_management_v1_SubjectAccessReviewStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { - return common.OpenAPIDefinition{ - Schema: spec.Schema{ - SchemaProps: spec.SchemaProps{ - Type: []string{"object"}, - Properties: map[string]spec.Schema{ - "allowed": { + "timestamps": { SchemaProps: spec.SchemaProps{ - Description: "Allowed is required. True if the action would be allowed, false otherwise.", - Default: false, + Description: "If true, add an RFC3339 or RFC3339Nano timestamp at the beginning of every line of log output. Defaults to false.", Type: []string{"boolean"}, Format: "", }, }, - "denied": { + "tailLines": { SchemaProps: spec.SchemaProps{ - Description: "Denied is optional. True if the action would be denied, otherwise false. If both allowed is false and denied is false, then the authorizer has no opinion on whether to authorize the action. Denied may not be true if Allowed is true.", - Type: []string{"boolean"}, - Format: "", + Description: "If set, the number of lines from the end of the logs to show. If not specified, logs are shown from the creation of the container or sinceSeconds or sinceTime", + Type: []string{"integer"}, + Format: "int64", }, }, - "reason": { + "limitBytes": { SchemaProps: spec.SchemaProps{ - Description: "Reason is optional. It indicates why a request was allowed or denied.", - Type: []string{"string"}, - Format: "", + Description: "If set, the number of bytes to read from the server before terminating the log output. This may not display a complete final line of logging, and may return slightly more or slightly less than the specified limit.", + Type: []string{"integer"}, + Format: "int64", }, }, - "evaluationError": { + "insecureSkipTLSVerifyBackend": { SchemaProps: spec.SchemaProps{ - Description: "EvaluationError is an indication that some error occurred during the authorization check. It is entirely possible to get an error and be able to continue determine authorization status in spite of it. For instance, RBAC can be missing a role, but enough roles are still present and bound to reason about the request.", - Type: []string{"string"}, + Description: "insecureSkipTLSVerifyBackend indicates that the apiserver should not confirm the validity of the serving certificate of the backend it is connecting to. This will make the HTTPS connection between the apiserver and the backend insecure. This means the apiserver cannot verify the log data it is receiving came from the real kubelet. If the kubelet is configured to verify the apiserver's TLS credentials, it does not mean the connection to the real kubelet is vulnerable to a man in the middle attack (e.g. an attacker could not intercept the actual log data coming from the real kubelet).", + Type: []string{"boolean"}, Format: "", }, }, }, - Required: []string{"allowed"}, }, }, + Dependencies: []string{ + metav1.Time{}.OpenAPIModelName()}, } } -func schema_pkg_apis_management_v1_Task(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_VirtualClusterInstanceSnapshot(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "Task holds the Task information", - Type: []string{"object"}, + Type: []string{"object"}, Properties: map[string]spec.Schema{ "kind": { SchemaProps: spec.SchemaProps{ @@ -18627,27 +18332,21 @@ func schema_pkg_apis_management_v1_Task(ref common.ReferenceCallback) common.Ope Ref: ref(metav1.ObjectMeta{}.OpenAPIModelName()), }, }, - "spec": { - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.TaskSpec"), - }, - }, "status": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.TaskStatus"), + Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.VirtualClusterInstanceSnapshotStatus"), }, }, }, }, }, Dependencies: []string{ - "github.com/devsy-org/api/pkg/apis/management/v1.TaskSpec", "github.com/devsy-org/api/pkg/apis/management/v1.TaskStatus", metav1.ObjectMeta{}.OpenAPIModelName()}, + "github.com/devsy-org/api/pkg/apis/management/v1.VirtualClusterInstanceSnapshotStatus", metav1.ObjectMeta{}.OpenAPIModelName()}, } } -func schema_pkg_apis_management_v1_TaskList(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_VirtualClusterInstanceSnapshotList(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ @@ -18680,7 +18379,7 @@ func schema_pkg_apis_management_v1_TaskList(ref common.ReferenceCallback) common Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.Task"), + Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.VirtualClusterInstanceSnapshot"), }, }, }, @@ -18691,163 +18390,135 @@ func schema_pkg_apis_management_v1_TaskList(ref common.ReferenceCallback) common }, }, Dependencies: []string{ - "github.com/devsy-org/api/pkg/apis/management/v1.Task", metav1.ListMeta{}.OpenAPIModelName()}, - } -} - -func schema_pkg_apis_management_v1_TaskLog(ref common.ReferenceCallback) common.OpenAPIDefinition { - return common.OpenAPIDefinition{ - Schema: spec.Schema{ - SchemaProps: spec.SchemaProps{ - Type: []string{"object"}, - Properties: map[string]spec.Schema{ - "kind": { - SchemaProps: spec.SchemaProps{ - Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", - Type: []string{"string"}, - Format: "", - }, - }, - "apiVersion": { - SchemaProps: spec.SchemaProps{ - Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", - Type: []string{"string"}, - Format: "", - }, - }, - "metadata": { - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref(metav1.ObjectMeta{}.OpenAPIModelName()), - }, - }, - }, - }, - }, - Dependencies: []string{ - metav1.ObjectMeta{}.OpenAPIModelName()}, + "github.com/devsy-org/api/pkg/apis/management/v1.VirtualClusterInstanceSnapshot", metav1.ListMeta{}.OpenAPIModelName()}, } } -func schema_pkg_apis_management_v1_TaskLogList(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_VirtualClusterInstanceSnapshotStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ Type: []string{"object"}, Properties: map[string]spec.Schema{ - "kind": { - SchemaProps: spec.SchemaProps{ - Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", - Type: []string{"string"}, - Format: "", - }, - }, - "apiVersion": { - SchemaProps: spec.SchemaProps{ - Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", - Type: []string{"string"}, - Format: "", - }, - }, - "metadata": { - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref(metav1.ListMeta{}.OpenAPIModelName()), - }, - }, - "items": { + "snapshotTaken": { SchemaProps: spec.SchemaProps{ Type: []string{"array"}, Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.TaskLog"), + Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.SnapshotTaken"), }, }, }, }, }, }, - Required: []string{"items"}, }, }, Dependencies: []string{ - "github.com/devsy-org/api/pkg/apis/management/v1.TaskLog", metav1.ListMeta{}.OpenAPIModelName()}, + "github.com/devsy-org/api/pkg/apis/management/v1.SnapshotTaken"}, } } -func schema_pkg_apis_management_v1_TaskLogOptions(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_VirtualClusterInstanceSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Type: []string{"object"}, + Description: "VirtualClusterInstanceSpec holds the specification.", + Type: []string{"object"}, Properties: map[string]spec.Schema{ - "kind": { + "displayName": { SchemaProps: spec.SchemaProps{ - Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + Description: "DisplayName is the name that should be displayed in the UI", Type: []string{"string"}, Format: "", }, }, - "apiVersion": { + "description": { SchemaProps: spec.SchemaProps{ - Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + Description: "Description describes a virtual cluster instance", Type: []string{"string"}, Format: "", }, }, - "follow": { + "owner": { SchemaProps: spec.SchemaProps{ - Description: "Follow the log stream of the pod. Defaults to false.", - Type: []string{"boolean"}, - Format: "", + Description: "Owner holds the owner of this object", + Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.UserOrTeam"), }, }, - "previous": { + "templateRef": { SchemaProps: spec.SchemaProps{ - Description: "Return previous terminated container logs. Defaults to false.", - Type: []string{"boolean"}, - Format: "", + Description: "TemplateRef holds the virtual cluster template reference", + Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.TemplateRef"), }, }, - "sinceSeconds": { + "template": { SchemaProps: spec.SchemaProps{ - Description: "A relative time in seconds before the current time from which to show logs. If this value precedes the time a pod was started, only logs since the pod start will be returned. If this value is in the future, no logs will be returned. Only one of sinceSeconds or sinceTime may be specified.", - Type: []string{"integer"}, - Format: "int64", + Description: "Template is the inline template to use for virtual cluster creation. This is mutually exclusive with templateRef.", + Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.VirtualClusterTemplateDefinition"), }, }, - "sinceTime": { + "clusterRef": { SchemaProps: spec.SchemaProps{ - Description: "An RFC3339 timestamp from which to show logs. If this value precedes the time a pod was started, only logs since the pod start will be returned. If this value is in the future, no logs will be returned. Only one of sinceSeconds or sinceTime may be specified.", - Ref: ref(metav1.Time{}.OpenAPIModelName()), + Description: "ClusterRef is the reference to the connected cluster holding this virtual cluster", + Default: map[string]interface{}{}, + Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.VirtualClusterClusterRef"), }, }, - "timestamps": { + "parameters": { SchemaProps: spec.SchemaProps{ - Description: "If true, add an RFC3339 or RFC3339Nano timestamp at the beginning of every line of log output. Defaults to false.", - Type: []string{"boolean"}, + Description: "Parameters are values to pass to the template. The values should be encoded as YAML string where each parameter is represented as a top-level field key.", + Type: []string{"string"}, Format: "", }, }, - "tailLines": { + "extraAccessRules": { SchemaProps: spec.SchemaProps{ - Description: "If set, the number of lines from the end of the logs to show. If not specified, logs are shown from the creation of the container or sinceSeconds or sinceTime", - Type: []string{"integer"}, - Format: "int64", + Description: "ExtraAccessRules defines extra rules which users and teams should have which access to the virtual cluster.", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.InstanceAccessRule"), + }, + }, + }, }, }, - "limitBytes": { + "access": { SchemaProps: spec.SchemaProps{ - Description: "If set, the number of bytes to read from the server before terminating the log output. This may not display a complete final line of logging, and may return slightly more or slightly less than the specified limit.", - Type: []string{"integer"}, - Format: "int64", + Description: "Access to the virtual cluster object itself", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.Access"), + }, + }, + }, }, }, - "insecureSkipTLSVerifyBackend": { + "networkPeer": { SchemaProps: spec.SchemaProps{ - Description: "insecureSkipTLSVerifyBackend indicates that the apiserver should not confirm the validity of the serving certificate of the backend it is connecting to. This will make the HTTPS connection between the apiserver and the backend insecure. This means the apiserver cannot verify the log data it is receiving came from the real kubelet. If the kubelet is configured to verify the apiserver's TLS credentials, it does not mean the connection to the real kubelet is vulnerable to a man in the middle attack (e.g. an attacker could not intercept the actual log data coming from the real kubelet).", + Description: "NetworkPeer specifies if the cluster is connected via tailscale.", + Type: []string{"boolean"}, + Format: "", + }, + }, + "external": { + SchemaProps: spec.SchemaProps{ + Description: "External specifies if the virtual cluster is managed by the platform agent or externally.", + Type: []string{"boolean"}, + Format: "", + }, + }, + "standalone": { + SchemaProps: spec.SchemaProps{ + Description: "Standalone specifies if the virtual cluster is standalone and not hosted in another Kubernetes cluster.", Type: []string{"boolean"}, Format: "", }, @@ -18856,144 +18527,131 @@ func schema_pkg_apis_management_v1_TaskLogOptions(ref common.ReferenceCallback) }, }, Dependencies: []string{ - metav1.Time{}.OpenAPIModelName()}, + "github.com/devsy-org/api/pkg/apis/storage/v1.Access", "github.com/devsy-org/api/pkg/apis/storage/v1.InstanceAccessRule", "github.com/devsy-org/api/pkg/apis/storage/v1.TemplateRef", "github.com/devsy-org/api/pkg/apis/storage/v1.UserOrTeam", "github.com/devsy-org/api/pkg/apis/storage/v1.VirtualClusterClusterRef", "github.com/devsy-org/api/pkg/apis/storage/v1.VirtualClusterTemplateDefinition"}, } } -func schema_pkg_apis_management_v1_TaskSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_VirtualClusterInstanceStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "TaskSpec holds the specification", + Description: "VirtualClusterInstanceStatus holds the status.", Type: []string{"object"}, Properties: map[string]spec.Schema{ - "displayName": { + "phase": { SchemaProps: spec.SchemaProps{ - Description: "DisplayName is the name that should be displayed in the UI", + Description: "Phase describes the current phase the virtual cluster instance is in", Type: []string{"string"}, Format: "", }, }, - "access": { + "reason": { SchemaProps: spec.SchemaProps{ - Description: "Access holds the access rights for users and teams", + Description: "Reason describes the reason in machine-readable form why the cluster is in the current phase", + Type: []string{"string"}, + Format: "", + }, + }, + "message": { + SchemaProps: spec.SchemaProps{ + Description: "Message describes the reason in human-readable form why the cluster is in the current phase", + Type: []string{"string"}, + Format: "", + }, + }, + "serviceUID": { + SchemaProps: spec.SchemaProps{ + Description: "ServiceUID is the service uid of the virtual cluster to uniquely identify it.", + Type: []string{"string"}, + Format: "", + }, + }, + "deployHash": { + SchemaProps: spec.SchemaProps{ + Description: "DeployHash is the hash of the last deployed values.", + Type: []string{"string"}, + Format: "", + }, + }, + "conditions": { + SchemaProps: spec.SchemaProps{ + Description: "Conditions holds several conditions the virtual cluster might be in", Type: []string{"array"}, Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.Access"), + Ref: ref("github.com/devsy-org/agentapi/pkg/apis/devsy/storage/v1.Condition"), }, }, }, }, }, - "scope": { - SchemaProps: spec.SchemaProps{ - Description: "Scope defines the scope of the access key.", - Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.AccessKeyScope"), - }, - }, - "owner": { + "virtualClusterObjects": { SchemaProps: spec.SchemaProps{ - Description: "Owner holds the owner of this object", - Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.UserOrTeam"), + Description: "VirtualClusterObjects are the objects that were applied within the virtual cluster itself", + Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.ObjectsStatus"), }, }, - "target": { + "spaceObjects": { SchemaProps: spec.SchemaProps{ - Description: "Target where this task should get executed", - Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.Target"), + Description: "SpaceObjects are the objects that were applied within the virtual cluster space", + Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.ObjectsStatus"), }, }, - "task": { + "virtualCluster": { SchemaProps: spec.SchemaProps{ - Description: "Task defines the task to execute", - Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.TaskDefinition"), + Description: "VirtualCluster is the template rendered with all the parameters", + Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.VirtualClusterTemplateDefinition"), }, }, - }, - }, - }, - Dependencies: []string{ - "github.com/devsy-org/api/pkg/apis/storage/v1.Access", "github.com/devsy-org/api/pkg/apis/storage/v1.AccessKeyScope", "github.com/devsy-org/api/pkg/apis/storage/v1.Target", "github.com/devsy-org/api/pkg/apis/storage/v1.TaskDefinition", "github.com/devsy-org/api/pkg/apis/storage/v1.UserOrTeam"}, - } -} - -func schema_pkg_apis_management_v1_TaskStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { - return common.OpenAPIDefinition{ - Schema: spec.Schema{ - SchemaProps: spec.SchemaProps{ - Description: "TaskStatus holds the status", - Type: []string{"object"}, - Properties: map[string]spec.Schema{ - "started": { + "ignoreReconciliation": { SchemaProps: spec.SchemaProps{ - Description: "Started determines if the task was started", + Description: "IgnoreReconciliation tells the controller to ignore reconciliation for this instance -- this is primarily used when migrating virtual cluster instances from project to project; this prevents a situation where there are two virtual cluster instances representing the same virtual cluster which could cause issues with concurrent reconciliations of the same object. Once the virtual cluster instance has been cloned and placed into the new project, this (the \"old\") virtual cluster instance can safely be deleted.", Type: []string{"boolean"}, Format: "", }, }, - "conditions": { + "sleepModeConfig": { SchemaProps: spec.SchemaProps{ - Description: "Conditions holds several conditions the virtual cluster might be in", - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref(storagev1.Condition{}.OpenAPIModelName()), - }, - }, - }, + Description: "SleepModeConfig is the sleep mode config of the space. This will only be shown in the front end.", + Ref: ref("github.com/devsy-org/agentapi/pkg/apis/devsy/cluster/v1.SleepModeConfig"), }, }, - "podPhase": { + "canUse": { SchemaProps: spec.SchemaProps{ - Description: "PodPhase describes the phase this task is in\n\nPossible enum values:\n - `\"Failed\"` means that all containers in the pod have terminated, and at least one container has terminated in a failure (exited with a non-zero exit code or was stopped by the system).\n - `\"Pending\"` means the pod has been accepted by the system, but one or more of the containers has not been started. This includes time before being bound to a node, as well as time spent pulling images onto the host.\n - `\"Running\"` means the pod has been bound to a node and all of the containers have been started. At least one container is still running or is in the process of being restarted.\n - `\"Succeeded\"` means that all containers in the pod have voluntarily terminated with a container exit code of 0, and the system is not going to restart any of these containers.\n - `\"Unknown\"` means that for some reason the state of the pod could not be obtained, typically due to an error in communicating with the host of the pod. Deprecated: It isn't being set since 2015 (74da3b14b0c0f658b3bb8d2def5094686d0e9095)", - Type: []string{"string"}, + Description: "CanUse specifies if the requester can use the instance", + Type: []string{"boolean"}, Format: "", - Enum: []interface{}{"Failed", "Pending", "Running", "Succeeded", "Unknown"}, - }, - }, - "observedGeneration": { - SchemaProps: spec.SchemaProps{ - Description: "ObservedGeneration is the latest generation observed by the controller.", - Type: []string{"integer"}, - Format: "int64", - }, - }, - "containerState": { - SchemaProps: spec.SchemaProps{ - Description: "DEPRECATED: This is not set anymore after migrating to runners ContainerState describes the container state of the task", - Ref: ref(corev1.ContainerStatus{}.OpenAPIModelName()), }, }, - "owner": { + "canUpdate": { SchemaProps: spec.SchemaProps{ - Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.UserOrTeamEntity"), + Description: "CanUpdate specifies if the requester can update the instance", + Type: []string{"boolean"}, + Format: "", }, }, - "cluster": { + "online": { SchemaProps: spec.SchemaProps{ - Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.EntityInfo"), + Description: "Online specifies if there is at least one network peer available for an agentless vCluster.", + Type: []string{"boolean"}, + Format: "", }, }, }, }, }, Dependencies: []string{ - storagev1.Condition{}.OpenAPIModelName(), "github.com/devsy-org/api/pkg/apis/storage/v1.EntityInfo", "github.com/devsy-org/api/pkg/apis/storage/v1.UserOrTeamEntity", corev1.ContainerStatus{}.OpenAPIModelName()}, + "github.com/devsy-org/agentapi/pkg/apis/devsy/cluster/v1.SleepModeConfig", "github.com/devsy-org/agentapi/pkg/apis/devsy/storage/v1.Condition", "github.com/devsy-org/api/pkg/apis/storage/v1.ObjectsStatus", "github.com/devsy-org/api/pkg/apis/storage/v1.VirtualClusterTemplateDefinition"}, } } -func schema_pkg_apis_management_v1_Team(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_VirtualClusterNodeAccessKey(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "Team holds the team information", + Description: "VirtualClusterNodeAccessKey holds the access key for the virtual cluster", Type: []string{"object"}, Properties: map[string]spec.Schema{ "kind": { @@ -19019,24 +18677,24 @@ func schema_pkg_apis_management_v1_Team(ref common.ReferenceCallback) common.Ope "spec": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.TeamSpec"), + Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.VirtualClusterNodeAccessKeySpec"), }, }, "status": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.TeamStatus"), + Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.VirtualClusterNodeAccessKeyStatus"), }, }, }, }, }, Dependencies: []string{ - "github.com/devsy-org/api/pkg/apis/management/v1.TeamSpec", "github.com/devsy-org/api/pkg/apis/management/v1.TeamStatus", metav1.ObjectMeta{}.OpenAPIModelName()}, + "github.com/devsy-org/api/pkg/apis/management/v1.VirtualClusterNodeAccessKeySpec", "github.com/devsy-org/api/pkg/apis/management/v1.VirtualClusterNodeAccessKeyStatus", metav1.ObjectMeta{}.OpenAPIModelName()}, } } -func schema_pkg_apis_management_v1_TeamAccessKeys(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_VirtualClusterNodeAccessKeyList(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ @@ -19059,83 +18717,115 @@ func schema_pkg_apis_management_v1_TeamAccessKeys(ref common.ReferenceCallback) "metadata": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref(metav1.ObjectMeta{}.OpenAPIModelName()), + Ref: ref(metav1.ListMeta{}.OpenAPIModelName()), }, }, - "accessKeys": { + "items": { SchemaProps: spec.SchemaProps{ Type: []string{"array"}, Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.OwnedAccessKey"), + Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.VirtualClusterNodeAccessKey"), }, }, }, }, }, }, + Required: []string{"items"}, }, }, Dependencies: []string{ - "github.com/devsy-org/api/pkg/apis/management/v1.OwnedAccessKey", metav1.ObjectMeta{}.OpenAPIModelName()}, + "github.com/devsy-org/api/pkg/apis/management/v1.VirtualClusterNodeAccessKey", metav1.ListMeta{}.OpenAPIModelName()}, } } -func schema_pkg_apis_management_v1_TeamAccessKeysList(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_VirtualClusterNodeAccessKeySpec(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"object"}, + }, + }, + } +} + +func schema_pkg_apis_management_v1_VirtualClusterNodeAccessKeyStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ Type: []string{"object"}, Properties: map[string]spec.Schema{ - "kind": { + "accessKey": { SchemaProps: spec.SchemaProps{ - Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + Description: "AccessKey is the access key used by the agent", Type: []string{"string"}, Format: "", }, }, - "apiVersion": { + }, + }, + }, + } +} + +func schema_pkg_apis_management_v1_VirtualClusterRole(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "namespace": { SchemaProps: spec.SchemaProps{ - Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + Description: "Namespace of the referenced object", Type: []string{"string"}, Format: "", }, }, - "metadata": { + "name": { SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref(metav1.ListMeta{}.OpenAPIModelName()), + Description: "Name of the referenced object", + Type: []string{"string"}, + Format: "", }, }, - "items": { + "displayName": { SchemaProps: spec.SchemaProps{ - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.TeamAccessKeys"), - }, - }, - }, + Description: "DisplayName is the name of the object to display in the UI", + Type: []string{"string"}, + Format: "", + }, + }, + "role": { + SchemaProps: spec.SchemaProps{ + Description: "Role is the cluster role inside the virtual cluster. One of cluster-admin, admin, edit, or view", + Type: []string{"string"}, + Format: "", + }, + }, + "assignedVia": { + SchemaProps: spec.SchemaProps{ + Description: "AssignedVia describes the resource that establishes the project membership", + Default: map[string]interface{}{}, + Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.AssignedVia"), }, }, }, - Required: []string{"items"}, }, }, Dependencies: []string{ - "github.com/devsy-org/api/pkg/apis/management/v1.TeamAccessKeys", metav1.ListMeta{}.OpenAPIModelName()}, + "github.com/devsy-org/api/pkg/apis/management/v1.AssignedVia"}, } } -func schema_pkg_apis_management_v1_TeamClusters(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_VirtualClusterSchema(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Type: []string{"object"}, + Description: "VirtualClusterSchema holds config request and response data for virtual clusters", + Type: []string{"object"}, Properties: map[string]spec.Schema{ "kind": { SchemaProps: spec.SchemaProps{ @@ -19157,28 +18847,27 @@ func schema_pkg_apis_management_v1_TeamClusters(ref common.ReferenceCallback) co Ref: ref(metav1.ObjectMeta{}.OpenAPIModelName()), }, }, - "clusters": { + "spec": { SchemaProps: spec.SchemaProps{ - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.ClusterAccounts"), - }, - }, - }, + Default: map[string]interface{}{}, + Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.VirtualClusterSchemaSpec"), + }, + }, + "status": { + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.VirtualClusterSchemaStatus"), }, }, }, }, }, Dependencies: []string{ - "github.com/devsy-org/api/pkg/apis/management/v1.ClusterAccounts", metav1.ObjectMeta{}.OpenAPIModelName()}, + "github.com/devsy-org/api/pkg/apis/management/v1.VirtualClusterSchemaSpec", "github.com/devsy-org/api/pkg/apis/management/v1.VirtualClusterSchemaStatus", metav1.ObjectMeta{}.OpenAPIModelName()}, } } -func schema_pkg_apis_management_v1_TeamClustersList(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_VirtualClusterSchemaList(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ @@ -19211,7 +18900,7 @@ func schema_pkg_apis_management_v1_TeamClustersList(ref common.ReferenceCallback Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.TeamClusters"), + Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.VirtualClusterSchema"), }, }, }, @@ -19222,63 +18911,63 @@ func schema_pkg_apis_management_v1_TeamClustersList(ref common.ReferenceCallback }, }, Dependencies: []string{ - "github.com/devsy-org/api/pkg/apis/management/v1.TeamClusters", metav1.ListMeta{}.OpenAPIModelName()}, + "github.com/devsy-org/api/pkg/apis/management/v1.VirtualClusterSchema", metav1.ListMeta{}.OpenAPIModelName()}, } } -func schema_pkg_apis_management_v1_TeamList(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_VirtualClusterSchemaSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Type: []string{"object"}, + Description: "VirtualClusterSchemaSpec holds the specification", + Type: []string{"object"}, Properties: map[string]spec.Schema{ - "kind": { + "version": { SchemaProps: spec.SchemaProps{ - Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + Description: "Version is the version of the virtual cluster", Type: []string{"string"}, Format: "", }, }, - "apiVersion": { + }, + }, + }, + } +} + +func schema_pkg_apis_management_v1_VirtualClusterSchemaStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "VirtualClusterSchemaStatus holds the status", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "schema": { SchemaProps: spec.SchemaProps{ - Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + Description: "Schema is the schema of the virtual cluster", Type: []string{"string"}, Format: "", }, }, - "metadata": { - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref(metav1.ListMeta{}.OpenAPIModelName()), - }, - }, - "items": { + "defaultValues": { SchemaProps: spec.SchemaProps{ - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.Team"), - }, - }, - }, + Description: "DefaultValues are the default values of the virtual cluster", + Type: []string{"string"}, + Format: "", }, }, }, - Required: []string{"items"}, }, }, - Dependencies: []string{ - "github.com/devsy-org/api/pkg/apis/management/v1.Team", metav1.ListMeta{}.OpenAPIModelName()}, } } -func schema_pkg_apis_management_v1_TeamObjectPermissions(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_VirtualClusterStandalone(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Type: []string{"object"}, + Description: "VirtualClusterStandalone holds kube config request and response data for virtual clusters", + Type: []string{"object"}, Properties: map[string]spec.Schema{ "kind": { SchemaProps: spec.SchemaProps{ @@ -19300,28 +18989,27 @@ func schema_pkg_apis_management_v1_TeamObjectPermissions(ref common.ReferenceCal Ref: ref(metav1.ObjectMeta{}.OpenAPIModelName()), }, }, - "objectPermissions": { + "spec": { SchemaProps: spec.SchemaProps{ - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.ObjectPermission"), - }, - }, - }, + Default: map[string]interface{}{}, + Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.VirtualClusterStandaloneSpec"), + }, + }, + "status": { + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.VirtualClusterStandaloneStatus"), }, }, }, }, }, Dependencies: []string{ - "github.com/devsy-org/api/pkg/apis/management/v1.ObjectPermission", metav1.ObjectMeta{}.OpenAPIModelName()}, + "github.com/devsy-org/api/pkg/apis/management/v1.VirtualClusterStandaloneSpec", "github.com/devsy-org/api/pkg/apis/management/v1.VirtualClusterStandaloneStatus", metav1.ObjectMeta{}.OpenAPIModelName()}, } } -func schema_pkg_apis_management_v1_TeamObjectPermissionsList(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_VirtualClusterStandaloneList(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ @@ -19354,7 +19042,7 @@ func schema_pkg_apis_management_v1_TeamObjectPermissionsList(ref common.Referenc Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.TeamObjectPermissions"), + Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.VirtualClusterStandalone"), }, }, }, @@ -19365,115 +19053,123 @@ func schema_pkg_apis_management_v1_TeamObjectPermissionsList(ref common.Referenc }, }, Dependencies: []string{ - "github.com/devsy-org/api/pkg/apis/management/v1.TeamObjectPermissions", metav1.ListMeta{}.OpenAPIModelName()}, + "github.com/devsy-org/api/pkg/apis/management/v1.VirtualClusterStandalone", metav1.ListMeta{}.OpenAPIModelName()}, } } -func schema_pkg_apis_management_v1_TeamPermissions(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_VirtualClusterStandaloneSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ Type: []string{"object"}, Properties: map[string]spec.Schema{ - "kind": { - SchemaProps: spec.SchemaProps{ - Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", - Type: []string{"string"}, - Format: "", - }, - }, - "apiVersion": { + "currentPeer": { SchemaProps: spec.SchemaProps{ - Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", - Type: []string{"string"}, - Format: "", + Description: "CurrentPeer is the current peer that calls this API. The API will make sure this peer is added to the etcd peers list. If this is the first peer, it will be the coordinator.", + Default: map[string]interface{}{}, + Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.StandaloneEtcdPeer"), }, }, - "metadata": { + "currentPKI": { SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref(metav1.ObjectMeta{}.OpenAPIModelName()), + Description: "CurrentPKI contains certs bundle for vCluster", + Default: map[string]interface{}{}, + Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.StandalonePKI"), }, }, - "members": { + }, + Required: []string{"currentPeer", "currentPKI"}, + }, + }, + Dependencies: []string{ + "github.com/devsy-org/api/pkg/apis/management/v1.StandaloneEtcdPeer", "github.com/devsy-org/api/pkg/apis/management/v1.StandalonePKI"}, + } +} + +func schema_pkg_apis_management_v1_VirtualClusterStandaloneStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "etcdPeers": { SchemaProps: spec.SchemaProps{ - Description: "Members gives users that are team members", + Description: "ETCDPeers holds the comma separated list of etcd peers addresses. It is used as a peer cache for vCluster Standalone deployed in HA mode via NodeProvider.", Type: []string{"array"}, Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.ObjectName"), + Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.StandaloneEtcdPeerCoordinator"), }, }, }, }, }, - "projectMemberships": { + "currentPKI": { SchemaProps: spec.SchemaProps{ - Description: "ProjectMemberships gives information about the team's project membership", - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.ProjectMembership"), - }, - }, - }, + Description: "PKI returns certs bundle for vCluster", + Default: map[string]interface{}{}, + Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.StandalonePKI"), }, }, - "managementRoles": { + }, + Required: []string{"etcdPeers", "currentPKI"}, + }, + }, + Dependencies: []string{ + "github.com/devsy-org/api/pkg/apis/management/v1.StandaloneEtcdPeerCoordinator", "github.com/devsy-org/api/pkg/apis/management/v1.StandalonePKI"}, + } +} + +func schema_pkg_apis_management_v1_VirtualClusterTemplate(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "VirtualClusterTemplate holds the information", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "kind": { SchemaProps: spec.SchemaProps{ - Description: "ManagementRoles gives information about the team's assigned management roles", - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.ManagementRole"), - }, - }, - }, + Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + Type: []string{"string"}, + Format: "", }, }, - "clusterAccessRoles": { + "apiVersion": { SchemaProps: spec.SchemaProps{ - Description: "ClustersAccessRoles gives information about the team's assigned cluster roles and the clusters they apply to", - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.ClusterAccessRole"), - }, - }, - }, + Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + Type: []string{"string"}, + Format: "", }, }, - "virtualClusterRoles": { + "metadata": { SchemaProps: spec.SchemaProps{ - Description: "VirtualClusterRoles give information about the team's cluster role within the virtual cluster", - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.VirtualClusterRole"), - }, - }, - }, + Default: map[string]interface{}{}, + Ref: ref(metav1.ObjectMeta{}.OpenAPIModelName()), + }, + }, + "spec": { + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.VirtualClusterTemplateSpec"), + }, + }, + "status": { + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.VirtualClusterTemplateStatus"), }, }, }, }, }, Dependencies: []string{ - "github.com/devsy-org/api/pkg/apis/management/v1.ClusterAccessRole", "github.com/devsy-org/api/pkg/apis/management/v1.ManagementRole", "github.com/devsy-org/api/pkg/apis/management/v1.ObjectName", "github.com/devsy-org/api/pkg/apis/management/v1.ProjectMembership", "github.com/devsy-org/api/pkg/apis/management/v1.VirtualClusterRole", metav1.ObjectMeta{}.OpenAPIModelName()}, + "github.com/devsy-org/api/pkg/apis/management/v1.VirtualClusterTemplateSpec", "github.com/devsy-org/api/pkg/apis/management/v1.VirtualClusterTemplateStatus", metav1.ObjectMeta{}.OpenAPIModelName()}, } } -func schema_pkg_apis_management_v1_TeamPermissionsList(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_VirtualClusterTemplateList(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ @@ -19506,7 +19202,7 @@ func schema_pkg_apis_management_v1_TeamPermissionsList(ref common.ReferenceCallb Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.TeamPermissions"), + Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.VirtualClusterTemplate"), }, }, }, @@ -19517,26 +19213,27 @@ func schema_pkg_apis_management_v1_TeamPermissionsList(ref common.ReferenceCallb }, }, Dependencies: []string{ - "github.com/devsy-org/api/pkg/apis/management/v1.TeamPermissions", metav1.ListMeta{}.OpenAPIModelName()}, + "github.com/devsy-org/api/pkg/apis/management/v1.VirtualClusterTemplate", metav1.ListMeta{}.OpenAPIModelName()}, } } -func schema_pkg_apis_management_v1_TeamSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_management_v1_VirtualClusterTemplateSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Type: []string{"object"}, + Description: "VirtualClusterTemplateSpec holds the specification.", + Type: []string{"object"}, Properties: map[string]spec.Schema{ "displayName": { SchemaProps: spec.SchemaProps{ - Description: "The display name shown in the UI", + Description: "DisplayName is the name that is shown in the UI", Type: []string{"string"}, Format: "", }, }, "description": { SchemaProps: spec.SchemaProps{ - Description: "Description describes a cluster access object", + Description: "Description describes the virtual cluster template", Type: []string{"string"}, Format: "", }, @@ -19547,79 +19244,83 @@ func schema_pkg_apis_management_v1_TeamSpec(ref common.ReferenceCallback) common Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.UserOrTeam"), }, }, - "username": { + "template": { SchemaProps: spec.SchemaProps{ - Description: "The username of the team that will be used for identification and docker registry namespace", - Type: []string{"string"}, - Format: "", + Description: "Template holds the virtual cluster template", + Default: map[string]interface{}{}, + Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.VirtualClusterTemplateDefinition"), }, }, - "users": { + "parameters": { SchemaProps: spec.SchemaProps{ - Description: "The devsy users that belong to a team", + Description: "Parameters define additional app parameters that will set helm values", Type: []string{"array"}, Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ - Default: "", - Type: []string{"string"}, - Format: "", + Default: map[string]interface{}{}, + Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.AppParameter"), }, }, }, }, }, - "groups": { + "versions": { SchemaProps: spec.SchemaProps{ - Description: "The groups defined in a token that belong to a team", + Description: "Versions are different versions of the template that can be referenced as well", Type: []string{"array"}, Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ - Default: "", - Type: []string{"string"}, - Format: "", + Default: map[string]interface{}{}, + Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.VirtualClusterTemplateVersion"), }, }, }, }, }, - "imagePullSecrets": { + "access": { SchemaProps: spec.SchemaProps{ - Description: "ImagePullSecrets holds secret references to image pull secrets the team has access to.", + Description: "Access holds the access rights for users and teams", Type: []string{"array"}, Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ - Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.KindSecretRef"), + Default: map[string]interface{}{}, + Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.Access"), }, }, }, }, }, - "clusterRoles": { + "spaceTemplateRef": { SchemaProps: spec.SchemaProps{ - Description: "ClusterRoles define the cluster roles that the users should have assigned in the cluster.", - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.ClusterRoleRef"), - }, - }, - }, + Description: "DEPRECATED: SpaceTemplate to use to create the virtual cluster space if it does not exist", + Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.VirtualClusterTemplateSpaceTemplateRef"), }, }, - "access": { + }, + }, + }, + Dependencies: []string{ + "github.com/devsy-org/api/pkg/apis/storage/v1.Access", "github.com/devsy-org/api/pkg/apis/storage/v1.AppParameter", "github.com/devsy-org/api/pkg/apis/storage/v1.UserOrTeam", "github.com/devsy-org/api/pkg/apis/storage/v1.VirtualClusterTemplateDefinition", "github.com/devsy-org/api/pkg/apis/storage/v1.VirtualClusterTemplateSpaceTemplateRef", "github.com/devsy-org/api/pkg/apis/storage/v1.VirtualClusterTemplateVersion"}, + } +} + +func schema_pkg_apis_management_v1_VirtualClusterTemplateStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "VirtualClusterTemplateStatus holds the status.", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "apps": { SchemaProps: spec.SchemaProps{ - Description: "Access holds the access rights for users and teams", - Type: []string{"array"}, + Type: []string{"array"}, Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.Access"), + Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.EntityInfo"), }, }, }, @@ -19629,25 +19330,96 @@ func schema_pkg_apis_management_v1_TeamSpec(ref common.ReferenceCallback) common }, }, Dependencies: []string{ - "github.com/devsy-org/api/pkg/apis/storage/v1.Access", "github.com/devsy-org/api/pkg/apis/storage/v1.ClusterRoleRef", "github.com/devsy-org/api/pkg/apis/storage/v1.KindSecretRef", "github.com/devsy-org/api/pkg/apis/storage/v1.UserOrTeam"}, + "github.com/devsy-org/api/pkg/apis/storage/v1.EntityInfo"}, } } -func schema_pkg_apis_management_v1_TeamStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_storage_v1_Access(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Type: []string{"object"}, + Description: "Access describes the access to a secret", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "name": { + SchemaProps: spec.SchemaProps{ + Description: "Name is an optional name that is used for this access rule", + Type: []string{"string"}, + Format: "", + }, + }, + "verbs": { + SchemaProps: spec.SchemaProps{ + Description: "Verbs is a list of Verbs that apply to ALL the ResourceKinds and AttributeRestrictions contained in this rule. VerbAll represents all kinds.", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + }, + }, + }, + "subresources": { + SchemaProps: spec.SchemaProps{ + Description: "Subresources defines the sub resources that are allowed by this access rule", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + }, + }, + }, + "users": { + SchemaProps: spec.SchemaProps{ + Description: "Users specifies which users should be able to access this secret with the aforementioned verbs", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + }, + }, + }, + "teams": { + SchemaProps: spec.SchemaProps{ + Description: "Teams specifies which teams should be able to access this secret with the aforementioned verbs", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + }, + }, + }, + }, + Required: []string{"verbs"}, }, }, } } -func schema_pkg_apis_management_v1_TranslateDevsyResourceName(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_storage_v1_AccessKey(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "TranslateDevsyResourceName holds rename request and response data for given resource", + Description: "AccessKey holds the session information.", Type: []string{"object"}, Properties: map[string]spec.Schema{ "kind": { @@ -19673,28 +19445,29 @@ func schema_pkg_apis_management_v1_TranslateDevsyResourceName(ref common.Referen "spec": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.TranslateDevsyResourceNameSpec"), + Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.AccessKeySpec"), }, }, "status": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.TranslateDevsyResourceNameStatus"), + Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.AccessKeyStatus"), }, }, }, }, }, Dependencies: []string{ - "github.com/devsy-org/api/pkg/apis/management/v1.TranslateDevsyResourceNameSpec", "github.com/devsy-org/api/pkg/apis/management/v1.TranslateDevsyResourceNameStatus", metav1.ObjectMeta{}.OpenAPIModelName()}, + "github.com/devsy-org/api/pkg/apis/storage/v1.AccessKeySpec", "github.com/devsy-org/api/pkg/apis/storage/v1.AccessKeyStatus", metav1.ObjectMeta{}.OpenAPIModelName()}, } } -func schema_pkg_apis_management_v1_TranslateDevsyResourceNameList(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_storage_v1_AccessKeyList(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Type: []string{"object"}, + Description: "AccessKeyList contains a list of AccessKey.", + Type: []string{"object"}, Properties: map[string]spec.Schema{ "kind": { SchemaProps: spec.SchemaProps{ @@ -19723,7 +19496,7 @@ func schema_pkg_apis_management_v1_TranslateDevsyResourceNameList(ref common.Ref Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.TranslateDevsyResourceName"), + Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.AccessKey"), }, }, }, @@ -19734,264 +19507,273 @@ func schema_pkg_apis_management_v1_TranslateDevsyResourceNameList(ref common.Ref }, }, Dependencies: []string{ - "github.com/devsy-org/api/pkg/apis/management/v1.TranslateDevsyResourceName", metav1.ListMeta{}.OpenAPIModelName()}, + "github.com/devsy-org/api/pkg/apis/storage/v1.AccessKey", metav1.ListMeta{}.OpenAPIModelName()}, } } -func schema_pkg_apis_management_v1_TranslateDevsyResourceNameSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_storage_v1_AccessKeyOIDC(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "TranslateDevsyResourceNameSpec holds the specification", - Type: []string{"object"}, + Type: []string{"object"}, Properties: map[string]spec.Schema{ - "name": { + "idToken": { SchemaProps: spec.SchemaProps{ - Description: "Name is the name of resource we want to rename", - Default: "", + Description: "The current id token that was created during login", Type: []string{"string"}, - Format: "", + Format: "byte", }, }, - "namespace": { + "accessToken": { SchemaProps: spec.SchemaProps{ - Description: "Namespace is the name of namespace in which this resource is running", - Default: "", + Description: "The current access token that was created during login", Type: []string{"string"}, - Format: "", + Format: "byte", }, }, - "devsyName": { + "refreshToken": { SchemaProps: spec.SchemaProps{ - Description: "DevsyName is the name of vCluster in which this resource is running", - Default: "", + Description: "The current refresh token that was created during login", Type: []string{"string"}, - Format: "", + Format: "byte", }, }, - }, - Required: []string{"name", "namespace", "devsyName"}, - }, - }, - } -} - -func schema_pkg_apis_management_v1_TranslateDevsyResourceNameStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { - return common.OpenAPIDefinition{ - Schema: spec.Schema{ - SchemaProps: spec.SchemaProps{ - Description: "TranslateDevsyResourceNameStatus holds the status", - Type: []string{"object"}, - Properties: map[string]spec.Schema{ - "name": { + "lastRefresh": { SchemaProps: spec.SchemaProps{ - Description: "Name is the converted name of resource", - Type: []string{"string"}, - Format: "", + Description: "The last time the id token was refreshed", + Ref: ref(metav1.Time{}.OpenAPIModelName()), }, }, }, }, }, + Dependencies: []string{ + metav1.Time{}.OpenAPIModelName()}, } } -func schema_pkg_apis_management_v1_UsageDownload(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_storage_v1_AccessKeyOIDCProvider(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "UsageDownload returns a zip of CSV files containing table data from the usage postgres database", - Type: []string{"object"}, + Type: []string{"object"}, Properties: map[string]spec.Schema{ - "kind": { + "clientId": { SchemaProps: spec.SchemaProps{ - Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + Description: "ClientId the token was generated for", Type: []string{"string"}, Format: "", }, }, - "apiVersion": { + "nonce": { SchemaProps: spec.SchemaProps{ - Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + Description: "Nonce to use", Type: []string{"string"}, Format: "", }, }, - "metadata": { - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref(metav1.ObjectMeta{}.OpenAPIModelName()), - }, - }, - "spec": { + "redirectUri": { SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.UsageDownloadSpec"), + Description: "RedirectUri to use", + Type: []string{"string"}, + Format: "", }, }, - "status": { + "scopes": { SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.UsageDownloadStatus"), + Description: "Scopes to use", + Type: []string{"string"}, + Format: "", }, }, }, }, }, - Dependencies: []string{ - "github.com/devsy-org/api/pkg/apis/management/v1.UsageDownloadSpec", "github.com/devsy-org/api/pkg/apis/management/v1.UsageDownloadStatus", metav1.ObjectMeta{}.OpenAPIModelName()}, } } -func schema_pkg_apis_management_v1_UsageDownloadList(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_storage_v1_AccessKeyScope(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ Type: []string{"object"}, Properties: map[string]spec.Schema{ - "kind": { + "roles": { SchemaProps: spec.SchemaProps{ - Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", - Type: []string{"string"}, - Format: "", + Description: "Roles is a set of managed permissions to apply to the access key.", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.AccessKeyScopeRole"), + }, + }, + }, }, }, - "apiVersion": { + "projects": { SchemaProps: spec.SchemaProps{ - Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", - Type: []string{"string"}, - Format: "", + Description: "Projects specifies the projects the access key should have access to.", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.AccessKeyScopeProject"), + }, + }, + }, }, }, - "metadata": { + "spaces": { SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref(metav1.ListMeta{}.OpenAPIModelName()), + Description: "Spaces specifies the spaces the access key is allowed to access.", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.AccessKeyScopeSpace"), + }, + }, + }, }, }, - "items": { + "virtualClusters": { SchemaProps: spec.SchemaProps{ - Type: []string{"array"}, + Description: "VirtualClusters specifies the virtual clusters the access key is allowed to access.", + Type: []string{"array"}, Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.UsageDownload"), + Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.AccessKeyScopeVirtualCluster"), + }, + }, + }, + }, + }, + "clusters": { + SchemaProps: spec.SchemaProps{ + Description: "Clusters specifies the project cluster the access key is allowed to access.", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.AccessKeyScopeCluster"), + }, + }, + }, + }, + }, + "rules": { + SchemaProps: spec.SchemaProps{ + Description: "DEPRECATED: Use Projects, Spaces and VirtualClusters instead Rules specifies the rules that should apply to the access key.", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.AccessKeyScopeRule"), }, }, }, }, }, + "allowLoftCli": { + SchemaProps: spec.SchemaProps{ + Description: "AllowDevsyCLI allows certain read-only management requests to make sure devsy cli works correctly with this specific access key.\n\nDeprecated: Use the `roles` field instead\n ```yaml\n # Example:\n roles:\n - role: loftCLI\n ```", + Type: []string{"boolean"}, + Format: "", + }, + }, }, - Required: []string{"items"}, }, }, Dependencies: []string{ - "github.com/devsy-org/api/pkg/apis/management/v1.UsageDownload", metav1.ListMeta{}.OpenAPIModelName()}, + "github.com/devsy-org/api/pkg/apis/storage/v1.AccessKeyScopeCluster", "github.com/devsy-org/api/pkg/apis/storage/v1.AccessKeyScopeProject", "github.com/devsy-org/api/pkg/apis/storage/v1.AccessKeyScopeRole", "github.com/devsy-org/api/pkg/apis/storage/v1.AccessKeyScopeRule", "github.com/devsy-org/api/pkg/apis/storage/v1.AccessKeyScopeSpace", "github.com/devsy-org/api/pkg/apis/storage/v1.AccessKeyScopeVirtualCluster"}, } } -func schema_pkg_apis_management_v1_UsageDownloadSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_storage_v1_AccessKeyScopeCluster(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "cluster": { + SchemaProps: spec.SchemaProps{ + Description: "Cluster is the name of the cluster to access. You can specify * to select all clusters.", + Type: []string{"string"}, + Format: "", + }, + }, + }, }, }, } } -func schema_pkg_apis_management_v1_UsageDownloadStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_storage_v1_AccessKeyScopeProject(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ Type: []string{"object"}, - }, - }, - } -} - -func schema_pkg_apis_management_v1_User(ref common.ReferenceCallback) common.OpenAPIDefinition { - return common.OpenAPIDefinition{ - Schema: spec.Schema{ - SchemaProps: spec.SchemaProps{ - Description: "User holds the user information", - Type: []string{"object"}, Properties: map[string]spec.Schema{ - "kind": { - SchemaProps: spec.SchemaProps{ - Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", - Type: []string{"string"}, - Format: "", - }, - }, - "apiVersion": { + "project": { SchemaProps: spec.SchemaProps{ - Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + Description: "Project is the name of the project. You can specify * to select all projects.", Type: []string{"string"}, Format: "", }, }, - "metadata": { - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref(metav1.ObjectMeta{}.OpenAPIModelName()), - }, - }, - "spec": { - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.UserSpec"), - }, - }, - "status": { - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.UserStatus"), - }, - }, }, }, }, - Dependencies: []string{ - "github.com/devsy-org/api/pkg/apis/management/v1.UserSpec", "github.com/devsy-org/api/pkg/apis/management/v1.UserStatus", metav1.ObjectMeta{}.OpenAPIModelName()}, } } -func schema_pkg_apis_management_v1_UserAccessKeys(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_storage_v1_AccessKeyScopeRole(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ Type: []string{"object"}, Properties: map[string]spec.Schema{ - "kind": { - SchemaProps: spec.SchemaProps{ - Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", - Type: []string{"string"}, - Format: "", - }, - }, - "apiVersion": { + "role": { SchemaProps: spec.SchemaProps{ - Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + Description: "Role is the name of the role to apply to the access key scope.\n\nPossible enum values:\n - `\"agent\"`\n - `\"devsy\"`\n - `\"devsy-cli\"`\n - `\"network-peer\"`\n - `\"runner\"`\n - `\"workspace\"`", Type: []string{"string"}, Format: "", + Enum: []interface{}{"agent", "devsy", "devsy-cli", "network-peer", "runner", "workspace"}, }, }, - "metadata": { + "projects": { SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref(metav1.ObjectMeta{}.OpenAPIModelName()), + Description: "Projects specifies the projects the access key should have access to.", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + }, }, }, - "accessKeys": { + "virtualClusters": { SchemaProps: spec.SchemaProps{ - Type: []string{"array"}, + Description: "VirtualClusters specifies the virtual clusters the access key is allowed to access.", + Type: []string{"array"}, Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.OwnedAccessKey"), + Default: "", + Type: []string{"string"}, + Format: "", }, }, }, @@ -20000,93 +19782,106 @@ func schema_pkg_apis_management_v1_UserAccessKeys(ref common.ReferenceCallback) }, }, }, - Dependencies: []string{ - "github.com/devsy-org/api/pkg/apis/management/v1.OwnedAccessKey", metav1.ObjectMeta{}.OpenAPIModelName()}, } } -func schema_pkg_apis_management_v1_UserAccessKeysList(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_storage_v1_AccessKeyScopeRule(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Type: []string{"object"}, + Description: "AccessKeyScopeRule describes a rule for the access key", + Type: []string{"object"}, Properties: map[string]spec.Schema{ - "kind": { + "verbs": { SchemaProps: spec.SchemaProps{ - Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", - Type: []string{"string"}, - Format: "", + Description: "The verbs that match this rule. An empty list implies every verb.", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + }, }, }, - "apiVersion": { + "resources": { SchemaProps: spec.SchemaProps{ - Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", - Type: []string{"string"}, - Format: "", + Description: "Resources that this rule matches. An empty list implies all kinds in all API groups.", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.GroupResources"), + }, + }, + }, }, }, - "metadata": { + "namespaces": { SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref(metav1.ListMeta{}.OpenAPIModelName()), + Description: "Namespaces that this rule matches. The empty string \"\" matches non-namespaced resources. An empty list implies every namespace.", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + }, }, }, - "items": { + "nonResourceURLs": { SchemaProps: spec.SchemaProps{ - Type: []string{"array"}, + Description: "NonResourceURLs is a set of URL paths that should be checked. *s are allowed, but only as the full, final step in the path. Examples:\n \"/metrics\" - Log requests for apiserver metrics\n \"/healthz*\" - Log all health checks", + Type: []string{"array"}, Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.UserAccessKeys"), + Default: "", + Type: []string{"string"}, + Format: "", }, }, }, }, }, - }, - Required: []string{"items"}, - }, - }, - Dependencies: []string{ - "github.com/devsy-org/api/pkg/apis/management/v1.UserAccessKeys", metav1.ListMeta{}.OpenAPIModelName()}, - } -} - -func schema_pkg_apis_management_v1_UserClusters(ref common.ReferenceCallback) common.OpenAPIDefinition { - return common.OpenAPIDefinition{ - Schema: spec.Schema{ - SchemaProps: spec.SchemaProps{ - Type: []string{"object"}, - Properties: map[string]spec.Schema{ - "kind": { + "requestTargets": { SchemaProps: spec.SchemaProps{ - Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", - Type: []string{"string"}, - Format: "", + Description: "RequestTargets is a list of request targets that are allowed. An empty list implies every request.", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + }, }, }, - "apiVersion": { + "cluster": { SchemaProps: spec.SchemaProps{ - Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + Description: "Cluster that this rule matches. Only applies to cluster requests. If this is set, no requests for non cluster requests are allowed. An empty cluster means no restrictions will apply.", Type: []string{"string"}, Format: "", }, }, - "metadata": { - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref(metav1.ObjectMeta{}.OpenAPIModelName()), - }, - }, - "clusters": { + "virtualClusters": { SchemaProps: spec.SchemaProps{ - Type: []string{"array"}, + Description: "VirtualClusters that this rule matches. Only applies to virtual cluster requests. An empty list means no restrictions will apply.", + Type: []string{"array"}, Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.ClusterAccounts"), + Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.AccessKeyVirtualCluster"), }, }, }, @@ -20096,176 +19891,303 @@ func schema_pkg_apis_management_v1_UserClusters(ref common.ReferenceCallback) co }, }, Dependencies: []string{ - "github.com/devsy-org/api/pkg/apis/management/v1.ClusterAccounts", metav1.ObjectMeta{}.OpenAPIModelName()}, + "github.com/devsy-org/api/pkg/apis/storage/v1.AccessKeyVirtualCluster", "github.com/devsy-org/api/pkg/apis/storage/v1.GroupResources"}, } } -func schema_pkg_apis_management_v1_UserClustersList(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_storage_v1_AccessKeyScopeSpace(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ Type: []string{"object"}, Properties: map[string]spec.Schema{ - "kind": { + "project": { SchemaProps: spec.SchemaProps{ - Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + Description: "Project is the name of the project.", Type: []string{"string"}, Format: "", }, }, - "apiVersion": { + "space": { SchemaProps: spec.SchemaProps{ - Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + Description: "Space is the name of the space. You can specify * to select all spaces.", Type: []string{"string"}, Format: "", }, }, - "metadata": { - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref(metav1.ListMeta{}.OpenAPIModelName()), - }, - }, - "items": { - SchemaProps: spec.SchemaProps{ - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.UserClusters"), - }, - }, - }, - }, - }, }, - Required: []string{"items"}, }, }, - Dependencies: []string{ - "github.com/devsy-org/api/pkg/apis/management/v1.UserClusters", metav1.ListMeta{}.OpenAPIModelName()}, } } -func schema_pkg_apis_management_v1_UserInfo(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_storage_v1_AccessKeyScopeVirtualCluster(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ Type: []string{"object"}, Properties: map[string]spec.Schema{ - "name": { + "project": { SchemaProps: spec.SchemaProps{ - Description: "Name is the kubernetes name of the object", + Description: "Project is the name of the project.", Type: []string{"string"}, Format: "", }, }, - "displayName": { + "virtualCluster": { SchemaProps: spec.SchemaProps{ - Description: "The display name shown in the UI", + Description: "VirtualCluster is the name of the virtual cluster to access. You can specify * to select all virtual clusters.", Type: []string{"string"}, Format: "", }, }, - "icon": { + }, + }, + }, + } +} + +func schema_pkg_apis_storage_v1_AccessKeySpec(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "displayName": { SchemaProps: spec.SchemaProps{ - Description: "Icon is the icon of the user / team", + Description: "The display name shown in the UI", Type: []string{"string"}, Format: "", }, }, - "username": { + "description": { SchemaProps: spec.SchemaProps{ - Description: "The username that is used to login", + Description: "Description describes an app", Type: []string{"string"}, Format: "", }, }, - "email": { + "user": { SchemaProps: spec.SchemaProps{ - Description: "The users email address", + Description: "The user this access key refers to", + Type: []string{"string"}, + Format: "", + }, + }, + "team": { + SchemaProps: spec.SchemaProps{ + Description: "The team this access key refers to", Type: []string{"string"}, Format: "", }, }, "subject": { SchemaProps: spec.SchemaProps{ - Description: "The user subject", + Description: "Subject is a generic subject that can be used instead of user or team", Type: []string{"string"}, Format: "", }, }, - "teams": { + "groups": { SchemaProps: spec.SchemaProps{ - Description: "Teams are the teams the user is part of", + Description: "Groups specifies extra groups to apply when using this access key", Type: []string{"array"}, Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ - Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.EntityInfo"), + Default: "", + Type: []string{"string"}, + Format: "", }, }, }, }, }, + "key": { + SchemaProps: spec.SchemaProps{ + Description: "The actual access key that will be used as a bearer token", + Type: []string{"string"}, + Format: "", + }, + }, + "disabled": { + SchemaProps: spec.SchemaProps{ + Description: "If this field is true, the access key is still allowed to exist, however will not work to access the api", + Type: []string{"boolean"}, + Format: "", + }, + }, + "ttl": { + SchemaProps: spec.SchemaProps{ + Description: "The time to life for this access key", + Type: []string{"integer"}, + Format: "int64", + }, + }, + "ttlAfterLastActivity": { + SchemaProps: spec.SchemaProps{ + Description: "If this is specified, the time to life for this access key will start after the lastActivity instead of creation timestamp", + Type: []string{"boolean"}, + Format: "", + }, + }, + "scope": { + SchemaProps: spec.SchemaProps{ + Description: "Scope defines the scope of the access key.", + Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.AccessKeyScope"), + }, + }, + "type": { + SchemaProps: spec.SchemaProps{ + Description: "The type of an access key, which basically describes if the access key is user managed or managed by devsy itself.", + Type: []string{"string"}, + Format: "", + }, + }, + "identity": { + SchemaProps: spec.SchemaProps{ + Description: "If available, contains information about the sso login data for this access key", + Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.SSOIdentity"), + }, + }, + "identityRefresh": { + SchemaProps: spec.SchemaProps{ + Description: "The last time the identity was refreshed", + Ref: ref(metav1.Time{}.OpenAPIModelName()), + }, + }, + "oidcProvider": { + SchemaProps: spec.SchemaProps{ + Description: "If the token is a refresh token, contains information about it", + Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.AccessKeyOIDCProvider"), + }, + }, + "parent": { + SchemaProps: spec.SchemaProps{ + Description: "DEPRECATED: do not use anymore Parent is used to share OIDC and external token information with multiple access keys. Since copying an OIDC refresh token would result in the other access keys becoming invalid after a refresh parent allows access keys to share that information.\n\nThe use case for this is primarily user generated access keys, which will have the users current access key as parent if it contains an OIDC token.", + Type: []string{"string"}, + Format: "", + }, + }, + "oidcLogin": { + SchemaProps: spec.SchemaProps{ + Description: "DEPRECATED: Use identity instead If available, contains information about the oidc login data for this access key", + Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.AccessKeyOIDC"), + }, + }, }, }, }, Dependencies: []string{ - "github.com/devsy-org/api/pkg/apis/storage/v1.EntityInfo"}, + "github.com/devsy-org/api/pkg/apis/storage/v1.AccessKeyOIDC", "github.com/devsy-org/api/pkg/apis/storage/v1.AccessKeyOIDCProvider", "github.com/devsy-org/api/pkg/apis/storage/v1.AccessKeyScope", "github.com/devsy-org/api/pkg/apis/storage/v1.SSOIdentity", metav1.Time{}.OpenAPIModelName()}, } } -func schema_pkg_apis_management_v1_UserList(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_storage_v1_AccessKeyStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "AccessKeyStatus holds the status of an access key", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "lastActivity": { + SchemaProps: spec.SchemaProps{ + Description: "The last time this access key was used to access the api", + Ref: ref(metav1.Time{}.OpenAPIModelName()), + }, + }, + }, + }, + }, + Dependencies: []string{ + metav1.Time{}.OpenAPIModelName()}, + } +} + +func schema_pkg_apis_storage_v1_AccessKeyVirtualCluster(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ Type: []string{"object"}, Properties: map[string]spec.Schema{ - "kind": { + "name": { SchemaProps: spec.SchemaProps{ - Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + Description: "Name of the virtual cluster. Empty means all virtual clusters.", Type: []string{"string"}, Format: "", }, }, - "apiVersion": { + "namespace": { SchemaProps: spec.SchemaProps{ - Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + Description: "Namespace of the virtual cluster. Empty means all namespaces.", Type: []string{"string"}, Format: "", }, }, - "metadata": { + }, + }, + }, + } +} + +func schema_pkg_apis_storage_v1_AllowedCluster(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "name": { SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref(metav1.ListMeta{}.OpenAPIModelName()), + Description: "Name is the name of the cluster that is allowed to create an environment in.", + Type: []string{"string"}, + Format: "", }, }, - "items": { + }, + }, + }, + } +} + +func schema_pkg_apis_storage_v1_AllowedClusterAccountTemplate(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "name": { SchemaProps: spec.SchemaProps{ - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.User"), - }, - }, - }, + Description: "Name is the name of a cluster account template", + Type: []string{"string"}, + Format: "", }, }, }, - Required: []string{"items"}, }, }, - Dependencies: []string{ - "github.com/devsy-org/api/pkg/apis/management/v1.User", metav1.ListMeta{}.OpenAPIModelName()}, } } -func schema_pkg_apis_management_v1_UserObjectPermissions(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_storage_v1_AllowedRunner(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "name": { + SchemaProps: spec.SchemaProps{ + Description: "Name is the name of the runner that is allowed to create an environment in.", + Type: []string{"string"}, + Format: "", + }, + }, + }, + }, + }, + } +} + +func schema_pkg_apis_storage_v1_AllowedTemplate(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ @@ -20273,50 +20195,44 @@ func schema_pkg_apis_management_v1_UserObjectPermissions(ref common.ReferenceCal Properties: map[string]spec.Schema{ "kind": { SchemaProps: spec.SchemaProps{ - Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + Description: "Kind of the template that is allowed. Currently only supports DevsyWorkspaceTemplate, VirtualClusterTemplate & SpaceTemplate.", Type: []string{"string"}, Format: "", }, }, - "apiVersion": { + "group": { SchemaProps: spec.SchemaProps{ - Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + Description: "Group of the template that is allowed. Currently only supports storage.devsy.sh", Type: []string{"string"}, Format: "", }, }, - "metadata": { + "name": { SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref(metav1.ObjectMeta{}.OpenAPIModelName()), + Description: "Name of the template", + Type: []string{"string"}, + Format: "", }, }, - "objectPermissions": { + "isDefault": { SchemaProps: spec.SchemaProps{ - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.ObjectPermission"), - }, - }, - }, + Description: "IsDefault specifies if the template should be used as a default", + Type: []string{"boolean"}, + Format: "", }, }, }, }, }, - Dependencies: []string{ - "github.com/devsy-org/api/pkg/apis/management/v1.ObjectPermission", metav1.ObjectMeta{}.OpenAPIModelName()}, } } -func schema_pkg_apis_management_v1_UserObjectPermissionsList(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_storage_v1_App(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Type: []string{"object"}, + Description: "App holds the app information", + Type: []string{"object"}, Properties: map[string]spec.Schema{ "kind": { SchemaProps: spec.SchemaProps{ @@ -20335,168 +20251,111 @@ func schema_pkg_apis_management_v1_UserObjectPermissionsList(ref common.Referenc "metadata": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref(metav1.ListMeta{}.OpenAPIModelName()), + Ref: ref(metav1.ObjectMeta{}.OpenAPIModelName()), }, }, - "items": { + "spec": { SchemaProps: spec.SchemaProps{ - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.UserObjectPermissions"), - }, - }, - }, + Default: map[string]interface{}{}, + Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.AppSpec"), + }, + }, + "status": { + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.AppStatus"), }, }, }, - Required: []string{"items"}, }, }, Dependencies: []string{ - "github.com/devsy-org/api/pkg/apis/management/v1.UserObjectPermissions", metav1.ListMeta{}.OpenAPIModelName()}, + "github.com/devsy-org/api/pkg/apis/storage/v1.AppSpec", "github.com/devsy-org/api/pkg/apis/storage/v1.AppStatus", metav1.ObjectMeta{}.OpenAPIModelName()}, } } -func schema_pkg_apis_management_v1_UserPermissions(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_storage_v1_AppConfig(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ Type: []string{"object"}, Properties: map[string]spec.Schema{ - "kind": { + "defaultNamespace": { SchemaProps: spec.SchemaProps{ - Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + Description: "DefaultNamespace is the default namespace this app should installed in.", Type: []string{"string"}, Format: "", }, }, - "apiVersion": { + "readme": { SchemaProps: spec.SchemaProps{ - Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + Description: "Readme is a longer markdown string that describes the app.", Type: []string{"string"}, Format: "", }, }, - "metadata": { - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref(metav1.ObjectMeta{}.OpenAPIModelName()), - }, - }, - "clusterRoles": { - SchemaProps: spec.SchemaProps{ - Description: "ClusterRoles that apply to the user.", - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.UserPermissionsRole"), - }, - }, - }, - }, - }, - "namespaceRoles": { + "icon": { SchemaProps: spec.SchemaProps{ - Description: "NamespaceRoles that apply to the user. Can be either regular roles or cluster roles that are namespace scoped.", - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.UserPermissionsRole"), - }, - }, - }, + Description: "Icon holds an URL to the app icon", + Type: []string{"string"}, + Format: "", }, }, - "teamMemberships": { + "config": { SchemaProps: spec.SchemaProps{ - Description: "TeamMemberships gives information about the user's team membership", - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.ObjectName"), - }, - }, - }, + Description: "Config is the helm config to use to deploy the helm release", + Default: map[string]interface{}{}, + Ref: ref("github.com/devsy-org/agentapi/pkg/apis/devsy/cluster/v1.HelmReleaseConfig"), }, }, - "projectMemberships": { + "wait": { SchemaProps: spec.SchemaProps{ - Description: "ProjectMemberships gives information about the user's project membership", - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.ProjectMembership"), - }, - }, - }, + Description: "Wait determines if Devsy should wait during deploy for the app to become ready", + Type: []string{"boolean"}, + Format: "", }, }, - "managementRoles": { + "timeout": { SchemaProps: spec.SchemaProps{ - Description: "ManagementRoles gives information about the user's assigned management roles", - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.ManagementRole"), - }, - }, - }, + Description: "Timeout is the time to wait for any individual Kubernetes operation (like Jobs for hooks) (default 5m0s)", + Type: []string{"string"}, + Format: "", }, }, - "clusterAccessRoles": { + "parameters": { SchemaProps: spec.SchemaProps{ - Description: "ClustersAccessRoles gives information about the user's assigned cluster roles and the clusters they apply to", + Description: "Parameters define additional app parameters that will set helm values", Type: []string{"array"}, Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.ClusterAccessRole"), + Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.AppParameter"), }, }, }, }, }, - "virtualClusterRoles": { + "streamContainer": { SchemaProps: spec.SchemaProps{ - Description: "VirtualClusterRoles give information about the user's cluster role within the virtual cluster", - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.VirtualClusterRole"), - }, - }, - }, + Description: "DEPRECATED: Use config.bash instead StreamContainer can be used to stream a containers logs instead of the helm output.", + Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.StreamContainer"), }, }, }, }, }, Dependencies: []string{ - "github.com/devsy-org/api/pkg/apis/management/v1.ClusterAccessRole", "github.com/devsy-org/api/pkg/apis/management/v1.ManagementRole", "github.com/devsy-org/api/pkg/apis/management/v1.ObjectName", "github.com/devsy-org/api/pkg/apis/management/v1.ProjectMembership", "github.com/devsy-org/api/pkg/apis/management/v1.UserPermissionsRole", "github.com/devsy-org/api/pkg/apis/management/v1.VirtualClusterRole", metav1.ObjectMeta{}.OpenAPIModelName()}, + "github.com/devsy-org/agentapi/pkg/apis/devsy/cluster/v1.HelmReleaseConfig", "github.com/devsy-org/api/pkg/apis/storage/v1.AppParameter", "github.com/devsy-org/api/pkg/apis/storage/v1.StreamContainer"}, } } -func schema_pkg_apis_management_v1_UserPermissionsList(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_storage_v1_AppList(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Type: []string{"object"}, + Description: "AppList contains a list of App.", + Type: []string{"object"}, Properties: map[string]spec.Schema{ "kind": { SchemaProps: spec.SchemaProps{ @@ -20525,7 +20384,7 @@ func schema_pkg_apis_management_v1_UserPermissionsList(ref common.ReferenceCallb Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.UserPermissions"), + Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.App"), }, }, }, @@ -20536,220 +20395,158 @@ func schema_pkg_apis_management_v1_UserPermissionsList(ref common.ReferenceCallb }, }, Dependencies: []string{ - "github.com/devsy-org/api/pkg/apis/management/v1.UserPermissions", metav1.ListMeta{}.OpenAPIModelName()}, + "github.com/devsy-org/api/pkg/apis/storage/v1.App", metav1.ListMeta{}.OpenAPIModelName()}, } } -func schema_pkg_apis_management_v1_UserPermissionsRole(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_storage_v1_AppParameter(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ Type: []string{"object"}, Properties: map[string]spec.Schema{ - "clusterRole": { + "variable": { SchemaProps: spec.SchemaProps{ - Description: "ClusterRole is the name of the cluster role assigned to this user.", + Description: "Variable is the path of the variable. Can be foo or foo.bar for nested objects.", Type: []string{"string"}, Format: "", }, }, - "role": { + "label": { SchemaProps: spec.SchemaProps{ - Description: "Role is the name of the role assigned to this user.", + Description: "Label is the label to show for this parameter", Type: []string{"string"}, Format: "", }, }, - "namespace": { + "description": { SchemaProps: spec.SchemaProps{ - Description: "Namespace where this rules are valid.", + Description: "Description is the description to show for this parameter", Type: []string{"string"}, Format: "", }, }, - "rules": { + "type": { SchemaProps: spec.SchemaProps{ - Description: "Rules are the roles rules", + Description: "Type of the parameter. Can be one of: string, multiline, boolean, number and password", + Type: []string{"string"}, + Format: "", + }, + }, + "options": { + SchemaProps: spec.SchemaProps{ + Description: "Options is a slice of strings, where each string represents a mutually exclusive choice.", Type: []string{"array"}, Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/rbac/v1.PolicyRule"), + Default: "", + Type: []string{"string"}, + Format: "", }, }, }, }, }, - }, - }, - }, - Dependencies: []string{ - "k8s.io/api/rbac/v1.PolicyRule"}, - } -} - -func schema_pkg_apis_management_v1_UserProfile(ref common.ReferenceCallback) common.OpenAPIDefinition { - return common.OpenAPIDefinition{ - Schema: spec.Schema{ - SchemaProps: spec.SchemaProps{ - Type: []string{"object"}, - Properties: map[string]spec.Schema{ - "kind": { - SchemaProps: spec.SchemaProps{ - Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", - Type: []string{"string"}, - Format: "", - }, - }, - "apiVersion": { - SchemaProps: spec.SchemaProps{ - Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", - Type: []string{"string"}, - Format: "", - }, - }, - "metadata": { + "min": { SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref(metav1.ObjectMeta{}.OpenAPIModelName()), + Description: "Min is the minimum number if type is number", + Type: []string{"integer"}, + Format: "int32", }, }, - "displayName": { + "max": { SchemaProps: spec.SchemaProps{ - Description: "The new display name shown in the UI", - Type: []string{"string"}, - Format: "", + Description: "Max is the maximum number if type is number", + Type: []string{"integer"}, + Format: "int32", }, }, - "username": { + "required": { SchemaProps: spec.SchemaProps{ - Description: "Username is the new username of the user", - Type: []string{"string"}, + Description: "Required specifies if this parameter is required", + Type: []string{"boolean"}, Format: "", }, }, - "password": { + "defaultValue": { SchemaProps: spec.SchemaProps{ - Description: "Password is the new password of the user", + Description: "DefaultValue is the default value if none is specified", Type: []string{"string"}, Format: "", }, }, - "currentPassword": { + "placeholder": { SchemaProps: spec.SchemaProps{ - Description: "CurrentPassword is the current password of the user", + Description: "Placeholder shown in the UI", Type: []string{"string"}, Format: "", }, }, - "email": { + "invalidation": { SchemaProps: spec.SchemaProps{ - Description: "Email is the new email of the user", + Description: "Invalidation regex that if matched will reject the input", Type: []string{"string"}, Format: "", }, }, - "icon": { + "validation": { SchemaProps: spec.SchemaProps{ - Description: "Icon is the new icon of the user", + Description: "Validation regex that if matched will allow the input", Type: []string{"string"}, Format: "", }, }, - "custom": { + "section": { SchemaProps: spec.SchemaProps{ - Description: "Custom is custom information that should be saved of the user", + Description: "Section where this app should be displayed. Apps with the same section name will be grouped together", Type: []string{"string"}, Format: "", }, }, - "secrets": { - SchemaProps: spec.SchemaProps{ - Description: "Secrets is a map of secret names to secret data", - Type: []string{"object"}, - AdditionalProperties: &spec.SchemaOrBool{ - Allows: true, - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.UserProfileSecret"), - }, - }, - }, - }, - }, }, }, }, - Dependencies: []string{ - "github.com/devsy-org/api/pkg/apis/management/v1.UserProfileSecret", metav1.ObjectMeta{}.OpenAPIModelName()}, } } -func schema_pkg_apis_management_v1_UserProfileList(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_storage_v1_AppReference(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ Type: []string{"object"}, Properties: map[string]spec.Schema{ - "kind": { + "name": { SchemaProps: spec.SchemaProps{ - Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + Description: "Name of the target app", Type: []string{"string"}, Format: "", }, }, - "apiVersion": { + "namespace": { SchemaProps: spec.SchemaProps{ - Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + Description: "Namespace specifies in which target namespace the app should get deployed in", Type: []string{"string"}, Format: "", }, }, - "metadata": { - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref(metav1.ListMeta{}.OpenAPIModelName()), - }, - }, - "items": { + "releaseName": { SchemaProps: spec.SchemaProps{ - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.UserProfile"), - }, - }, - }, + Description: "ReleaseName is the name of the app release", + Type: []string{"string"}, + Format: "", }, }, - }, - Required: []string{"items"}, - }, - }, - Dependencies: []string{ - "github.com/devsy-org/api/pkg/apis/management/v1.UserProfile", metav1.ListMeta{}.OpenAPIModelName()}, - } -} - -func schema_pkg_apis_management_v1_UserProfileSecret(ref common.ReferenceCallback) common.OpenAPIDefinition { - return common.OpenAPIDefinition{ - Schema: spec.Schema{ - SchemaProps: spec.SchemaProps{ - Type: []string{"object"}, - Properties: map[string]spec.Schema{ - "type": { + "version": { SchemaProps: spec.SchemaProps{ - Description: "Type is the type of the secret", + Description: "Version of the app", Type: []string{"string"}, Format: "", }, }, - "data": { + "parameters": { SchemaProps: spec.SchemaProps{ - Description: "Data is the data of the secret", + Description: "Parameters to use for the app", Type: []string{"string"}, Format: "", }, @@ -20760,29 +20557,36 @@ func schema_pkg_apis_management_v1_UserProfileSecret(ref common.ReferenceCallbac } } -func schema_pkg_apis_management_v1_UserQuotasOptions(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_storage_v1_AppSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Type: []string{"object"}, + Description: "AppSpec holds the specification.", + Type: []string{"object"}, Properties: map[string]spec.Schema{ - "kind": { + "displayName": { SchemaProps: spec.SchemaProps{ - Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + Description: "DisplayName is the name that should be displayed in the UI", Type: []string{"string"}, Format: "", }, }, - "apiVersion": { + "description": { SchemaProps: spec.SchemaProps{ - Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + Description: "Description describes an app", Type: []string{"string"}, Format: "", }, }, - "cluster": { + "owner": { SchemaProps: spec.SchemaProps{ - Description: "Cluster where to retrieve quotas from", + Description: "Owner holds the owner of this object", + Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.UserOrTeam"), + }, + }, + "clusters": { + SchemaProps: spec.SchemaProps{ + Description: "Clusters are the clusters this app can be installed in.", Type: []string{"array"}, Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ @@ -20795,35 +20599,9 @@ func schema_pkg_apis_management_v1_UserQuotasOptions(ref common.ReferenceCallbac }, }, }, - }, - }, - }, - } -} - -func schema_pkg_apis_management_v1_UserSpacesOptions(ref common.ReferenceCallback) common.OpenAPIDefinition { - return common.OpenAPIDefinition{ - Schema: spec.Schema{ - SchemaProps: spec.SchemaProps{ - Type: []string{"object"}, - Properties: map[string]spec.Schema{ - "kind": { - SchemaProps: spec.SchemaProps{ - Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", - Type: []string{"string"}, - Format: "", - }, - }, - "apiVersion": { - SchemaProps: spec.SchemaProps{ - Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", - Type: []string{"string"}, - Format: "", - }, - }, - "cluster": { + "recommendedApp": { SchemaProps: spec.SchemaProps{ - Description: "Cluster where to retrieve spaces from", + Description: "RecommendedApp specifies where this app should show up as recommended app", Type: []string{"array"}, Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ @@ -20836,144 +20614,77 @@ func schema_pkg_apis_management_v1_UserSpacesOptions(ref common.ReferenceCallbac }, }, }, - }, - }, - }, - } -} - -func schema_pkg_apis_management_v1_UserSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { - return common.OpenAPIDefinition{ - Schema: spec.Schema{ - SchemaProps: spec.SchemaProps{ - Type: []string{"object"}, - Properties: map[string]spec.Schema{ - "displayName": { + "defaultNamespace": { SchemaProps: spec.SchemaProps{ - Description: "The display name shown in the UI", + Description: "DefaultNamespace is the default namespace this app should installed in.", Type: []string{"string"}, Format: "", }, }, - "description": { + "readme": { SchemaProps: spec.SchemaProps{ - Description: "Description describes a cluster access object", + Description: "Readme is a longer markdown string that describes the app.", Type: []string{"string"}, Format: "", }, }, - "owner": { - SchemaProps: spec.SchemaProps{ - Description: "Owner holds the owner of this object", - Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.UserOrTeam"), - }, - }, - "username": { + "icon": { SchemaProps: spec.SchemaProps{ - Description: "The username that is used to login", + Description: "Icon holds an URL to the app icon", Type: []string{"string"}, Format: "", }, }, - "icon": { + "config": { SchemaProps: spec.SchemaProps{ - Description: "The URL to an icon that should be shown for the user", - Type: []string{"string"}, - Format: "", + Description: "Config is the helm config to use to deploy the helm release", + Default: map[string]interface{}{}, + Ref: ref("github.com/devsy-org/agentapi/pkg/apis/devsy/cluster/v1.HelmReleaseConfig"), }, }, - "email": { + "wait": { SchemaProps: spec.SchemaProps{ - Description: "The users email address", - Type: []string{"string"}, + Description: "Wait determines if Devsy should wait during deploy for the app to become ready", + Type: []string{"boolean"}, Format: "", }, }, - "subject": { + "timeout": { SchemaProps: spec.SchemaProps{ - Description: "The user subject as presented by the token", + Description: "Timeout is the time to wait for any individual Kubernetes operation (like Jobs for hooks) (default 5m0s)", Type: []string{"string"}, Format: "", }, }, - "groups": { - SchemaProps: spec.SchemaProps{ - Description: "The groups the user has access to", - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: "", - Type: []string{"string"}, - Format: "", - }, - }, - }, - }, - }, - "ssoGroups": { - SchemaProps: spec.SchemaProps{ - Description: "SSOGroups is used to remember groups that were added from sso.", - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: "", - Type: []string{"string"}, - Format: "", - }, - }, - }, - }, - }, - "passwordRef": { - SchemaProps: spec.SchemaProps{ - Description: "A reference to the user password", - Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.SecretRef"), - }, - }, - "codesRef": { - SchemaProps: spec.SchemaProps{ - Description: "A reference to the users access keys", - Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.SecretRef"), - }, - }, - "imagePullSecrets": { + "parameters": { SchemaProps: spec.SchemaProps{ - Description: "ImagePullSecrets holds secret references to image pull secrets the user has access to.", + Description: "Parameters define additional app parameters that will set helm values", Type: []string{"array"}, Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ - Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.KindSecretRef"), + Default: map[string]interface{}{}, + Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.AppParameter"), }, }, }, }, }, - "tokenGeneration": { - SchemaProps: spec.SchemaProps{ - Description: "TokenGeneration can be used to invalidate all user tokens", - Type: []string{"integer"}, - Format: "int64", - }, - }, - "disabled": { + "streamContainer": { SchemaProps: spec.SchemaProps{ - Description: "If disabled is true, an user will not be able to login anymore. All other user resources are unaffected and other users can still interact with this user", - Type: []string{"boolean"}, - Format: "", + Description: "DEPRECATED: Use config.bash instead StreamContainer can be used to stream a containers logs instead of the helm output.", + Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.StreamContainer"), }, }, - "clusterRoles": { + "versions": { SchemaProps: spec.SchemaProps{ - Description: "ClusterRoles define the cluster roles that the users should have assigned in the cluster.", + Description: "Versions are different app versions that can be referenced", Type: []string{"array"}, Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.ClusterRoleRef"), + Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.AppVersion"), }, }, }, @@ -20993,129 +20704,144 @@ func schema_pkg_apis_management_v1_UserSpec(ref common.ReferenceCallback) common }, }, }, - "extraClaims": { + "manifests": { SchemaProps: spec.SchemaProps{ - Description: "ExtraClaims are additional claims that have been added to the user by an admin.", - Type: []string{"object"}, - AdditionalProperties: &spec.SchemaOrBool{ - Allows: true, - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: "", - Type: []string{"string"}, - Format: "", - }, - }, - }, + Description: "DEPRECATED: Use config instead manifest represents kubernetes resources that will be deployed into the target namespace", + Type: []string{"string"}, + Format: "", + }, + }, + "helm": { + SchemaProps: spec.SchemaProps{ + Description: "DEPRECATED: Use config instead helm defines the configuration for a helm deployment", + Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.HelmConfiguration"), }, }, }, }, }, Dependencies: []string{ - "github.com/devsy-org/api/pkg/apis/storage/v1.Access", "github.com/devsy-org/api/pkg/apis/storage/v1.ClusterRoleRef", "github.com/devsy-org/api/pkg/apis/storage/v1.KindSecretRef", "github.com/devsy-org/api/pkg/apis/storage/v1.SecretRef", "github.com/devsy-org/api/pkg/apis/storage/v1.UserOrTeam"}, + "github.com/devsy-org/agentapi/pkg/apis/devsy/cluster/v1.HelmReleaseConfig", "github.com/devsy-org/api/pkg/apis/storage/v1.Access", "github.com/devsy-org/api/pkg/apis/storage/v1.AppParameter", "github.com/devsy-org/api/pkg/apis/storage/v1.AppVersion", "github.com/devsy-org/api/pkg/apis/storage/v1.HelmConfiguration", "github.com/devsy-org/api/pkg/apis/storage/v1.StreamContainer", "github.com/devsy-org/api/pkg/apis/storage/v1.UserOrTeam"}, } } -func schema_pkg_apis_management_v1_UserStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_storage_v1_AppStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "UserStatus holds the status of an user", + Description: "AppStatus holds the status.", Type: []string{"object"}, - Properties: map[string]spec.Schema{ - "teams": { - SchemaProps: spec.SchemaProps{ - Description: "Teams the user is currently part of", - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: "", - Type: []string{"string"}, - Format: "", - }, - }, - }, - }, - }, - }, }, }, } } -func schema_pkg_apis_management_v1_UserVirtualClustersOptions(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_storage_v1_AppTask(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ Type: []string{"object"}, Properties: map[string]spec.Schema{ - "kind": { + "type": { SchemaProps: spec.SchemaProps{ - Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + Description: "Type is the task type. Defaults to Upgrade", Type: []string{"string"}, Format: "", }, }, - "apiVersion": { + "rollbackRevision": { SchemaProps: spec.SchemaProps{ - Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + Description: "RollbackRevision is the revision to rollback to", Type: []string{"string"}, Format: "", }, }, - "cluster": { + "appReference": { SchemaProps: spec.SchemaProps{ - Description: "Cluster where to retrieve virtual clusters from", - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: "", - Type: []string{"string"}, - Format: "", - }, - }, - }, + Description: "AppReference is the reference to the app to deploy", + Default: map[string]interface{}{}, + Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.AppReference"), }, }, }, }, }, + Dependencies: []string{ + "github.com/devsy-org/api/pkg/apis/storage/v1.AppReference"}, } } -func schema_pkg_apis_management_v1_VirtualClusterAccessKey(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_storage_v1_AppVersion(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "VirtualClusterAccessKey holds the access key for the virtual cluster", - Type: []string{"object"}, + Type: []string{"object"}, Properties: map[string]spec.Schema{ - "kind": { + "defaultNamespace": { SchemaProps: spec.SchemaProps{ - Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + Description: "DefaultNamespace is the default namespace this app should installed in.", Type: []string{"string"}, Format: "", }, }, - "apiVersion": { + "readme": { SchemaProps: spec.SchemaProps{ - Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + Description: "Readme is a longer markdown string that describes the app.", Type: []string{"string"}, Format: "", }, }, - "metadata": { + "icon": { SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref(metav1.ObjectMeta{}.OpenAPIModelName()), + Description: "Icon holds an URL to the app icon", + Type: []string{"string"}, + Format: "", }, }, - "accessKey": { + "config": { SchemaProps: spec.SchemaProps{ - Description: "AccessKey is the access key used by the agent", + Description: "Config is the helm config to use to deploy the helm release", + Default: map[string]interface{}{}, + Ref: ref("github.com/devsy-org/agentapi/pkg/apis/devsy/cluster/v1.HelmReleaseConfig"), + }, + }, + "wait": { + SchemaProps: spec.SchemaProps{ + Description: "Wait determines if Devsy should wait during deploy for the app to become ready", + Type: []string{"boolean"}, + Format: "", + }, + }, + "timeout": { + SchemaProps: spec.SchemaProps{ + Description: "Timeout is the time to wait for any individual Kubernetes operation (like Jobs for hooks) (default 5m0s)", + Type: []string{"string"}, + Format: "", + }, + }, + "parameters": { + SchemaProps: spec.SchemaProps{ + Description: "Parameters define additional app parameters that will set helm values", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.AppParameter"), + }, + }, + }, + }, + }, + "streamContainer": { + SchemaProps: spec.SchemaProps{ + Description: "DEPRECATED: Use config.bash instead StreamContainer can be used to stream a containers logs instead of the helm output.", + Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.StreamContainer"), + }, + }, + "version": { + SchemaProps: spec.SchemaProps{ + Description: "Version is the version. Needs to be in X.X.X format.", Type: []string{"string"}, Format: "", }, @@ -21124,181 +20850,252 @@ func schema_pkg_apis_management_v1_VirtualClusterAccessKey(ref common.ReferenceC }, }, Dependencies: []string{ - metav1.ObjectMeta{}.OpenAPIModelName()}, + "github.com/devsy-org/agentapi/pkg/apis/devsy/cluster/v1.HelmReleaseConfig", "github.com/devsy-org/api/pkg/apis/storage/v1.AppParameter", "github.com/devsy-org/api/pkg/apis/storage/v1.StreamContainer"}, } } -func schema_pkg_apis_management_v1_VirtualClusterAccessKeyList(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_storage_v1_ArgoIntegrationSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ Type: []string{"object"}, Properties: map[string]spec.Schema{ - "kind": { + "enabled": { SchemaProps: spec.SchemaProps{ - Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + Description: "Enabled indicates if the ArgoCD Integration is enabled for the project -- this knob only enables the syncing of virtualclusters, but does not enable SSO integration or project creation (see subsequent spec sections!).", + Type: []string{"boolean"}, + Format: "", + }, + }, + "cluster": { + SchemaProps: spec.SchemaProps{ + Description: "Cluster defines the name of the cluster that ArgoCD is deployed into -- if not provided this will default to 'devsy-cluster'.", Type: []string{"string"}, Format: "", }, }, - "apiVersion": { + "virtualClusterInstance": { SchemaProps: spec.SchemaProps{ - Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + Description: "VirtualClusterInstance defines the name of *virtual cluster* (instance) that ArgoCD is deployed into. If provided, Cluster will be ignored and Devsy will assume that ArgoCD is running in the specified virtual cluster.", Type: []string{"string"}, Format: "", }, }, - "metadata": { + "namespace": { SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref(metav1.ListMeta{}.OpenAPIModelName()), + Description: "Namespace defines the namespace in which ArgoCD is running in the cluster.", + Type: []string{"string"}, + Format: "", }, }, - "items": { + "sso": { SchemaProps: spec.SchemaProps{ - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.VirtualClusterAccessKey"), - }, - }, - }, + Description: "SSO defines single-sign-on related values for the ArgoCD Integration. Enabling SSO will allow users to authenticate to ArgoCD via Devsy.", + Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.ArgoSSOSpec"), + }, + }, + "project": { + SchemaProps: spec.SchemaProps{ + Description: "Project defines project related values for the ArgoCD Integration. Enabling Project integration will cause Devsy to generate and manage an ArgoCD appProject that corresponds to the Devsy Project.", + Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.ArgoProjectSpec"), }, }, }, - Required: []string{"items"}, }, }, Dependencies: []string{ - "github.com/devsy-org/api/pkg/apis/management/v1.VirtualClusterAccessKey", metav1.ListMeta{}.OpenAPIModelName()}, + "github.com/devsy-org/api/pkg/apis/storage/v1.ArgoProjectSpec", "github.com/devsy-org/api/pkg/apis/storage/v1.ArgoSSOSpec"}, } } -func schema_pkg_apis_management_v1_VirtualClusterExternalDatabase(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_storage_v1_ArgoProjectPolicyRule(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "VirtualClusterExternalDatabase holds kube config request and response data for virtual clusters", - Type: []string{"object"}, + Type: []string{"object"}, Properties: map[string]spec.Schema{ - "kind": { + "action": { SchemaProps: spec.SchemaProps{ - Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + Description: "Action is one of \"*\", \"get\", \"create\", \"update\", \"delete\", \"sync\", or \"override\".", Type: []string{"string"}, Format: "", }, }, - "apiVersion": { + "application": { SchemaProps: spec.SchemaProps{ - Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + Description: "Application is the ArgoCD project/repository to apply the rule to.", Type: []string{"string"}, Format: "", }, }, - "metadata": { - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref(metav1.ObjectMeta{}.OpenAPIModelName()), - }, - }, - "spec": { - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.VirtualClusterExternalDatabaseSpec"), - }, - }, - "status": { + "permission": { SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.VirtualClusterExternalDatabaseStatus"), + Description: "Allow applies the \"allow\" permission to the rule, if allow is not set, the permission will always be set to \"deny\".", + Type: []string{"boolean"}, + Format: "", }, }, }, }, }, - Dependencies: []string{ - "github.com/devsy-org/api/pkg/apis/management/v1.VirtualClusterExternalDatabaseSpec", "github.com/devsy-org/api/pkg/apis/management/v1.VirtualClusterExternalDatabaseStatus", metav1.ObjectMeta{}.OpenAPIModelName()}, } } -func schema_pkg_apis_management_v1_VirtualClusterExternalDatabaseList(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_storage_v1_ArgoProjectRole(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ Type: []string{"object"}, Properties: map[string]spec.Schema{ - "kind": { + "name": { SchemaProps: spec.SchemaProps{ - Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + Description: "Name of the ArgoCD role to attach to the project.", Type: []string{"string"}, Format: "", }, }, - "apiVersion": { + "description": { SchemaProps: spec.SchemaProps{ - Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + Description: "Description to add to the ArgoCD project.", Type: []string{"string"}, Format: "", }, }, - "metadata": { + "rules": { SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref(metav1.ListMeta{}.OpenAPIModelName()), + Description: "Rules ist a list of policy rules to attach to the role.", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.ArgoProjectPolicyRule"), + }, + }, + }, }, }, - "items": { + "groups": { SchemaProps: spec.SchemaProps{ - Type: []string{"array"}, + Description: "Groups is a list of OIDC group names to bind to the role.", + Type: []string{"array"}, Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.VirtualClusterExternalDatabase"), + Default: "", + Type: []string{"string"}, + Format: "", }, }, }, }, }, }, - Required: []string{"items"}, }, }, Dependencies: []string{ - "github.com/devsy-org/api/pkg/apis/management/v1.VirtualClusterExternalDatabase", metav1.ListMeta{}.OpenAPIModelName()}, + "github.com/devsy-org/api/pkg/apis/storage/v1.ArgoProjectPolicyRule"}, } } -func schema_pkg_apis_management_v1_VirtualClusterExternalDatabaseSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_storage_v1_ArgoProjectSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ Type: []string{"object"}, Properties: map[string]spec.Schema{ - "connector": { + "enabled": { SchemaProps: spec.SchemaProps{ - Description: "Connector specifies the secret that should be used to connect to an external database server. The connection is used to manage a user and database for the vCluster. A data source endpoint constructed from the created user and database is returned on status. The secret specified by connector should contain the following fields: endpoint - the endpoint where the database server can be accessed user - the database username password - the password for the database username port - the port to be used in conjunction with the endpoint to connect to the databse server. This is commonly 3306", - Type: []string{"string"}, + Description: "Enabled indicates if the ArgoCD Project Integration is enabled for this project. Enabling this will cause Devsy to create an appProject in ArgoCD that is associated with the Devsy Project. When Project integration is enabled Devsy will override the default assigned role set in the SSO integration spec.", + Type: []string{"boolean"}, Format: "", }, }, + "metadata": { + SchemaProps: spec.SchemaProps{ + Description: "Metadata defines additional metadata to attach to the devsy created project in ArgoCD.", + Default: map[string]interface{}{}, + Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.ArgoProjectSpecMetadata"), + }, + }, + "sourceRepos": { + SchemaProps: spec.SchemaProps{ + Description: "SourceRepos is a list of source repositories to attach/allow on the project, if not specified will be \"*\" indicating all source repositories.", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + }, + }, + }, + "roles": { + SchemaProps: spec.SchemaProps{ + Description: "Roles is a list of roles that should be attached to the ArgoCD project. If roles are provided no devsy default roles will be set. If no roles are provided *and* SSO is enabled, devsy will configure sane default values.", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.ArgoProjectRole"), + }, + }, + }, + }, + }, }, }, }, + Dependencies: []string{ + "github.com/devsy-org/api/pkg/apis/storage/v1.ArgoProjectRole", "github.com/devsy-org/api/pkg/apis/storage/v1.ArgoProjectSpecMetadata"}, } } -func schema_pkg_apis_management_v1_VirtualClusterExternalDatabaseStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_storage_v1_ArgoProjectSpecMetadata(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ Type: []string{"object"}, Properties: map[string]spec.Schema{ - "dataSource": { + "extraAnnotations": { SchemaProps: spec.SchemaProps{ - Description: "DataSource holds a datasource endpoint constructed from the vCluster's designated user and database. The user and database are created from the given connector.", + Description: "ExtraAnnotations are optional annotations that can be attached to the project in ArgoCD.", + Type: []string{"object"}, + AdditionalProperties: &spec.SchemaOrBool{ + Allows: true, + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + }, + }, + }, + "extraLabels": { + SchemaProps: spec.SchemaProps{ + Description: "ExtraLabels are optional labels that can be attached to the project in ArgoCD.", + Type: []string{"object"}, + AdditionalProperties: &spec.SchemaOrBool{ + Allows: true, + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + }, + }, + }, + "description": { + SchemaProps: spec.SchemaProps{ + Description: "Description to add to the ArgoCD project.", Type: []string{"string"}, Format: "", }, @@ -21309,172 +21106,203 @@ func schema_pkg_apis_management_v1_VirtualClusterExternalDatabaseStatus(ref comm } } -func schema_pkg_apis_management_v1_VirtualClusterInstance(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_storage_v1_ArgoSSOSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "VirtualClusterInstance holds the VirtualClusterInstance information", - Type: []string{"object"}, + Type: []string{"object"}, Properties: map[string]spec.Schema{ - "kind": { + "enabled": { SchemaProps: spec.SchemaProps{ - Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", - Type: []string{"string"}, + Description: "Enabled indicates if the ArgoCD SSO Integration is enabled for this project. Enabling this will cause Devsy to configure SSO authentication via Devsy in ArgoCD. If Projects are *not* enabled, all users associated with this Project will be assigned either the 'read-only' (default) role, *or* the roles set under the AssignedRoles field.", + Type: []string{"boolean"}, Format: "", }, }, - "apiVersion": { + "host": { SchemaProps: spec.SchemaProps{ - Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + Description: "Host defines the ArgoCD host address that will be used for OIDC authentication between devsy and ArgoCD. If not specified OIDC integration will be skipped, but devsys/spaces will still be synced to ArgoCD.", Type: []string{"string"}, Format: "", }, }, - "metadata": { - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref(metav1.ObjectMeta{}.OpenAPIModelName()), - }, - }, - "spec": { - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.VirtualClusterInstanceSpec"), - }, - }, - "status": { + "assignedRoles": { SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.VirtualClusterInstanceStatus"), + Description: "AssignedRoles is a list of roles to assign for users who authenticate via Devsy -- by default this will be the `read-only` role. If any roles are provided this will override the default setting.", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + }, }, }, }, }, }, - Dependencies: []string{ - "github.com/devsy-org/api/pkg/apis/management/v1.VirtualClusterInstanceSpec", "github.com/devsy-org/api/pkg/apis/management/v1.VirtualClusterInstanceStatus", metav1.ObjectMeta{}.OpenAPIModelName()}, } } -func schema_pkg_apis_management_v1_VirtualClusterInstanceKubeConfig(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_storage_v1_BCMNodeTypeSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "VirtualClusterInstanceKubeConfig holds kube config request and response data for virtual clusters", - Type: []string{"object"}, + Type: []string{"object"}, Properties: map[string]spec.Schema{ - "kind": { + "providerRef": { SchemaProps: spec.SchemaProps{ - Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + Description: "ProviderRef is the node provider to use for this node type.", Type: []string{"string"}, Format: "", }, }, - "apiVersion": { + "properties": { SchemaProps: spec.SchemaProps{ - Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", - Type: []string{"string"}, - Format: "", + Description: "Properties returns a flexible set of properties that may be selected for scheduling.", + Type: []string{"object"}, + AdditionalProperties: &spec.SchemaOrBool{ + Allows: true, + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + }, }, }, - "metadata": { + "resources": { SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref(metav1.ObjectMeta{}.OpenAPIModelName()), + Description: "Resources lists the full resources for a single node.", + Type: []string{"object"}, + AdditionalProperties: &spec.SchemaOrBool{ + Allows: true, + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Ref: ref(resource.Quantity{}.OpenAPIModelName()), + }, + }, + }, }, }, - "spec": { + "overhead": { SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.VirtualClusterInstanceKubeConfigSpec"), + Description: "Overhead defines the resource overhead for this node type.", + Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.NodeTypeOverhead"), }, }, - "status": { + "cost": { SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.VirtualClusterInstanceKubeConfigStatus"), + Description: "Cost is the instance cost. The higher the cost, the less likely it is to be selected. If empty, cost is automatically calculated from the resources specified.", + Type: []string{"integer"}, + Format: "int64", }, }, - }, - }, - }, - Dependencies: []string{ - "github.com/devsy-org/api/pkg/apis/management/v1.VirtualClusterInstanceKubeConfigSpec", "github.com/devsy-org/api/pkg/apis/management/v1.VirtualClusterInstanceKubeConfigStatus", metav1.ObjectMeta{}.OpenAPIModelName()}, - } -} - -func schema_pkg_apis_management_v1_VirtualClusterInstanceKubeConfigList(ref common.ReferenceCallback) common.OpenAPIDefinition { - return common.OpenAPIDefinition{ - Schema: spec.Schema{ - SchemaProps: spec.SchemaProps{ - Type: []string{"object"}, - Properties: map[string]spec.Schema{ - "kind": { + "displayName": { SchemaProps: spec.SchemaProps{ - Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + Description: "DisplayName is the name that should be displayed in the UI", Type: []string{"string"}, Format: "", }, }, - "apiVersion": { + "name": { SchemaProps: spec.SchemaProps{ - Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + Description: "Name is the name of this node type.", + Default: "", Type: []string{"string"}, Format: "", }, }, "metadata": { SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref(metav1.ListMeta{}.OpenAPIModelName()), + Description: "Metadata holds metadata to add to this managed NodeType.", + Default: map[string]interface{}{}, + Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.ManagedNodeTypeObjectMeta"), }, }, - "items": { + "nodes": { SchemaProps: spec.SchemaProps{ - Type: []string{"array"}, + Description: "Nodes specifies nodes.", + Type: []string{"array"}, Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.VirtualClusterInstanceKubeConfig"), + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + }, + }, + }, + "nodeGroups": { + SchemaProps: spec.SchemaProps{ + Description: "NodeGroups is the name of the node groups to use for this provider.", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: "", + Type: []string{"string"}, + Format: "", }, }, }, }, }, }, - Required: []string{"items"}, + Required: []string{"name"}, }, }, Dependencies: []string{ - "github.com/devsy-org/api/pkg/apis/management/v1.VirtualClusterInstanceKubeConfig", metav1.ListMeta{}.OpenAPIModelName()}, + "github.com/devsy-org/api/pkg/apis/storage/v1.ManagedNodeTypeObjectMeta", "github.com/devsy-org/api/pkg/apis/storage/v1.NodeTypeOverhead", resource.Quantity{}.OpenAPIModelName()}, } } -func schema_pkg_apis_management_v1_VirtualClusterInstanceKubeConfigSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_storage_v1_Chart(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Type: []string{"object"}, + Description: "Chart describes a chart", + Type: []string{"object"}, Properties: map[string]spec.Schema{ - "certificateTTL": { + "name": { SchemaProps: spec.SchemaProps{ - Description: "CertificateTTL holds the ttl (in seconds) to set for the certificate associated with the returned kubeconfig. This field is optional, if no value is provided, the certificate TTL will be set to one day. If set to zero, this will cause devsy to pass nil to the certificate signing request, which will result in the certificate being valid for the clusters `cluster-signing-duration` value which is typically one year.", - Type: []string{"integer"}, - Format: "int32", + Description: "Name is the chart name in the repository", + Type: []string{"string"}, + Format: "", }, }, - "server": { + "version": { SchemaProps: spec.SchemaProps{ - Description: "Server allows user to override server in the kubeconfig.", + Description: "Version is the chart version in the repository", Type: []string{"string"}, Format: "", }, }, - "clientCert": { + "repoURL": { SchemaProps: spec.SchemaProps{ - Description: "ClientCert, if set to true, will return kube config with generated client certs instead of platform token", - Type: []string{"boolean"}, + Description: "RepoURL is the repo url where the chart can be found", + Type: []string{"string"}, + Format: "", + }, + }, + "username": { + SchemaProps: spec.SchemaProps{ + Description: "The username that is required for this repository", + Type: []string{"string"}, + Format: "", + }, + }, + "password": { + SchemaProps: spec.SchemaProps{ + Description: "The password that is required for this repository", + Type: []string{"string"}, Format: "", }, }, @@ -21484,15 +21312,29 @@ func schema_pkg_apis_management_v1_VirtualClusterInstanceKubeConfigSpec(ref comm } } -func schema_pkg_apis_management_v1_VirtualClusterInstanceKubeConfigStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_storage_v1_ChartStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ Type: []string{"object"}, Properties: map[string]spec.Schema{ - "kubeConfig": { + "name": { SchemaProps: spec.SchemaProps{ - Description: "KubeConfig holds the final kubeconfig output", + Description: "Name of the chart that was applied", + Type: []string{"string"}, + Format: "", + }, + }, + "namespace": { + SchemaProps: spec.SchemaProps{ + Description: "Namespace of the chart that was applied", + Type: []string{"string"}, + Format: "", + }, + }, + "lastAppliedChartConfigHash": { + SchemaProps: spec.SchemaProps{ + Description: "LastAppliedChartConfigHash is the last applied configuration", Type: []string{"string"}, Format: "", }, @@ -21503,11 +21345,12 @@ func schema_pkg_apis_management_v1_VirtualClusterInstanceKubeConfigStatus(ref co } } -func schema_pkg_apis_management_v1_VirtualClusterInstanceList(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_storage_v1_Cluster(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Type: []string{"object"}, + Description: "Cluster holds the cluster information", + Type: []string{"object"}, Properties: map[string]spec.Schema{ "kind": { SchemaProps: spec.SchemaProps{ @@ -21526,36 +21369,35 @@ func schema_pkg_apis_management_v1_VirtualClusterInstanceList(ref common.Referen "metadata": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref(metav1.ListMeta{}.OpenAPIModelName()), + Ref: ref(metav1.ObjectMeta{}.OpenAPIModelName()), }, }, - "items": { + "spec": { SchemaProps: spec.SchemaProps{ - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.VirtualClusterInstance"), - }, - }, - }, + Default: map[string]interface{}{}, + Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.ClusterSpec"), + }, + }, + "status": { + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.ClusterStatus"), }, }, }, - Required: []string{"items"}, }, }, Dependencies: []string{ - "github.com/devsy-org/api/pkg/apis/management/v1.VirtualClusterInstance", metav1.ListMeta{}.OpenAPIModelName()}, + "github.com/devsy-org/api/pkg/apis/storage/v1.ClusterSpec", "github.com/devsy-org/api/pkg/apis/storage/v1.ClusterStatus", metav1.ObjectMeta{}.OpenAPIModelName()}, } } -func schema_pkg_apis_management_v1_VirtualClusterInstanceLog(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_storage_v1_ClusterAccess(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Type: []string{"object"}, + Description: "ClusterAccess holds the global cluster access information", + Type: []string{"object"}, Properties: map[string]spec.Schema{ "kind": { SchemaProps: spec.SchemaProps{ @@ -21577,19 +21419,32 @@ func schema_pkg_apis_management_v1_VirtualClusterInstanceLog(ref common.Referenc Ref: ref(metav1.ObjectMeta{}.OpenAPIModelName()), }, }, + "spec": { + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.ClusterAccessSpec"), + }, + }, + "status": { + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.ClusterAccessStatus"), + }, + }, }, }, }, Dependencies: []string{ - metav1.ObjectMeta{}.OpenAPIModelName()}, + "github.com/devsy-org/api/pkg/apis/storage/v1.ClusterAccessSpec", "github.com/devsy-org/api/pkg/apis/storage/v1.ClusterAccessStatus", metav1.ObjectMeta{}.OpenAPIModelName()}, } } -func schema_pkg_apis_management_v1_VirtualClusterInstanceLogList(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_storage_v1_ClusterAccessList(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Type: []string{"object"}, + Description: "ClusterAccessList contains a list of ClusterAccess objects.", + Type: []string{"object"}, Properties: map[string]spec.Schema{ "kind": { SchemaProps: spec.SchemaProps{ @@ -21618,7 +21473,7 @@ func schema_pkg_apis_management_v1_VirtualClusterInstanceLogList(ref common.Refe Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.VirtualClusterInstanceLog"), + Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.ClusterAccess"), }, }, }, @@ -21629,105 +21484,191 @@ func schema_pkg_apis_management_v1_VirtualClusterInstanceLogList(ref common.Refe }, }, Dependencies: []string{ - "github.com/devsy-org/api/pkg/apis/management/v1.VirtualClusterInstanceLog", metav1.ListMeta{}.OpenAPIModelName()}, + "github.com/devsy-org/api/pkg/apis/storage/v1.ClusterAccess", metav1.ListMeta{}.OpenAPIModelName()}, } } -func schema_pkg_apis_management_v1_VirtualClusterInstanceLogOptions(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_storage_v1_ClusterAccessSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ Type: []string{"object"}, Properties: map[string]spec.Schema{ - "kind": { + "displayName": { SchemaProps: spec.SchemaProps{ - Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + Description: "DisplayName is the name that should be displayed in the UI", Type: []string{"string"}, Format: "", }, }, - "apiVersion": { + "description": { SchemaProps: spec.SchemaProps{ - Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + Description: "Description describes a cluster access object", Type: []string{"string"}, Format: "", }, }, - "container": { + "owner": { SchemaProps: spec.SchemaProps{ - Description: "The container for which to stream logs. Defaults to only container if there is one container in the pod.", - Type: []string{"string"}, - Format: "", + Description: "Owner holds the owner of this object", + Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.UserOrTeam"), }, }, - "follow": { + "clusters": { SchemaProps: spec.SchemaProps{ - Description: "Follow the log stream of the pod. Defaults to false.", - Type: []string{"boolean"}, - Format: "", + Description: "Clusters are the clusters this template should be applied on.", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + }, }, }, - "previous": { + "access": { SchemaProps: spec.SchemaProps{ - Description: "Return previous terminated container logs. Defaults to false.", - Type: []string{"boolean"}, - Format: "", + Description: "Access holds the access rights for users and teams", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.Access"), + }, + }, + }, }, }, - "sinceSeconds": { + "localClusterAccessTemplate": { SchemaProps: spec.SchemaProps{ - Description: "A relative time in seconds before the current time from which to show logs. If this value precedes the time a pod was started, only logs since the pod start will be returned. If this value is in the future, no logs will be returned. Only one of sinceSeconds or sinceTime may be specified.", - Type: []string{"integer"}, - Format: "int64", + Description: "LocalClusterAccessTemplate holds the cluster access template", + Default: map[string]interface{}{}, + Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.LocalClusterAccessTemplate"), }, }, - "sinceTime": { + }, + }, + }, + Dependencies: []string{ + "github.com/devsy-org/api/pkg/apis/storage/v1.Access", "github.com/devsy-org/api/pkg/apis/storage/v1.LocalClusterAccessTemplate", "github.com/devsy-org/api/pkg/apis/storage/v1.UserOrTeam"}, + } +} + +func schema_pkg_apis_storage_v1_ClusterAccessStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "ClusterAccessStatus holds the status of a user access", + Type: []string{"object"}, + }, + }, + } +} + +func schema_pkg_apis_storage_v1_ClusterList(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "ClusterList contains a list of Cluster.", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "kind": { SchemaProps: spec.SchemaProps{ - Description: "An RFC3339 timestamp from which to show logs. If this value precedes the time a pod was started, only logs since the pod start will be returned. If this value is in the future, no logs will be returned. Only one of sinceSeconds or sinceTime may be specified.", - Ref: ref(metav1.Time{}.OpenAPIModelName()), + Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + Type: []string{"string"}, + Format: "", }, }, - "timestamps": { + "apiVersion": { SchemaProps: spec.SchemaProps{ - Description: "If true, add an RFC3339 or RFC3339Nano timestamp at the beginning of every line of log output. Defaults to false.", - Type: []string{"boolean"}, + Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + Type: []string{"string"}, Format: "", }, }, - "tailLines": { + "metadata": { SchemaProps: spec.SchemaProps{ - Description: "If set, the number of lines from the end of the logs to show. If not specified, logs are shown from the creation of the container or sinceSeconds or sinceTime", - Type: []string{"integer"}, - Format: "int64", + Default: map[string]interface{}{}, + Ref: ref(metav1.ListMeta{}.OpenAPIModelName()), }, }, - "limitBytes": { + "items": { SchemaProps: spec.SchemaProps{ - Description: "If set, the number of bytes to read from the server before terminating the log output. This may not display a complete final line of logging, and may return slightly more or slightly less than the specified limit.", - Type: []string{"integer"}, - Format: "int64", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.Cluster"), + }, + }, + }, }, }, - "insecureSkipTLSVerifyBackend": { + }, + Required: []string{"items"}, + }, + }, + Dependencies: []string{ + "github.com/devsy-org/api/pkg/apis/storage/v1.Cluster", metav1.ListMeta{}.OpenAPIModelName()}, + } +} + +func schema_pkg_apis_storage_v1_ClusterRef(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "cluster": { SchemaProps: spec.SchemaProps{ - Description: "insecureSkipTLSVerifyBackend indicates that the apiserver should not confirm the validity of the serving certificate of the backend it is connecting to. This will make the HTTPS connection between the apiserver and the backend insecure. This means the apiserver cannot verify the log data it is receiving came from the real kubelet. If the kubelet is configured to verify the apiserver's TLS credentials, it does not mean the connection to the real kubelet is vulnerable to a man in the middle attack (e.g. an attacker could not intercept the actual log data coming from the real kubelet).", - Type: []string{"boolean"}, + Description: "Cluster is the connected cluster the space will be created in", + Type: []string{"string"}, + Format: "", + }, + }, + "namespace": { + SchemaProps: spec.SchemaProps{ + Description: "Namespace is the namespace inside the connected cluster holding the space", + Type: []string{"string"}, Format: "", }, }, }, }, }, - Dependencies: []string{ - metav1.Time{}.OpenAPIModelName()}, } } -func schema_pkg_apis_management_v1_VirtualClusterInstanceSnapshot(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_storage_v1_ClusterRoleRef(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "name": { + SchemaProps: spec.SchemaProps{ + Description: "Name is the cluster role to assign", + Type: []string{"string"}, + Format: "", + }, + }, + }, + }, + }, + } +} + +func schema_pkg_apis_storage_v1_ClusterRoleTemplate(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "ClusterRoleTemplate holds the global role template information", + Type: []string{"object"}, Properties: map[string]spec.Schema{ "kind": { SchemaProps: spec.SchemaProps{ @@ -21749,25 +21690,32 @@ func schema_pkg_apis_management_v1_VirtualClusterInstanceSnapshot(ref common.Ref Ref: ref(metav1.ObjectMeta{}.OpenAPIModelName()), }, }, + "spec": { + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.ClusterRoleTemplateSpec"), + }, + }, "status": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.VirtualClusterInstanceSnapshotStatus"), + Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.ClusterRoleTemplateStatus"), }, }, }, }, }, Dependencies: []string{ - "github.com/devsy-org/api/pkg/apis/management/v1.VirtualClusterInstanceSnapshotStatus", metav1.ObjectMeta{}.OpenAPIModelName()}, + "github.com/devsy-org/api/pkg/apis/storage/v1.ClusterRoleTemplateSpec", "github.com/devsy-org/api/pkg/apis/storage/v1.ClusterRoleTemplateStatus", metav1.ObjectMeta{}.OpenAPIModelName()}, } } -func schema_pkg_apis_management_v1_VirtualClusterInstanceSnapshotList(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_storage_v1_ClusterRoleTemplateList(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Type: []string{"object"}, + Description: "ClusterRoleTemplateList contains a list of ClusterRoleTemplate objects.", + Type: []string{"object"}, Properties: map[string]spec.Schema{ "kind": { SchemaProps: spec.SchemaProps{ @@ -21796,7 +21744,7 @@ func schema_pkg_apis_management_v1_VirtualClusterInstanceSnapshotList(ref common Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.VirtualClusterInstanceSnapshot"), + Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.ClusterRoleTemplate"), }, }, }, @@ -21807,54 +21755,26 @@ func schema_pkg_apis_management_v1_VirtualClusterInstanceSnapshotList(ref common }, }, Dependencies: []string{ - "github.com/devsy-org/api/pkg/apis/management/v1.VirtualClusterInstanceSnapshot", metav1.ListMeta{}.OpenAPIModelName()}, + "github.com/devsy-org/api/pkg/apis/storage/v1.ClusterRoleTemplate", metav1.ListMeta{}.OpenAPIModelName()}, } } -func schema_pkg_apis_management_v1_VirtualClusterInstanceSnapshotStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_storage_v1_ClusterRoleTemplateSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ Type: []string{"object"}, Properties: map[string]spec.Schema{ - "snapshotTaken": { + "displayName": { SchemaProps: spec.SchemaProps{ - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.SnapshotTaken"), - }, - }, - }, - }, - }, - }, - }, - }, - Dependencies: []string{ - "github.com/devsy-org/api/pkg/apis/management/v1.SnapshotTaken"}, - } -} - -func schema_pkg_apis_management_v1_VirtualClusterInstanceSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { - return common.OpenAPIDefinition{ - Schema: spec.Schema{ - SchemaProps: spec.SchemaProps{ - Description: "VirtualClusterInstanceSpec holds the specification", - Type: []string{"object"}, - Properties: map[string]spec.Schema{ - "displayName": { - SchemaProps: spec.SchemaProps{ - Description: "DisplayName is the name that should be displayed in the UI", - Type: []string{"string"}, - Format: "", + Description: "DisplayName is the name that should be displayed in the UI", + Type: []string{"string"}, + Format: "", }, }, "description": { SchemaProps: spec.SchemaProps{ - Description: "Description describes a virtual cluster instance", + Description: "Description describes a cluster role template object", Type: []string{"string"}, Format: "", }, @@ -21865,49 +21785,31 @@ func schema_pkg_apis_management_v1_VirtualClusterInstanceSpec(ref common.Referen Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.UserOrTeam"), }, }, - "templateRef": { - SchemaProps: spec.SchemaProps{ - Description: "TemplateRef holds the virtual cluster template reference", - Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.TemplateRef"), - }, - }, - "template": { - SchemaProps: spec.SchemaProps{ - Description: "Template is the inline template to use for virtual cluster creation. This is mutually exclusive with templateRef.", - Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.VirtualClusterTemplateDefinition"), - }, - }, - "clusterRef": { - SchemaProps: spec.SchemaProps{ - Description: "ClusterRef is the reference to the connected cluster holding this virtual cluster", - Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.VirtualClusterClusterRef"), - }, - }, - "parameters": { - SchemaProps: spec.SchemaProps{ - Description: "Parameters are values to pass to the template. The values should be encoded as YAML string where each parameter is represented as a top-level field key.", - Type: []string{"string"}, - Format: "", - }, - }, - "extraAccessRules": { + "clusters": { SchemaProps: spec.SchemaProps{ - Description: "ExtraAccessRules defines extra rules which users and teams should have which access to the virtual cluster.", + Description: "Clusters are the clusters this template should be applied on.", Type: []string{"array"}, Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.InstanceAccessRule"), + Default: "", + Type: []string{"string"}, + Format: "", }, }, }, }, }, + "management": { + SchemaProps: spec.SchemaProps{ + Description: "Management defines if this cluster role should be created in the management instance.", + Type: []string{"boolean"}, + Format: "", + }, + }, "access": { SchemaProps: spec.SchemaProps{ - Description: "Access to the virtual cluster object itself", + Description: "Access holds the access rights for users and teams", Type: []string{"array"}, Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ @@ -21919,267 +21821,288 @@ func schema_pkg_apis_management_v1_VirtualClusterInstanceSpec(ref common.Referen }, }, }, - "networkPeer": { - SchemaProps: spec.SchemaProps{ - Description: "NetworkPeer specifies if the cluster is connected via tailscale.", - Type: []string{"boolean"}, - Format: "", - }, - }, - "external": { + "clusterRoleTemplate": { SchemaProps: spec.SchemaProps{ - Description: "External specifies if the virtual cluster is managed by the platform agent or externally.", - Type: []string{"boolean"}, - Format: "", + Description: "ClusterRoleTemplate holds the cluster role template", + Default: map[string]interface{}{}, + Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.ClusterRoleTemplateTemplate"), }, }, - "standalone": { + "localClusterRoleTemplate": { SchemaProps: spec.SchemaProps{ - Description: "Standalone specifies if the virtual cluster is standalone and not hosted in another Kubernetes cluster.", - Type: []string{"boolean"}, - Format: "", + Description: "DEPRECATED: Use ClusterRoleTemplate instead LocalClusterRoleTemplate holds the cluster role template", + Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.LocalClusterRoleTemplate"), }, }, }, }, }, Dependencies: []string{ - "github.com/devsy-org/api/pkg/apis/storage/v1.Access", "github.com/devsy-org/api/pkg/apis/storage/v1.InstanceAccessRule", "github.com/devsy-org/api/pkg/apis/storage/v1.TemplateRef", "github.com/devsy-org/api/pkg/apis/storage/v1.UserOrTeam", "github.com/devsy-org/api/pkg/apis/storage/v1.VirtualClusterClusterRef", "github.com/devsy-org/api/pkg/apis/storage/v1.VirtualClusterTemplateDefinition"}, + "github.com/devsy-org/api/pkg/apis/storage/v1.Access", "github.com/devsy-org/api/pkg/apis/storage/v1.ClusterRoleTemplateTemplate", "github.com/devsy-org/api/pkg/apis/storage/v1.LocalClusterRoleTemplate", "github.com/devsy-org/api/pkg/apis/storage/v1.UserOrTeam"}, } } -func schema_pkg_apis_management_v1_VirtualClusterInstanceStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_storage_v1_ClusterRoleTemplateStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "VirtualClusterInstanceStatus holds the status", + Description: "ClusterRoleTemplateStatus holds the status of a user access", Type: []string{"object"}, + }, + }, + } +} + +func schema_pkg_apis_storage_v1_ClusterRoleTemplateTemplate(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"object"}, Properties: map[string]spec.Schema{ - "phase": { + "metadata": { SchemaProps: spec.SchemaProps{ - Description: "Phase describes the current phase the virtual cluster instance is in", - Type: []string{"string"}, - Format: "", + Description: "Standard object's metadata.", + Default: map[string]interface{}{}, + Ref: ref(metav1.ObjectMeta{}.OpenAPIModelName()), }, }, - "reason": { + "rules": { SchemaProps: spec.SchemaProps{ - Description: "Reason describes the reason in machine-readable form why the cluster is in the current phase", - Type: []string{"string"}, - Format: "", + Description: "Rules holds all the PolicyRules for this ClusterRole", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref(rbacv1.PolicyRule{}.OpenAPIModelName()), + }, + }, + }, }, }, - "message": { + "aggregationRule": { SchemaProps: spec.SchemaProps{ - Description: "Message describes the reason in human-readable form why the cluster is in the current phase", - Type: []string{"string"}, - Format: "", + Description: "AggregationRule is an optional field that describes how to build the Rules for this ClusterRole. If AggregationRule is set, then the Rules are controller managed and direct changes to Rules will be stomped by the controller.", + Ref: ref(rbacv1.AggregationRule{}.OpenAPIModelName()), }, }, - "serviceUID": { + }, + }, + }, + Dependencies: []string{ + rbacv1.AggregationRule{}.OpenAPIModelName(), rbacv1.PolicyRule{}.OpenAPIModelName(), metav1.ObjectMeta{}.OpenAPIModelName()}, + } +} + +func schema_pkg_apis_storage_v1_ClusterSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "ClusterSpec holds the cluster specification", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "displayName": { SchemaProps: spec.SchemaProps{ - Description: "ServiceUID is the service uid of the virtual cluster to uniquely identify it.", + Description: "If specified this name is displayed in the UI instead of the metadata name", Type: []string{"string"}, Format: "", }, }, - "deployHash": { + "description": { SchemaProps: spec.SchemaProps{ - Description: "DeployHash is the hash of the last deployed values.", + Description: "Description describes a cluster access object", Type: []string{"string"}, Format: "", }, }, - "conditions": { - SchemaProps: spec.SchemaProps{ - Description: "Conditions holds several conditions the virtual cluster might be in", - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref(storagev1.Condition{}.OpenAPIModelName()), - }, - }, - }, - }, - }, - "virtualClusterObjects": { + "owner": { SchemaProps: spec.SchemaProps{ - Description: "VirtualClusterObjects are the objects that were applied within the virtual cluster itself", - Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.ObjectsStatus"), + Description: "Owner holds the owner of this object", + Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.UserOrTeam"), }, }, - "spaceObjects": { + "config": { SchemaProps: spec.SchemaProps{ - Description: "SpaceObjects are the objects that were applied within the virtual cluster space", - Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.ObjectsStatus"), + Description: "Holds a reference to a secret that holds the kube config to access this cluster", + Default: map[string]interface{}{}, + Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.SecretRef"), }, }, - "virtualCluster": { + "local": { SchemaProps: spec.SchemaProps{ - Description: "VirtualCluster is the template rendered with all the parameters", - Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.VirtualClusterTemplateDefinition"), + Description: "Local specifies if it is the local cluster that should be connected, when this is specified, config is optional", + Type: []string{"boolean"}, + Format: "", }, }, - "ignoreReconciliation": { + "networkPeer": { SchemaProps: spec.SchemaProps{ - Description: "IgnoreReconciliation tells the controller to ignore reconciliation for this instance -- this is primarily used when migrating virtual cluster instances from project to project; this prevents a situation where there are two virtual cluster instances representing the same virtual cluster which could cause issues with concurrent reconciliations of the same object. Once the virtual cluster instance has been cloned and placed into the new project, this (the \"old\") virtual cluster instance can safely be deleted.", + Description: "NetworkPeer specifies if the cluster is connected via tailscale, when this is specified, config is optional", Type: []string{"boolean"}, Format: "", }, }, - "sleepModeConfig": { + "managementNamespace": { SchemaProps: spec.SchemaProps{ - Description: "SleepModeConfig is the sleep mode config of the space. This will only be shown in the front end.", - Ref: ref(v1.SleepModeConfig{}.OpenAPIModelName()), + Description: "The namespace where the cluster components will be installed in", + Type: []string{"string"}, + Format: "", }, }, - "canUse": { + "unusable": { SchemaProps: spec.SchemaProps{ - Description: "CanUse specifies if the requester can use the instance", + Description: "If unusable is true, no spaces or virtual clusters can be scheduled on this cluster.", Type: []string{"boolean"}, Format: "", }, }, - "canUpdate": { + "access": { SchemaProps: spec.SchemaProps{ - Description: "CanUpdate specifies if the requester can update the instance", - Type: []string{"boolean"}, - Format: "", + Description: "Access holds the access rights for users and teams", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.Access"), + }, + }, + }, }, }, - "online": { + "metrics": { SchemaProps: spec.SchemaProps{ - Description: "Online specifies if there is at least one network peer available for an agentless vCluster.", - Type: []string{"boolean"}, - Format: "", + Description: "Metrics holds the cluster's metrics backend configuration", + Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.Metrics"), + }, + }, + "opencost": { + SchemaProps: spec.SchemaProps{ + Description: "OpenCost holds the cluster's OpenCost backend configuration", + Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.OpenCost"), }, }, }, }, }, Dependencies: []string{ - v1.SleepModeConfig{}.OpenAPIModelName(), storagev1.Condition{}.OpenAPIModelName(), "github.com/devsy-org/api/pkg/apis/storage/v1.ObjectsStatus", "github.com/devsy-org/api/pkg/apis/storage/v1.VirtualClusterTemplateDefinition"}, + "github.com/devsy-org/api/pkg/apis/storage/v1.Access", "github.com/devsy-org/api/pkg/apis/storage/v1.Metrics", "github.com/devsy-org/api/pkg/apis/storage/v1.OpenCost", "github.com/devsy-org/api/pkg/apis/storage/v1.SecretRef", "github.com/devsy-org/api/pkg/apis/storage/v1.UserOrTeam"}, } } -func schema_pkg_apis_management_v1_VirtualClusterNodeAccessKey(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_storage_v1_ClusterStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "VirtualClusterNodeAccessKey holds the access key for the virtual cluster", + Description: "ClusterStatus holds the user status", Type: []string{"object"}, Properties: map[string]spec.Schema{ - "kind": { - SchemaProps: spec.SchemaProps{ - Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", - Type: []string{"string"}, - Format: "", - }, - }, - "apiVersion": { + "phase": { SchemaProps: spec.SchemaProps{ - Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", - Type: []string{"string"}, - Format: "", + Type: []string{"string"}, + Format: "", }, }, - "metadata": { + "reason": { SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref(metav1.ObjectMeta{}.OpenAPIModelName()), + Type: []string{"string"}, + Format: "", }, }, - "spec": { + "message": { SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.VirtualClusterNodeAccessKeySpec"), + Type: []string{"string"}, + Format: "", }, }, - "status": { + "conditions": { SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.VirtualClusterNodeAccessKeyStatus"), + Description: "Conditions holds several conditions the cluster might be in", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("github.com/devsy-org/agentapi/pkg/apis/devsy/storage/v1.Condition"), + }, + }, + }, }, }, }, }, }, Dependencies: []string{ - "github.com/devsy-org/api/pkg/apis/management/v1.VirtualClusterNodeAccessKeySpec", "github.com/devsy-org/api/pkg/apis/management/v1.VirtualClusterNodeAccessKeyStatus", metav1.ObjectMeta{}.OpenAPIModelName()}, + "github.com/devsy-org/agentapi/pkg/apis/devsy/storage/v1.Condition"}, } } -func schema_pkg_apis_management_v1_VirtualClusterNodeAccessKeyList(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_storage_v1_CredentialForwarding(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ Type: []string{"object"}, Properties: map[string]spec.Schema{ - "kind": { - SchemaProps: spec.SchemaProps{ - Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", - Type: []string{"string"}, - Format: "", - }, - }, - "apiVersion": { - SchemaProps: spec.SchemaProps{ - Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", - Type: []string{"string"}, - Format: "", - }, - }, - "metadata": { + "docker": { SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref(metav1.ListMeta{}.OpenAPIModelName()), + Description: "Docker specifies controls for how workspaces created by this template forward docker credentials", + Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.DockerCredentialForwarding"), }, }, - "items": { + "git": { SchemaProps: spec.SchemaProps{ - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.VirtualClusterNodeAccessKey"), - }, - }, - }, + Description: "Git specifies controls for how workspaces created by this template forward git credentials", + Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.GitCredentialForwarding"), }, }, }, - Required: []string{"items"}, }, }, Dependencies: []string{ - "github.com/devsy-org/api/pkg/apis/management/v1.VirtualClusterNodeAccessKey", metav1.ListMeta{}.OpenAPIModelName()}, + "github.com/devsy-org/api/pkg/apis/storage/v1.DockerCredentialForwarding", "github.com/devsy-org/api/pkg/apis/storage/v1.GitCredentialForwarding"}, } } -func schema_pkg_apis_management_v1_VirtualClusterNodeAccessKeySpec(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_storage_v1_DevsyCommandDeleteOptions(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "ignoreNotFound": { + SchemaProps: spec.SchemaProps{ + Type: []string{"boolean"}, + Format: "", + }, + }, + "force": { + SchemaProps: spec.SchemaProps{ + Type: []string{"boolean"}, + Format: "", + }, + }, + "gracePeriod": { + SchemaProps: spec.SchemaProps{ + Type: []string{"string"}, + Format: "", + }, + }, + }, }, }, } } -func schema_pkg_apis_management_v1_VirtualClusterNodeAccessKeyStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_storage_v1_DevsyCommandStatusOptions(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ Type: []string{"object"}, Properties: map[string]spec.Schema{ - "accessKey": { + "containerStatus": { SchemaProps: spec.SchemaProps{ - Description: "AccessKey is the access key used by the agent", - Type: []string{"string"}, - Format: "", + Type: []string{"boolean"}, + Format: "", }, }, }, @@ -22188,60 +22111,164 @@ func schema_pkg_apis_management_v1_VirtualClusterNodeAccessKeyStatus(ref common. } } -func schema_pkg_apis_management_v1_VirtualClusterRole(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_storage_v1_DevsyCommandStopOptions(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"object"}, + }, + }, + } +} + +func schema_pkg_apis_storage_v1_DevsyCommandUpOptions(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ Type: []string{"object"}, Properties: map[string]spec.Schema{ - "namespace": { + "id": { SchemaProps: spec.SchemaProps{ - Description: "Namespace of the referenced object", + Description: "up options", Type: []string{"string"}, Format: "", }, }, - "name": { + "source": { SchemaProps: spec.SchemaProps{ - Description: "Name of the referenced object", - Type: []string{"string"}, - Format: "", + Type: []string{"string"}, + Format: "", }, }, - "displayName": { + "ide": { SchemaProps: spec.SchemaProps{ - Description: "DisplayName is the name of the object to display in the UI", + Type: []string{"string"}, + Format: "", + }, + }, + "ideOptions": { + SchemaProps: spec.SchemaProps{ + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + }, + }, + }, + "prebuildRepositories": { + SchemaProps: spec.SchemaProps{ + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + }, + }, + }, + "devContainerPath": { + SchemaProps: spec.SchemaProps{ + Type: []string{"string"}, + Format: "", + }, + }, + "workspaceEnv": { + SchemaProps: spec.SchemaProps{ + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + }, + }, + }, + "recreate": { + SchemaProps: spec.SchemaProps{ + Type: []string{"boolean"}, + Format: "", + }, + }, + "proxy": { + SchemaProps: spec.SchemaProps{ + Type: []string{"boolean"}, + Format: "", + }, + }, + "disableDaemon": { + SchemaProps: spec.SchemaProps{ + Type: []string{"boolean"}, + Format: "", + }, + }, + "daemonInterval": { + SchemaProps: spec.SchemaProps{ + Type: []string{"string"}, + Format: "", + }, + }, + "repository": { + SchemaProps: spec.SchemaProps{ + Description: "build options", Type: []string{"string"}, Format: "", }, }, - "role": { + "skipPush": { SchemaProps: spec.SchemaProps{ - Description: "Role is the cluster role inside the virtual cluster. One of cluster-admin, admin, edit, or view", - Type: []string{"string"}, + Type: []string{"boolean"}, + Format: "", + }, + }, + "platform": { + SchemaProps: spec.SchemaProps{ + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + }, + }, + }, + "forceBuild": { + SchemaProps: spec.SchemaProps{ + Description: "TESTING", + Type: []string{"boolean"}, Format: "", }, }, - "assignedVia": { + "forceInternalBuildKit": { SchemaProps: spec.SchemaProps{ - Description: "AssignedVia describes the resource that establishes the project membership", - Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.AssignedVia"), + Type: []string{"boolean"}, + Format: "", }, }, }, }, }, - Dependencies: []string{ - "github.com/devsy-org/api/pkg/apis/management/v1.AssignedVia"}, } } -func schema_pkg_apis_management_v1_VirtualClusterSchema(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_storage_v1_DevsyEnvironmentTemplate(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "VirtualClusterSchema holds config request and response data for virtual clusters", + Description: "DevsyWorkspaceEnvironmentSource", Type: []string{"object"}, Properties: map[string]spec.Schema{ "kind": { @@ -22267,123 +22294,70 @@ func schema_pkg_apis_management_v1_VirtualClusterSchema(ref common.ReferenceCall "spec": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.VirtualClusterSchemaSpec"), + Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.DevsyEnvironmentTemplateSpec"), }, }, "status": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.VirtualClusterSchemaStatus"), + Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.DevsyEnvironmentTemplateStatus"), }, }, }, }, }, Dependencies: []string{ - "github.com/devsy-org/api/pkg/apis/management/v1.VirtualClusterSchemaSpec", "github.com/devsy-org/api/pkg/apis/management/v1.VirtualClusterSchemaStatus", metav1.ObjectMeta{}.OpenAPIModelName()}, + "github.com/devsy-org/api/pkg/apis/storage/v1.DevsyEnvironmentTemplateSpec", "github.com/devsy-org/api/pkg/apis/storage/v1.DevsyEnvironmentTemplateStatus", metav1.ObjectMeta{}.OpenAPIModelName()}, } } -func schema_pkg_apis_management_v1_VirtualClusterSchemaList(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_storage_v1_DevsyEnvironmentTemplateDefinition(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ Type: []string{"object"}, Properties: map[string]spec.Schema{ - "kind": { + "git": { SchemaProps: spec.SchemaProps{ - Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", - Type: []string{"string"}, - Format: "", + Description: "Git holds configuration for git environment spec source", + Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.GitEnvironmentTemplate"), }, }, - "apiVersion": { + "inline": { SchemaProps: spec.SchemaProps{ - Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + Description: "Inline holds an inline devcontainer.json definition", Type: []string{"string"}, Format: "", }, }, - "metadata": { + "workspaceRepositoryCloneStrategy": { SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref(metav1.ListMeta{}.OpenAPIModelName()), + Description: "WorkspaceRepositoryCloneStrategy determines how the workspaces git repository will be checked out in the pod if the workspace is git based\n\nPossible enum values:\n - `\"\"`\n - `\"blobless\"`\n - `\"shallow\"`\n - `\"treeless\"`", + Type: []string{"string"}, + Format: "", + Enum: []interface{}{"", "blobless", "shallow", "treeless"}, }, }, - "items": { + "workspaceRepositorySkipLFS": { SchemaProps: spec.SchemaProps{ - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.VirtualClusterSchema"), - }, - }, - }, + Description: "WorkspaceRepositorySkipLFS specifies if git lfs will be skipped when cloning the repository into the workspace", + Type: []string{"boolean"}, + Format: "", }, }, }, - Required: []string{"items"}, }, }, Dependencies: []string{ - "github.com/devsy-org/api/pkg/apis/management/v1.VirtualClusterSchema", metav1.ListMeta{}.OpenAPIModelName()}, + "github.com/devsy-org/api/pkg/apis/storage/v1.GitEnvironmentTemplate"}, } } -func schema_pkg_apis_management_v1_VirtualClusterSchemaSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_storage_v1_DevsyEnvironmentTemplateList(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "VirtualClusterSchemaSpec holds the specification", - Type: []string{"object"}, - Properties: map[string]spec.Schema{ - "version": { - SchemaProps: spec.SchemaProps{ - Description: "Version is the version of the virtual cluster", - Type: []string{"string"}, - Format: "", - }, - }, - }, - }, - }, - } -} - -func schema_pkg_apis_management_v1_VirtualClusterSchemaStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { - return common.OpenAPIDefinition{ - Schema: spec.Schema{ - SchemaProps: spec.SchemaProps{ - Description: "VirtualClusterSchemaStatus holds the status", - Type: []string{"object"}, - Properties: map[string]spec.Schema{ - "schema": { - SchemaProps: spec.SchemaProps{ - Description: "Schema is the schema of the virtual cluster", - Type: []string{"string"}, - Format: "", - }, - }, - "defaultValues": { - SchemaProps: spec.SchemaProps{ - Description: "DefaultValues are the default values of the virtual cluster", - Type: []string{"string"}, - Format: "", - }, - }, - }, - }, - }, - } -} - -func schema_pkg_apis_management_v1_VirtualClusterStandalone(ref common.ReferenceCallback) common.OpenAPIDefinition { - return common.OpenAPIDefinition{ - Schema: spec.Schema{ - SchemaProps: spec.SchemaProps{ - Description: "VirtualClusterStandalone holds kube config request and response data for virtual clusters", + Description: "DevsyEnvironmentTemplateList contains a list of DevsyEnvironmentTemplate objects.", Type: []string{"object"}, Properties: map[string]spec.Schema{ "kind": { @@ -22403,440 +22377,522 @@ func schema_pkg_apis_management_v1_VirtualClusterStandalone(ref common.Reference "metadata": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref(metav1.ObjectMeta{}.OpenAPIModelName()), - }, - }, - "spec": { - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.VirtualClusterStandaloneSpec"), + Ref: ref(metav1.ListMeta{}.OpenAPIModelName()), }, }, - "status": { + "items": { SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.VirtualClusterStandaloneStatus"), + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.DevsyEnvironmentTemplate"), + }, + }, + }, }, }, }, + Required: []string{"items"}, }, }, Dependencies: []string{ - "github.com/devsy-org/api/pkg/apis/management/v1.VirtualClusterStandaloneSpec", "github.com/devsy-org/api/pkg/apis/management/v1.VirtualClusterStandaloneStatus", metav1.ObjectMeta{}.OpenAPIModelName()}, + "github.com/devsy-org/api/pkg/apis/storage/v1.DevsyEnvironmentTemplate", metav1.ListMeta{}.OpenAPIModelName()}, } } -func schema_pkg_apis_management_v1_VirtualClusterStandaloneList(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_storage_v1_DevsyEnvironmentTemplateSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ Type: []string{"object"}, Properties: map[string]spec.Schema{ - "kind": { + "displayName": { SchemaProps: spec.SchemaProps{ - Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + Description: "DisplayName is the name that should be displayed in the UI", Type: []string{"string"}, Format: "", }, }, - "apiVersion": { + "description": { SchemaProps: spec.SchemaProps{ - Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + Description: "Description describes the environment template", Type: []string{"string"}, Format: "", }, }, - "metadata": { + "owner": { SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref(metav1.ListMeta{}.OpenAPIModelName()), + Description: "Owner holds the owner of this object", + Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.UserOrTeam"), }, }, - "items": { + "access": { SchemaProps: spec.SchemaProps{ - Type: []string{"array"}, + Description: "Access to the Devsy machine instance object itself", + Type: []string{"array"}, Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.VirtualClusterStandalone"), + Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.Access"), + }, + }, + }, + }, + }, + "template": { + SchemaProps: spec.SchemaProps{ + Description: "Template is the inline template to use for Devsy environments", + Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.DevsyEnvironmentTemplateDefinition"), + }, + }, + "versions": { + SchemaProps: spec.SchemaProps{ + Description: "Versions are different versions of the template that can be referenced as well", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.DevsyEnvironmentTemplateVersion"), }, }, }, }, }, }, - Required: []string{"items"}, }, }, Dependencies: []string{ - "github.com/devsy-org/api/pkg/apis/management/v1.VirtualClusterStandalone", metav1.ListMeta{}.OpenAPIModelName()}, + "github.com/devsy-org/api/pkg/apis/storage/v1.Access", "github.com/devsy-org/api/pkg/apis/storage/v1.DevsyEnvironmentTemplateDefinition", "github.com/devsy-org/api/pkg/apis/storage/v1.DevsyEnvironmentTemplateVersion", "github.com/devsy-org/api/pkg/apis/storage/v1.UserOrTeam"}, } } -func schema_pkg_apis_management_v1_VirtualClusterStandaloneSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_storage_v1_DevsyEnvironmentTemplateStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "DevsyEnvironmentTemplateStatus holds the status.", + Type: []string{"object"}, + }, + }, + } +} + +func schema_pkg_apis_storage_v1_DevsyEnvironmentTemplateVersion(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ Type: []string{"object"}, Properties: map[string]spec.Schema{ - "currentPeer": { + "template": { SchemaProps: spec.SchemaProps{ - Description: "CurrentPeer is the current peer that calls this API. The API will make sure this peer is added to the etcd peers list. If this is the first peer, it will be the coordinator.", + Description: "Template holds the environment template definition", Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.StandaloneEtcdPeer"), + Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.DevsyEnvironmentTemplateDefinition"), }, }, - "currentPKI": { + "version": { SchemaProps: spec.SchemaProps{ - Description: "CurrentPKI contains certs bundle for vCluster", - Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.StandalonePKI"), + Description: "Version is the version. Needs to be in X.X.X format.", + Type: []string{"string"}, + Format: "", }, }, }, - Required: []string{"currentPeer", "currentPKI"}, }, }, Dependencies: []string{ - "github.com/devsy-org/api/pkg/apis/management/v1.StandaloneEtcdPeer", "github.com/devsy-org/api/pkg/apis/management/v1.StandalonePKI"}, + "github.com/devsy-org/api/pkg/apis/storage/v1.DevsyEnvironmentTemplateDefinition"}, } } -func schema_pkg_apis_management_v1_VirtualClusterStandaloneStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_storage_v1_DevsyProjectSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ Type: []string{"object"}, Properties: map[string]spec.Schema{ - "etcdPeers": { + "git": { SchemaProps: spec.SchemaProps{ - Description: "ETCDPeers holds the comma separated list of etcd peers addresses. It is used as a peer cache for vCluster Standalone deployed in HA mode via NodeProvider.", - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.StandaloneEtcdPeerCoordinator"), - }, - }, - }, + Description: "Git defines additional git related settings like credentials", + Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.GitProjectSpec"), }, }, - "currentPKI": { + "fallbackImage": { SchemaProps: spec.SchemaProps{ - Description: "PKI returns certs bundle for vCluster", - Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.StandalonePKI"), + Description: "FallbackImage defines an image all workspace will fall back to if no devcontainer.json could be detected", + Type: []string{"string"}, + Format: "", + }, + }, + "registryPattern": { + SchemaProps: spec.SchemaProps{ + Description: "RegistryPattern specifies a template pattern to use for building images on the fly. Requires the platform pods to be authenticated against the registry.", + Type: []string{"string"}, + Format: "", }, }, }, - Required: []string{"etcdPeers", "currentPKI"}, }, }, Dependencies: []string{ - "github.com/devsy-org/api/pkg/apis/management/v1.StandaloneEtcdPeerCoordinator", "github.com/devsy-org/api/pkg/apis/management/v1.StandalonePKI"}, + "github.com/devsy-org/api/pkg/apis/storage/v1.GitProjectSpec"}, } } -func schema_pkg_apis_management_v1_VirtualClusterTemplate(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_storage_v1_DevsyProviderOption(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "VirtualClusterTemplate holds the information", - Type: []string{"object"}, + Type: []string{"object"}, Properties: map[string]spec.Schema{ - "kind": { - SchemaProps: spec.SchemaProps{ - Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", - Type: []string{"string"}, - Format: "", - }, - }, - "apiVersion": { + "value": { SchemaProps: spec.SchemaProps{ - Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + Description: "Value of this option.", Type: []string{"string"}, Format: "", }, }, - "metadata": { + "valueFrom": { SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref(metav1.ObjectMeta{}.OpenAPIModelName()), + Description: "ValueFrom specifies a secret where this value should be taken from.", + Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.DevsyProviderOptionFrom"), }, }, - "spec": { + }, + }, + }, + Dependencies: []string{ + "github.com/devsy-org/api/pkg/apis/storage/v1.DevsyProviderOptionFrom"}, + } +} + +func schema_pkg_apis_storage_v1_DevsyProviderOptionFrom(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "projectSecretRef": { SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.VirtualClusterTemplateSpec"), + Description: "ProjectSecretRef is the project secret to use for this value.", + Ref: ref(corev1.SecretKeySelector{}.OpenAPIModelName()), }, }, - "status": { + "sharedSecretRef": { SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.VirtualClusterTemplateStatus"), + Description: "SharedSecretRef is the shared secret to use for this value.", + Ref: ref(corev1.SecretKeySelector{}.OpenAPIModelName()), }, }, }, }, }, Dependencies: []string{ - "github.com/devsy-org/api/pkg/apis/management/v1.VirtualClusterTemplateSpec", "github.com/devsy-org/api/pkg/apis/management/v1.VirtualClusterTemplateStatus", metav1.ObjectMeta{}.OpenAPIModelName()}, + corev1.SecretKeySelector{}.OpenAPIModelName()}, } } -func schema_pkg_apis_management_v1_VirtualClusterTemplateList(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_storage_v1_DevsyProviderSource(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ Type: []string{"object"}, Properties: map[string]spec.Schema{ - "kind": { + "github": { SchemaProps: spec.SchemaProps{ - Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + Description: "Github source for the provider", Type: []string{"string"}, Format: "", }, }, - "apiVersion": { + "file": { SchemaProps: spec.SchemaProps{ - Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + Description: "File source for the provider", Type: []string{"string"}, Format: "", }, }, - "metadata": { - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref(metav1.ListMeta{}.OpenAPIModelName()), - }, - }, - "items": { + "url": { SchemaProps: spec.SchemaProps{ - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/management/v1.VirtualClusterTemplate"), - }, - }, - }, + Description: "URL where the provider was downloaded from", + Type: []string{"string"}, + Format: "", }, }, }, - Required: []string{"items"}, }, }, - Dependencies: []string{ - "github.com/devsy-org/api/pkg/apis/management/v1.VirtualClusterTemplate", metav1.ListMeta{}.OpenAPIModelName()}, } } -func schema_pkg_apis_management_v1_VirtualClusterTemplateSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_storage_v1_DevsyWorkspaceContainer(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "VirtualClusterTemplateSpec holds the specification", + Description: "// DevsyWorkspacePodResourceRequirements is a less restrictive corev1.Container.", Type: []string{"object"}, Properties: map[string]spec.Schema{ - "displayName": { + "name": { SchemaProps: spec.SchemaProps{ - Description: "DisplayName is the name that is shown in the UI", + Description: "Name of the container specified as a DNS_LABEL.", + Default: "", Type: []string{"string"}, Format: "", }, }, - "description": { + "image": { SchemaProps: spec.SchemaProps{ - Description: "Description describes the virtual cluster template", + Description: "Container image name.", Type: []string{"string"}, Format: "", }, }, - "owner": { - SchemaProps: spec.SchemaProps{ - Description: "Owner holds the owner of this object", - Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.UserOrTeam"), - }, - }, - "template": { - SchemaProps: spec.SchemaProps{ - Description: "Template holds the virtual cluster template", - Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.VirtualClusterTemplateDefinition"), + "command": { + VendorExtensible: spec.VendorExtensible{ + Extensions: spec.Extensions{ + "x-kubernetes-list-type": "atomic", + }, }, - }, - "parameters": { SchemaProps: spec.SchemaProps{ - Description: "Parameters define additional app parameters that will set helm values", + Description: "Entrypoint array. Not executed within a shell.", Type: []string{"array"}, Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.AppParameter"), + Default: "", + Type: []string{"string"}, + Format: "", }, }, }, }, }, - "versions": { + "args": { + VendorExtensible: spec.VendorExtensible{ + Extensions: spec.Extensions{ + "x-kubernetes-list-type": "atomic", + }, + }, SchemaProps: spec.SchemaProps{ - Description: "Versions are different versions of the template that can be referenced as well", + Description: "Arguments to the entrypoint.", Type: []string{"array"}, Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.VirtualClusterTemplateVersion"), + Default: "", + Type: []string{"string"}, + Format: "", }, }, }, }, }, - "access": { + "workingDir": { SchemaProps: spec.SchemaProps{ - Description: "Access holds the access rights for users and teams", + Description: "Container's working directory.", + Type: []string{"string"}, + Format: "", + }, + }, + "ports": { + SchemaProps: spec.SchemaProps{ + Description: "List of ports to expose from the container. Not specifying a port here", Type: []string{"array"}, Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.Access"), + Ref: ref(corev1.ContainerPort{}.OpenAPIModelName()), }, }, }, }, }, - "spaceTemplateRef": { - SchemaProps: spec.SchemaProps{ - Description: "DEPRECATED: SpaceTemplate to use to create the virtual cluster space if it does not exist", - Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.VirtualClusterTemplateSpaceTemplateRef"), + "envFrom": { + VendorExtensible: spec.VendorExtensible{ + Extensions: spec.Extensions{ + "x-kubernetes-list-type": "atomic", + }, }, - }, - }, - }, - }, - Dependencies: []string{ - "github.com/devsy-org/api/pkg/apis/storage/v1.Access", "github.com/devsy-org/api/pkg/apis/storage/v1.AppParameter", "github.com/devsy-org/api/pkg/apis/storage/v1.UserOrTeam", "github.com/devsy-org/api/pkg/apis/storage/v1.VirtualClusterTemplateDefinition", "github.com/devsy-org/api/pkg/apis/storage/v1.VirtualClusterTemplateSpaceTemplateRef", "github.com/devsy-org/api/pkg/apis/storage/v1.VirtualClusterTemplateVersion"}, - } -} - -func schema_pkg_apis_management_v1_VirtualClusterTemplateStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { - return common.OpenAPIDefinition{ - Schema: spec.Schema{ - SchemaProps: spec.SchemaProps{ - Description: "VirtualClusterTemplateStatus holds the status", - Type: []string{"object"}, - Properties: map[string]spec.Schema{ - "apps": { SchemaProps: spec.SchemaProps{ Type: []string{"array"}, Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ - Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.EntityInfo"), + Default: map[string]interface{}{}, + Ref: ref(corev1.EnvFromSource{}.OpenAPIModelName()), }, }, }, }, }, - }, - }, - }, - Dependencies: []string{ - "github.com/devsy-org/api/pkg/apis/storage/v1.EntityInfo"}, - } -} - -func schema_pkg_apis_storage_v1_Access(ref common.ReferenceCallback) common.OpenAPIDefinition { - return common.OpenAPIDefinition{ - Schema: spec.Schema{ - SchemaProps: spec.SchemaProps{ - Description: "Access describes the access to a secret", - Type: []string{"object"}, - Properties: map[string]spec.Schema{ - "name": { - SchemaProps: spec.SchemaProps{ - Description: "Name is an optional name that is used for this access rule", - Type: []string{"string"}, - Format: "", - }, - }, - "verbs": { + "env": { SchemaProps: spec.SchemaProps{ - Description: "Verbs is a list of Verbs that apply to ALL the ResourceKinds and AttributeRestrictions contained in this rule. VerbAll represents all kinds.", + Description: "List of environment variables to set in the container.", Type: []string{"array"}, Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ - Default: "", - Type: []string{"string"}, - Format: "", + Default: map[string]interface{}{}, + Ref: ref(corev1.EnvVar{}.OpenAPIModelName()), }, }, }, }, }, - "subresources": { + "resources": { SchemaProps: spec.SchemaProps{ - Description: "Subresources defines the sub resources that are allowed by this access rule", + Description: "Compute Resources required by this container.", + Default: map[string]interface{}{}, + Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.DevsyWorkspaceResourceRequirements"), + }, + }, + "resizePolicy": { + VendorExtensible: spec.VendorExtensible{ + Extensions: spec.Extensions{ + "x-kubernetes-list-type": "atomic", + }, + }, + SchemaProps: spec.SchemaProps{ + Description: "Resources resize policy for the container.", Type: []string{"array"}, Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ - Default: "", - Type: []string{"string"}, - Format: "", + Default: map[string]interface{}{}, + Ref: ref(corev1.ContainerResizePolicy{}.OpenAPIModelName()), }, }, }, }, }, - "users": { + "restartPolicy": { SchemaProps: spec.SchemaProps{ - Description: "Users specifies which users should be able to access this secret with the aforementioned verbs", + Description: "RestartPolicy defines the restart behavior of individual containers in a pod.", + Type: []string{"string"}, + Format: "", + }, + }, + "volumeMounts": { + SchemaProps: spec.SchemaProps{ + Description: "Pod volumes to mount into the container's filesystem.", Type: []string{"array"}, Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ - Default: "", - Type: []string{"string"}, - Format: "", + Default: map[string]interface{}{}, + Ref: ref(corev1.VolumeMount{}.OpenAPIModelName()), }, }, }, }, }, - "teams": { + "volumeDevices": { SchemaProps: spec.SchemaProps{ - Description: "Teams specifies which teams should be able to access this secret with the aforementioned verbs", + Description: "volumeDevices is the list of block devices to be used by the container.", Type: []string{"array"}, Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ - Default: "", - Type: []string{"string"}, - Format: "", + Default: map[string]interface{}{}, + Ref: ref(corev1.VolumeDevice{}.OpenAPIModelName()), }, }, }, }, }, + "livenessProbe": { + SchemaProps: spec.SchemaProps{ + Description: "Periodic probe of container liveness.", + Ref: ref(corev1.Probe{}.OpenAPIModelName()), + }, + }, + "readinessProbe": { + SchemaProps: spec.SchemaProps{ + Description: "Periodic probe of container service readiness.", + Ref: ref(corev1.Probe{}.OpenAPIModelName()), + }, + }, + "startupProbe": { + SchemaProps: spec.SchemaProps{ + Description: "StartupProbe indicates that the Pod has successfully initialized.", + Ref: ref(corev1.Probe{}.OpenAPIModelName()), + }, + }, + "lifecycle": { + SchemaProps: spec.SchemaProps{ + Description: "Actions that the management system should take in response to container lifecycle events.", + Ref: ref(corev1.Lifecycle{}.OpenAPIModelName()), + }, + }, + "terminationMessagePath": { + SchemaProps: spec.SchemaProps{ + Description: "Optional: Path at which the file to which the container's termination message", + Type: []string{"string"}, + Format: "", + }, + }, + "terminationMessagePolicy": { + SchemaProps: spec.SchemaProps{ + Description: "Indicate how the termination message should be populated. File will use the contents of\n\nPossible enum values:\n - `\"FallbackToLogsOnError\"` will read the most recent contents of the container logs for the container status message when the container exits with an error and the terminationMessagePath has no contents.\n - `\"File\"` is the default behavior and will set the container status message to the contents of the container's terminationMessagePath when the container exits.", + Type: []string{"string"}, + Format: "", + Enum: []interface{}{"FallbackToLogsOnError", "File"}, + }, + }, + "imagePullPolicy": { + SchemaProps: spec.SchemaProps{ + Description: "Image pull policy.\n\nPossible enum values:\n - `\"Always\"` means that kubelet always attempts to pull the latest image. Container will fail If the pull fails.\n - `\"IfNotPresent\"` means that kubelet pulls if the image isn't present on disk. Container will fail if the image isn't present and the pull fails.\n - `\"Never\"` means that kubelet never pulls an image, but only uses a local image. Container will fail if the image isn't present", + Type: []string{"string"}, + Format: "", + Enum: []interface{}{"Always", "IfNotPresent", "Never"}, + }, + }, + "securityContext": { + SchemaProps: spec.SchemaProps{ + Description: "SecurityContext defines the security options the container should be run with.", + Ref: ref(corev1.SecurityContext{}.OpenAPIModelName()), + }, + }, + "stdin": { + SchemaProps: spec.SchemaProps{ + Description: "Whether this container should allocate a buffer for stdin in the container runtime.", + Type: []string{"boolean"}, + Format: "", + }, + }, + "stdinOnce": { + SchemaProps: spec.SchemaProps{ + Description: "StdinOnce default is false", + Type: []string{"boolean"}, + Format: "", + }, + }, + "tty": { + SchemaProps: spec.SchemaProps{ + Description: "TTY default is false.", + Type: []string{"boolean"}, + Format: "", + }, + }, }, - Required: []string{"verbs"}, + Required: []string{"name"}, }, }, + Dependencies: []string{ + "github.com/devsy-org/api/pkg/apis/storage/v1.DevsyWorkspaceResourceRequirements", corev1.ContainerPort{}.OpenAPIModelName(), corev1.ContainerResizePolicy{}.OpenAPIModelName(), corev1.EnvFromSource{}.OpenAPIModelName(), corev1.EnvVar{}.OpenAPIModelName(), corev1.Lifecycle{}.OpenAPIModelName(), corev1.Probe{}.OpenAPIModelName(), corev1.SecurityContext{}.OpenAPIModelName(), corev1.VolumeDevice{}.OpenAPIModelName(), corev1.VolumeMount{}.OpenAPIModelName()}, } } -func schema_pkg_apis_storage_v1_AccessKey(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_storage_v1_DevsyWorkspaceInstance(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "AccessKey holds the session information", + Description: "DevsyWorkspaceInstance", Type: []string{"object"}, Properties: map[string]spec.Schema{ "kind": { @@ -22862,103 +22918,82 @@ func schema_pkg_apis_storage_v1_AccessKey(ref common.ReferenceCallback) common.O "spec": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.AccessKeySpec"), + Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.DevsyWorkspaceInstanceSpec"), }, }, "status": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.AccessKeyStatus"), + Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.DevsyWorkspaceInstanceStatus"), }, }, }, }, }, Dependencies: []string{ - "github.com/devsy-org/api/pkg/apis/storage/v1.AccessKeySpec", "github.com/devsy-org/api/pkg/apis/storage/v1.AccessKeyStatus", metav1.ObjectMeta{}.OpenAPIModelName()}, + "github.com/devsy-org/api/pkg/apis/storage/v1.DevsyWorkspaceInstanceSpec", "github.com/devsy-org/api/pkg/apis/storage/v1.DevsyWorkspaceInstanceStatus", metav1.ObjectMeta{}.OpenAPIModelName()}, } } -func schema_pkg_apis_storage_v1_AccessKeyList(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_storage_v1_DevsyWorkspaceInstanceContainerResource(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "AccessKeyList contains a list of AccessKey", - Type: []string{"object"}, + Type: []string{"object"}, Properties: map[string]spec.Schema{ - "kind": { + "name": { SchemaProps: spec.SchemaProps{ - Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + Description: "Name is the name of the container", Type: []string{"string"}, Format: "", }, }, - "apiVersion": { + "resources": { SchemaProps: spec.SchemaProps{ - Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", - Type: []string{"string"}, - Format: "", - }, - }, - "metadata": { - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref(metav1.ListMeta{}.OpenAPIModelName()), - }, - }, - "items": { - SchemaProps: spec.SchemaProps{ - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.AccessKey"), - }, - }, - }, + Description: "Resources is the resources of the container", + Default: map[string]interface{}{}, + Ref: ref(corev1.ResourceRequirements{}.OpenAPIModelName()), }, }, }, - Required: []string{"items"}, }, }, Dependencies: []string{ - "github.com/devsy-org/api/pkg/apis/storage/v1.AccessKey", metav1.ListMeta{}.OpenAPIModelName()}, + corev1.ResourceRequirements{}.OpenAPIModelName()}, } } -func schema_pkg_apis_storage_v1_AccessKeyOIDC(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_storage_v1_DevsyWorkspaceInstanceEvent(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ Type: []string{"object"}, Properties: map[string]spec.Schema{ - "idToken": { + "reason": { SchemaProps: spec.SchemaProps{ - Description: "The current id token that was created during login", + Description: "This should be a short, machine understandable string that gives the reason for the transition into the object's current status.", Type: []string{"string"}, - Format: "byte", + Format: "", }, }, - "accessToken": { + "message": { SchemaProps: spec.SchemaProps{ - Description: "The current access token that was created during login", + Description: "A human-readable description of the status of this operation.", Type: []string{"string"}, - Format: "byte", + Format: "", }, }, - "refreshToken": { + "lastTimestamp": { SchemaProps: spec.SchemaProps{ - Description: "The current refresh token that was created during login", - Type: []string{"string"}, - Format: "byte", + Description: "The time at which the most recent occurrence of this event was recorded.", + Ref: ref(metav1.Time{}.OpenAPIModelName()), }, }, - "lastRefresh": { + "type": { SchemaProps: spec.SchemaProps{ - Description: "The last time the id token was refreshed", - Ref: ref(metav1.Time{}.OpenAPIModelName()), + Description: "Type of this event (Normal, Warning), new types could be added in the future", + Type: []string{"string"}, + Format: "", }, }, }, @@ -22969,228 +23004,149 @@ func schema_pkg_apis_storage_v1_AccessKeyOIDC(ref common.ReferenceCallback) comm } } -func schema_pkg_apis_storage_v1_AccessKeyOIDCProvider(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_storage_v1_DevsyWorkspaceInstanceKubernetesStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ Type: []string{"object"}, Properties: map[string]spec.Schema{ - "clientId": { - SchemaProps: spec.SchemaProps{ - Description: "ClientId the token was generated for", - Type: []string{"string"}, - Format: "", - }, - }, - "nonce": { + "lastTransitionTime": { SchemaProps: spec.SchemaProps{ - Description: "Nonce to use", - Type: []string{"string"}, - Format: "", + Description: "Last time the condition transitioned from one status to another.", + Ref: ref(metav1.Time{}.OpenAPIModelName()), }, }, - "redirectUri": { + "podStatus": { SchemaProps: spec.SchemaProps{ - Description: "RedirectUri to use", - Type: []string{"string"}, - Format: "", + Description: "PodStatus is the status of the pod that is running the workspace", + Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.DevsyWorkspaceInstancePodStatus"), }, }, - "scopes": { + "persistentVolumeClaimStatus": { SchemaProps: spec.SchemaProps{ - Description: "Scopes to use", - Type: []string{"string"}, - Format: "", + Description: "PersistentVolumeClaimStatus is the pvc that is used to store the workspace.", + Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.DevsyWorkspaceInstancePersistentVolumeClaimStatus"), }, }, }, + Required: []string{"lastTransitionTime"}, }, }, + Dependencies: []string{ + "github.com/devsy-org/api/pkg/apis/storage/v1.DevsyWorkspaceInstancePersistentVolumeClaimStatus", "github.com/devsy-org/api/pkg/apis/storage/v1.DevsyWorkspaceInstancePodStatus", metav1.Time{}.OpenAPIModelName()}, } } -func schema_pkg_apis_storage_v1_AccessKeyScope(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_storage_v1_DevsyWorkspaceInstanceList(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Type: []string{"object"}, + Description: "DevsyWorkspaceInstanceList contains a list of DevsyWorkspaceInstance objects.", + Type: []string{"object"}, Properties: map[string]spec.Schema{ - "roles": { - SchemaProps: spec.SchemaProps{ - Description: "Roles is a set of managed permissions to apply to the access key.", - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.AccessKeyScopeRole"), - }, - }, - }, - }, - }, - "projects": { - SchemaProps: spec.SchemaProps{ - Description: "Projects specifies the projects the access key should have access to.", - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.AccessKeyScopeProject"), - }, - }, - }, - }, - }, - "spaces": { + "kind": { SchemaProps: spec.SchemaProps{ - Description: "Spaces specifies the spaces the access key is allowed to access.", - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.AccessKeyScopeSpace"), - }, - }, - }, + Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + Type: []string{"string"}, + Format: "", }, }, - "virtualClusters": { + "apiVersion": { SchemaProps: spec.SchemaProps{ - Description: "VirtualClusters specifies the virtual clusters the access key is allowed to access.", - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.AccessKeyScopeVirtualCluster"), - }, - }, - }, + Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + Type: []string{"string"}, + Format: "", }, }, - "clusters": { + "metadata": { SchemaProps: spec.SchemaProps{ - Description: "Clusters specifies the project cluster the access key is allowed to access.", - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.AccessKeyScopeCluster"), - }, - }, - }, + Default: map[string]interface{}{}, + Ref: ref(metav1.ListMeta{}.OpenAPIModelName()), }, }, - "rules": { + "items": { SchemaProps: spec.SchemaProps{ - Description: "DEPRECATED: Use Projects, Spaces and VirtualClusters instead Rules specifies the rules that should apply to the access key.", - Type: []string{"array"}, + Type: []string{"array"}, Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.AccessKeyScopeRule"), + Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.DevsyWorkspaceInstance"), }, }, }, }, }, - "allowLoftCli": { - SchemaProps: spec.SchemaProps{ - Description: "AllowLoftCLI allows certain read-only management requests to make sure devsy cli works correctly with this specific access key.\n\nDeprecated: Use the `roles` field instead\n ```yaml\n # Example:\n roles:\n - role: loftCLI\n ```", - Type: []string{"boolean"}, - Format: "", - }, - }, }, + Required: []string{"items"}, }, }, Dependencies: []string{ - "github.com/devsy-org/api/pkg/apis/storage/v1.AccessKeyScopeCluster", "github.com/devsy-org/api/pkg/apis/storage/v1.AccessKeyScopeProject", "github.com/devsy-org/api/pkg/apis/storage/v1.AccessKeyScopeRole", "github.com/devsy-org/api/pkg/apis/storage/v1.AccessKeyScopeRule", "github.com/devsy-org/api/pkg/apis/storage/v1.AccessKeyScopeSpace", "github.com/devsy-org/api/pkg/apis/storage/v1.AccessKeyScopeVirtualCluster"}, + "github.com/devsy-org/api/pkg/apis/storage/v1.DevsyWorkspaceInstance", metav1.ListMeta{}.OpenAPIModelName()}, } } -func schema_pkg_apis_storage_v1_AccessKeyScopeCluster(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_storage_v1_DevsyWorkspaceInstancePersistentVolumeClaimStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ Type: []string{"object"}, Properties: map[string]spec.Schema{ - "cluster": { + "phase": { SchemaProps: spec.SchemaProps{ - Description: "Cluster is the name of the cluster to access. You can specify * to select all clusters.", + Description: "phase represents the current phase of PersistentVolumeClaim.\n\nPossible enum values:\n - `\"Bound\"` used for PersistentVolumeClaims that are bound\n - `\"Lost\"` used for PersistentVolumeClaims that lost their underlying PersistentVolume. The claim was bound to a PersistentVolume and this volume does not exist any longer and all data on it was lost.\n - `\"Pending\"` used for PersistentVolumeClaims that are not yet bound", Type: []string{"string"}, Format: "", + Enum: []interface{}{"Bound", "Lost", "Pending"}, }, }, - }, - }, - }, - } -} - -func schema_pkg_apis_storage_v1_AccessKeyScopeProject(ref common.ReferenceCallback) common.OpenAPIDefinition { - return common.OpenAPIDefinition{ - Schema: spec.Schema{ - SchemaProps: spec.SchemaProps{ - Type: []string{"object"}, - Properties: map[string]spec.Schema{ - "project": { + "capacity": { SchemaProps: spec.SchemaProps{ - Description: "Project is the name of the project. You can specify * to select all projects.", - Type: []string{"string"}, - Format: "", + Description: "capacity represents the actual resources of the underlying volume.", + Type: []string{"object"}, + AdditionalProperties: &spec.SchemaOrBool{ + Allows: true, + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Ref: ref(resource.Quantity{}.OpenAPIModelName()), + }, + }, + }, }, }, - }, - }, - }, - } -} - -func schema_pkg_apis_storage_v1_AccessKeyScopeRole(ref common.ReferenceCallback) common.OpenAPIDefinition { - return common.OpenAPIDefinition{ - Schema: spec.Schema{ - SchemaProps: spec.SchemaProps{ - Type: []string{"object"}, - Properties: map[string]spec.Schema{ - "role": { - SchemaProps: spec.SchemaProps{ - Description: "Role is the name of the role to apply to the access key scope.\n\nPossible enum values:\n - `\"agent\"`\n - `\"devsy\"`\n - `\"devsy-cli\"`\n - `\"network-peer\"`\n - `\"runner\"`\n - `\"workspace\"`", - Type: []string{"string"}, - Format: "", - Enum: []interface{}{"agent", "devsy", "devsy-cli", "network-peer", "runner", "workspace"}, + "conditions": { + VendorExtensible: spec.VendorExtensible{ + Extensions: spec.Extensions{ + "x-kubernetes-list-map-keys": []interface{}{ + "type", + }, + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "type", + "x-kubernetes-patch-strategy": "merge", + }, }, - }, - "projects": { SchemaProps: spec.SchemaProps{ - Description: "Projects specifies the projects the access key should have access to.", + Description: "conditions is the current Condition of persistent volume claim. If underlying persistent volume is being resized then the Condition will be set to 'Resizing'.", Type: []string{"array"}, Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ - Default: "", - Type: []string{"string"}, - Format: "", + Default: map[string]interface{}{}, + Ref: ref(corev1.PersistentVolumeClaimCondition{}.OpenAPIModelName()), }, }, }, }, }, - "virtualClusters": { + "events": { SchemaProps: spec.SchemaProps{ - Description: "VirtualClusters specifies the virtual clusters the access key is allowed to access.", + Description: "Events are the events of the pod that is running the workspace. This will only be filled if the persistent volume claim is not bound.", Type: []string{"array"}, Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ - Default: "", - Type: []string{"string"}, - Format: "", + Default: map[string]interface{}{}, + Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.DevsyWorkspaceInstanceEvent"), }, }, }, @@ -23199,106 +23155,145 @@ func schema_pkg_apis_storage_v1_AccessKeyScopeRole(ref common.ReferenceCallback) }, }, }, + Dependencies: []string{ + "github.com/devsy-org/api/pkg/apis/storage/v1.DevsyWorkspaceInstanceEvent", corev1.PersistentVolumeClaimCondition{}.OpenAPIModelName(), resource.Quantity{}.OpenAPIModelName()}, } } -func schema_pkg_apis_storage_v1_AccessKeyScopeRule(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_storage_v1_DevsyWorkspaceInstancePodStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "AccessKeyScopeRule describes a rule for the access key", - Type: []string{"object"}, + Type: []string{"object"}, Properties: map[string]spec.Schema{ - "verbs": { + "phase": { SchemaProps: spec.SchemaProps{ - Description: "The verbs that match this rule. An empty list implies every verb.", + Description: "The phase of a Pod is a simple, high-level summary of where the Pod is in its lifecycle. The conditions array, the reason and message fields, and the individual container status arrays contain more detail about the pod's status. There are five possible phase values:\n\nPending: The pod has been accepted by the Kubernetes system, but one or more of the container images has not been created. This includes time before being scheduled as well as time spent downloading images over the network, which could take a while. Running: The pod has been bound to a node, and all of the containers have been created. At least one container is still running, or is in the process of starting or restarting. Succeeded: All containers in the pod have terminated in success, and will not be restarted. Failed: All containers in the pod have terminated, and at least one container has terminated in failure. The container either exited with non-zero status or was terminated by the system. Unknown: For some reason the state of the pod could not be obtained, typically due to an error in communicating with the host of the pod.\n\nMore info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-phase\n\nPossible enum values:\n - `\"Failed\"` means that all containers in the pod have terminated, and at least one container has terminated in a failure (exited with a non-zero exit code or was stopped by the system).\n - `\"Pending\"` means the pod has been accepted by the system, but one or more of the containers has not been started. This includes time before being bound to a node, as well as time spent pulling images onto the host.\n - `\"Running\"` means the pod has been bound to a node and all of the containers have been started. At least one container is still running or is in the process of being restarted.\n - `\"Succeeded\"` means that all containers in the pod have voluntarily terminated with a container exit code of 0, and the system is not going to restart any of these containers.\n - `\"Unknown\"` means that for some reason the state of the pod could not be obtained, typically due to an error in communicating with the host of the pod. Deprecated: It isn't being set since 2015 (74da3b14b0c0f658b3bb8d2def5094686d0e9095)", + Type: []string{"string"}, + Format: "", + Enum: []interface{}{"Failed", "Pending", "Running", "Succeeded", "Unknown"}, + }, + }, + "conditions": { + VendorExtensible: spec.VendorExtensible{ + Extensions: spec.Extensions{ + "x-kubernetes-list-map-keys": []interface{}{ + "type", + }, + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "type", + "x-kubernetes-patch-strategy": "merge", + }, + }, + SchemaProps: spec.SchemaProps{ + Description: "Current service state of pod. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-conditions", Type: []string{"array"}, Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ - Default: "", - Type: []string{"string"}, - Format: "", + Default: map[string]interface{}{}, + Ref: ref(corev1.PodCondition{}.OpenAPIModelName()), }, }, }, }, }, - "resources": { + "message": { SchemaProps: spec.SchemaProps{ - Description: "Resources that this rule matches. An empty list implies all kinds in all API groups.", + Description: "A human readable message indicating details about why the pod is in this condition.", + Type: []string{"string"}, + Format: "", + }, + }, + "reason": { + SchemaProps: spec.SchemaProps{ + Description: "A brief CamelCase message indicating details about why the pod is in this state. e.g. 'Evicted'", + Type: []string{"string"}, + Format: "", + }, + }, + "initContainerStatuses": { + VendorExtensible: spec.VendorExtensible{ + Extensions: spec.Extensions{ + "x-kubernetes-list-type": "atomic", + }, + }, + SchemaProps: spec.SchemaProps{ + Description: "Statuses of init containers in this pod. The most recent successful non-restartable init container will have ready = true, the most recently started container will have startTime set. Each init container in the pod should have at most one status in this list, and all statuses should be for containers in the pod. However this is not enforced. If a status for a non-existent container is present in the list, or the list has duplicate names, the behavior of various Kubernetes components is not defined and those statuses might be ignored. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#pod-and-container-status", Type: []string{"array"}, Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.GroupResources"), + Ref: ref(corev1.ContainerStatus{}.OpenAPIModelName()), }, }, }, }, }, - "namespaces": { + "containerStatuses": { + VendorExtensible: spec.VendorExtensible{ + Extensions: spec.Extensions{ + "x-kubernetes-list-type": "atomic", + }, + }, SchemaProps: spec.SchemaProps{ - Description: "Namespaces that this rule matches. The empty string \"\" matches non-namespaced resources. An empty list implies every namespace.", + Description: "Statuses of containers in this pod. Each container in the pod should have at most one status in this list, and all statuses should be for containers in the pod. However this is not enforced. If a status for a non-existent container is present in the list, or the list has duplicate names, the behavior of various Kubernetes components is not defined and those statuses might be ignored. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-and-container-status", Type: []string{"array"}, Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ - Default: "", - Type: []string{"string"}, - Format: "", + Default: map[string]interface{}{}, + Ref: ref(corev1.ContainerStatus{}.OpenAPIModelName()), }, }, }, }, }, - "nonResourceURLs": { + "nodeName": { SchemaProps: spec.SchemaProps{ - Description: "NonResourceURLs is a set of URL paths that should be checked. *s are allowed, but only as the full, final step in the path. Examples:\n \"/metrics\" - Log requests for apiserver metrics\n \"/healthz*\" - Log all health checks", + Description: "NodeName is the name of the node that is running the workspace", + Type: []string{"string"}, + Format: "", + }, + }, + "events": { + SchemaProps: spec.SchemaProps{ + Description: "Events are the events of the pod that is running the workspace. This will only be filled if the pod is not running.", Type: []string{"array"}, Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ - Default: "", - Type: []string{"string"}, - Format: "", + Default: map[string]interface{}{}, + Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.DevsyWorkspaceInstanceEvent"), }, }, }, }, }, - "requestTargets": { + "containerResources": { SchemaProps: spec.SchemaProps{ - Description: "RequestTargets is a list of request targets that are allowed. An empty list implies every request.", + Description: "ContainerResources are the resources of the containers that are running the workspace", Type: []string{"array"}, Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ - Default: "", - Type: []string{"string"}, - Format: "", + Default: map[string]interface{}{}, + Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.DevsyWorkspaceInstanceContainerResource"), }, }, }, }, }, - "cluster": { - SchemaProps: spec.SchemaProps{ - Description: "Cluster that this rule matches. Only applies to cluster requests. If this is set, no requests for non cluster requests are allowed. An empty cluster means no restrictions will apply.", - Type: []string{"string"}, - Format: "", - }, - }, - "virtualClusters": { + "containerMetrics": { SchemaProps: spec.SchemaProps{ - Description: "VirtualClusters that this rule matches. Only applies to virtual cluster requests. An empty list means no restrictions will apply.", + Description: "ContainerMetrics are the metrics of the pod that is running the workspace", Type: []string{"array"}, Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.AccessKeyVirtualCluster"), + Ref: ref("k8s.io/metrics/pkg/apis/metrics/v1beta1.ContainerMetrics"), }, }, }, @@ -23308,1157 +23303,1255 @@ func schema_pkg_apis_storage_v1_AccessKeyScopeRule(ref common.ReferenceCallback) }, }, Dependencies: []string{ - "github.com/devsy-org/api/pkg/apis/storage/v1.AccessKeyVirtualCluster", "github.com/devsy-org/api/pkg/apis/storage/v1.GroupResources"}, + "github.com/devsy-org/api/pkg/apis/storage/v1.DevsyWorkspaceInstanceContainerResource", "github.com/devsy-org/api/pkg/apis/storage/v1.DevsyWorkspaceInstanceEvent", corev1.ContainerStatus{}.OpenAPIModelName(), corev1.PodCondition{}.OpenAPIModelName(), "k8s.io/metrics/pkg/apis/metrics/v1beta1.ContainerMetrics"}, } } -func schema_pkg_apis_storage_v1_AccessKeyScopeSpace(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_storage_v1_DevsyWorkspaceInstanceSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ Type: []string{"object"}, Properties: map[string]spec.Schema{ - "project": { + "displayName": { SchemaProps: spec.SchemaProps{ - Description: "Project is the name of the project.", + Description: "DisplayName is the name that should be displayed in the UI", Type: []string{"string"}, Format: "", }, }, - "space": { + "description": { SchemaProps: spec.SchemaProps{ - Description: "Space is the name of the space. You can specify * to select all spaces.", + Description: "Description describes a Devsy machine instance", Type: []string{"string"}, Format: "", }, }, - }, - }, - }, - } -} - -func schema_pkg_apis_storage_v1_AccessKeyScopeVirtualCluster(ref common.ReferenceCallback) common.OpenAPIDefinition { - return common.OpenAPIDefinition{ - Schema: spec.Schema{ - SchemaProps: spec.SchemaProps{ - Type: []string{"object"}, - Properties: map[string]spec.Schema{ - "project": { + "owner": { SchemaProps: spec.SchemaProps{ - Description: "Project is the name of the project.", + Description: "Owner holds the owner of this object", + Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.UserOrTeam"), + }, + }, + "presetRef": { + SchemaProps: spec.SchemaProps{ + Description: "PresetRef holds the DevsyWorkspacePreset template reference", + Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.PresetRef"), + }, + }, + "templateRef": { + SchemaProps: spec.SchemaProps{ + Description: "TemplateRef holds the Devsy machine template reference", + Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.TemplateRef"), + }, + }, + "environmentRef": { + SchemaProps: spec.SchemaProps{ + Description: "EnvironmentRef is the reference to DevsyEnvironmentTemplate that should be used", + Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.EnvironmentRef"), + }, + }, + "template": { + SchemaProps: spec.SchemaProps{ + Description: "Template is the inline template to use for Devsy machine creation. This is mutually exclusive with templateRef.", + Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.DevsyWorkspaceTemplateDefinition"), + }, + }, + "target": { + SchemaProps: spec.SchemaProps{ + Description: "Target is the reference to the cluster holding this workspace", + Default: map[string]interface{}{}, + Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.WorkspaceTarget"), + }, + }, + "runnerRef": { + SchemaProps: spec.SchemaProps{ + Description: "RunnerRef is the reference to the runner holding this workspace", + Default: map[string]interface{}{}, + Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.RunnerRef"), + }, + }, + "parameters": { + SchemaProps: spec.SchemaProps{ + Description: "Parameters are values to pass to the template. The values should be encoded as YAML string where each parameter is represented as a top-level field key.", Type: []string{"string"}, Format: "", }, }, - "virtualCluster": { + "access": { SchemaProps: spec.SchemaProps{ - Description: "VirtualCluster is the name of the virtual cluster to access. You can specify * to select all virtual clusters.", - Type: []string{"string"}, + Description: "Access to the Devsy machine instance object itself", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.Access"), + }, + }, + }, + }, + }, + "preventWakeUpOnConnection": { + SchemaProps: spec.SchemaProps{ + Description: "PreventWakeUpOnConnection is used to prevent workspace that uses sleep mode from waking up on incomming ssh connection.", + Type: []string{"boolean"}, Format: "", }, }, }, }, }, + Dependencies: []string{ + "github.com/devsy-org/api/pkg/apis/storage/v1.Access", "github.com/devsy-org/api/pkg/apis/storage/v1.DevsyWorkspaceTemplateDefinition", "github.com/devsy-org/api/pkg/apis/storage/v1.EnvironmentRef", "github.com/devsy-org/api/pkg/apis/storage/v1.PresetRef", "github.com/devsy-org/api/pkg/apis/storage/v1.RunnerRef", "github.com/devsy-org/api/pkg/apis/storage/v1.TemplateRef", "github.com/devsy-org/api/pkg/apis/storage/v1.UserOrTeam", "github.com/devsy-org/api/pkg/apis/storage/v1.WorkspaceTarget"}, } } -func schema_pkg_apis_storage_v1_AccessKeySpec(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_storage_v1_DevsyWorkspaceInstanceStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ Type: []string{"object"}, Properties: map[string]spec.Schema{ - "displayName": { + "resolvedTarget": { SchemaProps: spec.SchemaProps{ - Description: "The display name shown in the UI", - Type: []string{"string"}, - Format: "", + Description: "ResolvedTarget is the resolved target of the workspace", + Default: map[string]interface{}{}, + Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.WorkspaceResolvedTarget"), }, }, - "description": { + "lastWorkspaceStatus": { SchemaProps: spec.SchemaProps{ - Description: "Description describes an app", + Description: "LastWorkspaceStatus is the last workspace status reported by the runner.", Type: []string{"string"}, Format: "", }, }, - "user": { + "phase": { SchemaProps: spec.SchemaProps{ - Description: "The user this access key refers to", + Description: "Phase describes the current phase the Devsy machine instance is in", Type: []string{"string"}, Format: "", }, }, - "team": { + "reason": { SchemaProps: spec.SchemaProps{ - Description: "The team this access key refers to", + Description: "Reason describes the reason in machine-readable form why the cluster is in the current phase", Type: []string{"string"}, Format: "", }, }, - "subject": { + "message": { SchemaProps: spec.SchemaProps{ - Description: "Subject is a generic subject that can be used instead of user or team", + Description: "Message describes the reason in human-readable form why the Devsy machine is in the current phase", Type: []string{"string"}, Format: "", }, }, - "groups": { + "conditions": { SchemaProps: spec.SchemaProps{ - Description: "Groups specifies extra groups to apply when using this access key", + Description: "Conditions holds several conditions the Devsy machine might be in", Type: []string{"array"}, Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ - Default: "", - Type: []string{"string"}, - Format: "", + Default: map[string]interface{}{}, + Ref: ref("github.com/devsy-org/agentapi/pkg/apis/devsy/storage/v1.Condition"), }, }, }, }, }, - "key": { + "instance": { SchemaProps: spec.SchemaProps{ - Description: "The actual access key that will be used as a bearer token", - Type: []string{"string"}, - Format: "", + Description: "Instance is the template rendered with all the parameters", + Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.DevsyWorkspaceTemplateDefinition"), }, }, - "disabled": { + "ignoreReconciliation": { SchemaProps: spec.SchemaProps{ - Description: "If this field is true, the access key is still allowed to exist, however will not work to access the api", + Description: "IgnoreReconciliation ignores reconciliation for this object", Type: []string{"boolean"}, Format: "", }, }, - "ttl": { + "kubernetes": { SchemaProps: spec.SchemaProps{ - Description: "The time to life for this access key", - Type: []string{"integer"}, - Format: "int64", + Description: "Kubernetes is the status of the workspace on kubernetes", + Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.DevsyWorkspaceInstanceKubernetesStatus"), }, }, - "ttlAfterLastActivity": { + }, + }, + }, + Dependencies: []string{ + "github.com/devsy-org/agentapi/pkg/apis/devsy/storage/v1.Condition", "github.com/devsy-org/api/pkg/apis/storage/v1.DevsyWorkspaceInstanceKubernetesStatus", "github.com/devsy-org/api/pkg/apis/storage/v1.DevsyWorkspaceTemplateDefinition", "github.com/devsy-org/api/pkg/apis/storage/v1.WorkspaceResolvedTarget"}, + } +} + +func schema_pkg_apis_storage_v1_DevsyWorkspaceInstanceTemplateDefinition(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "metadata": { SchemaProps: spec.SchemaProps{ - Description: "If this is specified, the time to life for this access key will start after the lastActivity instead of creation timestamp", - Type: []string{"boolean"}, - Format: "", + Description: "The workspace instance metadata", + Default: map[string]interface{}{}, + Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.TemplateMetadata"), }, }, - "scope": { + }, + }, + }, + Dependencies: []string{ + "github.com/devsy-org/api/pkg/apis/storage/v1.TemplateMetadata"}, + } +} + +func schema_pkg_apis_storage_v1_DevsyWorkspaceKubernetesSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "pod": { SchemaProps: spec.SchemaProps{ - Description: "Scope defines the scope of the access key.", - Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.AccessKeyScope"), + Description: "Pod holds the definition for workspace pod.\n\nDefaults will be applied for fields that aren't specified.", + Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.DevsyWorkspacePodTemplate"), }, }, - "type": { + "volumeClaim": { SchemaProps: spec.SchemaProps{ - Description: "The type of an access key, which basically describes if the access key is user managed or managed by devsy itself.", + Description: "VolumeClaim holds the definition for the main workspace persistent volume. This volume is guaranteed to exist for the lifespan of the workspace.\n\nDefaults will be applied for fields that aren't specified.", + Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.DevsyWorkspaceVolumeClaimTemplate"), + }, + }, + "podTimeout": { + SchemaProps: spec.SchemaProps{ + Description: "PodTimeout specifies a maximum duration to wait for the workspace pod to start up before failing. Default: 10m", Type: []string{"string"}, Format: "", }, }, - "identity": { + "nodeArchitecture": { SchemaProps: spec.SchemaProps{ - Description: "If available, contains information about the sso login data for this access key", - Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.SSOIdentity"), + Description: "NodeArchitecture specifies the node architecture the workspace image will be built for. Only necessary if you need to build workspace images on the fly in the kubernetes cluster and your cluster is mixed architecture.", + Type: []string{"string"}, + Format: "", }, }, - "identityRefresh": { + "spaceTemplateRef": { SchemaProps: spec.SchemaProps{ - Description: "The last time the identity was refreshed", - Ref: ref(metav1.Time{}.OpenAPIModelName()), + Description: "SpaceTemplateRef is a reference to the space that should get created for this Devsy. If this is specified, the kubernetes provider will be selected automatically.", + Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.TemplateRef"), }, }, - "oidcProvider": { + "spaceTemplate": { SchemaProps: spec.SchemaProps{ - Description: "If the token is a refresh token, contains information about it", - Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.AccessKeyOIDCProvider"), + Description: "SpaceTemplate is the inline template for a space that should get created for this Devsy. If this is specified, the kubernetes provider will be selected automatically.", + Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.SpaceTemplateDefinition"), }, }, - "parent": { + "virtualClusterTemplateRef": { SchemaProps: spec.SchemaProps{ - Description: "DEPRECATED: do not use anymore Parent is used to share OIDC and external token information with multiple access keys. Since copying an OIDC refresh token would result in the other access keys becoming invalid after a refresh parent allows access keys to share that information.\n\nThe use case for this is primarily user generated access keys, which will have the users current access key as parent if it contains an OIDC token.", - Type: []string{"string"}, - Format: "", + Description: "VirtualClusterTemplateRef is a reference to the virtual cluster that should get created for this Devsy. If this is specified, the kubernetes provider will be selected automatically.", + Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.TemplateRef"), }, }, - "oidcLogin": { + "virtualClusterTemplate": { SchemaProps: spec.SchemaProps{ - Description: "DEPRECATED: Use identity instead If available, contains information about the oidc login data for this access key", - Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.AccessKeyOIDC"), + Description: "VirtualClusterTemplate is the inline template for a virtual cluster that should get created for this Devsy. If this is specified, the kubernetes provider will be selected automatically.", + Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.VirtualClusterTemplateDefinition"), }, }, }, }, }, Dependencies: []string{ - "github.com/devsy-org/api/pkg/apis/storage/v1.AccessKeyOIDC", "github.com/devsy-org/api/pkg/apis/storage/v1.AccessKeyOIDCProvider", "github.com/devsy-org/api/pkg/apis/storage/v1.AccessKeyScope", "github.com/devsy-org/api/pkg/apis/storage/v1.SSOIdentity", metav1.Time{}.OpenAPIModelName()}, + "github.com/devsy-org/api/pkg/apis/storage/v1.DevsyWorkspacePodTemplate", "github.com/devsy-org/api/pkg/apis/storage/v1.DevsyWorkspaceVolumeClaimTemplate", "github.com/devsy-org/api/pkg/apis/storage/v1.SpaceTemplateDefinition", "github.com/devsy-org/api/pkg/apis/storage/v1.TemplateRef", "github.com/devsy-org/api/pkg/apis/storage/v1.VirtualClusterTemplateDefinition"}, } } -func schema_pkg_apis_storage_v1_AccessKeyStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_storage_v1_DevsyWorkspacePodTemplate(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "AccessKeyStatus holds the status of an access key", + Description: "DevsyWorkspacePodTemplate is a less restrictive PodTemplate.", Type: []string{"object"}, Properties: map[string]spec.Schema{ - "lastActivity": { + "metadata": { SchemaProps: spec.SchemaProps{ - Description: "The last time this access key was used to access the api", - Ref: ref(metav1.Time{}.OpenAPIModelName()), + Description: "The pods metadata", + Default: map[string]interface{}{}, + Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.TemplateMetadata"), + }, + }, + "spec": { + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.DevsyWorkspacePodTemplateSpec"), }, }, }, }, }, Dependencies: []string{ - metav1.Time{}.OpenAPIModelName()}, + "github.com/devsy-org/api/pkg/apis/storage/v1.DevsyWorkspacePodTemplateSpec", "github.com/devsy-org/api/pkg/apis/storage/v1.TemplateMetadata"}, } } -func schema_pkg_apis_storage_v1_AccessKeyVirtualCluster(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_storage_v1_DevsyWorkspacePodTemplateSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Type: []string{"object"}, + Description: "DevsyWorkspacePodTemplateSpec is a less restrictive PodSpec.", + Type: []string{"object"}, Properties: map[string]spec.Schema{ - "name": { + "volumes": { SchemaProps: spec.SchemaProps{ - Description: "Name of the virtual cluster. Empty means all virtual clusters.", - Type: []string{"string"}, - Format: "", + Description: "List of volumes that can be mounted by containers belonging to the pod.", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref(corev1.Volume{}.OpenAPIModelName()), + }, + }, + }, }, }, - "namespace": { + "initContainers": { SchemaProps: spec.SchemaProps{ - Description: "Namespace of the virtual cluster. Empty means all namespaces.", - Type: []string{"string"}, - Format: "", + Description: "List of initialization containers belonging to the pod.", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.DevsyWorkspaceContainer"), + }, + }, + }, }, }, - }, - }, - }, - } -} - -func schema_pkg_apis_storage_v1_AllowedCluster(ref common.ReferenceCallback) common.OpenAPIDefinition { - return common.OpenAPIDefinition{ - Schema: spec.Schema{ - SchemaProps: spec.SchemaProps{ - Type: []string{"object"}, - Properties: map[string]spec.Schema{ - "name": { + "containers": { SchemaProps: spec.SchemaProps{ - Description: "Name is the name of the cluster that is allowed to create an environment in.", - Type: []string{"string"}, - Format: "", + Description: "List of containers belonging to the pod.", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.DevsyWorkspaceContainer"), + }, + }, + }, }, }, - }, - }, - }, - } -} - -func schema_pkg_apis_storage_v1_AllowedClusterAccountTemplate(ref common.ReferenceCallback) common.OpenAPIDefinition { - return common.OpenAPIDefinition{ - Schema: spec.Schema{ - SchemaProps: spec.SchemaProps{ - Type: []string{"object"}, - Properties: map[string]spec.Schema{ - "name": { + "restartPolicy": { SchemaProps: spec.SchemaProps{ - Description: "Name is the name of a cluster account template", + Description: "Restart policy for all containers within the pod.\n\nPossible enum values:\n - `\"Always\"`\n - `\"Never\"`\n - `\"OnFailure\"`", Type: []string{"string"}, Format: "", + Enum: []interface{}{"Always", "Never", "OnFailure"}, }, }, - }, - }, - }, - } -} - -func schema_pkg_apis_storage_v1_AllowedRunner(ref common.ReferenceCallback) common.OpenAPIDefinition { - return common.OpenAPIDefinition{ - Schema: spec.Schema{ - SchemaProps: spec.SchemaProps{ - Type: []string{"object"}, - Properties: map[string]spec.Schema{ - "name": { + "terminationGracePeriodSeconds": { SchemaProps: spec.SchemaProps{ - Description: "Name is the name of the runner that is allowed to create an environment in.", - Type: []string{"string"}, - Format: "", + Description: "Optional duration in seconds the pod needs to terminate gracefully. May be decreased in delete request.", + Type: []string{"integer"}, + Format: "int64", }, }, - }, - }, - }, - } -} - -func schema_pkg_apis_storage_v1_AllowedTemplate(ref common.ReferenceCallback) common.OpenAPIDefinition { - return common.OpenAPIDefinition{ - Schema: spec.Schema{ - SchemaProps: spec.SchemaProps{ - Type: []string{"object"}, - Properties: map[string]spec.Schema{ - "kind": { + "activeDeadlineSeconds": { SchemaProps: spec.SchemaProps{ - Description: "Kind of the template that is allowed. Currently only supports DevPodWorkspaceTemplate, VirtualClusterTemplate & SpaceTemplate", - Type: []string{"string"}, - Format: "", + Description: "Optional duration in seconds the pod may be active on the node relative to", + Type: []string{"integer"}, + Format: "int64", }, }, - "group": { + "dnsPolicy": { SchemaProps: spec.SchemaProps{ - Description: "Group of the template that is allowed. Currently only supports storage.devsy.sh", + Description: "Set DNS policy for the pod.\n\nPossible enum values:\n - `\"ClusterFirst\"` indicates that the pod should use cluster DNS first unless hostNetwork is true, if it is available, then fall back on the default (as determined by kubelet) DNS settings.\n - `\"ClusterFirstWithHostNet\"` indicates that the pod should use cluster DNS first, if it is available, then fall back on the default (as determined by kubelet) DNS settings.\n - `\"Default\"` indicates that the pod should use the default (as determined by kubelet) DNS settings.\n - `\"None\"` indicates that the pod should use empty DNS settings. DNS parameters such as nameservers and search paths should be defined via DNSConfig.", Type: []string{"string"}, Format: "", + Enum: []interface{}{"ClusterFirst", "ClusterFirstWithHostNet", "Default", "None"}, }, }, - "name": { + "nodeSelector": { SchemaProps: spec.SchemaProps{ - Description: "Name of the template", + Description: "NodeSelector is a selector which must be true for the pod to fit on a node.", + Type: []string{"object"}, + AdditionalProperties: &spec.SchemaOrBool{ + Allows: true, + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + }, + }, + }, + "serviceAccountName": { + SchemaProps: spec.SchemaProps{ + Description: "ServiceAccountName is the name of the ServiceAccount to use to run this pod.", Type: []string{"string"}, Format: "", }, }, - "isDefault": { + "automountServiceAccountToken": { SchemaProps: spec.SchemaProps{ - Description: "IsDefault specifies if the template should be used as a default", + Description: "AutomountServiceAccountToken indicates whether a service account token should be automatically mounted.", Type: []string{"boolean"}, Format: "", }, }, - }, - }, - }, - } -} - -func schema_pkg_apis_storage_v1_App(ref common.ReferenceCallback) common.OpenAPIDefinition { - return common.OpenAPIDefinition{ - Schema: spec.Schema{ - SchemaProps: spec.SchemaProps{ - Description: "App holds the app information", - Type: []string{"object"}, - Properties: map[string]spec.Schema{ - "kind": { + "nodeName": { SchemaProps: spec.SchemaProps{ - Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + Description: "NodeName indicates in which node this pod is scheduled.", Type: []string{"string"}, Format: "", }, }, - "apiVersion": { + "hostNetwork": { SchemaProps: spec.SchemaProps{ - Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", - Type: []string{"string"}, + Description: "Host networking requested for this pod. Use the host's network namespace.", + Type: []string{"boolean"}, Format: "", }, }, - "metadata": { + "hostPID": { SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref(metav1.ObjectMeta{}.OpenAPIModelName()), + Description: "Use the host's pid namespace.", + Type: []string{"boolean"}, + Format: "", }, }, - "spec": { + "hostIPC": { SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.AppSpec"), + Description: "Use the host's ipc namespace.", + Type: []string{"boolean"}, + Format: "", }, }, - "status": { + "shareProcessNamespace": { SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.AppStatus"), + Description: "Share a single process namespace between all of the containers in a pod.", + Type: []string{"boolean"}, + Format: "", }, }, - }, - }, - }, - Dependencies: []string{ - "github.com/devsy-org/api/pkg/apis/storage/v1.AppSpec", "github.com/devsy-org/api/pkg/apis/storage/v1.AppStatus", metav1.ObjectMeta{}.OpenAPIModelName()}, - } -} - -func schema_pkg_apis_storage_v1_AppConfig(ref common.ReferenceCallback) common.OpenAPIDefinition { - return common.OpenAPIDefinition{ - Schema: spec.Schema{ - SchemaProps: spec.SchemaProps{ - Type: []string{"object"}, - Properties: map[string]spec.Schema{ - "defaultNamespace": { + "securityContext": { SchemaProps: spec.SchemaProps{ - Description: "DefaultNamespace is the default namespace this app should installed in.", - Type: []string{"string"}, - Format: "", + Description: "SecurityContext holds pod-level security attributes and common container settings.", + Ref: ref(corev1.PodSecurityContext{}.OpenAPIModelName()), }, }, - "readme": { + "imagePullSecrets": { SchemaProps: spec.SchemaProps{ - Description: "Readme is a longer markdown string that describes the app.", - Type: []string{"string"}, - Format: "", + Description: "ImagePullSecrets is an optional list of references to secrets in the same namespace to use for pulling any of the images used by this PodSpec.", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref(corev1.LocalObjectReference{}.OpenAPIModelName()), + }, + }, + }, }, }, - "icon": { + "hostname": { SchemaProps: spec.SchemaProps{ - Description: "Icon holds an URL to the app icon", + Description: "Specifies the hostname of the Pod", Type: []string{"string"}, Format: "", }, }, - "config": { + "subdomain": { SchemaProps: spec.SchemaProps{ - Description: "Config is the helm config to use to deploy the helm release", - Default: map[string]interface{}{}, - Ref: ref(v1.HelmReleaseConfig{}.OpenAPIModelName()), + Description: "If specified, the fully qualified Pod hostname will be \"...svc.\".", + Type: []string{"string"}, + Format: "", }, }, - "wait": { + "affinity": { SchemaProps: spec.SchemaProps{ - Description: "Wait determines if Devsy should wait during deploy for the app to become ready", - Type: []string{"boolean"}, - Format: "", + Description: "If specified, the pod's scheduling constraints", + Ref: ref(corev1.Affinity{}.OpenAPIModelName()), }, }, - "timeout": { + "schedulerName": { SchemaProps: spec.SchemaProps{ - Description: "Timeout is the time to wait for any individual Kubernetes operation (like Jobs for hooks) (default 5m0s)", + Description: "If specified, the pod will be dispatched by specified scheduler. If not specified, the pod will be dispatched by default scheduler.", Type: []string{"string"}, Format: "", }, }, - "parameters": { + "tolerations": { SchemaProps: spec.SchemaProps{ - Description: "Parameters define additional app parameters that will set helm values", + Description: "If specified, the pod's tolerations.", Type: []string{"array"}, Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.AppParameter"), + Ref: ref(corev1.Toleration{}.OpenAPIModelName()), }, }, }, }, }, - "streamContainer": { + "hostAliases": { SchemaProps: spec.SchemaProps{ - Description: "DEPRECATED: Use config.bash instead StreamContainer can be used to stream a containers logs instead of the helm output.", - Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.StreamContainer"), + Description: "HostAliases is an optional list of hosts and IPs that will be injected into the pod's hosts", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref(corev1.HostAlias{}.OpenAPIModelName()), + }, + }, + }, }, }, - }, - }, - }, - Dependencies: []string{ - v1.HelmReleaseConfig{}.OpenAPIModelName(), "github.com/devsy-org/api/pkg/apis/storage/v1.AppParameter", "github.com/devsy-org/api/pkg/apis/storage/v1.StreamContainer"}, - } -} - -func schema_pkg_apis_storage_v1_AppList(ref common.ReferenceCallback) common.OpenAPIDefinition { - return common.OpenAPIDefinition{ - Schema: spec.Schema{ - SchemaProps: spec.SchemaProps{ - Description: "AppList contains a list of App", - Type: []string{"object"}, - Properties: map[string]spec.Schema{ - "kind": { + "priorityClassName": { SchemaProps: spec.SchemaProps{ - Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + Description: "If specified, indicates the pod's priority.", Type: []string{"string"}, Format: "", }, }, - "apiVersion": { + "priority": { SchemaProps: spec.SchemaProps{ - Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", - Type: []string{"string"}, - Format: "", + Type: []string{"integer"}, + Format: "int32", }, }, - "metadata": { + "dnsConfig": { SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref(metav1.ListMeta{}.OpenAPIModelName()), + Description: "Specifies the DNS parameters of a pod.", + Ref: ref(corev1.PodDNSConfig{}.OpenAPIModelName()), }, }, - "items": { + "readinessGates": { SchemaProps: spec.SchemaProps{ - Type: []string{"array"}, + Description: "If specified, all readiness gates will be evaluated for pod readiness.", + Type: []string{"array"}, Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.App"), + Ref: ref(corev1.PodReadinessGate{}.OpenAPIModelName()), }, }, }, }, }, - }, - Required: []string{"items"}, - }, - }, - Dependencies: []string{ - "github.com/devsy-org/api/pkg/apis/storage/v1.App", metav1.ListMeta{}.OpenAPIModelName()}, - } -} - -func schema_pkg_apis_storage_v1_AppParameter(ref common.ReferenceCallback) common.OpenAPIDefinition { - return common.OpenAPIDefinition{ - Schema: spec.Schema{ - SchemaProps: spec.SchemaProps{ - Type: []string{"object"}, - Properties: map[string]spec.Schema{ - "variable": { + "runtimeClassName": { SchemaProps: spec.SchemaProps{ - Description: "Variable is the path of the variable. Can be foo or foo.bar for nested objects.", + Description: "RuntimeClassName refers to a RuntimeClass object in the node.k8s.io group, which should be used to run this pod", Type: []string{"string"}, Format: "", }, }, - "label": { + "enableServiceLinks": { SchemaProps: spec.SchemaProps{ - Description: "Label is the label to show for this parameter", - Type: []string{"string"}, + Description: "EnableServiceLinks indicates whether information about services should be injected into pod's environment variables, matching the syntax of Docker links.", + Type: []string{"boolean"}, Format: "", }, }, - "description": { + "preemptionPolicy": { SchemaProps: spec.SchemaProps{ - Description: "Description is the description to show for this parameter", + Description: "PreemptionPolicy is the Policy for preempting pods with lower priority.\n\nPossible enum values:\n - `\"Never\"` means that pod never preempts other pods with lower priority.\n - `\"PreemptLowerPriority\"` means that pod can preempt other pods with lower priority.", Type: []string{"string"}, Format: "", + Enum: []interface{}{"Never", "PreemptLowerPriority"}, }, }, - "type": { + "overhead": { SchemaProps: spec.SchemaProps{ - Description: "Type of the parameter. Can be one of: string, multiline, boolean, number and password", - Type: []string{"string"}, - Format: "", + Description: "Overhead represents the resource overhead associated with running a pod for a given RuntimeClass.", + Type: []string{"object"}, + AdditionalProperties: &spec.SchemaOrBool{ + Allows: true, + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Ref: ref(resource.Quantity{}.OpenAPIModelName()), + }, + }, + }, }, }, - "options": { + "topologySpreadConstraints": { SchemaProps: spec.SchemaProps{ - Description: "Options is a slice of strings, where each string represents a mutually exclusive choice.", + Description: "TopologySpreadConstraints describes how a group of pods ought to spread across topology domains.", Type: []string{"array"}, Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ - Default: "", - Type: []string{"string"}, - Format: "", + Default: map[string]interface{}{}, + Ref: ref(corev1.TopologySpreadConstraint{}.OpenAPIModelName()), }, }, }, }, }, - "min": { - SchemaProps: spec.SchemaProps{ - Description: "Min is the minimum number if type is number", - Type: []string{"integer"}, - Format: "int32", - }, - }, - "max": { - SchemaProps: spec.SchemaProps{ - Description: "Max is the maximum number if type is number", - Type: []string{"integer"}, - Format: "int32", - }, - }, - "required": { + "setHostnameAsFQDN": { SchemaProps: spec.SchemaProps{ - Description: "Required specifies if this parameter is required", + Description: "If true the pod's hostname will be configured as the pod's FQDN, rather than the leaf name (the default). In Linux containers, this means setting the FQDN in the hostname field of the kernel (the nodename field of struct utsname). In Windows containers, this means setting the registry value of hostname for the registry key HKEY_LOCAL_MACHINE\\\\SYSTEM\\\\CurrentControlSet\\\\Services\\\\Tcpip\\\\Parameters to FQDN.", Type: []string{"boolean"}, Format: "", }, }, - "defaultValue": { + "os": { SchemaProps: spec.SchemaProps{ - Description: "DefaultValue is the default value if none is specified", - Type: []string{"string"}, - Format: "", + Description: "Specifies the OS of the containers in the pod.", + Ref: ref(corev1.PodOS{}.OpenAPIModelName()), }, }, - "placeholder": { + "hostUsers": { SchemaProps: spec.SchemaProps{ - Description: "Placeholder shown in the UI", - Type: []string{"string"}, + Description: "Use the host's user namespace.", + Type: []string{"boolean"}, Format: "", }, }, - "invalidation": { + "schedulingGates": { SchemaProps: spec.SchemaProps{ - Description: "Invalidation regex that if matched will reject the input", - Type: []string{"string"}, - Format: "", + Description: "SchedulingGates is an opaque list of values that if specified will block scheduling the pod. If schedulingGates is not empty, the pod will stay in the SchedulingGated state and the scheduler will not attempt to schedule the pod.", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref(corev1.PodSchedulingGate{}.OpenAPIModelName()), + }, + }, + }, }, }, - "validation": { + "resourceClaims": { SchemaProps: spec.SchemaProps{ - Description: "Validation regex that if matched will allow the input", - Type: []string{"string"}, - Format: "", + Description: "ResourceClaims defines which ResourceClaims must be allocated and reserved before the Pod is allowed to start. The resources will be made available to those containers which consume them by name.", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref(corev1.PodResourceClaim{}.OpenAPIModelName()), + }, + }, + }, }, }, - "section": { + "resources": { SchemaProps: spec.SchemaProps{ - Description: "Section where this app should be displayed. Apps with the same section name will be grouped together", - Type: []string{"string"}, - Format: "", + Description: "Resources is the total amount of CPU and Memory resources required by all containers in the pod. It supports specifying Requests and Limits for \"cpu\" and \"memory\" resource names only. ResourceClaims are not supported.", + Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.DevsyWorkspaceResourceRequirements"), }, }, }, }, }, + Dependencies: []string{ + "github.com/devsy-org/api/pkg/apis/storage/v1.DevsyWorkspaceContainer", "github.com/devsy-org/api/pkg/apis/storage/v1.DevsyWorkspaceResourceRequirements", corev1.Affinity{}.OpenAPIModelName(), corev1.HostAlias{}.OpenAPIModelName(), corev1.LocalObjectReference{}.OpenAPIModelName(), corev1.PodDNSConfig{}.OpenAPIModelName(), corev1.PodOS{}.OpenAPIModelName(), corev1.PodReadinessGate{}.OpenAPIModelName(), corev1.PodResourceClaim{}.OpenAPIModelName(), corev1.PodSchedulingGate{}.OpenAPIModelName(), corev1.PodSecurityContext{}.OpenAPIModelName(), corev1.Toleration{}.OpenAPIModelName(), corev1.TopologySpreadConstraint{}.OpenAPIModelName(), corev1.Volume{}.OpenAPIModelName(), resource.Quantity{}.OpenAPIModelName()}, } } -func schema_pkg_apis_storage_v1_AppReference(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_storage_v1_DevsyWorkspacePreset(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Type: []string{"object"}, + Description: "DevsyWorkspacePreset", + Type: []string{"object"}, Properties: map[string]spec.Schema{ - "name": { + "kind": { SchemaProps: spec.SchemaProps{ - Description: "Name of the target app", + Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", Type: []string{"string"}, Format: "", }, }, - "namespace": { + "apiVersion": { SchemaProps: spec.SchemaProps{ - Description: "Namespace specifies in which target namespace the app should get deployed in", + Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", Type: []string{"string"}, Format: "", }, }, - "releaseName": { + "metadata": { SchemaProps: spec.SchemaProps{ - Description: "ReleaseName is the name of the app release", - Type: []string{"string"}, - Format: "", + Default: map[string]interface{}{}, + Ref: ref(metav1.ObjectMeta{}.OpenAPIModelName()), }, }, - "version": { + "spec": { SchemaProps: spec.SchemaProps{ - Description: "Version of the app", - Type: []string{"string"}, - Format: "", + Default: map[string]interface{}{}, + Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.DevsyWorkspacePresetSpec"), }, }, - "parameters": { + "status": { SchemaProps: spec.SchemaProps{ - Description: "Parameters to use for the app", - Type: []string{"string"}, - Format: "", + Default: map[string]interface{}{}, + Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.DevsyWorkspacePresetStatus"), }, }, }, }, }, + Dependencies: []string{ + "github.com/devsy-org/api/pkg/apis/storage/v1.DevsyWorkspacePresetSpec", "github.com/devsy-org/api/pkg/apis/storage/v1.DevsyWorkspacePresetStatus", metav1.ObjectMeta{}.OpenAPIModelName()}, } } -func schema_pkg_apis_storage_v1_AppSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_storage_v1_DevsyWorkspacePresetList(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "AppSpec holds the specification", + Description: "DevsyWorkspacePresetList contains a list of DevsyWorkspacePreset objects.", Type: []string{"object"}, Properties: map[string]spec.Schema{ - "displayName": { + "kind": { SchemaProps: spec.SchemaProps{ - Description: "DisplayName is the name that should be displayed in the UI", + Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", Type: []string{"string"}, Format: "", }, }, - "description": { + "apiVersion": { SchemaProps: spec.SchemaProps{ - Description: "Description describes an app", + Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", Type: []string{"string"}, Format: "", }, }, - "owner": { - SchemaProps: spec.SchemaProps{ - Description: "Owner holds the owner of this object", - Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.UserOrTeam"), - }, - }, - "clusters": { + "metadata": { SchemaProps: spec.SchemaProps{ - Description: "Clusters are the clusters this app can be installed in.", - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: "", - Type: []string{"string"}, - Format: "", - }, - }, - }, + Default: map[string]interface{}{}, + Ref: ref(metav1.ListMeta{}.OpenAPIModelName()), }, }, - "recommendedApp": { + "items": { SchemaProps: spec.SchemaProps{ - Description: "RecommendedApp specifies where this app should show up as recommended app", - Type: []string{"array"}, + Type: []string{"array"}, Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ - Default: "", - Type: []string{"string"}, - Format: "", + Default: map[string]interface{}{}, + Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.DevsyWorkspacePreset"), }, }, }, }, }, - "defaultNamespace": { + }, + Required: []string{"items"}, + }, + }, + Dependencies: []string{ + "github.com/devsy-org/api/pkg/apis/storage/v1.DevsyWorkspacePreset", metav1.ListMeta{}.OpenAPIModelName()}, + } +} + +func schema_pkg_apis_storage_v1_DevsyWorkspacePresetSource(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "git": { SchemaProps: spec.SchemaProps{ - Description: "DefaultNamespace is the default namespace this app should installed in.", + Description: "Git stores path to git repo to use as workspace source", Type: []string{"string"}, Format: "", }, }, - "readme": { + "image": { SchemaProps: spec.SchemaProps{ - Description: "Readme is a longer markdown string that describes the app.", + Description: "Image stores container image to use as workspace source", Type: []string{"string"}, Format: "", }, }, - "icon": { + }, + }, + }, + } +} + +func schema_pkg_apis_storage_v1_DevsyWorkspacePresetSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "displayName": { SchemaProps: spec.SchemaProps{ - Description: "Icon holds an URL to the app icon", + Description: "DisplayName is the name that should be displayed in the UI", Type: []string{"string"}, Format: "", }, }, - "config": { + "source": { SchemaProps: spec.SchemaProps{ - Description: "Config is the helm config to use to deploy the helm release", - Default: map[string]interface{}{}, - Ref: ref(v1.HelmReleaseConfig{}.OpenAPIModelName()), + Description: "Source stores inline path of project source", + Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.DevsyWorkspacePresetSource"), }, }, - "wait": { + "infrastructureRef": { SchemaProps: spec.SchemaProps{ - Description: "Wait determines if Devsy should wait during deploy for the app to become ready", - Type: []string{"boolean"}, - Format: "", + Description: "InfrastructureRef stores reference to DevsyWorkspaceTemplate to use", + Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.TemplateRef"), }, }, - "timeout": { + "environmentRef": { SchemaProps: spec.SchemaProps{ - Description: "Timeout is the time to wait for any individual Kubernetes operation (like Jobs for hooks) (default 5m0s)", - Type: []string{"string"}, - Format: "", + Description: "EnvironmentRef stores reference to DevsyEnvironmentTemplate", + Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.EnvironmentRef"), }, }, - "parameters": { + "useProjectGitCredentials": { SchemaProps: spec.SchemaProps{ - Description: "Parameters define additional app parameters that will set helm values", - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.AppParameter"), - }, - }, - }, + Description: "UseProjectGitCredentials specifies if the project git credentials should be used instead of local ones for this environment", + Type: []string{"boolean"}, + Format: "", }, }, - "streamContainer": { + "owner": { SchemaProps: spec.SchemaProps{ - Description: "DEPRECATED: Use config.bash instead StreamContainer can be used to stream a containers logs instead of the helm output.", - Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.StreamContainer"), + Description: "Owner holds the owner of this object", + Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.UserOrTeam"), }, }, - "versions": { + "access": { SchemaProps: spec.SchemaProps{ - Description: "Versions are different app versions that can be referenced", + Description: "Access to the Devsy machine instance object itself", Type: []string{"array"}, Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.AppVersion"), + Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.Access"), }, }, }, }, }, - "access": { + "versions": { SchemaProps: spec.SchemaProps{ - Description: "Access holds the access rights for users and teams", + Description: "Versions are different versions of the template that can be referenced as well", Type: []string{"array"}, Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.Access"), + Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.DevsyWorkspacePresetVersion"), }, }, }, }, }, - "manifests": { - SchemaProps: spec.SchemaProps{ - Description: "DEPRECATED: Use config instead manifest represents kubernetes resources that will be deployed into the target namespace", - Type: []string{"string"}, - Format: "", - }, - }, - "helm": { - SchemaProps: spec.SchemaProps{ - Description: "DEPRECATED: Use config instead helm defines the configuration for a helm deployment", - Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.HelmConfiguration"), - }, - }, }, + Required: []string{"source", "infrastructureRef"}, }, }, Dependencies: []string{ - v1.HelmReleaseConfig{}.OpenAPIModelName(), "github.com/devsy-org/api/pkg/apis/storage/v1.Access", "github.com/devsy-org/api/pkg/apis/storage/v1.AppParameter", "github.com/devsy-org/api/pkg/apis/storage/v1.AppVersion", "github.com/devsy-org/api/pkg/apis/storage/v1.HelmConfiguration", "github.com/devsy-org/api/pkg/apis/storage/v1.StreamContainer", "github.com/devsy-org/api/pkg/apis/storage/v1.UserOrTeam"}, + "github.com/devsy-org/api/pkg/apis/storage/v1.Access", "github.com/devsy-org/api/pkg/apis/storage/v1.DevsyWorkspacePresetSource", "github.com/devsy-org/api/pkg/apis/storage/v1.DevsyWorkspacePresetVersion", "github.com/devsy-org/api/pkg/apis/storage/v1.EnvironmentRef", "github.com/devsy-org/api/pkg/apis/storage/v1.TemplateRef", "github.com/devsy-org/api/pkg/apis/storage/v1.UserOrTeam"}, } } -func schema_pkg_apis_storage_v1_AppStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_storage_v1_DevsyWorkspacePresetStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "AppStatus holds the status", + Description: "DevsyWorkspacePresetStatus holds the status.", Type: []string{"object"}, }, }, } } -func schema_pkg_apis_storage_v1_AppTask(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_storage_v1_DevsyWorkspacePresetVersion(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ Type: []string{"object"}, Properties: map[string]spec.Schema{ - "type": { + "version": { SchemaProps: spec.SchemaProps{ - Description: "Type is the task type. Defaults to Upgrade", + Description: "Version is the version. Needs to be in X.X.X format.", Type: []string{"string"}, Format: "", }, }, - "rollbackRevision": { + "source": { SchemaProps: spec.SchemaProps{ - Description: "RollbackRevision is the revision to rollback to", - Type: []string{"string"}, - Format: "", + Description: "Source stores inline path of project source", + Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.DevsyWorkspacePresetSource"), }, }, - "appReference": { + "infrastructureRef": { SchemaProps: spec.SchemaProps{ - Description: "AppReference is the reference to the app to deploy", - Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.AppReference"), + Description: "InfrastructureRef stores reference to DevsyWorkspaceTemplate to use", + Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.TemplateRef"), + }, + }, + "environmentRef": { + SchemaProps: spec.SchemaProps{ + Description: "EnvironmentRef stores reference to DevsyEnvironmentTemplate", + Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.EnvironmentRef"), }, }, }, }, }, Dependencies: []string{ - "github.com/devsy-org/api/pkg/apis/storage/v1.AppReference"}, + "github.com/devsy-org/api/pkg/apis/storage/v1.DevsyWorkspacePresetSource", "github.com/devsy-org/api/pkg/apis/storage/v1.EnvironmentRef", "github.com/devsy-org/api/pkg/apis/storage/v1.TemplateRef"}, } } -func schema_pkg_apis_storage_v1_AppVersion(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_storage_v1_DevsyWorkspaceProvider(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ Type: []string{"object"}, Properties: map[string]spec.Schema{ - "defaultNamespace": { - SchemaProps: spec.SchemaProps{ - Description: "DefaultNamespace is the default namespace this app should installed in.", - Type: []string{"string"}, - Format: "", - }, - }, - "readme": { + "name": { SchemaProps: spec.SchemaProps{ - Description: "Readme is a longer markdown string that describes the app.", + Description: "Name is the name of the provider. This can also be an url.", Type: []string{"string"}, Format: "", }, }, - "icon": { + "options": { SchemaProps: spec.SchemaProps{ - Description: "Icon holds an URL to the app icon", - Type: []string{"string"}, - Format: "", + Description: "Options are the provider option values", + Type: []string{"object"}, + AdditionalProperties: &spec.SchemaOrBool{ + Allows: true, + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.DevsyProviderOption"), + }, + }, + }, }, }, - "config": { + "env": { SchemaProps: spec.SchemaProps{ - Description: "Config is the helm config to use to deploy the helm release", - Default: map[string]interface{}{}, - Ref: ref(v1.HelmReleaseConfig{}.OpenAPIModelName()), + Description: "Env are environment options to set when using the provider.", + Type: []string{"object"}, + AdditionalProperties: &spec.SchemaOrBool{ + Allows: true, + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.DevsyProviderOption"), + }, + }, + }, }, }, - "wait": { + }, + }, + }, + Dependencies: []string{ + "github.com/devsy-org/api/pkg/apis/storage/v1.DevsyProviderOption"}, + } +} + +func schema_pkg_apis_storage_v1_DevsyWorkspaceResourceRequirements(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "DevsyWorkspacePodResourceRequirements are less restrictive corev1.ResourceRequirements.", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "limits": { SchemaProps: spec.SchemaProps{ - Description: "Wait determines if Devsy should wait during deploy for the app to become ready", - Type: []string{"boolean"}, - Format: "", + Description: "Limits describes the maximum amount of compute resources allowed.", + Type: []string{"object"}, + AdditionalProperties: &spec.SchemaOrBool{ + Allows: true, + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + }, }, }, - "timeout": { + "requests": { SchemaProps: spec.SchemaProps{ - Description: "Timeout is the time to wait for any individual Kubernetes operation (like Jobs for hooks) (default 5m0s)", - Type: []string{"string"}, - Format: "", + Description: "Requests describes the minimum amount of compute resources required.", + Type: []string{"object"}, + AdditionalProperties: &spec.SchemaOrBool{ + Allows: true, + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + }, }, }, - "parameters": { + "claims": { SchemaProps: spec.SchemaProps{ - Description: "Parameters define additional app parameters that will set helm values", + Description: "Claims lists the names of resources, defined in spec.resourceClaims, that are used by this container.", Type: []string{"array"}, Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.AppParameter"), + Ref: ref(corev1.ResourceClaim{}.OpenAPIModelName()), }, }, }, }, }, - "streamContainer": { - SchemaProps: spec.SchemaProps{ - Description: "DEPRECATED: Use config.bash instead StreamContainer can be used to stream a containers logs instead of the helm output.", - Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.StreamContainer"), - }, - }, - "version": { - SchemaProps: spec.SchemaProps{ - Description: "Version is the version. Needs to be in X.X.X format.", - Type: []string{"string"}, - Format: "", - }, - }, }, }, }, Dependencies: []string{ - v1.HelmReleaseConfig{}.OpenAPIModelName(), "github.com/devsy-org/api/pkg/apis/storage/v1.AppParameter", "github.com/devsy-org/api/pkg/apis/storage/v1.StreamContainer"}, + corev1.ResourceClaim{}.OpenAPIModelName()}, } } -func schema_pkg_apis_storage_v1_ArgoIntegrationSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_storage_v1_DevsyWorkspaceTemplate(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Type: []string{"object"}, + Description: "DevsyWorkspaceTemplate holds the DevsyWorkspaceTemplate information", + Type: []string{"object"}, Properties: map[string]spec.Schema{ - "enabled": { - SchemaProps: spec.SchemaProps{ - Description: "Enabled indicates if the ArgoCD Integration is enabled for the project -- this knob only enables the syncing of virtualclusters, but does not enable SSO integration or project creation (see subsequent spec sections!).", - Type: []string{"boolean"}, - Format: "", - }, - }, - "cluster": { + "kind": { SchemaProps: spec.SchemaProps{ - Description: "Cluster defines the name of the cluster that ArgoCD is deployed into -- if not provided this will default to 'devsy-cluster'.", + Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", Type: []string{"string"}, Format: "", }, }, - "virtualClusterInstance": { + "apiVersion": { SchemaProps: spec.SchemaProps{ - Description: "VirtualClusterInstance defines the name of *virtual cluster* (instance) that ArgoCD is deployed into. If provided, Cluster will be ignored and Devsy will assume that ArgoCD is running in the specified virtual cluster.", + Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", Type: []string{"string"}, Format: "", }, }, - "namespace": { + "metadata": { SchemaProps: spec.SchemaProps{ - Description: "Namespace defines the namespace in which ArgoCD is running in the cluster.", - Type: []string{"string"}, - Format: "", + Default: map[string]interface{}{}, + Ref: ref(metav1.ObjectMeta{}.OpenAPIModelName()), }, }, - "sso": { + "spec": { SchemaProps: spec.SchemaProps{ - Description: "SSO defines single-sign-on related values for the ArgoCD Integration. Enabling SSO will allow users to authenticate to ArgoCD via Devsy.", - Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.ArgoSSOSpec"), + Default: map[string]interface{}{}, + Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.DevsyWorkspaceTemplateSpec"), }, }, - "project": { + "status": { SchemaProps: spec.SchemaProps{ - Description: "Project defines project related values for the ArgoCD Integration. Enabling Project integration will cause Devsy to generate and manage an ArgoCD appProject that corresponds to the Devsy Project.", - Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.ArgoProjectSpec"), + Default: map[string]interface{}{}, + Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.DevsyWorkspaceTemplateStatus"), }, }, }, }, }, Dependencies: []string{ - "github.com/devsy-org/api/pkg/apis/storage/v1.ArgoProjectSpec", "github.com/devsy-org/api/pkg/apis/storage/v1.ArgoSSOSpec"}, + "github.com/devsy-org/api/pkg/apis/storage/v1.DevsyWorkspaceTemplateSpec", "github.com/devsy-org/api/pkg/apis/storage/v1.DevsyWorkspaceTemplateStatus", metav1.ObjectMeta{}.OpenAPIModelName()}, } } -func schema_pkg_apis_storage_v1_ArgoProjectPolicyRule(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_storage_v1_DevsyWorkspaceTemplateDefinition(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ Type: []string{"object"}, Properties: map[string]spec.Schema{ - "action": { + "kubernetes": { SchemaProps: spec.SchemaProps{ - Description: "Action is one of \"*\", \"get\", \"create\", \"update\", \"delete\", \"sync\", or \"override\".", - Type: []string{"string"}, - Format: "", + Description: "Kubernetes holds the definition for kubernetes based workspaces", + Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.DevsyWorkspaceKubernetesSpec"), }, }, - "application": { + "workspaceEnv": { SchemaProps: spec.SchemaProps{ - Description: "Application is the ArgoCD project/repository to apply the rule to.", - Type: []string{"string"}, - Format: "", + Description: "WorkspaceEnv are environment variables that should be available within the created workspace.", + Type: []string{"object"}, + AdditionalProperties: &spec.SchemaOrBool{ + Allows: true, + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.DevsyProviderOption"), + }, + }, + }, }, }, - "permission": { + "instanceTemplate": { SchemaProps: spec.SchemaProps{ - Description: "Allow applies the \"allow\" permission to the rule, if allow is not set, the permission will always be set to \"deny\".", - Type: []string{"boolean"}, - Format: "", + Description: "InstanceTemplate holds the workspace instance template", + Default: map[string]interface{}{}, + Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.DevsyWorkspaceInstanceTemplateDefinition"), + }, + }, + "credentialForwarding": { + SchemaProps: spec.SchemaProps{ + Description: "CredentialForwarding specifies controls for how workspaces created by this template forward credentials into the workspace", + Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.CredentialForwarding"), + }, + }, + "provider": { + SchemaProps: spec.SchemaProps{ + Description: "Provider holds the legacy VM provider configuration", + Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.DevsyWorkspaceProvider"), }, }, }, }, }, + Dependencies: []string{ + "github.com/devsy-org/api/pkg/apis/storage/v1.CredentialForwarding", "github.com/devsy-org/api/pkg/apis/storage/v1.DevsyProviderOption", "github.com/devsy-org/api/pkg/apis/storage/v1.DevsyWorkspaceInstanceTemplateDefinition", "github.com/devsy-org/api/pkg/apis/storage/v1.DevsyWorkspaceKubernetesSpec", "github.com/devsy-org/api/pkg/apis/storage/v1.DevsyWorkspaceProvider"}, } } -func schema_pkg_apis_storage_v1_ArgoProjectRole(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_storage_v1_DevsyWorkspaceTemplateList(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Type: []string{"object"}, + Description: "DevsyWorkspaceTemplateList contains a list of DevsyWorkspaceTemplate.", + Type: []string{"object"}, Properties: map[string]spec.Schema{ - "name": { + "kind": { SchemaProps: spec.SchemaProps{ - Description: "Name of the ArgoCD role to attach to the project.", + Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", Type: []string{"string"}, Format: "", }, }, - "description": { + "apiVersion": { SchemaProps: spec.SchemaProps{ - Description: "Description to add to the ArgoCD project.", + Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", Type: []string{"string"}, Format: "", }, }, - "rules": { + "metadata": { SchemaProps: spec.SchemaProps{ - Description: "Rules ist a list of policy rules to attach to the role.", - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.ArgoProjectPolicyRule"), - }, - }, - }, + Default: map[string]interface{}{}, + Ref: ref(metav1.ListMeta{}.OpenAPIModelName()), }, }, - "groups": { + "items": { SchemaProps: spec.SchemaProps{ - Description: "Groups is a list of OIDC group names to bind to the role.", - Type: []string{"array"}, + Type: []string{"array"}, Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ - Default: "", - Type: []string{"string"}, - Format: "", + Default: map[string]interface{}{}, + Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.DevsyWorkspaceTemplate"), }, }, }, }, }, }, + Required: []string{"items"}, }, }, Dependencies: []string{ - "github.com/devsy-org/api/pkg/apis/storage/v1.ArgoProjectPolicyRule"}, + "github.com/devsy-org/api/pkg/apis/storage/v1.DevsyWorkspaceTemplate", metav1.ListMeta{}.OpenAPIModelName()}, } } -func schema_pkg_apis_storage_v1_ArgoProjectSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_storage_v1_DevsyWorkspaceTemplateSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Type: []string{"object"}, + Description: "DevsyWorkspaceTemplateSpec holds the specification.", + Type: []string{"object"}, Properties: map[string]spec.Schema{ - "enabled": { + "displayName": { SchemaProps: spec.SchemaProps{ - Description: "Enabled indicates if the ArgoCD Project Integration is enabled for this project. Enabling this will cause Devsy to create an appProject in ArgoCD that is associated with the Loft Project. When Project integration is enabled Devsy will override the default assigned role set in the SSO integration spec.", - Type: []string{"boolean"}, + Description: "DisplayName is the name that is shown in the UI", + Type: []string{"string"}, Format: "", }, }, - "metadata": { + "description": { SchemaProps: spec.SchemaProps{ - Description: "Metadata defines additional metadata to attach to the devsy created project in ArgoCD.", + Description: "Description describes the virtual cluster template", + Type: []string{"string"}, + Format: "", + }, + }, + "owner": { + SchemaProps: spec.SchemaProps{ + Description: "Owner holds the owner of this object", + Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.UserOrTeam"), + }, + }, + "parameters": { + SchemaProps: spec.SchemaProps{ + Description: "Parameters define additional app parameters that will set provider values", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.AppParameter"), + }, + }, + }, + }, + }, + "template": { + SchemaProps: spec.SchemaProps{ + Description: "Template holds the Devsy workspace template", Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.ArgoProjectSpecMetadata"), + Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.DevsyWorkspaceTemplateDefinition"), }, }, - "sourceRepos": { + "versions": { SchemaProps: spec.SchemaProps{ - Description: "SourceRepos is a list of source repositories to attach/allow on the project, if not specified will be \"*\" indicating all source repositories.", + Description: "Versions are different versions of the template that can be referenced as well", Type: []string{"array"}, Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ - Default: "", - Type: []string{"string"}, - Format: "", + Default: map[string]interface{}{}, + Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.DevsyWorkspaceTemplateVersion"), }, }, }, }, }, - "roles": { + "access": { SchemaProps: spec.SchemaProps{ - Description: "Roles is a list of roles that should be attached to the ArgoCD project. If roles are provided no devsy default roles will be set. If no roles are provided *and* SSO is enabled, devsy will configure sane default values.", + Description: "Access holds the access rights for users and teams", Type: []string{"array"}, Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.ArgoProjectRole"), + Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.Access"), }, }, }, @@ -24468,51 +24561,51 @@ func schema_pkg_apis_storage_v1_ArgoProjectSpec(ref common.ReferenceCallback) co }, }, Dependencies: []string{ - "github.com/devsy-org/api/pkg/apis/storage/v1.ArgoProjectRole", "github.com/devsy-org/api/pkg/apis/storage/v1.ArgoProjectSpecMetadata"}, + "github.com/devsy-org/api/pkg/apis/storage/v1.Access", "github.com/devsy-org/api/pkg/apis/storage/v1.AppParameter", "github.com/devsy-org/api/pkg/apis/storage/v1.DevsyWorkspaceTemplateDefinition", "github.com/devsy-org/api/pkg/apis/storage/v1.DevsyWorkspaceTemplateVersion", "github.com/devsy-org/api/pkg/apis/storage/v1.UserOrTeam"}, } } -func schema_pkg_apis_storage_v1_ArgoProjectSpecMetadata(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_storage_v1_DevsyWorkspaceTemplateStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "DevsyWorkspaceTemplateStatus holds the status.", + Type: []string{"object"}, + }, + }, + } +} + +func schema_pkg_apis_storage_v1_DevsyWorkspaceTemplateVersion(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ Type: []string{"object"}, Properties: map[string]spec.Schema{ - "extraAnnotations": { + "template": { SchemaProps: spec.SchemaProps{ - Description: "ExtraAnnotations are optional annotations that can be attached to the project in ArgoCD.", - Type: []string{"object"}, - AdditionalProperties: &spec.SchemaOrBool{ - Allows: true, - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: "", - Type: []string{"string"}, - Format: "", - }, - }, - }, + Description: "Template holds the Devsy template", + Default: map[string]interface{}{}, + Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.DevsyWorkspaceTemplateDefinition"), }, }, - "extraLabels": { + "parameters": { SchemaProps: spec.SchemaProps{ - Description: "ExtraLabels are optional labels that can be attached to the project in ArgoCD.", - Type: []string{"object"}, - AdditionalProperties: &spec.SchemaOrBool{ - Allows: true, + Description: "Parameters define additional app parameters that will set provider values", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ - Default: "", - Type: []string{"string"}, - Format: "", + Default: map[string]interface{}{}, + Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.AppParameter"), }, }, }, }, }, - "description": { + "version": { SchemaProps: spec.SchemaProps{ - Description: "Description to add to the ArgoCD project.", + Description: "Version is the version. Needs to be in X.X.X format.", Type: []string{"string"}, Format: "", }, @@ -24520,32 +24613,25 @@ func schema_pkg_apis_storage_v1_ArgoProjectSpecMetadata(ref common.ReferenceCall }, }, }, + Dependencies: []string{ + "github.com/devsy-org/api/pkg/apis/storage/v1.AppParameter", "github.com/devsy-org/api/pkg/apis/storage/v1.DevsyWorkspaceTemplateDefinition"}, } } -func schema_pkg_apis_storage_v1_ArgoSSOSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_storage_v1_DevsyWorkspaceVolumeClaimSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ Type: []string{"object"}, Properties: map[string]spec.Schema{ - "enabled": { - SchemaProps: spec.SchemaProps{ - Description: "Enabled indicates if the ArgoCD SSO Integration is enabled for this project. Enabling this will cause Devsy to configure SSO authentication via Devsy in ArgoCD. If Projects are *not* enabled, all users associated with this Project will be assigned either the 'read-only' (default) role, *or* the roles set under the AssignedRoles field.", - Type: []string{"boolean"}, - Format: "", - }, - }, - "host": { - SchemaProps: spec.SchemaProps{ - Description: "Host defines the ArgoCD host address that will be used for OIDC authentication between devsy and ArgoCD. If not specified OIDC integration will be skipped, but devsys/spaces will still be synced to ArgoCD.", - Type: []string{"string"}, - Format: "", + "accessModes": { + VendorExtensible: spec.VendorExtensible{ + Extensions: spec.Extensions{ + "x-kubernetes-list-type": "atomic", + }, }, - }, - "assignedRoles": { SchemaProps: spec.SchemaProps{ - Description: "AssignedRoles is a list of roles to assign for users who authenticate via Devsy -- by default this will be the `read-only` role. If any roles are provided this will override the default setting.", + Description: "accessModes contains the desired access modes the volume should have.", Type: []string{"array"}, Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ @@ -24553,172 +24639,164 @@ func schema_pkg_apis_storage_v1_ArgoSSOSpec(ref common.ReferenceCallback) common Default: "", Type: []string{"string"}, Format: "", + Enum: []interface{}{"ReadOnlyMany", "ReadWriteMany", "ReadWriteOnce", "ReadWriteOncePod"}, }, }, }, }, }, - }, - }, - }, - } -} - -func schema_pkg_apis_storage_v1_BCMNodeTypeSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { - return common.OpenAPIDefinition{ - Schema: spec.Schema{ - SchemaProps: spec.SchemaProps{ - Type: []string{"object"}, - Properties: map[string]spec.Schema{ - "providerRef": { - SchemaProps: spec.SchemaProps{ - Description: "ProviderRef is the node provider to use for this node type.", - Type: []string{"string"}, - Format: "", - }, - }, - "properties": { + "selector": { SchemaProps: spec.SchemaProps{ - Description: "Properties returns a flexible set of properties that may be selected for scheduling.", - Type: []string{"object"}, - AdditionalProperties: &spec.SchemaOrBool{ - Allows: true, - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: "", - Type: []string{"string"}, - Format: "", - }, - }, - }, + Description: "selector is a label query over volumes to consider for binding.", + Ref: ref(metav1.LabelSelector{}.OpenAPIModelName()), }, }, "resources": { SchemaProps: spec.SchemaProps{ - Description: "Resources lists the full resources for a single node.", - Type: []string{"object"}, - AdditionalProperties: &spec.SchemaOrBool{ - Allows: true, - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Ref: ref("k8s.io/apimachinery/pkg/api/resource.Quantity"), - }, - }, - }, + Description: "resources represents the minimum resources the volume should have.", + Default: map[string]interface{}{}, + Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.DevsyWorkspaceResourceRequirements"), }, }, - "overhead": { + "volumeName": { SchemaProps: spec.SchemaProps{ - Description: "Overhead defines the resource overhead for this node type.", - Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.NodeTypeOverhead"), + Description: "volumeName is the binding reference to the PersistentVolume backing this claim.", + Type: []string{"string"}, + Format: "", }, }, - "cost": { + "storageClassName": { SchemaProps: spec.SchemaProps{ - Description: "Cost is the instance cost. The higher the cost, the less likely it is to be selected. If empty, cost is automatically calculated from the resources specified.", - Type: []string{"integer"}, - Format: "int64", + Description: "storageClassName is the name of the StorageClass required by the claim.", + Type: []string{"string"}, + Format: "", }, }, - "displayName": { + "volumeMode": { SchemaProps: spec.SchemaProps{ - Description: "DisplayName is the name that should be displayed in the UI", + Description: "volumeMode defines what type of volume is required by the claim.\n\nPossible enum values:\n - `\"Block\"` means the volume will not be formatted with a filesystem and will remain a raw block device.\n - `\"Filesystem\"` means the volume will be or is formatted with a filesystem.", Type: []string{"string"}, Format: "", + Enum: []interface{}{"Block", "Filesystem"}, }, }, - "name": { + "dataSource": { SchemaProps: spec.SchemaProps{ - Description: "Name is the name of this node type.", - Default: "", + Description: "dataSource field can be used to specify either:", + Ref: ref(corev1.TypedLocalObjectReference{}.OpenAPIModelName()), + }, + }, + "dataSourceRef": { + SchemaProps: spec.SchemaProps{ + Description: "dataSourceRef specifies the object from which to populate the volume with data, if a non-empty", + Ref: ref(corev1.TypedObjectReference{}.OpenAPIModelName()), + }, + }, + "volumeAttributesClassName": { + SchemaProps: spec.SchemaProps{ + Description: "volumeAttributesClassName may be used to set the VolumeAttributesClass used by this claim.", Type: []string{"string"}, Format: "", }, }, + }, + }, + }, + Dependencies: []string{ + "github.com/devsy-org/api/pkg/apis/storage/v1.DevsyWorkspaceResourceRequirements", corev1.TypedLocalObjectReference{}.OpenAPIModelName(), corev1.TypedObjectReference{}.OpenAPIModelName(), metav1.LabelSelector{}.OpenAPIModelName()}, + } +} + +func schema_pkg_apis_storage_v1_DevsyWorkspaceVolumeClaimTemplate(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"object"}, + Properties: map[string]spec.Schema{ "metadata": { SchemaProps: spec.SchemaProps{ - Description: "Metadata holds metadata to add to this managed NodeType.", + Description: "The pods metadata", Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.ManagedNodeTypeObjectMeta"), + Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.TemplateMetadata"), }, }, - "nodes": { + "spec": { SchemaProps: spec.SchemaProps{ - Description: "Nodes specifies nodes.", - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: "", - Type: []string{"string"}, - Format: "", - }, - }, - }, + Default: map[string]interface{}{}, + Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.DevsyWorkspaceVolumeClaimSpec"), }, }, - "nodeGroups": { + }, + }, + }, + Dependencies: []string{ + "github.com/devsy-org/api/pkg/apis/storage/v1.DevsyWorkspaceVolumeClaimSpec", "github.com/devsy-org/api/pkg/apis/storage/v1.TemplateMetadata"}, + } +} + +func schema_pkg_apis_storage_v1_DockerCredentialForwarding(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "disabled": { SchemaProps: spec.SchemaProps{ - Description: "NodeGroups is the name of the node groups to use for this provider.", - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: "", - Type: []string{"string"}, - Format: "", - }, - }, - }, + Description: "Disabled prevents all workspaces created by this template from forwarding credentials into the workspace", + Type: []string{"boolean"}, + Format: "", }, }, }, - Required: []string{"name"}, }, }, - Dependencies: []string{ - "github.com/devsy-org/api/pkg/apis/storage/v1.ManagedNodeTypeObjectMeta", "github.com/devsy-org/api/pkg/apis/storage/v1.NodeTypeOverhead", "k8s.io/apimachinery/pkg/api/resource.Quantity"}, } } -func schema_pkg_apis_storage_v1_Chart(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_storage_v1_EntityInfo(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "Chart describes a chart", - Type: []string{"object"}, + Type: []string{"object"}, Properties: map[string]spec.Schema{ "name": { SchemaProps: spec.SchemaProps{ - Description: "Name is the chart name in the repository", + Description: "Name is the kubernetes name of the object", Type: []string{"string"}, Format: "", }, }, - "version": { + "displayName": { SchemaProps: spec.SchemaProps{ - Description: "Version is the chart version in the repository", + Description: "The display name shown in the UI", Type: []string{"string"}, Format: "", }, }, - "repoURL": { + "icon": { SchemaProps: spec.SchemaProps{ - Description: "RepoURL is the repo url where the chart can be found", + Description: "Icon is the icon of the user / team", Type: []string{"string"}, Format: "", }, }, "username": { SchemaProps: spec.SchemaProps{ - Description: "The username that is required for this repository", + Description: "The username that is used to login", Type: []string{"string"}, Format: "", }, }, - "password": { + "email": { SchemaProps: spec.SchemaProps{ - Description: "The password that is required for this repository", + Description: "The users email address", + Type: []string{"string"}, + Format: "", + }, + }, + "subject": { + SchemaProps: spec.SchemaProps{ + Description: "The user subject", Type: []string{"string"}, Format: "", }, @@ -24729,7 +24807,7 @@ func schema_pkg_apis_storage_v1_Chart(ref common.ReferenceCallback) common.OpenA } } -func schema_pkg_apis_storage_v1_ChartStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_storage_v1_EnvironmentRef(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ @@ -24737,22 +24815,36 @@ func schema_pkg_apis_storage_v1_ChartStatus(ref common.ReferenceCallback) common Properties: map[string]spec.Schema{ "name": { SchemaProps: spec.SchemaProps{ - Description: "Name of the chart that was applied", + Description: "Name is the name of DevsyEnvironmentTemplate this references", + Default: "", Type: []string{"string"}, Format: "", }, }, - "namespace": { + "version": { SchemaProps: spec.SchemaProps{ - Description: "Namespace of the chart that was applied", + Description: "Version is the version of DevsyEnvironmentTemplate this references", Type: []string{"string"}, Format: "", }, }, - "lastAppliedChartConfigHash": { + }, + Required: []string{"name"}, + }, + }, + } +} + +func schema_pkg_apis_storage_v1_GitCredentialForwarding(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "disabled": { SchemaProps: spec.SchemaProps{ - Description: "LastAppliedChartConfigHash is the last applied configuration", - Type: []string{"string"}, + Description: "Disabled prevents all workspaces created by this template from forwarding credentials into the workspace", + Type: []string{"boolean"}, Format: "", }, }, @@ -24762,178 +24854,119 @@ func schema_pkg_apis_storage_v1_ChartStatus(ref common.ReferenceCallback) common } } -func schema_pkg_apis_storage_v1_Cluster(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_storage_v1_GitEnvironmentTemplate(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "Cluster holds the cluster information", + Description: "GitEnvironmentTemplate stores configuration of Git environment template source", Type: []string{"object"}, Properties: map[string]spec.Schema{ - "kind": { + "repository": { SchemaProps: spec.SchemaProps{ - Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + Description: "Repository stores repository URL for Git environment spec source", + Default: "", Type: []string{"string"}, Format: "", }, }, - "apiVersion": { + "revision": { SchemaProps: spec.SchemaProps{ - Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + Description: "Revision stores revision to checkout in repository", Type: []string{"string"}, Format: "", }, }, - "metadata": { - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref(metav1.ObjectMeta{}.OpenAPIModelName()), - }, - }, - "spec": { + "subpath": { SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.ClusterSpec"), + Description: "SubPath stores subpath within Repositor where environment spec is", + Type: []string{"string"}, + Format: "", }, }, - "status": { + "useProjectGitCredentials": { SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.ClusterStatus"), + Description: "UseProjectGitCredentials specifies if the project git credentials should be used instead of local ones for this environment", + Type: []string{"boolean"}, + Format: "", }, }, }, + Required: []string{"repository"}, }, }, - Dependencies: []string{ - "github.com/devsy-org/api/pkg/apis/storage/v1.ClusterSpec", "github.com/devsy-org/api/pkg/apis/storage/v1.ClusterStatus", metav1.ObjectMeta{}.OpenAPIModelName()}, } } -func schema_pkg_apis_storage_v1_ClusterAccess(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_storage_v1_GitProjectCredentials(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "ClusterAccess holds the global cluster access information", - Type: []string{"object"}, + Type: []string{"object"}, Properties: map[string]spec.Schema{ - "kind": { - SchemaProps: spec.SchemaProps{ - Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", - Type: []string{"string"}, - Format: "", - }, - }, - "apiVersion": { + "token": { SchemaProps: spec.SchemaProps{ - Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + Description: "Token defines the credentials to use for authentication, this is a base64 encoded string.", Type: []string{"string"}, Format: "", }, }, - "metadata": { - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref(metav1.ObjectMeta{}.OpenAPIModelName()), - }, - }, - "spec": { - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.ClusterAccessSpec"), - }, - }, - "status": { + "tokenSecretRef": { SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.ClusterAccessStatus"), + Description: "TokenSecretRef defines the project secret to use as credentials for authentication. Will be used if `Token` is not provided.", + Ref: ref(corev1.SecretKeySelector{}.OpenAPIModelName()), }, }, }, }, }, Dependencies: []string{ - "github.com/devsy-org/api/pkg/apis/storage/v1.ClusterAccessSpec", "github.com/devsy-org/api/pkg/apis/storage/v1.ClusterAccessStatus", metav1.ObjectMeta{}.OpenAPIModelName()}, + corev1.SecretKeySelector{}.OpenAPIModelName()}, } } -func schema_pkg_apis_storage_v1_ClusterAccessList(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_storage_v1_GitProjectSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "ClusterAccessList contains a list of ClusterAccess objects", - Type: []string{"object"}, + Type: []string{"object"}, Properties: map[string]spec.Schema{ - "kind": { - SchemaProps: spec.SchemaProps{ - Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", - Type: []string{"string"}, - Format: "", - }, - }, - "apiVersion": { - SchemaProps: spec.SchemaProps{ - Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", - Type: []string{"string"}, - Format: "", - }, - }, - "metadata": { + "http": { SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref(metav1.ListMeta{}.OpenAPIModelName()), + Description: "HTTP defines additional http related settings like credentials, to be specified as base64 encoded strings.", + Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.GitProjectCredentials"), }, }, - "items": { + "ssh": { SchemaProps: spec.SchemaProps{ - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.ClusterAccess"), - }, - }, - }, + Description: "SSH defines additional ssh related settings like private keys, to be specified as base64 encoded strings.", + Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.GitProjectCredentials"), }, }, }, - Required: []string{"items"}, }, }, Dependencies: []string{ - "github.com/devsy-org/api/pkg/apis/storage/v1.ClusterAccess", metav1.ListMeta{}.OpenAPIModelName()}, + "github.com/devsy-org/api/pkg/apis/storage/v1.GitProjectCredentials"}, } } -func schema_pkg_apis_storage_v1_ClusterAccessSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_storage_v1_GroupResources(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Type: []string{"object"}, + Description: "GroupResources represents resource kinds in an API group.", + Type: []string{"object"}, Properties: map[string]spec.Schema{ - "displayName": { - SchemaProps: spec.SchemaProps{ - Description: "DisplayName is the name that should be displayed in the UI", - Type: []string{"string"}, - Format: "", - }, - }, - "description": { + "group": { SchemaProps: spec.SchemaProps{ - Description: "Description describes a cluster access object", + Description: "Group is the name of the API group that contains the resources. The empty string represents the core API group.", Type: []string{"string"}, Format: "", }, }, - "owner": { - SchemaProps: spec.SchemaProps{ - Description: "Owner holds the owner of this object", - Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.UserOrTeam"), - }, - }, - "clusters": { + "resources": { SchemaProps: spec.SchemaProps{ - Description: "Clusters are the clusters this template should be applied on.", + Description: "Resources is a list of resources this rule applies to.\n\nFor example: 'pods' matches pods. 'pods/log' matches the log subresource of pods. '*' matches all resources and their subresources. 'pods/*' matches all subresources of pods. '*/scale' matches all scale subresources.\n\nIf wildcard is present, the validation rule will ensure resources do not overlap with each other.\n\nAn empty list implies all resources and subresources in this API groups apply.", Type: []string{"array"}, Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ @@ -24946,267 +24979,249 @@ func schema_pkg_apis_storage_v1_ClusterAccessSpec(ref common.ReferenceCallback) }, }, }, - "access": { + "resourceNames": { SchemaProps: spec.SchemaProps{ - Description: "Access holds the access rights for users and teams", + Description: "ResourceNames is a list of resource instance names that the policy matches. Using this field requires Resources to be specified. An empty list implies that every instance of the resource is matched.", Type: []string{"array"}, Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.Access"), + Default: "", + Type: []string{"string"}, + Format: "", }, }, }, }, }, - "localClusterAccessTemplate": { - SchemaProps: spec.SchemaProps{ - Description: "LocalClusterAccessTemplate holds the cluster access template", - Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.LocalClusterAccessTemplate"), - }, - }, }, }, }, - Dependencies: []string{ - "github.com/devsy-org/api/pkg/apis/storage/v1.Access", "github.com/devsy-org/api/pkg/apis/storage/v1.LocalClusterAccessTemplate", "github.com/devsy-org/api/pkg/apis/storage/v1.UserOrTeam"}, - } -} - -func schema_pkg_apis_storage_v1_ClusterAccessStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { - return common.OpenAPIDefinition{ - Schema: spec.Schema{ - SchemaProps: spec.SchemaProps{ - Description: "ClusterAccessStatus holds the status of a user access", - Type: []string{"object"}, - }, - }, } } -func schema_pkg_apis_storage_v1_ClusterList(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_storage_v1_HelmChart(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "ClusterList contains a list of Cluster", - Type: []string{"object"}, + Type: []string{"object"}, Properties: map[string]spec.Schema{ - "kind": { - SchemaProps: spec.SchemaProps{ - Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", - Type: []string{"string"}, - Format: "", - }, - }, - "apiVersion": { - SchemaProps: spec.SchemaProps{ - Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", - Type: []string{"string"}, - Format: "", - }, - }, "metadata": { SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref(metav1.ListMeta{}.OpenAPIModelName()), + Description: "Metadata provides information about a chart", + Default: map[string]interface{}{}, + Ref: ref("github.com/devsy-org/agentapi/pkg/apis/devsy/cluster/v1.Metadata"), }, }, - "items": { + "versions": { SchemaProps: spec.SchemaProps{ - Type: []string{"array"}, + Description: "Versions holds all chart versions", + Type: []string{"array"}, Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.Cluster"), + Default: "", + Type: []string{"string"}, + Format: "", }, }, }, }, }, + "repository": { + SchemaProps: spec.SchemaProps{ + Description: "Repository is the repository name of this chart", + Default: map[string]interface{}{}, + Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.HelmChartRepository"), + }, + }, }, - Required: []string{"items"}, }, }, Dependencies: []string{ - "github.com/devsy-org/api/pkg/apis/storage/v1.Cluster", metav1.ListMeta{}.OpenAPIModelName()}, + "github.com/devsy-org/agentapi/pkg/apis/devsy/cluster/v1.Metadata", "github.com/devsy-org/api/pkg/apis/storage/v1.HelmChartRepository"}, } } -func schema_pkg_apis_storage_v1_ClusterRef(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_storage_v1_HelmChartRepository(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ Type: []string{"object"}, Properties: map[string]spec.Schema{ - "cluster": { + "name": { SchemaProps: spec.SchemaProps{ - Description: "Cluster is the connected cluster the space will be created in", + Description: "Name is the name of the repository", Type: []string{"string"}, Format: "", }, }, - "namespace": { + "url": { SchemaProps: spec.SchemaProps{ - Description: "Namespace is the namespace inside the connected cluster holding the space", + Description: "URL is the repository url", Type: []string{"string"}, Format: "", }, }, - }, - }, - }, - } -} - -func schema_pkg_apis_storage_v1_ClusterRoleRef(ref common.ReferenceCallback) common.OpenAPIDefinition { - return common.OpenAPIDefinition{ - Schema: spec.Schema{ - SchemaProps: spec.SchemaProps{ - Type: []string{"object"}, - Properties: map[string]spec.Schema{ - "name": { + "username": { SchemaProps: spec.SchemaProps{ - Description: "Name is the cluster role to assign", + Description: "Username of the repository", + Type: []string{"string"}, + Format: "", + }, + }, + "password": { + SchemaProps: spec.SchemaProps{ + Description: "Password of the repository", Type: []string{"string"}, Format: "", }, }, + "insecure": { + SchemaProps: spec.SchemaProps{ + Description: "Insecure specifies if the chart should be retrieved without TLS verification", + Type: []string{"boolean"}, + Format: "", + }, + }, }, }, }, } } -func schema_pkg_apis_storage_v1_ClusterRoleTemplate(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_storage_v1_HelmConfiguration(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "ClusterRoleTemplate holds the global role template information", + Description: "HelmConfiguration holds the helm configuration", Type: []string{"object"}, Properties: map[string]spec.Schema{ - "kind": { + "name": { SchemaProps: spec.SchemaProps{ - Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + Description: "Name of the chart to deploy", + Default: "", Type: []string{"string"}, Format: "", }, }, - "apiVersion": { + "values": { SchemaProps: spec.SchemaProps{ - Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + Description: "The additional helm values to use. Expected block string", Type: []string{"string"}, Format: "", }, }, - "metadata": { + "version": { SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref(metav1.ObjectMeta{}.OpenAPIModelName()), + Description: "Version is the version of the chart to deploy", + Type: []string{"string"}, + Format: "", }, }, - "spec": { + "repoUrl": { SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.ClusterRoleTemplateSpec"), + Description: "The repo url to use", + Type: []string{"string"}, + Format: "", }, }, - "status": { + "username": { SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.ClusterRoleTemplateStatus"), + Description: "The username to use for the selected repository", + Type: []string{"string"}, + Format: "", + }, + }, + "password": { + SchemaProps: spec.SchemaProps{ + Description: "The password to use for the selected repository", + Type: []string{"string"}, + Format: "", + }, + }, + "insecure": { + SchemaProps: spec.SchemaProps{ + Description: "Determines if the remote location uses an insecure TLS certificate.", + Type: []string{"boolean"}, + Format: "", }, }, }, + Required: []string{"name"}, }, }, - Dependencies: []string{ - "github.com/devsy-org/api/pkg/apis/storage/v1.ClusterRoleTemplateSpec", "github.com/devsy-org/api/pkg/apis/storage/v1.ClusterRoleTemplateStatus", metav1.ObjectMeta{}.OpenAPIModelName()}, } } -func schema_pkg_apis_storage_v1_ClusterRoleTemplateList(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_storage_v1_HelmTask(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "ClusterRoleTemplateList contains a list of ClusterRoleTemplate objects", - Type: []string{"object"}, + Type: []string{"object"}, Properties: map[string]spec.Schema{ - "kind": { + "release": { SchemaProps: spec.SchemaProps{ - Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", - Type: []string{"string"}, - Format: "", + Description: "Release holds the release information", + Default: map[string]interface{}{}, + Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.HelmTaskRelease"), }, }, - "apiVersion": { + "type": { SchemaProps: spec.SchemaProps{ - Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + Description: "Type is the task type. Defaults to Upgrade", Type: []string{"string"}, Format: "", }, }, - "metadata": { + "rollbackRevision": { SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref(metav1.ListMeta{}.OpenAPIModelName()), - }, - }, - "items": { - SchemaProps: spec.SchemaProps{ - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.ClusterRoleTemplate"), - }, - }, - }, + Description: "RollbackRevision is the revision to rollback to", + Type: []string{"string"}, + Format: "", }, }, }, - Required: []string{"items"}, }, }, Dependencies: []string{ - "github.com/devsy-org/api/pkg/apis/storage/v1.ClusterRoleTemplate", metav1.ListMeta{}.OpenAPIModelName()}, + "github.com/devsy-org/api/pkg/apis/storage/v1.HelmTaskRelease"}, } } -func schema_pkg_apis_storage_v1_ClusterRoleTemplateSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_storage_v1_HelmTaskRelease(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ Type: []string{"object"}, Properties: map[string]spec.Schema{ - "displayName": { + "name": { SchemaProps: spec.SchemaProps{ - Description: "DisplayName is the name that should be displayed in the UI", + Description: "Name is the name of the release", Type: []string{"string"}, Format: "", }, }, - "description": { + "namespace": { SchemaProps: spec.SchemaProps{ - Description: "Description describes a cluster role template object", + Description: "Namespace of the release, if empty will use the target namespace", Type: []string{"string"}, Format: "", }, }, - "owner": { + "config": { SchemaProps: spec.SchemaProps{ - Description: "Owner holds the owner of this object", - Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.UserOrTeam"), + Description: "Config is the helm config to use to deploy the release", + Default: map[string]interface{}{}, + Ref: ref("github.com/devsy-org/agentapi/pkg/apis/devsy/cluster/v1.HelmReleaseConfig"), }, }, - "clusters": { + "labels": { SchemaProps: spec.SchemaProps{ - Description: "Clusters are the clusters this template should be applied on.", - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ + Description: "Labels are additional labels for the helm release.", + Type: []string{"object"}, + AdditionalProperties: &spec.SchemaOrBool{ + Allows: true, Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: "", @@ -25217,288 +25232,221 @@ func schema_pkg_apis_storage_v1_ClusterRoleTemplateSpec(ref common.ReferenceCall }, }, }, - "management": { - SchemaProps: spec.SchemaProps{ - Description: "Management defines if this cluster role should be created in the management instance.", - Type: []string{"boolean"}, - Format: "", - }, - }, - "access": { + }, + }, + }, + Dependencies: []string{ + "github.com/devsy-org/agentapi/pkg/apis/devsy/cluster/v1.HelmReleaseConfig"}, + } +} + +func schema_pkg_apis_storage_v1_ImportVirtualClustersSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "roleMapping": { SchemaProps: spec.SchemaProps{ - Description: "Access holds the access rights for users and teams", - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ + Description: "RoleMapping indicates an optional role mapping from a rancher project role to a rancher cluster role. Map to an empty role to exclude users and groups with that role from being synced.", + Type: []string{"object"}, + AdditionalProperties: &spec.SchemaOrBool{ + Allows: true, Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.Access"), + Default: "", + Type: []string{"string"}, + Format: "", }, }, }, }, }, - "clusterRoleTemplate": { - SchemaProps: spec.SchemaProps{ - Description: "ClusterRoleTemplate holds the cluster role template", - Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.ClusterRoleTemplateTemplate"), - }, - }, - "localClusterRoleTemplate": { - SchemaProps: spec.SchemaProps{ - Description: "DEPRECATED: Use ClusterRoleTemplate instead LocalClusterRoleTemplate holds the cluster role template", - Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.LocalClusterRoleTemplate"), - }, - }, }, }, }, - Dependencies: []string{ - "github.com/devsy-org/api/pkg/apis/storage/v1.Access", "github.com/devsy-org/api/pkg/apis/storage/v1.ClusterRoleTemplateTemplate", "github.com/devsy-org/api/pkg/apis/storage/v1.LocalClusterRoleTemplate", "github.com/devsy-org/api/pkg/apis/storage/v1.UserOrTeam"}, } } -func schema_pkg_apis_storage_v1_ClusterRoleTemplateStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_storage_v1_InstanceAccess(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "ClusterRoleTemplateStatus holds the status of a user access", - Type: []string{"object"}, + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "defaultClusterRole": { + SchemaProps: spec.SchemaProps{ + Description: "Specifies which cluster role should get applied to users or teams that do not match a rule below.", + Type: []string{"string"}, + Format: "", + }, + }, + "rules": { + SchemaProps: spec.SchemaProps{ + Description: "Rules defines which users and teams should have which access to the virtual cluster. If no rule matches an authenticated incoming user, the user will get cluster admin access.", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.InstanceAccessRule"), + }, + }, + }, + }, + }, + }, }, }, + Dependencies: []string{ + "github.com/devsy-org/api/pkg/apis/storage/v1.InstanceAccessRule"}, } } -func schema_pkg_apis_storage_v1_ClusterRoleTemplateTemplate(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_storage_v1_InstanceAccessRule(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ Type: []string{"object"}, Properties: map[string]spec.Schema{ - "metadata": { + "users": { SchemaProps: spec.SchemaProps{ - Description: "Standard object's metadata.", - Default: map[string]interface{}{}, - Ref: ref(metav1.ObjectMeta{}.OpenAPIModelName()), + Description: "Users this rule matches. * means all users.", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + }, }, }, - "rules": { + "teams": { SchemaProps: spec.SchemaProps{ - Description: "Rules holds all the PolicyRules for this ClusterRole", + Description: "Teams that this rule matches.", Type: []string{"array"}, Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("k8s.io/api/rbac/v1.PolicyRule"), + Default: "", + Type: []string{"string"}, + Format: "", }, }, }, }, }, - "aggregationRule": { + "clusterRole": { SchemaProps: spec.SchemaProps{ - Description: "AggregationRule is an optional field that describes how to build the Rules for this ClusterRole. If AggregationRule is set, then the Rules are controller managed and direct changes to Rules will be stomped by the controller.", - Ref: ref("k8s.io/api/rbac/v1.AggregationRule"), + Description: "ClusterRole is the cluster role that should be assigned to the", + Type: []string{"string"}, + Format: "", }, }, }, }, }, - Dependencies: []string{ - "k8s.io/api/rbac/v1.AggregationRule", "k8s.io/api/rbac/v1.PolicyRule", metav1.ObjectMeta{}.OpenAPIModelName()}, } } -func schema_pkg_apis_storage_v1_ClusterSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_storage_v1_InstanceDeployedAppStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "ClusterSpec holds the cluster specification", - Type: []string{"object"}, + Type: []string{"object"}, Properties: map[string]spec.Schema{ - "displayName": { + "name": { SchemaProps: spec.SchemaProps{ - Description: "If specified this name is displayed in the UI instead of the metadata name", + Description: "Name of the app that should get deployed", Type: []string{"string"}, Format: "", }, }, - "description": { + "namespace": { SchemaProps: spec.SchemaProps{ - Description: "Description describes a cluster access object", + Description: "Namespace specifies in which target namespace the app should get deployed in. Only used for virtual cluster apps.", Type: []string{"string"}, Format: "", }, }, - "owner": { - SchemaProps: spec.SchemaProps{ - Description: "Owner holds the owner of this object", - Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.UserOrTeam"), - }, - }, - "config": { - SchemaProps: spec.SchemaProps{ - Description: "Holds a reference to a secret that holds the kube config to access this cluster", - Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.SecretRef"), - }, - }, - "local": { + "releaseName": { SchemaProps: spec.SchemaProps{ - Description: "Local specifies if it is the local cluster that should be connected, when this is specified, config is optional", - Type: []string{"boolean"}, + Description: "ReleaseName of the target app", + Type: []string{"string"}, Format: "", }, }, - "networkPeer": { + "version": { SchemaProps: spec.SchemaProps{ - Description: "NetworkPeer specifies if the cluster is connected via tailscale, when this is specified, config is optional", - Type: []string{"boolean"}, + Description: "Version of the app that should get deployed", + Type: []string{"string"}, Format: "", }, }, - "managementNamespace": { + "phase": { SchemaProps: spec.SchemaProps{ - Description: "The namespace where the cluster components will be installed in", + Description: "Phase describes the current phase the app deployment is in", Type: []string{"string"}, Format: "", }, }, - "unusable": { + "reason": { SchemaProps: spec.SchemaProps{ - Description: "If unusable is true, no spaces or virtual clusters can be scheduled on this cluster.", - Type: []string{"boolean"}, + Description: "Reason describes the reason in machine-readable form", + Type: []string{"string"}, Format: "", }, }, - "access": { - SchemaProps: spec.SchemaProps{ - Description: "Access holds the access rights for users and teams", - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.Access"), - }, - }, - }, - }, - }, - "metrics": { - SchemaProps: spec.SchemaProps{ - Description: "Metrics holds the cluster's metrics backend configuration", - Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.Metrics"), - }, - }, - "opencost": { + "message": { SchemaProps: spec.SchemaProps{ - Description: "OpenCost holds the cluster's OpenCost backend configuration", - Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.OpenCost"), + Description: "Message describes the reason in human-readable form", + Type: []string{"string"}, + Format: "", }, }, }, }, }, - Dependencies: []string{ - "github.com/devsy-org/api/pkg/apis/storage/v1.Access", "github.com/devsy-org/api/pkg/apis/storage/v1.Metrics", "github.com/devsy-org/api/pkg/apis/storage/v1.OpenCost", "github.com/devsy-org/api/pkg/apis/storage/v1.SecretRef", "github.com/devsy-org/api/pkg/apis/storage/v1.UserOrTeam"}, } } -func schema_pkg_apis_storage_v1_ClusterStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_storage_v1_KindSecretRef(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "ClusterStatus holds the user status", + Description: "KindSecretRef is the reference to a secret containing the user password", Type: []string{"object"}, Properties: map[string]spec.Schema{ - "phase": { + "apiGroup": { SchemaProps: spec.SchemaProps{ - Type: []string{"string"}, - Format: "", + Description: "APIGroup is the api group of the secret", + Type: []string{"string"}, + Format: "", }, }, - "reason": { + "kind": { SchemaProps: spec.SchemaProps{ - Type: []string{"string"}, - Format: "", + Description: "Kind is the kind of the secret", + Type: []string{"string"}, + Format: "", }, }, - "message": { + "secretName": { SchemaProps: spec.SchemaProps{ Type: []string{"string"}, Format: "", }, }, - "conditions": { - SchemaProps: spec.SchemaProps{ - Description: "Conditions holds several conditions the cluster might be in", - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref(storagev1.Condition{}.OpenAPIModelName()), - }, - }, - }, - }, - }, - }, - }, - }, - Dependencies: []string{ - storagev1.Condition{}.OpenAPIModelName()}, - } -} - -func schema_pkg_apis_storage_v1_CredentialForwarding(ref common.ReferenceCallback) common.OpenAPIDefinition { - return common.OpenAPIDefinition{ - Schema: spec.Schema{ - SchemaProps: spec.SchemaProps{ - Type: []string{"object"}, - Properties: map[string]spec.Schema{ - "docker": { - SchemaProps: spec.SchemaProps{ - Description: "Docker specifies controls for how workspaces created by this template forward docker credentials", - Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.DockerCredentialForwarding"), - }, - }, - "git": { - SchemaProps: spec.SchemaProps{ - Description: "Git specifies controls for how workspaces created by this template forward git credentials", - Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.GitCredentialForwarding"), - }, - }, - }, - }, - }, - Dependencies: []string{ - "github.com/devsy-org/api/pkg/apis/storage/v1.DockerCredentialForwarding", "github.com/devsy-org/api/pkg/apis/storage/v1.GitCredentialForwarding"}, - } -} - -func schema_pkg_apis_storage_v1_DevPodCommandDeleteOptions(ref common.ReferenceCallback) common.OpenAPIDefinition { - return common.OpenAPIDefinition{ - Schema: spec.Schema{ - SchemaProps: spec.SchemaProps{ - Type: []string{"object"}, - Properties: map[string]spec.Schema{ - "ignoreNotFound": { - SchemaProps: spec.SchemaProps{ - Type: []string{"boolean"}, - Format: "", - }, - }, - "force": { + "secretNamespace": { SchemaProps: spec.SchemaProps{ - Type: []string{"boolean"}, + Type: []string{"string"}, Format: "", }, }, - "gracePeriod": { + "key": { SchemaProps: spec.SchemaProps{ Type: []string{"string"}, Format: "", @@ -25510,77 +25458,55 @@ func schema_pkg_apis_storage_v1_DevPodCommandDeleteOptions(ref common.ReferenceC } } -func schema_pkg_apis_storage_v1_DevPodCommandStatusOptions(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_storage_v1_KubeVirtClusterRef(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ Type: []string{"object"}, Properties: map[string]spec.Schema{ - "containerStatus": { + "cluster": { SchemaProps: spec.SchemaProps{ - Type: []string{"boolean"}, - Format: "", + Description: "Cluster is the connected cluster the VMs will be created in", + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + "namespace": { + SchemaProps: spec.SchemaProps{ + Description: "Namespace is the namespace inside the connected cluster holding VMs", + Default: "", + Type: []string{"string"}, + Format: "", }, }, }, + Required: []string{"cluster", "namespace"}, }, }, } } -func schema_pkg_apis_storage_v1_DevPodCommandStopOptions(ref common.ReferenceCallback) common.OpenAPIDefinition { - return common.OpenAPIDefinition{ - Schema: spec.Schema{ - SchemaProps: spec.SchemaProps{ - Type: []string{"object"}, - }, - }, - } -} - -func schema_pkg_apis_storage_v1_DevPodCommandUpOptions(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_storage_v1_KubeVirtNodeTypeSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Type: []string{"object"}, + Description: "KubeVirtNodeTypeSpec defines single NodeType spec for KubeVirt provider type.", + Type: []string{"object"}, Properties: map[string]spec.Schema{ - "id": { + "providerRef": { SchemaProps: spec.SchemaProps{ - Description: "up options", + Description: "ProviderRef is the node provider to use for this node type.", Type: []string{"string"}, Format: "", }, }, - "source": { - SchemaProps: spec.SchemaProps{ - Type: []string{"string"}, - Format: "", - }, - }, - "ide": { - SchemaProps: spec.SchemaProps{ - Type: []string{"string"}, - Format: "", - }, - }, - "ideOptions": { - SchemaProps: spec.SchemaProps{ - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: "", - Type: []string{"string"}, - Format: "", - }, - }, - }, - }, - }, - "prebuildRepositories": { + "properties": { SchemaProps: spec.SchemaProps{ - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ + Description: "Properties returns a flexible set of properties that may be selected for scheduling.", + Type: []string{"object"}, + AdditionalProperties: &spec.SchemaOrBool{ + Allows: true, Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: "", @@ -25591,235 +25517,218 @@ func schema_pkg_apis_storage_v1_DevPodCommandUpOptions(ref common.ReferenceCallb }, }, }, - "devContainerPath": { - SchemaProps: spec.SchemaProps{ - Type: []string{"string"}, - Format: "", - }, - }, - "workspaceEnv": { + "resources": { SchemaProps: spec.SchemaProps{ - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ + Description: "Resources lists the full resources for a single node.", + Type: []string{"object"}, + AdditionalProperties: &spec.SchemaOrBool{ + Allows: true, Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ - Default: "", - Type: []string{"string"}, - Format: "", + Ref: ref(resource.Quantity{}.OpenAPIModelName()), }, }, }, }, }, - "recreate": { - SchemaProps: spec.SchemaProps{ - Type: []string{"boolean"}, - Format: "", - }, - }, - "proxy": { + "overhead": { SchemaProps: spec.SchemaProps{ - Type: []string{"boolean"}, - Format: "", + Description: "Overhead defines the resource overhead for this node type.", + Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.NodeTypeOverhead"), }, }, - "disableDaemon": { + "cost": { SchemaProps: spec.SchemaProps{ - Type: []string{"boolean"}, - Format: "", + Description: "Cost is the instance cost. The higher the cost, the less likely it is to be selected. If empty, cost is automatically calculated from the resources specified.", + Type: []string{"integer"}, + Format: "int64", }, }, - "daemonInterval": { + "displayName": { SchemaProps: spec.SchemaProps{ - Type: []string{"string"}, - Format: "", + Description: "DisplayName is the name that should be displayed in the UI", + Type: []string{"string"}, + Format: "", }, }, - "repository": { + "name": { SchemaProps: spec.SchemaProps{ - Description: "build options", + Description: "Name is the name of this node type.", + Default: "", Type: []string{"string"}, Format: "", }, }, - "skipPush": { + "metadata": { SchemaProps: spec.SchemaProps{ - Type: []string{"boolean"}, - Format: "", + Description: "Metadata holds metadata to add to this managed NodeType.", + Default: map[string]interface{}{}, + Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.ManagedNodeTypeObjectMeta"), }, }, - "platform": { + "virtualMachineTemplate": { SchemaProps: spec.SchemaProps{ - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: "", - Type: []string{"string"}, - Format: "", - }, - }, - }, + Description: "VirtualMachineTemplate is a full KubeVirt VirtualMachine template to use for this NodeType. This is mutually exclusive with MergeVirtualMachineTemplate", + Ref: ref(runtime.RawExtension{}.OpenAPIModelName()), }, }, - "forceBuild": { + "mergeVirtualMachineTemplate": { SchemaProps: spec.SchemaProps{ - Description: "TESTING", - Type: []string{"boolean"}, - Format: "", + Description: "MergeVirtualMachineTemplate will be merged into base VirtualMachine template for this NodeProvider. This allows overwriting of specific fields from top level template by individual NodeTypes This is mutually exclusive with VirtualMachineTemplate", + Ref: ref(runtime.RawExtension{}.OpenAPIModelName()), }, }, - "forceInternalBuildKit": { + "maxCapacity": { SchemaProps: spec.SchemaProps{ - Type: []string{"boolean"}, - Format: "", + Description: "MaxCapacity is the maximum number of nodes that can be created for this NodeType.", + Type: []string{"integer"}, + Format: "int32", }, }, }, + Required: []string{"name"}, }, }, + Dependencies: []string{ + "github.com/devsy-org/api/pkg/apis/storage/v1.ManagedNodeTypeObjectMeta", "github.com/devsy-org/api/pkg/apis/storage/v1.NodeTypeOverhead", resource.Quantity{}.OpenAPIModelName(), runtime.RawExtension{}.OpenAPIModelName()}, } } -func schema_pkg_apis_storage_v1_DevPodEnvironmentTemplate(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_storage_v1_LocalClusterAccessSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "DevPodWorkspaceEnvironmentSource", - Type: []string{"object"}, + Type: []string{"object"}, Properties: map[string]spec.Schema{ - "kind": { + "displayName": { SchemaProps: spec.SchemaProps{ - Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + Description: "DisplayName is the name that should be shown in the UI", Type: []string{"string"}, Format: "", }, }, - "apiVersion": { + "description": { SchemaProps: spec.SchemaProps{ - Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + Description: "Description is the description of this object in human-readable text.", Type: []string{"string"}, Format: "", }, }, - "metadata": { + "users": { SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref(metav1.ObjectMeta{}.OpenAPIModelName()), + Description: "Users are the users affected by this cluster access object", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.UserOrTeam"), + }, + }, + }, }, }, - "spec": { + "teams": { SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.DevPodEnvironmentTemplateSpec"), + Description: "Teams are the teams affected by this cluster access object", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + }, }, }, - "status": { + "clusterRoles": { SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.DevPodEnvironmentTemplateStatus"), + Description: "ClusterRoles define the cluster roles that the users should have assigned in the cluster.", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.ClusterRoleRef"), + }, + }, + }, + }, + }, + "priority": { + SchemaProps: spec.SchemaProps{ + Description: "Priority is a unique value that specifies the priority of this cluster access for the space constraints and quota. A higher priority means the cluster access object will override the space constraints of lower priority cluster access objects", + Type: []string{"integer"}, + Format: "int32", }, }, }, }, }, Dependencies: []string{ - "github.com/devsy-org/api/pkg/apis/storage/v1.DevPodEnvironmentTemplateSpec", "github.com/devsy-org/api/pkg/apis/storage/v1.DevPodEnvironmentTemplateStatus", metav1.ObjectMeta{}.OpenAPIModelName()}, + "github.com/devsy-org/api/pkg/apis/storage/v1.ClusterRoleRef", "github.com/devsy-org/api/pkg/apis/storage/v1.UserOrTeam"}, } } -func schema_pkg_apis_storage_v1_DevPodEnvironmentTemplateDefinition(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_storage_v1_LocalClusterAccessTemplate(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ Type: []string{"object"}, Properties: map[string]spec.Schema{ - "git": { - SchemaProps: spec.SchemaProps{ - Description: "Git holds configuration for git environment spec source", - Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.GitEnvironmentTemplate"), - }, - }, - "inline": { - SchemaProps: spec.SchemaProps{ - Description: "Inline holds an inline devcontainer.json definition", - Type: []string{"string"}, - Format: "", - }, - }, - "workspaceRepositoryCloneStrategy": { + "metadata": { SchemaProps: spec.SchemaProps{ - Description: "WorkspaceRepositoryCloneStrategy determines how the workspaces git repository will be checked out in the pod if the workspace is git based\n\nPossible enum values:\n - `\"\"`\n - `\"blobless\"`\n - `\"shallow\"`\n - `\"treeless\"`", - Type: []string{"string"}, - Format: "", - Enum: []interface{}{"", "blobless", "shallow", "treeless"}, + Description: "Metadata is the metadata of the cluster access object", + Default: map[string]interface{}{}, + Ref: ref(metav1.ObjectMeta{}.OpenAPIModelName()), }, }, - "workspaceRepositorySkipLFS": { + "spec": { SchemaProps: spec.SchemaProps{ - Description: "WorkspaceRepositorySkipLFS specifies if git lfs will be skipped when cloning the repository into the workspace", - Type: []string{"boolean"}, - Format: "", + Description: "LocalClusterAccessSpec holds the spec of the cluster access in the cluster", + Default: map[string]interface{}{}, + Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.LocalClusterAccessSpec"), }, }, }, }, }, Dependencies: []string{ - "github.com/devsy-org/api/pkg/apis/storage/v1.GitEnvironmentTemplate"}, + "github.com/devsy-org/api/pkg/apis/storage/v1.LocalClusterAccessSpec", metav1.ObjectMeta{}.OpenAPIModelName()}, } } -func schema_pkg_apis_storage_v1_DevPodEnvironmentTemplateList(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_storage_v1_LocalClusterRoleTemplate(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "DevPodEnvironmentTemplateList contains a list of DevPodEnvironmentTemplate objects", - Type: []string{"object"}, + Type: []string{"object"}, Properties: map[string]spec.Schema{ - "kind": { - SchemaProps: spec.SchemaProps{ - Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", - Type: []string{"string"}, - Format: "", - }, - }, - "apiVersion": { - SchemaProps: spec.SchemaProps{ - Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", - Type: []string{"string"}, - Format: "", - }, - }, "metadata": { SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref(metav1.ListMeta{}.OpenAPIModelName()), + Description: "Metadata is the metadata of the cluster role template object", + Default: map[string]interface{}{}, + Ref: ref(metav1.ObjectMeta{}.OpenAPIModelName()), }, }, - "items": { + "spec": { SchemaProps: spec.SchemaProps{ - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.DevPodEnvironmentTemplate"), - }, - }, - }, + Description: "LocalClusterRoleTemplateSpec holds the spec of the cluster role template in the cluster", + Default: map[string]interface{}{}, + Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.LocalClusterRoleTemplateSpec"), }, }, }, - Required: []string{"items"}, }, }, Dependencies: []string{ - "github.com/devsy-org/api/pkg/apis/storage/v1.DevPodEnvironmentTemplate", metav1.ListMeta{}.OpenAPIModelName()}, + "github.com/devsy-org/api/pkg/apis/storage/v1.LocalClusterRoleTemplateSpec", metav1.ObjectMeta{}.OpenAPIModelName()}, } } -func schema_pkg_apis_storage_v1_DevPodEnvironmentTemplateSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_storage_v1_LocalClusterRoleTemplateSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ @@ -25827,53 +25736,66 @@ func schema_pkg_apis_storage_v1_DevPodEnvironmentTemplateSpec(ref common.Referen Properties: map[string]spec.Schema{ "displayName": { SchemaProps: spec.SchemaProps{ - Description: "DisplayName is the name that should be displayed in the UI", + Description: "DisplayName is the name that should be shown in the UI", Type: []string{"string"}, Format: "", }, }, "description": { SchemaProps: spec.SchemaProps{ - Description: "Description describes the environment template", + Description: "Description is the description of this object in human-readable text.", Type: []string{"string"}, Format: "", }, }, - "owner": { + "clusterRoleTemplate": { SchemaProps: spec.SchemaProps{ - Description: "Owner holds the owner of this object", - Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.UserOrTeam"), + Description: "ClusterRoleTemplate holds the cluster role template", + Default: map[string]interface{}{}, + Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.ClusterRoleTemplateTemplate"), }, }, - "access": { + }, + }, + }, + Dependencies: []string{ + "github.com/devsy-org/api/pkg/apis/storage/v1.ClusterRoleTemplateTemplate"}, + } +} + +func schema_pkg_apis_storage_v1_ManagedNodeTypeObjectMeta(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "labels": { SchemaProps: spec.SchemaProps{ - Description: "Access to the DevPod machine instance object itself", - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ + Description: "Labels holds labels to add to this managed NodeType.", + Type: []string{"object"}, + AdditionalProperties: &spec.SchemaOrBool{ + Allows: true, Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.Access"), + Default: "", + Type: []string{"string"}, + Format: "", }, }, }, }, }, - "template": { - SchemaProps: spec.SchemaProps{ - Description: "Template is the inline template to use for DevPod environments", - Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.DevPodEnvironmentTemplateDefinition"), - }, - }, - "versions": { + "annotations": { SchemaProps: spec.SchemaProps{ - Description: "Versions are different versions of the template that can be referenced as well", - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ + Description: "Annotations holds annotations to add to this managed NodeType.", + Type: []string{"object"}, + AdditionalProperties: &spec.SchemaOrBool{ + Allows: true, Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.DevPodEnvironmentTemplateVersion"), + Default: "", + Type: []string{"string"}, + Format: "", }, }, }, @@ -25882,434 +25804,500 @@ func schema_pkg_apis_storage_v1_DevPodEnvironmentTemplateSpec(ref common.Referen }, }, }, - Dependencies: []string{ - "github.com/devsy-org/api/pkg/apis/storage/v1.Access", "github.com/devsy-org/api/pkg/apis/storage/v1.DevPodEnvironmentTemplateDefinition", "github.com/devsy-org/api/pkg/apis/storage/v1.DevPodEnvironmentTemplateVersion", "github.com/devsy-org/api/pkg/apis/storage/v1.UserOrTeam"}, } } -func schema_pkg_apis_storage_v1_DevPodEnvironmentTemplateStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_storage_v1_Member(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "DevPodEnvironmentTemplateStatus holds the status", - Type: []string{"object"}, + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "kind": { + SchemaProps: spec.SchemaProps{ + Description: "Kind is the kind of the member. Currently either User or Team", + Type: []string{"string"}, + Format: "", + }, + }, + "group": { + SchemaProps: spec.SchemaProps{ + Description: "Group of the member. Currently only supports storage.devsy.sh", + Type: []string{"string"}, + Format: "", + }, + }, + "name": { + SchemaProps: spec.SchemaProps{ + Description: "Name of the member", + Type: []string{"string"}, + Format: "", + }, + }, + "clusterRole": { + SchemaProps: spec.SchemaProps{ + Description: "ClusterRole is the assigned role for the above member", + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + }, + Required: []string{"clusterRole"}, }, }, } } -func schema_pkg_apis_storage_v1_DevPodEnvironmentTemplateVersion(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_storage_v1_Metrics(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ Type: []string{"object"}, Properties: map[string]spec.Schema{ - "template": { + "replicas": { SchemaProps: spec.SchemaProps{ - Description: "Template holds the environment template definition", - Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.DevPodEnvironmentTemplateDefinition"), + Description: "Replicas is the number of desired replicas.", + Type: []string{"integer"}, + Format: "int32", }, }, - "version": { + "resources": { SchemaProps: spec.SchemaProps{ - Description: "Version is the version. Needs to be in X.X.X format.", + Description: "Resources are compute resource required by the metrics backend", + Ref: ref(corev1.ResourceRequirements{}.OpenAPIModelName()), + }, + }, + "retention": { + SchemaProps: spec.SchemaProps{ + Description: "Retention is the metrics data retention period. Default is 1y", Type: []string{"string"}, Format: "", }, }, + "storage": { + SchemaProps: spec.SchemaProps{ + Description: "Storage contains settings related to the metrics backend's persistent volume configuration", + Default: map[string]interface{}{}, + Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.Storage"), + }, + }, }, }, }, Dependencies: []string{ - "github.com/devsy-org/api/pkg/apis/storage/v1.DevPodEnvironmentTemplateDefinition"}, + "github.com/devsy-org/api/pkg/apis/storage/v1.Storage", corev1.ResourceRequirements{}.OpenAPIModelName()}, } } -func schema_pkg_apis_storage_v1_DevPodProjectSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_storage_v1_NamedNodeTypeSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ Type: []string{"object"}, Properties: map[string]spec.Schema{ - "git": { + "providerRef": { SchemaProps: spec.SchemaProps{ - Description: "Git defines additional git related settings like credentials", - Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.GitProjectSpec"), + Description: "ProviderRef is the node provider to use for this node type.", + Type: []string{"string"}, + Format: "", }, }, - "fallbackImage": { + "properties": { SchemaProps: spec.SchemaProps{ - Description: "FallbackImage defines an image all workspace will fall back to if no devcontainer.json could be detected", + Description: "Properties returns a flexible set of properties that may be selected for scheduling.", + Type: []string{"object"}, + AdditionalProperties: &spec.SchemaOrBool{ + Allows: true, + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + }, + }, + }, + "resources": { + SchemaProps: spec.SchemaProps{ + Description: "Resources lists the full resources for a single node.", + Type: []string{"object"}, + AdditionalProperties: &spec.SchemaOrBool{ + Allows: true, + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Ref: ref(resource.Quantity{}.OpenAPIModelName()), + }, + }, + }, + }, + }, + "overhead": { + SchemaProps: spec.SchemaProps{ + Description: "Overhead defines the resource overhead for this node type.", + Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.NodeTypeOverhead"), + }, + }, + "cost": { + SchemaProps: spec.SchemaProps{ + Description: "Cost is the instance cost. The higher the cost, the less likely it is to be selected. If empty, cost is automatically calculated from the resources specified.", + Type: []string{"integer"}, + Format: "int64", + }, + }, + "displayName": { + SchemaProps: spec.SchemaProps{ + Description: "DisplayName is the name that should be displayed in the UI", Type: []string{"string"}, Format: "", }, }, - "registryPattern": { + "name": { SchemaProps: spec.SchemaProps{ - Description: "RegistryPattern specifies a template pattern to use for building images on the fly. Requires the platform pods to be authenticated against the registry.", + Description: "Name is the name of this node type.", + Default: "", Type: []string{"string"}, Format: "", }, }, + "metadata": { + SchemaProps: spec.SchemaProps{ + Description: "Metadata holds metadata to add to this managed NodeType.", + Default: map[string]interface{}{}, + Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.ManagedNodeTypeObjectMeta"), + }, + }, }, + Required: []string{"name"}, }, }, Dependencies: []string{ - "github.com/devsy-org/api/pkg/apis/storage/v1.GitProjectSpec"}, + "github.com/devsy-org/api/pkg/apis/storage/v1.ManagedNodeTypeObjectMeta", "github.com/devsy-org/api/pkg/apis/storage/v1.NodeTypeOverhead", resource.Quantity{}.OpenAPIModelName()}, } } -func schema_pkg_apis_storage_v1_DevPodProviderOption(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_storage_v1_NamespacePattern(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ Type: []string{"object"}, Properties: map[string]spec.Schema{ - "value": { + "space": { SchemaProps: spec.SchemaProps{ - Description: "Value of this option.", + Description: "Space holds the namespace pattern to use for space instances", Type: []string{"string"}, Format: "", }, }, - "valueFrom": { + "virtualCluster": { SchemaProps: spec.SchemaProps{ - Description: "ValueFrom specifies a secret where this value should be taken from.", - Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.DevPodProviderOptionFrom"), + Description: "VirtualCluster holds the namespace pattern to use for virtual cluster instances", + Type: []string{"string"}, + Format: "", + }, + }, + "devPodWorkspace": { + SchemaProps: spec.SchemaProps{ + Description: "DevsyWorkspace holds the namespace pattern to use for Devsy workspaces", + Type: []string{"string"}, + Format: "", }, }, }, }, }, - Dependencies: []string{ - "github.com/devsy-org/api/pkg/apis/storage/v1.DevPodProviderOptionFrom"}, } } -func schema_pkg_apis_storage_v1_DevPodProviderOptionFrom(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_storage_v1_NamespacedRef(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ Type: []string{"object"}, Properties: map[string]spec.Schema{ - "projectSecretRef": { + "name": { SchemaProps: spec.SchemaProps{ - Description: "ProjectSecretRef is the project secret to use for this value.", - Ref: ref(corev1.SecretKeySelector{}.OpenAPIModelName()), + Description: "Name is the name of this resource", + Default: "", + Type: []string{"string"}, + Format: "", }, }, - "sharedSecretRef": { + "namespace": { SchemaProps: spec.SchemaProps{ - Description: "SharedSecretRef is the shared secret to use for this value.", - Ref: ref(corev1.SecretKeySelector{}.OpenAPIModelName()), + Description: "Namespace is the namespace of this resource", + Default: "", + Type: []string{"string"}, + Format: "", }, }, }, + Required: []string{"name", "namespace"}, }, }, - Dependencies: []string{ - corev1.SecretKeySelector{}.OpenAPIModelName()}, } } -func schema_pkg_apis_storage_v1_DevPodProviderSource(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_storage_v1_NetworkPeer(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Type: []string{"object"}, + Description: "NetworkPeer hols the information of network peers", + Type: []string{"object"}, Properties: map[string]spec.Schema{ - "github": { + "kind": { SchemaProps: spec.SchemaProps{ - Description: "Github source for the provider", + Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", Type: []string{"string"}, Format: "", }, }, - "file": { + "apiVersion": { SchemaProps: spec.SchemaProps{ - Description: "File source for the provider", + Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", Type: []string{"string"}, Format: "", }, }, - "url": { + "metadata": { SchemaProps: spec.SchemaProps{ - Description: "URL where the provider was downloaded from", - Type: []string{"string"}, - Format: "", + Default: map[string]interface{}{}, + Ref: ref(metav1.ObjectMeta{}.OpenAPIModelName()), + }, + }, + "spec": { + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.NetworkPeerSpec"), + }, + }, + "status": { + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.NetworkPeerStatus"), }, }, }, }, }, + Dependencies: []string{ + "github.com/devsy-org/api/pkg/apis/storage/v1.NetworkPeerSpec", "github.com/devsy-org/api/pkg/apis/storage/v1.NetworkPeerStatus", metav1.ObjectMeta{}.OpenAPIModelName()}, } } -func schema_pkg_apis_storage_v1_DevPodWorkspaceContainer(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_storage_v1_NetworkPeerList(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "// DevPodWorkspacePodResourceRequirements is a less restrictive corev1.Container.", + Description: "NetworkPeerList contains a list of NetworkPeers.", Type: []string{"object"}, Properties: map[string]spec.Schema{ - "name": { + "kind": { SchemaProps: spec.SchemaProps{ - Description: "Name of the container specified as a DNS_LABEL.", - Default: "", + Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", Type: []string{"string"}, Format: "", }, }, - "image": { + "apiVersion": { SchemaProps: spec.SchemaProps{ - Description: "Container image name.", + Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", Type: []string{"string"}, Format: "", }, }, - "command": { - VendorExtensible: spec.VendorExtensible{ - Extensions: spec.Extensions{ - "x-kubernetes-list-type": "atomic", - }, - }, + "metadata": { SchemaProps: spec.SchemaProps{ - Description: "Entrypoint array. Not executed within a shell.", - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: "", - Type: []string{"string"}, - Format: "", - }, - }, - }, + Default: map[string]interface{}{}, + Ref: ref(metav1.ListMeta{}.OpenAPIModelName()), }, }, - "args": { - VendorExtensible: spec.VendorExtensible{ - Extensions: spec.Extensions{ - "x-kubernetes-list-type": "atomic", - }, - }, + "items": { SchemaProps: spec.SchemaProps{ - Description: "Arguments to the entrypoint.", - Type: []string{"array"}, + Type: []string{"array"}, Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ - Default: "", - Type: []string{"string"}, - Format: "", + Default: map[string]interface{}{}, + Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.NetworkPeer"), }, }, }, }, }, - "workingDir": { + }, + Required: []string{"items"}, + }, + }, + Dependencies: []string{ + "github.com/devsy-org/api/pkg/apis/storage/v1.NetworkPeer", metav1.ListMeta{}.OpenAPIModelName()}, + } +} + +func schema_pkg_apis_storage_v1_NetworkPeerSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "discoKey": { SchemaProps: spec.SchemaProps{ - Description: "Container's working directory.", + Description: "DiscoKey is a key used for DERP discovery", Type: []string{"string"}, Format: "", }, }, - "ports": { + "machineKey": { SchemaProps: spec.SchemaProps{ - Description: "List of ports to expose from the container. Not specifying a port here", - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref(corev1.ContainerPort{}.OpenAPIModelName()), - }, - }, - }, + Description: "MachineKey is used to identify a network peer", + Type: []string{"string"}, + Format: "", }, }, - "envFrom": { - VendorExtensible: spec.VendorExtensible{ - Extensions: spec.Extensions{ - "x-kubernetes-list-type": "atomic", - }, + "nodeKey": { + SchemaProps: spec.SchemaProps{ + Description: "NodeKey is used to identify a session", + Type: []string{"string"}, + Format: "", }, + }, + "addresses": { SchemaProps: spec.SchemaProps{ - Type: []string{"array"}, + Description: "Addresses is a list of IP addresses of this Node directly.", + Type: []string{"array"}, Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref(corev1.EnvFromSource{}.OpenAPIModelName()), + Default: "", + Type: []string{"string"}, + Format: "", }, }, }, }, }, - "env": { + "allowedIPs": { SchemaProps: spec.SchemaProps{ - Description: "List of environment variables to set in the container.", + Description: "AllowedIPs is a range of IP addresses to route to this node.", Type: []string{"array"}, Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref(corev1.EnvVar{}.OpenAPIModelName()), + Default: "", + Type: []string{"string"}, + Format: "", }, }, }, }, }, - "resources": { - SchemaProps: spec.SchemaProps{ - Description: "Compute Resources required by this container.", - Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.DevPodWorkspaceResourceRequirements"), - }, - }, - "resizePolicy": { - VendorExtensible: spec.VendorExtensible{ - Extensions: spec.Extensions{ - "x-kubernetes-list-type": "atomic", - }, - }, + "endpoints": { SchemaProps: spec.SchemaProps{ - Description: "Resources resize policy for the container.", + Description: "Endpoints is a list of IP+port (public via STUN, and local LANs) where this node can be reached.", Type: []string{"array"}, Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref(corev1.ContainerResizePolicy{}.OpenAPIModelName()), + Default: "", + Type: []string{"string"}, + Format: "", }, }, }, }, }, - "restartPolicy": { + }, + }, + }, + } +} + +func schema_pkg_apis_storage_v1_NetworkPeerStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "lastSeen": { SchemaProps: spec.SchemaProps{ - Description: "RestartPolicy defines the restart behavior of individual containers in a pod.", + Description: "LastSeen is when the network peer was last online. It is not updated when Online is true.", Type: []string{"string"}, Format: "", }, }, - "volumeMounts": { + "homeDerpRegion": { SchemaProps: spec.SchemaProps{ - Description: "Pod volumes to mount into the container's filesystem.", - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref(corev1.VolumeMount{}.OpenAPIModelName()), - }, - }, - }, + Description: "HomeDerpRegion is the currently preferred DERP region by the network peer", + Type: []string{"integer"}, + Format: "int32", }, }, - "volumeDevices": { + "online": { SchemaProps: spec.SchemaProps{ - Description: "volumeDevices is the list of block devices to be used by the container.", - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref(corev1.VolumeDevice{}.OpenAPIModelName()), - }, - }, - }, + Description: "Online is whether the node is currently connected to the coordination server.", + Type: []string{"boolean"}, + Format: "", }, }, - "livenessProbe": { - SchemaProps: spec.SchemaProps{ - Description: "Periodic probe of container liveness.", - Ref: ref(corev1.Probe{}.OpenAPIModelName()), - }, - }, - "readinessProbe": { - SchemaProps: spec.SchemaProps{ - Description: "Periodic probe of container service readiness.", - Ref: ref(corev1.Probe{}.OpenAPIModelName()), - }, - }, - "startupProbe": { - SchemaProps: spec.SchemaProps{ - Description: "StartupProbe indicates that the Pod has successfully initialized.", - Ref: ref(corev1.Probe{}.OpenAPIModelName()), - }, - }, - "lifecycle": { - SchemaProps: spec.SchemaProps{ - Description: "Actions that the management system should take in response to container lifecycle events.", - Ref: ref(corev1.Lifecycle{}.OpenAPIModelName()), - }, - }, - "terminationMessagePath": { - SchemaProps: spec.SchemaProps{ - Description: "Optional: Path at which the file to which the container's termination message", - Type: []string{"string"}, - Format: "", - }, - }, - "terminationMessagePolicy": { + }, + }, + }, + } +} + +func schema_pkg_apis_storage_v1_NodeClaim(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "NodeClaim holds the node claim for vCluster.", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "kind": { SchemaProps: spec.SchemaProps{ - Description: "Indicate how the termination message should be populated. File will use the contents of\n\nPossible enum values:\n - `\"FallbackToLogsOnError\"` will read the most recent contents of the container logs for the container status message when the container exits with an error and the terminationMessagePath has no contents.\n - `\"File\"` is the default behavior and will set the container status message to the contents of the container's terminationMessagePath when the container exits.", + Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", Type: []string{"string"}, Format: "", - Enum: []interface{}{"FallbackToLogsOnError", "File"}, }, }, - "imagePullPolicy": { + "apiVersion": { SchemaProps: spec.SchemaProps{ - Description: "Image pull policy.\n\nPossible enum values:\n - `\"Always\"` means that kubelet always attempts to pull the latest image. Container will fail If the pull fails.\n - `\"IfNotPresent\"` means that kubelet pulls if the image isn't present on disk. Container will fail if the image isn't present and the pull fails.\n - `\"Never\"` means that kubelet never pulls an image, but only uses a local image. Container will fail if the image isn't present", + Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", Type: []string{"string"}, Format: "", - Enum: []interface{}{"Always", "IfNotPresent", "Never"}, - }, - }, - "securityContext": { - SchemaProps: spec.SchemaProps{ - Description: "SecurityContext defines the security options the container should be run with.", - Ref: ref(corev1.SecurityContext{}.OpenAPIModelName()), }, }, - "stdin": { + "metadata": { SchemaProps: spec.SchemaProps{ - Description: "Whether this container should allocate a buffer for stdin in the container runtime.", - Type: []string{"boolean"}, - Format: "", + Default: map[string]interface{}{}, + Ref: ref(metav1.ObjectMeta{}.OpenAPIModelName()), }, }, - "stdinOnce": { + "spec": { SchemaProps: spec.SchemaProps{ - Description: "StdinOnce default is false", - Type: []string{"boolean"}, - Format: "", + Default: map[string]interface{}{}, + Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.NodeClaimSpec"), }, }, - "tty": { + "status": { SchemaProps: spec.SchemaProps{ - Description: "TTY default is false.", - Type: []string{"boolean"}, - Format: "", + Default: map[string]interface{}{}, + Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.NodeClaimStatus"), }, }, }, - Required: []string{"name"}, }, }, Dependencies: []string{ - "github.com/devsy-org/api/pkg/apis/storage/v1.DevPodWorkspaceResourceRequirements", corev1.ContainerPort{}.OpenAPIModelName(), corev1.ContainerResizePolicy{}.OpenAPIModelName(), corev1.EnvFromSource{}.OpenAPIModelName(), corev1.EnvVar{}.OpenAPIModelName(), corev1.Lifecycle{}.OpenAPIModelName(), corev1.Probe{}.OpenAPIModelName(), corev1.SecurityContext{}.OpenAPIModelName(), corev1.VolumeDevice{}.OpenAPIModelName(), corev1.VolumeMount{}.OpenAPIModelName()}, + "github.com/devsy-org/api/pkg/apis/storage/v1.NodeClaimSpec", "github.com/devsy-org/api/pkg/apis/storage/v1.NodeClaimStatus", metav1.ObjectMeta{}.OpenAPIModelName()}, } } -func schema_pkg_apis_storage_v1_DevPodWorkspaceInstance(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_storage_v1_NodeClaimList(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "DevPodWorkspaceInstance", + Description: "NodeClaimList contains a list of NodeClaim.", Type: []string{"object"}, Properties: map[string]spec.Schema{ "kind": { @@ -26329,136 +26317,249 @@ func schema_pkg_apis_storage_v1_DevPodWorkspaceInstance(ref common.ReferenceCall "metadata": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref(metav1.ObjectMeta{}.OpenAPIModelName()), - }, - }, - "spec": { - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.DevPodWorkspaceInstanceSpec"), + Ref: ref(metav1.ListMeta{}.OpenAPIModelName()), }, }, - "status": { + "items": { SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.DevPodWorkspaceInstanceStatus"), + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.NodeClaim"), + }, + }, + }, }, }, }, + Required: []string{"items"}, }, }, Dependencies: []string{ - "github.com/devsy-org/api/pkg/apis/storage/v1.DevPodWorkspaceInstanceSpec", "github.com/devsy-org/api/pkg/apis/storage/v1.DevPodWorkspaceInstanceStatus", metav1.ObjectMeta{}.OpenAPIModelName()}, + "github.com/devsy-org/api/pkg/apis/storage/v1.NodeClaim", metav1.ListMeta{}.OpenAPIModelName()}, } } -func schema_pkg_apis_storage_v1_DevPodWorkspaceInstanceContainerResource(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_storage_v1_NodeClaimSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Type: []string{"object"}, + Description: "NodeClaimSpec defines spec of node claim.", + Type: []string{"object"}, Properties: map[string]spec.Schema{ - "name": { + "taints": { SchemaProps: spec.SchemaProps{ - Description: "Name is the name of the container", + Description: "Taints will be applied to the NodeClaim's node.", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref(corev1.Taint{}.OpenAPIModelName()), + }, + }, + }, + }, + }, + "startupTaints": { + SchemaProps: spec.SchemaProps{ + Description: "StartupTaints are taints that are applied to nodes upon startup which are expected to be removed automatically within a short period of time, typically by a DaemonSet that tolerates the taint. These are commonly used by daemonsets to allow initialization and enforce startup ordering. StartupTaints are ignored for provisioning purposes in that pods are not required to tolerate a StartupTaint in order to have nodes provisioned for them.", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref(corev1.Taint{}.OpenAPIModelName()), + }, + }, + }, + }, + }, + "kubeletArgs": { + SchemaProps: spec.SchemaProps{ + Description: "KubeletArgs are additional arguments to pass to the kubelet.", + Type: []string{"object"}, + AdditionalProperties: &spec.SchemaOrBool{ + Allows: true, + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + }, + }, + }, + "desiredCapacity": { + SchemaProps: spec.SchemaProps{ + Description: "DesiredCapacity specifies the resources requested by the NodeClaim.", + Type: []string{"object"}, + AdditionalProperties: &spec.SchemaOrBool{ + Allows: true, + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Ref: ref(resource.Quantity{}.OpenAPIModelName()), + }, + }, + }, + }, + }, + "requirements": { + SchemaProps: spec.SchemaProps{ + Description: "Requirements are the requirements for the NodeClaim.", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref(corev1.NodeSelectorRequirement{}.OpenAPIModelName()), + }, + }, + }, + }, + }, + "providerRef": { + SchemaProps: spec.SchemaProps{ + Description: "ProviderRef is the name of the NodeProvider that this NodeClaim is based on.", Type: []string{"string"}, Format: "", }, }, - "resources": { + "typeRef": { SchemaProps: spec.SchemaProps{ - Description: "Resources is the resources of the container", - Default: map[string]interface{}{}, - Ref: ref(corev1.ResourceRequirements{}.OpenAPIModelName()), + Description: "TypeRef is the full name of the NodeType that this NodeClaim is based on.", + Type: []string{"string"}, + Format: "", + }, + }, + "vClusterRef": { + SchemaProps: spec.SchemaProps{ + Description: "DevsyRef references source vCluster. This is required.", + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + "controlPlane": { + SchemaProps: spec.SchemaProps{ + Description: "ControlPlane indicates if the node claim is for a control plane node.", + Type: []string{"boolean"}, + Format: "", }, }, }, + Required: []string{"vClusterRef"}, }, }, Dependencies: []string{ - corev1.ResourceRequirements{}.OpenAPIModelName()}, + corev1.NodeSelectorRequirement{}.OpenAPIModelName(), corev1.Taint{}.OpenAPIModelName(), resource.Quantity{}.OpenAPIModelName()}, } } -func schema_pkg_apis_storage_v1_DevPodWorkspaceInstanceEvent(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_storage_v1_NodeClaimStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ Type: []string{"object"}, Properties: map[string]spec.Schema{ - "reason": { + "phase": { SchemaProps: spec.SchemaProps{ - Description: "This should be a short, machine understandable string that gives the reason for the transition into the object's current status.", + Description: "Phase is the current lifecycle phase of the NodeClaim.", Type: []string{"string"}, Format: "", }, }, - "message": { + "reason": { SchemaProps: spec.SchemaProps{ - Description: "A human-readable description of the status of this operation.", + Description: "Reason describes the reason in machine-readable form", Type: []string{"string"}, Format: "", }, }, - "lastTimestamp": { + "message": { SchemaProps: spec.SchemaProps{ - Description: "The time at which the most recent occurrence of this event was recorded.", - Ref: ref(metav1.Time{}.OpenAPIModelName()), + Description: "Message describes the reason in human-readable form", + Type: []string{"string"}, + Format: "", }, }, - "type": { + "conditions": { SchemaProps: spec.SchemaProps{ - Description: "Type of this event (Normal, Warning), new types could be added in the future", - Type: []string{"string"}, - Format: "", + Description: "Conditions describe the current state of the platform NodeClaim.", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("github.com/devsy-org/agentapi/pkg/apis/devsy/storage/v1.Condition"), + }, + }, + }, }, }, }, }, }, Dependencies: []string{ - metav1.Time{}.OpenAPIModelName()}, + "github.com/devsy-org/agentapi/pkg/apis/devsy/storage/v1.Condition"}, } } -func schema_pkg_apis_storage_v1_DevPodWorkspaceInstanceKubernetesStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_storage_v1_NodeEnvironment(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Type: []string{"object"}, + Description: "NodeEnvironment holds the node environment for vCluster.", + Type: []string{"object"}, Properties: map[string]spec.Schema{ - "lastTransitionTime": { + "kind": { SchemaProps: spec.SchemaProps{ - Description: "Last time the condition transitioned from one status to another.", - Ref: ref(metav1.Time{}.OpenAPIModelName()), + Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + Type: []string{"string"}, + Format: "", }, }, - "podStatus": { + "apiVersion": { SchemaProps: spec.SchemaProps{ - Description: "PodStatus is the status of the pod that is running the workspace", - Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.DevPodWorkspaceInstancePodStatus"), + Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + Type: []string{"string"}, + Format: "", }, }, - "persistentVolumeClaimStatus": { + "metadata": { SchemaProps: spec.SchemaProps{ - Description: "PersistentVolumeClaimStatus is the pvc that is used to store the workspace", - Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.DevPodWorkspaceInstancePersistentVolumeClaimStatus"), + Default: map[string]interface{}{}, + Ref: ref(metav1.ObjectMeta{}.OpenAPIModelName()), + }, + }, + "spec": { + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.NodeEnvironmentSpec"), + }, + }, + "status": { + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.NodeEnvironmentStatus"), }, }, }, - Required: []string{"lastTransitionTime"}, }, }, Dependencies: []string{ - "github.com/devsy-org/api/pkg/apis/storage/v1.DevPodWorkspaceInstancePersistentVolumeClaimStatus", "github.com/devsy-org/api/pkg/apis/storage/v1.DevPodWorkspaceInstancePodStatus", metav1.Time{}.OpenAPIModelName()}, + "github.com/devsy-org/api/pkg/apis/storage/v1.NodeEnvironmentSpec", "github.com/devsy-org/api/pkg/apis/storage/v1.NodeEnvironmentStatus", metav1.ObjectMeta{}.OpenAPIModelName()}, } } -func schema_pkg_apis_storage_v1_DevPodWorkspaceInstanceList(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_storage_v1_NodeEnvironmentList(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "DevPodWorkspaceInstanceList contains a list of DevPodWorkspaceInstance objects", + Description: "NodeEnvironmentList contains a list of NodeEnvironment.", Type: []string{"object"}, Properties: map[string]spec.Schema{ "kind": { @@ -26488,7 +26589,7 @@ func schema_pkg_apis_storage_v1_DevPodWorkspaceInstanceList(ref common.Reference Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.DevPodWorkspaceInstance"), + Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.NodeEnvironment"), }, }, }, @@ -26499,85 +26600,57 @@ func schema_pkg_apis_storage_v1_DevPodWorkspaceInstanceList(ref common.Reference }, }, Dependencies: []string{ - "github.com/devsy-org/api/pkg/apis/storage/v1.DevPodWorkspaceInstance", metav1.ListMeta{}.OpenAPIModelName()}, + "github.com/devsy-org/api/pkg/apis/storage/v1.NodeEnvironment", metav1.ListMeta{}.OpenAPIModelName()}, } } -func schema_pkg_apis_storage_v1_DevPodWorkspaceInstancePersistentVolumeClaimStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_storage_v1_NodeEnvironmentSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Type: []string{"object"}, + Description: "NodeEnvironmentSpec defines spec of node environment.", + Type: []string{"object"}, Properties: map[string]spec.Schema{ - "phase": { - SchemaProps: spec.SchemaProps{ - Description: "phase represents the current phase of PersistentVolumeClaim.\n\nPossible enum values:\n - `\"Bound\"` used for PersistentVolumeClaims that are bound\n - `\"Lost\"` used for PersistentVolumeClaims that lost their underlying PersistentVolume. The claim was bound to a PersistentVolume and this volume does not exist any longer and all data on it was lost.\n - `\"Pending\"` used for PersistentVolumeClaims that are not yet bound", - Type: []string{"string"}, - Format: "", - Enum: []interface{}{"Bound", "Lost", "Pending"}, - }, - }, - "capacity": { + "properties": { SchemaProps: spec.SchemaProps{ - Description: "capacity represents the actual resources of the underlying volume.", + Description: "Properties are the properties for the NodeEnvironment.", Type: []string{"object"}, AdditionalProperties: &spec.SchemaOrBool{ Allows: true, Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ - Ref: ref("k8s.io/apimachinery/pkg/api/resource.Quantity"), + Default: "", + Type: []string{"string"}, + Format: "", }, }, }, }, }, - "conditions": { - VendorExtensible: spec.VendorExtensible{ - Extensions: spec.Extensions{ - "x-kubernetes-list-map-keys": []interface{}{ - "type", - }, - "x-kubernetes-list-type": "map", - "x-kubernetes-patch-merge-key": "type", - "x-kubernetes-patch-strategy": "merge", - }, - }, + "providerRef": { SchemaProps: spec.SchemaProps{ - Description: "conditions is the current Condition of persistent volume claim. If underlying persistent volume is being resized then the Condition will be set to 'Resizing'.", - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref(corev1.PersistentVolumeClaimCondition{}.OpenAPIModelName()), - }, - }, - }, + Description: "ProviderRef is the name of the NodeProvider that this NodeEnvironment is based on.", + Default: "", + Type: []string{"string"}, + Format: "", }, }, - "events": { + "vClusterRef": { SchemaProps: spec.SchemaProps{ - Description: "Events are the events of the pod that is running the workspace. This will only be filled if the persistent volume claim is not bound.", - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.DevPodWorkspaceInstanceEvent"), - }, - }, - }, + Description: "DevsyRef references source vCluster. This is required.", + Default: "", + Type: []string{"string"}, + Format: "", }, }, }, + Required: []string{"providerRef", "vClusterRef"}, }, }, - Dependencies: []string{ - "github.com/devsy-org/api/pkg/apis/storage/v1.DevPodWorkspaceInstanceEvent", corev1.PersistentVolumeClaimCondition{}.OpenAPIModelName(), "k8s.io/apimachinery/pkg/api/resource.Quantity"}, } } -func schema_pkg_apis_storage_v1_DevPodWorkspaceInstancePodStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_storage_v1_NodeEnvironmentStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ @@ -26585,522 +26658,531 @@ func schema_pkg_apis_storage_v1_DevPodWorkspaceInstancePodStatus(ref common.Refe Properties: map[string]spec.Schema{ "phase": { SchemaProps: spec.SchemaProps{ - Description: "The phase of a Pod is a simple, high-level summary of where the Pod is in its lifecycle. The conditions array, the reason and message fields, and the individual container status arrays contain more detail about the pod's status. There are five possible phase values:\n\nPending: The pod has been accepted by the Kubernetes system, but one or more of the container images has not been created. This includes time before being scheduled as well as time spent downloading images over the network, which could take a while. Running: The pod has been bound to a node, and all of the containers have been created. At least one container is still running, or is in the process of starting or restarting. Succeeded: All containers in the pod have terminated in success, and will not be restarted. Failed: All containers in the pod have terminated, and at least one container has terminated in failure. The container either exited with non-zero status or was terminated by the system. Unknown: For some reason the state of the pod could not be obtained, typically due to an error in communicating with the host of the pod.\n\nMore info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-phase\n\nPossible enum values:\n - `\"Failed\"` means that all containers in the pod have terminated, and at least one container has terminated in a failure (exited with a non-zero exit code or was stopped by the system).\n - `\"Pending\"` means the pod has been accepted by the system, but one or more of the containers has not been started. This includes time before being bound to a node, as well as time spent pulling images onto the host.\n - `\"Running\"` means the pod has been bound to a node and all of the containers have been started. At least one container is still running or is in the process of being restarted.\n - `\"Succeeded\"` means that all containers in the pod have voluntarily terminated with a container exit code of 0, and the system is not going to restart any of these containers.\n - `\"Unknown\"` means that for some reason the state of the pod could not be obtained, typically due to an error in communicating with the host of the pod. Deprecated: It isn't being set since 2015 (74da3b14b0c0f658b3bb8d2def5094686d0e9095)", + Description: "Phase is the current lifecycle phase of the NodeEnvironment.", Type: []string{"string"}, Format: "", - Enum: []interface{}{"Failed", "Pending", "Running", "Succeeded", "Unknown"}, }, }, - "conditions": { - VendorExtensible: spec.VendorExtensible{ - Extensions: spec.Extensions{ - "x-kubernetes-list-map-keys": []interface{}{ - "type", - }, - "x-kubernetes-list-type": "map", - "x-kubernetes-patch-merge-key": "type", - "x-kubernetes-patch-strategy": "merge", - }, + "reason": { + SchemaProps: spec.SchemaProps{ + Description: "Reason describes the reason in machine-readable form", + Type: []string{"string"}, + Format: "", }, + }, + "message": { SchemaProps: spec.SchemaProps{ - Description: "Current service state of pod. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-conditions", + Description: "Message describes the reason in human-readable form", + Type: []string{"string"}, + Format: "", + }, + }, + "conditions": { + SchemaProps: spec.SchemaProps{ + Description: "Conditions describe the current state of the platform NodeClaim.", Type: []string{"array"}, Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref(corev1.PodCondition{}.OpenAPIModelName()), + Ref: ref("github.com/devsy-org/agentapi/pkg/apis/devsy/storage/v1.Condition"), }, }, }, }, }, - "message": { + }, + }, + }, + Dependencies: []string{ + "github.com/devsy-org/agentapi/pkg/apis/devsy/storage/v1.Condition"}, + } +} + +func schema_pkg_apis_storage_v1_NodeProvider(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "NodeProvider holds the information of a node provider config. This resource defines various ways a node can be provisioned or configured.", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "kind": { SchemaProps: spec.SchemaProps{ - Description: "A human readable message indicating details about why the pod is in this condition.", + Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", Type: []string{"string"}, Format: "", }, }, - "reason": { + "apiVersion": { SchemaProps: spec.SchemaProps{ - Description: "A brief CamelCase message indicating details about why the pod is in this state. e.g. 'Evicted'", + Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", Type: []string{"string"}, Format: "", }, }, - "initContainerStatuses": { - VendorExtensible: spec.VendorExtensible{ - Extensions: spec.Extensions{ - "x-kubernetes-list-type": "atomic", - }, + "metadata": { + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref(metav1.ObjectMeta{}.OpenAPIModelName()), }, + }, + "spec": { SchemaProps: spec.SchemaProps{ - Description: "Statuses of init containers in this pod. The most recent successful non-restartable init container will have ready = true, the most recently started container will have startTime set. Each init container in the pod should have at most one status in this list, and all statuses should be for containers in the pod. However this is not enforced. If a status for a non-existent container is present in the list, or the list has duplicate names, the behavior of various Kubernetes components is not defined and those statuses might be ignored. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#pod-and-container-status", - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref(corev1.ContainerStatus{}.OpenAPIModelName()), - }, - }, - }, + Default: map[string]interface{}{}, + Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.NodeProviderSpec"), }, }, - "containerStatuses": { - VendorExtensible: spec.VendorExtensible{ - Extensions: spec.Extensions{ - "x-kubernetes-list-type": "atomic", - }, + "status": { + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.NodeProviderStatus"), }, + }, + }, + }, + }, + Dependencies: []string{ + "github.com/devsy-org/api/pkg/apis/storage/v1.NodeProviderSpec", "github.com/devsy-org/api/pkg/apis/storage/v1.NodeProviderStatus", metav1.ObjectMeta{}.OpenAPIModelName()}, + } +} + +func schema_pkg_apis_storage_v1_NodeProviderBCM(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "NodeProviderBCMSpec defines the configuration for a BCM node provider.", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "secretRef": { SchemaProps: spec.SchemaProps{ - Description: "Statuses of containers in this pod. Each container in the pod should have at most one status in this list, and all statuses should be for containers in the pod. However this is not enforced. If a status for a non-existent container is present in the list, or the list has duplicate names, the behavior of various Kubernetes components is not defined and those statuses might be ignored. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-and-container-status", - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref(corev1.ContainerStatus{}.OpenAPIModelName()), - }, - }, - }, + Description: "SecretRef is a reference to secret with keys for BCM auth.", + Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.NamespacedRef"), }, }, - "nodeName": { + "endpoint": { SchemaProps: spec.SchemaProps{ - Description: "NodeName is the name of the node that is running the workspace", + Description: "Endpoint is a address for head node.", + Default: "", Type: []string{"string"}, Format: "", }, }, - "events": { + "nodeTypes": { SchemaProps: spec.SchemaProps{ - Description: "Events are the events of the pod that is running the workspace. This will only be filled if the pod is not running.", + Description: "NodeTypes define NodeTypes that should be automatically created for this provider.", Type: []string{"array"}, Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.DevPodWorkspaceInstanceEvent"), + Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.BCMNodeTypeSpec"), }, }, }, }, }, - "containerResources": { + }, + Required: []string{"secretRef", "endpoint"}, + }, + }, + Dependencies: []string{ + "github.com/devsy-org/api/pkg/apis/storage/v1.BCMNodeTypeSpec", "github.com/devsy-org/api/pkg/apis/storage/v1.NamespacedRef"}, + } +} + +func schema_pkg_apis_storage_v1_NodeProviderKubeVirt(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "NodeProviderKubeVirt defines the configuration for a KubeVirt node provider.", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "clusterRef": { SchemaProps: spec.SchemaProps{ - Description: "ContainerResources are the resources of the containers that are running the workspace", - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.DevPodWorkspaceInstanceContainerResource"), - }, - }, - }, + Description: "ClusterRef is a reference to connected host cluster in which KubeVirt operator is running", + Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.KubeVirtClusterRef"), }, }, - "containerMetrics": { + "virtualMachineTemplate": { SchemaProps: spec.SchemaProps{ - Description: "ContainerMetrics are the metrics of the pod that is running the workspace", + Description: "VirtualMachineTemplate is a KubeVirt VirtualMachine template to use by NodeTypes managed by this NodeProvider", + Ref: ref(runtime.RawExtension{}.OpenAPIModelName()), + }, + }, + "nodeTypes": { + SchemaProps: spec.SchemaProps{ + Description: "NodeTypes define NodeTypes that should be automatically created for this provider.", Type: []string{"array"}, Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("k8s.io/metrics/pkg/apis/metrics/v1beta1.ContainerMetrics"), + Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.KubeVirtNodeTypeSpec"), }, }, }, }, }, }, + Required: []string{"nodeTypes"}, }, }, Dependencies: []string{ - "github.com/devsy-org/api/pkg/apis/storage/v1.DevPodWorkspaceInstanceContainerResource", "github.com/devsy-org/api/pkg/apis/storage/v1.DevPodWorkspaceInstanceEvent", corev1.ContainerStatus{}.OpenAPIModelName(), corev1.PodCondition{}.OpenAPIModelName(), "k8s.io/metrics/pkg/apis/metrics/v1beta1.ContainerMetrics"}, + "github.com/devsy-org/api/pkg/apis/storage/v1.KubeVirtClusterRef", "github.com/devsy-org/api/pkg/apis/storage/v1.KubeVirtNodeTypeSpec", runtime.RawExtension{}.OpenAPIModelName()}, } } -func schema_pkg_apis_storage_v1_DevPodWorkspaceInstanceSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_storage_v1_NodeProviderList(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Type: []string{"object"}, + Description: "NodeProviderList contains a list of NodeProvider.", + Type: []string{"object"}, Properties: map[string]spec.Schema{ - "displayName": { + "kind": { SchemaProps: spec.SchemaProps{ - Description: "DisplayName is the name that should be displayed in the UI", + Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", Type: []string{"string"}, Format: "", }, }, - "description": { + "apiVersion": { SchemaProps: spec.SchemaProps{ - Description: "Description describes a DevPod machine instance", + Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", Type: []string{"string"}, Format: "", }, }, - "owner": { - SchemaProps: spec.SchemaProps{ - Description: "Owner holds the owner of this object", - Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.UserOrTeam"), - }, - }, - "presetRef": { - SchemaProps: spec.SchemaProps{ - Description: "PresetRef holds the DevPodWorkspacePreset template reference", - Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.PresetRef"), - }, - }, - "templateRef": { - SchemaProps: spec.SchemaProps{ - Description: "TemplateRef holds the DevPod machine template reference", - Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.TemplateRef"), - }, - }, - "environmentRef": { - SchemaProps: spec.SchemaProps{ - Description: "EnvironmentRef is the reference to DevPodEnvironmentTemplate that should be used", - Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.EnvironmentRef"), - }, - }, - "template": { - SchemaProps: spec.SchemaProps{ - Description: "Template is the inline template to use for DevPod machine creation. This is mutually exclusive with templateRef.", - Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.DevPodWorkspaceTemplateDefinition"), - }, - }, - "target": { - SchemaProps: spec.SchemaProps{ - Description: "Target is the reference to the cluster holding this workspace", - Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.WorkspaceTarget"), - }, - }, - "runnerRef": { - SchemaProps: spec.SchemaProps{ - Description: "RunnerRef is the reference to the runner holding this workspace", - Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.RunnerRef"), - }, - }, - "parameters": { + "metadata": { SchemaProps: spec.SchemaProps{ - Description: "Parameters are values to pass to the template. The values should be encoded as YAML string where each parameter is represented as a top-level field key.", - Type: []string{"string"}, - Format: "", + Default: map[string]interface{}{}, + Ref: ref(metav1.ListMeta{}.OpenAPIModelName()), }, }, - "access": { + "items": { SchemaProps: spec.SchemaProps{ - Description: "Access to the DevPod machine instance object itself", - Type: []string{"array"}, + Type: []string{"array"}, Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.Access"), + Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.NodeProvider"), }, }, }, }, }, - "preventWakeUpOnConnection": { - SchemaProps: spec.SchemaProps{ - Description: "PreventWakeUpOnConnection is used to prevent workspace that uses sleep mode from waking up on incomming ssh connection.", - Type: []string{"boolean"}, - Format: "", - }, - }, }, + Required: []string{"items"}, }, }, Dependencies: []string{ - "github.com/devsy-org/api/pkg/apis/storage/v1.Access", "github.com/devsy-org/api/pkg/apis/storage/v1.DevPodWorkspaceTemplateDefinition", "github.com/devsy-org/api/pkg/apis/storage/v1.EnvironmentRef", "github.com/devsy-org/api/pkg/apis/storage/v1.PresetRef", "github.com/devsy-org/api/pkg/apis/storage/v1.RunnerRef", "github.com/devsy-org/api/pkg/apis/storage/v1.TemplateRef", "github.com/devsy-org/api/pkg/apis/storage/v1.UserOrTeam", "github.com/devsy-org/api/pkg/apis/storage/v1.WorkspaceTarget"}, + "github.com/devsy-org/api/pkg/apis/storage/v1.NodeProvider", metav1.ListMeta{}.OpenAPIModelName()}, } } -func schema_pkg_apis_storage_v1_DevPodWorkspaceInstanceStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_storage_v1_NodeProviderSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Type: []string{"object"}, + Description: "NodeProviderSpec defines the desired state of NodeProvider. Only one of the provider types (Pods, BCM, Kubevirt) should be specified at a time.", + Type: []string{"object"}, Properties: map[string]spec.Schema{ - "resolvedTarget": { - SchemaProps: spec.SchemaProps{ - Description: "ResolvedTarget is the resolved target of the workspace", - Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.WorkspaceResolvedTarget"), - }, - }, - "lastWorkspaceStatus": { + "bcm": { SchemaProps: spec.SchemaProps{ - Description: "LastWorkspaceStatus is the last workspace status reported by the runner.", - Type: []string{"string"}, - Format: "", + Description: "BCM configures a node provider for BCM Bare Metal Cloud environments.", + Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.NodeProviderBCM"), }, }, - "phase": { + "kubeVirt": { SchemaProps: spec.SchemaProps{ - Description: "Phase describes the current phase the DevPod machine instance is in", - Type: []string{"string"}, - Format: "", + Description: "Kubevirt configures a node provider using KubeVirt, enabling virtual machines to be provisioned as nodes within a vCluster.", + Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.NodeProviderKubeVirt"), }, }, - "reason": { + "terraform": { SchemaProps: spec.SchemaProps{ - Description: "Reason describes the reason in machine-readable form why the cluster is in the current phase", - Type: []string{"string"}, - Format: "", + Description: "Terraform configures a node provider using Terraform, enabling nodes to be provisioned using Terraform.", + Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.NodeProviderTerraform"), }, }, - "message": { + "displayName": { SchemaProps: spec.SchemaProps{ - Description: "Message describes the reason in human-readable form why the DevPod machine is in the current phase", + Description: "DisplayName is the name that should be displayed in the UI", Type: []string{"string"}, Format: "", }, }, + }, + }, + }, + Dependencies: []string{ + "github.com/devsy-org/api/pkg/apis/storage/v1.NodeProviderBCM", "github.com/devsy-org/api/pkg/apis/storage/v1.NodeProviderKubeVirt", "github.com/devsy-org/api/pkg/apis/storage/v1.NodeProviderTerraform"}, + } +} + +func schema_pkg_apis_storage_v1_NodeProviderStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "NodeProviderStatus defines the observed state of NodeProvider.", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ "conditions": { SchemaProps: spec.SchemaProps{ - Description: "Conditions holds several conditions the DevPod machine might be in", + Description: "Conditions describe the current state of the platform NodeProvider.", Type: []string{"array"}, Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref(storagev1.Condition{}.OpenAPIModelName()), + Ref: ref("github.com/devsy-org/agentapi/pkg/apis/devsy/storage/v1.Condition"), }, }, }, }, }, - "instance": { + "reason": { SchemaProps: spec.SchemaProps{ - Description: "Instance is the template rendered with all the parameters", - Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.DevPodWorkspaceTemplateDefinition"), + Description: "Reason describes the reason in machine-readable form", + Type: []string{"string"}, + Format: "", }, }, - "ignoreReconciliation": { + "phase": { SchemaProps: spec.SchemaProps{ - Description: "IgnoreReconciliation ignores reconciliation for this object", - Type: []string{"boolean"}, + Description: "Phase is the current lifecycle phase of the NodeProvider.", + Type: []string{"string"}, Format: "", }, }, - "kubernetes": { + "message": { SchemaProps: spec.SchemaProps{ - Description: "Kubernetes is the status of the workspace on kubernetes", - Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.DevPodWorkspaceInstanceKubernetesStatus"), + Description: "Message is a human-readable message indicating details about why the NodeProvider is in its current state.", + Type: []string{"string"}, + Format: "", }, }, }, }, }, Dependencies: []string{ - storagev1.Condition{}.OpenAPIModelName(), "github.com/devsy-org/api/pkg/apis/storage/v1.DevPodWorkspaceInstanceKubernetesStatus", "github.com/devsy-org/api/pkg/apis/storage/v1.DevPodWorkspaceTemplateDefinition", "github.com/devsy-org/api/pkg/apis/storage/v1.WorkspaceResolvedTarget"}, + "github.com/devsy-org/agentapi/pkg/apis/devsy/storage/v1.Condition"}, } } -func schema_pkg_apis_storage_v1_DevPodWorkspaceInstanceTemplateDefinition(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_storage_v1_NodeProviderTerraform(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ Type: []string{"object"}, Properties: map[string]spec.Schema{ - "metadata": { + "nodeTemplate": { SchemaProps: spec.SchemaProps{ - Description: "The workspace instance metadata", - Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.TemplateMetadata"), + Description: "NodeTemplate is the template to use for this node provider.", + Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.TerraformTemplate"), + }, + }, + "nodeEnvironmentTemplate": { + SchemaProps: spec.SchemaProps{ + Description: "NodeEnvironmentTemplate is the template to use for this node environment.", + Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.TerraformTemplate"), + }, + }, + "nodeTypes": { + SchemaProps: spec.SchemaProps{ + Description: "NodeTypes define NodeTypes that should be automatically created for this provider.", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.TerraformNodeTypeSpec"), + }, + }, + }, }, }, }, }, }, Dependencies: []string{ - "github.com/devsy-org/api/pkg/apis/storage/v1.TemplateMetadata"}, + "github.com/devsy-org/api/pkg/apis/storage/v1.TerraformNodeTypeSpec", "github.com/devsy-org/api/pkg/apis/storage/v1.TerraformTemplate"}, } } -func schema_pkg_apis_storage_v1_DevPodWorkspaceKubernetesSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_storage_v1_NodeType(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Type: []string{"object"}, + Description: "NodeType holds the information of a node type.", + Type: []string{"object"}, Properties: map[string]spec.Schema{ - "pod": { - SchemaProps: spec.SchemaProps{ - Description: "Pod holds the definition for workspace pod.\n\nDefaults will be applied for fields that aren't specified.", - Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.DevPodWorkspacePodTemplate"), - }, - }, - "volumeClaim": { - SchemaProps: spec.SchemaProps{ - Description: "VolumeClaim holds the definition for the main workspace persistent volume. This volume is guaranteed to exist for the lifespan of the workspace.\n\nDefaults will be applied for fields that aren't specified.", - Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.DevPodWorkspaceVolumeClaimTemplate"), - }, - }, - "podTimeout": { + "kind": { SchemaProps: spec.SchemaProps{ - Description: "PodTimeout specifies a maximum duration to wait for the workspace pod to start up before failing. Default: 10m", + Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", Type: []string{"string"}, Format: "", }, }, - "nodeArchitecture": { + "apiVersion": { SchemaProps: spec.SchemaProps{ - Description: "NodeArchitecture specifies the node architecture the workspace image will be built for. Only necessary if you need to build workspace images on the fly in the kubernetes cluster and your cluster is mixed architecture.", + Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", Type: []string{"string"}, Format: "", }, }, - "spaceTemplateRef": { - SchemaProps: spec.SchemaProps{ - Description: "SpaceTemplateRef is a reference to the space that should get created for this DevPod. If this is specified, the kubernetes provider will be selected automatically.", - Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.TemplateRef"), - }, - }, - "spaceTemplate": { + "metadata": { SchemaProps: spec.SchemaProps{ - Description: "SpaceTemplate is the inline template for a space that should get created for this DevPod. If this is specified, the kubernetes provider will be selected automatically.", - Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.SpaceTemplateDefinition"), + Default: map[string]interface{}{}, + Ref: ref(metav1.ObjectMeta{}.OpenAPIModelName()), }, }, - "virtualClusterTemplateRef": { + "spec": { SchemaProps: spec.SchemaProps{ - Description: "VirtualClusterTemplateRef is a reference to the virtual cluster that should get created for this DevPod. If this is specified, the kubernetes provider will be selected automatically.", - Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.TemplateRef"), + Default: map[string]interface{}{}, + Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.NodeTypeSpec"), }, }, - "virtualClusterTemplate": { + "status": { SchemaProps: spec.SchemaProps{ - Description: "VirtualClusterTemplate is the inline template for a virtual cluster that should get created for this DevPod. If this is specified, the kubernetes provider will be selected automatically.", - Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.VirtualClusterTemplateDefinition"), + Default: map[string]interface{}{}, + Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.NodeTypeStatus"), }, }, }, + Required: []string{"metadata"}, }, }, Dependencies: []string{ - "github.com/devsy-org/api/pkg/apis/storage/v1.DevPodWorkspacePodTemplate", "github.com/devsy-org/api/pkg/apis/storage/v1.DevPodWorkspaceVolumeClaimTemplate", "github.com/devsy-org/api/pkg/apis/storage/v1.SpaceTemplateDefinition", "github.com/devsy-org/api/pkg/apis/storage/v1.TemplateRef", "github.com/devsy-org/api/pkg/apis/storage/v1.VirtualClusterTemplateDefinition"}, + "github.com/devsy-org/api/pkg/apis/storage/v1.NodeTypeSpec", "github.com/devsy-org/api/pkg/apis/storage/v1.NodeTypeStatus", metav1.ObjectMeta{}.OpenAPIModelName()}, } } -func schema_pkg_apis_storage_v1_DevPodWorkspacePodTemplate(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_storage_v1_NodeTypeCapacity(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "DevPodWorkspacePodTemplate is a less restrictive PodTemplate", + Description: "IMPORTANT: DO NOT use omitempty for values in NodeTypeCapacity. The values are used in NodePool calculations and for UI.", Type: []string{"object"}, Properties: map[string]spec.Schema{ - "metadata": { + "total": { SchemaProps: spec.SchemaProps{ - Description: "The pods metadata", - Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.TemplateMetadata"), + Description: "Total is the total number of nodes of this type", + Default: 0, + Type: []string{"integer"}, + Format: "int32", }, }, - "spec": { + "claimed": { SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.DevPodWorkspacePodTemplateSpec"), + Description: "Claimed is the number of already claimed nodes of this type", + Default: 0, + Type: []string{"integer"}, + Format: "int32", }, }, }, + Required: []string{"total", "claimed"}, }, }, - Dependencies: []string{ - "github.com/devsy-org/api/pkg/apis/storage/v1.DevPodWorkspacePodTemplateSpec", "github.com/devsy-org/api/pkg/apis/storage/v1.TemplateMetadata"}, } } -func schema_pkg_apis_storage_v1_DevPodWorkspacePodTemplateSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_storage_v1_NodeTypeList(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "DevPodWorkspacePodTemplateSpec is a less restrictive PodSpec", + Description: "NodeTypeList contains a list of NodeType.", Type: []string{"object"}, Properties: map[string]spec.Schema{ - "volumes": { + "kind": { SchemaProps: spec.SchemaProps{ - Description: "List of volumes that can be mounted by containers belonging to the pod.", - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref(corev1.Volume{}.OpenAPIModelName()), - }, - }, - }, + Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + Type: []string{"string"}, + Format: "", }, }, - "initContainers": { + "apiVersion": { SchemaProps: spec.SchemaProps{ - Description: "List of initialization containers belonging to the pod.", - Type: []string{"array"}, + Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + Type: []string{"string"}, + Format: "", + }, + }, + "metadata": { + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref(metav1.ListMeta{}.OpenAPIModelName()), + }, + }, + "items": { + SchemaProps: spec.SchemaProps{ + Type: []string{"array"}, Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.DevPodWorkspaceContainer"), + Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.NodeType"), }, }, }, }, }, - "containers": { + }, + Required: []string{"items"}, + }, + }, + Dependencies: []string{ + "github.com/devsy-org/api/pkg/apis/storage/v1.NodeType", metav1.ListMeta{}.OpenAPIModelName()}, + } +} + +func schema_pkg_apis_storage_v1_NodeTypeOverhead(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "NodeTypeOverhead defines the resource overhead for a node type.", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "kubeReserved": { SchemaProps: spec.SchemaProps{ - Description: "List of containers belonging to the pod.", - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ + Description: "KubeReserved is the resource overhead for kubelet and other Kubernetes system daemons.", + Type: []string{"object"}, + AdditionalProperties: &spec.SchemaOrBool{ + Allows: true, Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.DevPodWorkspaceContainer"), + Ref: ref(resource.Quantity{}.OpenAPIModelName()), }, }, }, }, }, - "restartPolicy": { - SchemaProps: spec.SchemaProps{ - Description: "Restart policy for all containers within the pod.\n\nPossible enum values:\n - `\"Always\"`\n - `\"Never\"`\n - `\"OnFailure\"`", - Type: []string{"string"}, - Format: "", - Enum: []interface{}{"Always", "Never", "OnFailure"}, - }, - }, - "terminationGracePeriodSeconds": { - SchemaProps: spec.SchemaProps{ - Description: "Optional duration in seconds the pod needs to terminate gracefully. May be decreased in delete request.", - Type: []string{"integer"}, - Format: "int64", - }, - }, - "activeDeadlineSeconds": { - SchemaProps: spec.SchemaProps{ - Description: "Optional duration in seconds the pod may be active on the node relative to", - Type: []string{"integer"}, - Format: "int64", - }, - }, - "dnsPolicy": { + }, + }, + }, + Dependencies: []string{ + resource.Quantity{}.OpenAPIModelName()}, + } +} + +func schema_pkg_apis_storage_v1_NodeTypeSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "providerRef": { SchemaProps: spec.SchemaProps{ - Description: "Set DNS policy for the pod.\n\nPossible enum values:\n - `\"ClusterFirst\"` indicates that the pod should use cluster DNS first unless hostNetwork is true, if it is available, then fall back on the default (as determined by kubelet) DNS settings.\n - `\"ClusterFirstWithHostNet\"` indicates that the pod should use cluster DNS first, if it is available, then fall back on the default (as determined by kubelet) DNS settings.\n - `\"Default\"` indicates that the pod should use the default (as determined by kubelet) DNS settings.\n - `\"None\"` indicates that the pod should use empty DNS settings. DNS parameters such as nameservers and search paths should be defined via DNSConfig.", + Description: "ProviderRef is the node provider to use for this node type.", Type: []string{"string"}, Format: "", - Enum: []interface{}{"ClusterFirst", "ClusterFirstWithHostNet", "Default", "None"}, }, }, - "nodeSelector": { + "properties": { SchemaProps: spec.SchemaProps{ - Description: "NodeSelector is a selector which must be true for the pod to fit on a node.", + Description: "Properties returns a flexible set of properties that may be selected for scheduling.", Type: []string{"object"}, AdditionalProperties: &spec.SchemaOrBool{ Allows: true, @@ -27114,280 +27196,263 @@ func schema_pkg_apis_storage_v1_DevPodWorkspacePodTemplateSpec(ref common.Refere }, }, }, - "serviceAccountName": { + "resources": { SchemaProps: spec.SchemaProps{ - Description: "ServiceAccountName is the name of the ServiceAccount to use to run this pod.", - Type: []string{"string"}, - Format: "", + Description: "Resources lists the full resources for a single node.", + Type: []string{"object"}, + AdditionalProperties: &spec.SchemaOrBool{ + Allows: true, + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Ref: ref(resource.Quantity{}.OpenAPIModelName()), + }, + }, + }, }, }, - "automountServiceAccountToken": { + "overhead": { SchemaProps: spec.SchemaProps{ - Description: "AutomountServiceAccountToken indicates whether a service account token should be automatically mounted.", - Type: []string{"boolean"}, - Format: "", + Description: "Overhead defines the resource overhead for this node type.", + Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.NodeTypeOverhead"), }, }, - "nodeName": { + "cost": { SchemaProps: spec.SchemaProps{ - Description: "NodeName indicates in which node this pod is scheduled.", + Description: "Cost is the instance cost. The higher the cost, the less likely it is to be selected. If empty, cost is automatically calculated from the resources specified.", + Type: []string{"integer"}, + Format: "int64", + }, + }, + "displayName": { + SchemaProps: spec.SchemaProps{ + Description: "DisplayName is the name that should be displayed in the UI", Type: []string{"string"}, Format: "", }, }, - "hostNetwork": { + }, + }, + }, + Dependencies: []string{ + "github.com/devsy-org/api/pkg/apis/storage/v1.NodeTypeOverhead", resource.Quantity{}.OpenAPIModelName()}, + } +} + +func schema_pkg_apis_storage_v1_NodeTypeStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "NodeTypeStatus holds the status of a node type", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "phase": { SchemaProps: spec.SchemaProps{ - Description: "Host networking requested for this pod. Use the host's network namespace.", - Type: []string{"boolean"}, + Description: "Phase is the current lifecycle phase of the NodeType.", + Type: []string{"string"}, Format: "", }, }, - "hostPID": { + "reason": { SchemaProps: spec.SchemaProps{ - Description: "Use the host's pid namespace.", - Type: []string{"boolean"}, + Description: "Reason describes the reason in machine-readable form", + Type: []string{"string"}, Format: "", }, }, - "hostIPC": { + "message": { SchemaProps: spec.SchemaProps{ - Description: "Use the host's ipc namespace.", - Type: []string{"boolean"}, + Description: "Message describes the reason in human-readable form", + Type: []string{"string"}, Format: "", }, }, - "shareProcessNamespace": { + "cost": { SchemaProps: spec.SchemaProps{ - Description: "Share a single process namespace between all of the containers in a pod.", - Type: []string{"boolean"}, - Format: "", + Description: "Cost is the calculated instance cost from the resources specified or the price specified from spec. The higher the cost, the less likely it is to be selected.", + Type: []string{"integer"}, + Format: "int64", }, }, - "securityContext": { + "capacity": { SchemaProps: spec.SchemaProps{ - Description: "SecurityContext holds pod-level security attributes and common container settings.", - Ref: ref(corev1.PodSecurityContext{}.OpenAPIModelName()), + Description: "Capacity is the capacity of the node type.", + Default: map[string]interface{}{}, + Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.NodeTypeCapacity"), }, }, - "imagePullSecrets": { + "requirements": { SchemaProps: spec.SchemaProps{ - Description: "ImagePullSecrets is an optional list of references to secrets in the same namespace to use for pulling any of the images used by this PodSpec.", + Description: "Requirements is the calculated requirements based of the properties for the node type.", Type: []string{"array"}, Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref(corev1.LocalObjectReference{}.OpenAPIModelName()), + Ref: ref(corev1.NodeSelectorRequirement{}.OpenAPIModelName()), }, }, }, }, }, - "hostname": { - SchemaProps: spec.SchemaProps{ - Description: "Specifies the hostname of the Pod", - Type: []string{"string"}, - Format: "", - }, - }, - "subdomain": { - SchemaProps: spec.SchemaProps{ - Description: "If specified, the fully qualified Pod hostname will be \"...svc.\".", - Type: []string{"string"}, - Format: "", - }, - }, - "affinity": { + "conditions": { SchemaProps: spec.SchemaProps{ - Description: "If specified, the pod's scheduling constraints", - Ref: ref(corev1.Affinity{}.OpenAPIModelName()), + Description: "Conditions holds several conditions the node type might be in", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("github.com/devsy-org/agentapi/pkg/apis/devsy/storage/v1.Condition"), + }, + }, + }, }, }, - "schedulerName": { + }, + }, + }, + Dependencies: []string{ + "github.com/devsy-org/agentapi/pkg/apis/devsy/storage/v1.Condition", "github.com/devsy-org/api/pkg/apis/storage/v1.NodeTypeCapacity", corev1.NodeSelectorRequirement{}.OpenAPIModelName()}, + } +} + +func schema_pkg_apis_storage_v1_ObjectsStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "lastAppliedObjects": { SchemaProps: spec.SchemaProps{ - Description: "If specified, the pod will be dispatched by specified scheduler. If not specified, the pod will be dispatched by default scheduler.", + Description: "LastAppliedObjects holds the status for the objects that were applied", Type: []string{"string"}, Format: "", }, }, - "tolerations": { + "charts": { SchemaProps: spec.SchemaProps{ - Description: "If specified, the pod's tolerations.", + Description: "Charts are the charts that were applied", Type: []string{"array"}, Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref(corev1.Toleration{}.OpenAPIModelName()), + Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.ChartStatus"), }, }, }, }, }, - "hostAliases": { + "apps": { SchemaProps: spec.SchemaProps{ - Description: "HostAliases is an optional list of hosts and IPs that will be injected into the pod's hosts", + Description: "Apps are the apps that were applied", Type: []string{"array"}, Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref(corev1.HostAlias{}.OpenAPIModelName()), + Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.AppReference"), }, }, }, }, }, - "priorityClassName": { - SchemaProps: spec.SchemaProps{ - Description: "If specified, indicates the pod's priority.", - Type: []string{"string"}, - Format: "", - }, - }, - "priority": { + }, + }, + }, + Dependencies: []string{ + "github.com/devsy-org/api/pkg/apis/storage/v1.AppReference", "github.com/devsy-org/api/pkg/apis/storage/v1.ChartStatus"}, + } +} + +func schema_pkg_apis_storage_v1_OpenCost(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "replicas": { SchemaProps: spec.SchemaProps{ - Type: []string{"integer"}, - Format: "int32", + Description: "Replicas is the number of desired replicas.", + Type: []string{"integer"}, + Format: "int32", }, }, - "dnsConfig": { + "resources": { SchemaProps: spec.SchemaProps{ - Description: "Specifies the DNS parameters of a pod.", - Ref: ref(corev1.PodDNSConfig{}.OpenAPIModelName()), + Description: "Resources are compute resource required by the OpenCost backend", + Ref: ref(corev1.ResourceRequirements{}.OpenAPIModelName()), }, }, - "readinessGates": { - SchemaProps: spec.SchemaProps{ - Description: "If specified, all readiness gates will be evaluated for pod readiness.", - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref(corev1.PodReadinessGate{}.OpenAPIModelName()), - }, - }, - }, - }, - }, - "runtimeClassName": { + }, + }, + }, + Dependencies: []string{ + corev1.ResourceRequirements{}.OpenAPIModelName()}, + } +} + +func schema_pkg_apis_storage_v1_PodSelector(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "podSelector": { SchemaProps: spec.SchemaProps{ - Description: "RuntimeClassName refers to a RuntimeClass object in the node.k8s.io group, which should be used to run this pod", - Type: []string{"string"}, - Format: "", + Description: "A label selector to select the virtual cluster pod to route incoming requests to.", + Default: map[string]interface{}{}, + Ref: ref(metav1.LabelSelector{}.OpenAPIModelName()), }, }, - "enableServiceLinks": { + "port": { SchemaProps: spec.SchemaProps{ - Description: "EnableServiceLinks indicates whether information about services should be injected into pod's environment variables, matching the syntax of Docker links.", - Type: []string{"boolean"}, - Format: "", + Description: "The port of the pod to route to", + Type: []string{"integer"}, + Format: "int32", }, }, - "preemptionPolicy": { + }, + }, + }, + Dependencies: []string{ + metav1.LabelSelector{}.OpenAPIModelName()}, + } +} + +func schema_pkg_apis_storage_v1_PresetRef(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "name": { SchemaProps: spec.SchemaProps{ - Description: "PreemptionPolicy is the Policy for preempting pods with lower priority.\n\nPossible enum values:\n - `\"Never\"` means that pod never preempts other pods with lower priority.\n - `\"PreemptLowerPriority\"` means that pod can preempt other pods with lower priority.", + Description: "Name is the name of DevsyWorkspacePreset", + Default: "", Type: []string{"string"}, Format: "", - Enum: []interface{}{"Never", "PreemptLowerPriority"}, - }, - }, - "overhead": { - SchemaProps: spec.SchemaProps{ - Description: "Overhead represents the resource overhead associated with running a pod for a given RuntimeClass.", - Type: []string{"object"}, - AdditionalProperties: &spec.SchemaOrBool{ - Allows: true, - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Ref: ref("k8s.io/apimachinery/pkg/api/resource.Quantity"), - }, - }, - }, - }, - }, - "topologySpreadConstraints": { - SchemaProps: spec.SchemaProps{ - Description: "TopologySpreadConstraints describes how a group of pods ought to spread across topology domains.", - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref(corev1.TopologySpreadConstraint{}.OpenAPIModelName()), - }, - }, - }, - }, - }, - "setHostnameAsFQDN": { - SchemaProps: spec.SchemaProps{ - Description: "If true the pod's hostname will be configured as the pod's FQDN, rather than the leaf name (the default). In Linux containers, this means setting the FQDN in the hostname field of the kernel (the nodename field of struct utsname). In Windows containers, this means setting the registry value of hostname for the registry key HKEY_LOCAL_MACHINE\\\\SYSTEM\\\\CurrentControlSet\\\\Services\\\\Tcpip\\\\Parameters to FQDN.", - Type: []string{"boolean"}, - Format: "", }, }, - "os": { - SchemaProps: spec.SchemaProps{ - Description: "Specifies the OS of the containers in the pod.", - Ref: ref(corev1.PodOS{}.OpenAPIModelName()), - }, - }, - "hostUsers": { + "version": { SchemaProps: spec.SchemaProps{ - Description: "Use the host's user namespace.", - Type: []string{"boolean"}, + Description: "Version holds the preset version to use. Version is expected to be in semantic versioning format. Alternatively, you can also exchange major, minor or patch with an 'x' to tell Devsy to automatically select the latest major, minor or patch version.", + Type: []string{"string"}, Format: "", }, }, - "schedulingGates": { - SchemaProps: spec.SchemaProps{ - Description: "SchedulingGates is an opaque list of values that if specified will block scheduling the pod. If schedulingGates is not empty, the pod will stay in the SchedulingGated state and the scheduler will not attempt to schedule the pod.", - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref(corev1.PodSchedulingGate{}.OpenAPIModelName()), - }, - }, - }, - }, - }, - "resourceClaims": { - SchemaProps: spec.SchemaProps{ - Description: "ResourceClaims defines which ResourceClaims must be allocated and reserved before the Pod is allowed to start. The resources will be made available to those containers which consume them by name.", - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref(corev1.PodResourceClaim{}.OpenAPIModelName()), - }, - }, - }, - }, - }, - "resources": { - SchemaProps: spec.SchemaProps{ - Description: "Resources is the total amount of CPU and Memory resources required by all containers in the pod. It supports specifying Requests and Limits for \"cpu\" and \"memory\" resource names only. ResourceClaims are not supported.", - Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.DevPodWorkspaceResourceRequirements"), - }, - }, }, + Required: []string{"name"}, }, }, - Dependencies: []string{ - "github.com/devsy-org/api/pkg/apis/storage/v1.DevPodWorkspaceContainer", "github.com/devsy-org/api/pkg/apis/storage/v1.DevPodWorkspaceResourceRequirements", corev1.Affinity{}.OpenAPIModelName(), corev1.HostAlias{}.OpenAPIModelName(), corev1.LocalObjectReference{}.OpenAPIModelName(), corev1.PodDNSConfig{}.OpenAPIModelName(), corev1.PodOS{}.OpenAPIModelName(), corev1.PodReadinessGate{}.OpenAPIModelName(), corev1.PodResourceClaim{}.OpenAPIModelName(), corev1.PodSchedulingGate{}.OpenAPIModelName(), corev1.PodSecurityContext{}.OpenAPIModelName(), corev1.Toleration{}.OpenAPIModelName(), corev1.TopologySpreadConstraint{}.OpenAPIModelName(), corev1.Volume{}.OpenAPIModelName(), "k8s.io/apimachinery/pkg/api/resource.Quantity"}, } } -func schema_pkg_apis_storage_v1_DevPodWorkspacePreset(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_storage_v1_Project(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "DevPodWorkspacePreset", + Description: "Project", Type: []string{"object"}, Properties: map[string]spec.Schema{ "kind": { @@ -27413,28 +27478,28 @@ func schema_pkg_apis_storage_v1_DevPodWorkspacePreset(ref common.ReferenceCallba "spec": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.DevPodWorkspacePresetSpec"), + Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.ProjectSpec"), }, }, "status": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.DevPodWorkspacePresetStatus"), + Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.ProjectStatus"), }, }, }, }, }, Dependencies: []string{ - "github.com/devsy-org/api/pkg/apis/storage/v1.DevPodWorkspacePresetSpec", "github.com/devsy-org/api/pkg/apis/storage/v1.DevPodWorkspacePresetStatus", metav1.ObjectMeta{}.OpenAPIModelName()}, + "github.com/devsy-org/api/pkg/apis/storage/v1.ProjectSpec", "github.com/devsy-org/api/pkg/apis/storage/v1.ProjectStatus", metav1.ObjectMeta{}.OpenAPIModelName()}, } } -func schema_pkg_apis_storage_v1_DevPodWorkspacePresetList(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_storage_v1_ProjectList(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "DevPodWorkspacePresetList contains a list of DevPodWorkspacePreset objects", + Description: "ProjectList contains a list of Project objects.", Type: []string{"object"}, Properties: map[string]spec.Schema{ "kind": { @@ -27464,7 +27529,7 @@ func schema_pkg_apis_storage_v1_DevPodWorkspacePresetList(ref common.ReferenceCa Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.DevPodWorkspacePreset"), + Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.Project"), }, }, }, @@ -27475,205 +27540,273 @@ func schema_pkg_apis_storage_v1_DevPodWorkspacePresetList(ref common.ReferenceCa }, }, Dependencies: []string{ - "github.com/devsy-org/api/pkg/apis/storage/v1.DevPodWorkspacePreset", metav1.ListMeta{}.OpenAPIModelName()}, + "github.com/devsy-org/api/pkg/apis/storage/v1.Project", metav1.ListMeta{}.OpenAPIModelName()}, } } -func schema_pkg_apis_storage_v1_DevPodWorkspacePresetSource(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_storage_v1_ProjectSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ Type: []string{"object"}, Properties: map[string]spec.Schema{ - "git": { + "displayName": { SchemaProps: spec.SchemaProps{ - Description: "Git stores path to git repo to use as workspace source", + Description: "DisplayName is the name that should be displayed in the UI", Type: []string{"string"}, Format: "", }, }, - "image": { + "description": { SchemaProps: spec.SchemaProps{ - Description: "Image stores container image to use as workspace source", + Description: "Description describes an app", Type: []string{"string"}, Format: "", }, }, - }, - }, - }, - } -} - -func schema_pkg_apis_storage_v1_DevPodWorkspacePresetSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { - return common.OpenAPIDefinition{ - Schema: spec.Schema{ - SchemaProps: spec.SchemaProps{ - Type: []string{"object"}, - Properties: map[string]spec.Schema{ - "displayName": { + "owner": { SchemaProps: spec.SchemaProps{ - Description: "DisplayName is the name that should be displayed in the UI", - Type: []string{"string"}, - Format: "", + Description: "Owner holds the owner of this object", + Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.UserOrTeam"), }, }, - "source": { + "quotas": { SchemaProps: spec.SchemaProps{ - Description: "Source stores inline path of project source", - Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.DevPodWorkspacePresetSource"), + Description: "Quotas define the quotas inside the project", + Default: map[string]interface{}{}, + Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.Quotas"), }, }, - "infrastructureRef": { + "allowedClusters": { SchemaProps: spec.SchemaProps{ - Description: "InfrastructureRef stores reference to DevPodWorkspaceTemplate to use", - Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.TemplateRef"), + Description: "AllowedClusters are target clusters that are allowed to target with environments.", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.AllowedCluster"), + }, + }, + }, }, }, - "environmentRef": { + "allowedRunners": { SchemaProps: spec.SchemaProps{ - Description: "EnvironmentRef stores reference to DevPodEnvironmentTemplate", - Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.EnvironmentRef"), + Description: "AllowedRunners are target runners that are allowed to target with Devsy environments.", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.AllowedRunner"), + }, + }, + }, }, }, - "useProjectGitCredentials": { + "allowedTemplates": { SchemaProps: spec.SchemaProps{ - Description: "UseProjectGitCredentials specifies if the project git credentials should be used instead of local ones for this environment", - Type: []string{"boolean"}, - Format: "", + Description: "AllowedTemplates are the templates that are allowed to use in this project.", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.AllowedTemplate"), + }, + }, + }, }, }, - "owner": { + "requireTemplate": { SchemaProps: spec.SchemaProps{ - Description: "Owner holds the owner of this object", - Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.UserOrTeam"), + Description: "RequireTemplate configures if a template is required for instance creation.", + Default: map[string]interface{}{}, + Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.RequireTemplate"), }, }, - "access": { + "requirePreset": { + SchemaProps: spec.SchemaProps{ + Description: "RequirePreset configures if a preset is required for instance creation.", + Default: map[string]interface{}{}, + Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.RequirePreset"), + }, + }, + "members": { SchemaProps: spec.SchemaProps{ - Description: "Access to the DevPod machine instance object itself", + Description: "Members are the users and teams that are part of this project", Type: []string{"array"}, Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.Access"), + Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.Member"), }, }, }, }, }, - "versions": { + "access": { SchemaProps: spec.SchemaProps{ - Description: "Versions are different versions of the template that can be referenced as well", + Description: "Access holds the access rights for users and teams", Type: []string{"array"}, Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.DevPodWorkspacePresetVersion"), + Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.Access"), }, }, }, }, }, + "namespacePattern": { + SchemaProps: spec.SchemaProps{ + Description: "NamespacePattern specifies template patterns to use for creating each space or virtual cluster's namespace", + Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.NamespacePattern"), + }, + }, + "argoCD": { + SchemaProps: spec.SchemaProps{ + Description: "ArgoIntegration holds information about ArgoCD Integration", + Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.ArgoIntegrationSpec"), + }, + }, + "vault": { + SchemaProps: spec.SchemaProps{ + Description: "VaultIntegration holds information about Vault Integration", + Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.VaultIntegrationSpec"), + }, + }, + "rancher": { + SchemaProps: spec.SchemaProps{ + Description: "RancherIntegration holds information about Rancher Integration", + Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.RancherIntegrationSpec"), + }, + }, + "devPod": { + SchemaProps: spec.SchemaProps{ + Description: "Devsy holds Devsy specific configuration for project", + Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.DevsyProjectSpec"), + }, + }, }, - Required: []string{"source", "infrastructureRef"}, }, }, Dependencies: []string{ - "github.com/devsy-org/api/pkg/apis/storage/v1.Access", "github.com/devsy-org/api/pkg/apis/storage/v1.DevPodWorkspacePresetSource", "github.com/devsy-org/api/pkg/apis/storage/v1.DevPodWorkspacePresetVersion", "github.com/devsy-org/api/pkg/apis/storage/v1.EnvironmentRef", "github.com/devsy-org/api/pkg/apis/storage/v1.TemplateRef", "github.com/devsy-org/api/pkg/apis/storage/v1.UserOrTeam"}, + "github.com/devsy-org/api/pkg/apis/storage/v1.Access", "github.com/devsy-org/api/pkg/apis/storage/v1.AllowedCluster", "github.com/devsy-org/api/pkg/apis/storage/v1.AllowedRunner", "github.com/devsy-org/api/pkg/apis/storage/v1.AllowedTemplate", "github.com/devsy-org/api/pkg/apis/storage/v1.ArgoIntegrationSpec", "github.com/devsy-org/api/pkg/apis/storage/v1.DevsyProjectSpec", "github.com/devsy-org/api/pkg/apis/storage/v1.Member", "github.com/devsy-org/api/pkg/apis/storage/v1.NamespacePattern", "github.com/devsy-org/api/pkg/apis/storage/v1.Quotas", "github.com/devsy-org/api/pkg/apis/storage/v1.RancherIntegrationSpec", "github.com/devsy-org/api/pkg/apis/storage/v1.RequirePreset", "github.com/devsy-org/api/pkg/apis/storage/v1.RequireTemplate", "github.com/devsy-org/api/pkg/apis/storage/v1.UserOrTeam", "github.com/devsy-org/api/pkg/apis/storage/v1.VaultIntegrationSpec"}, } } -func schema_pkg_apis_storage_v1_DevPodWorkspacePresetStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_storage_v1_ProjectStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "DevPodWorkspacePresetStatus holds the status", - Type: []string{"object"}, + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "quotas": { + SchemaProps: spec.SchemaProps{ + Description: "Quotas holds the quota status.", + Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.QuotaStatus"), + }, + }, + "conditions": { + SchemaProps: spec.SchemaProps{ + Description: "Conditions holds several conditions the project might be in", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("github.com/devsy-org/agentapi/pkg/apis/devsy/storage/v1.Condition"), + }, + }, + }, + }, + }, + }, }, }, + Dependencies: []string{ + "github.com/devsy-org/agentapi/pkg/apis/devsy/storage/v1.Condition", "github.com/devsy-org/api/pkg/apis/storage/v1.QuotaStatus"}, } } -func schema_pkg_apis_storage_v1_DevPodWorkspacePresetVersion(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_storage_v1_QuotaStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ Type: []string{"object"}, Properties: map[string]spec.Schema{ - "version": { - SchemaProps: spec.SchemaProps{ - Description: "Version is the version. Needs to be in X.X.X format.", - Type: []string{"string"}, - Format: "", - }, - }, - "source": { - SchemaProps: spec.SchemaProps{ - Description: "Source stores inline path of project source", - Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.DevPodWorkspacePresetSource"), - }, - }, - "infrastructureRef": { + "project": { SchemaProps: spec.SchemaProps{ - Description: "InfrastructureRef stores reference to DevPodWorkspaceTemplate to use", - Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.TemplateRef"), + Description: "Project is the quota status for the whole project", + Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.QuotaStatusProject"), }, }, - "environmentRef": { + "user": { SchemaProps: spec.SchemaProps{ - Description: "EnvironmentRef stores reference to DevPodEnvironmentTemplate", - Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.EnvironmentRef"), + Description: "User is the quota status for each user / team. An example status could look like this: status:\n quotas:\n user:\n limit:\n pods: \"10\"\n spaces: \"5\"\n users:\n admin:\n used:\n spaces: \"3\" # <- calculated in our apiserver\n pods: \"8\" # <- the sum calculated from clusters\n clusters:\n cluster-1: # <- populated by agent from cluster-1\n users:\n admin:\n pods: \"3\"\n cluster-2:\n users:\n admin:\n pods: \"5\"", + Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.QuotaStatusUser"), }, }, }, }, }, Dependencies: []string{ - "github.com/devsy-org/api/pkg/apis/storage/v1.DevPodWorkspacePresetSource", "github.com/devsy-org/api/pkg/apis/storage/v1.EnvironmentRef", "github.com/devsy-org/api/pkg/apis/storage/v1.TemplateRef"}, + "github.com/devsy-org/api/pkg/apis/storage/v1.QuotaStatusProject", "github.com/devsy-org/api/pkg/apis/storage/v1.QuotaStatusUser"}, } } -func schema_pkg_apis_storage_v1_DevPodWorkspaceProvider(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_storage_v1_QuotaStatusProject(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ Type: []string{"object"}, Properties: map[string]spec.Schema{ - "name": { + "limit": { SchemaProps: spec.SchemaProps{ - Description: "Name is the name of the provider. This can also be an url.", - Type: []string{"string"}, - Format: "", + Description: "Limit is the amount limited, copied from spec.quotas.project", + Type: []string{"object"}, + AdditionalProperties: &spec.SchemaOrBool{ + Allows: true, + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + }, }, }, - "options": { + "used": { SchemaProps: spec.SchemaProps{ - Description: "Options are the provider option values", + Description: "Used is the amount currently used across all clusters", Type: []string{"object"}, AdditionalProperties: &spec.SchemaOrBool{ Allows: true, Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.DevPodProviderOption"), + Default: "", + Type: []string{"string"}, + Format: "", }, }, }, }, }, - "env": { + "clusters": { SchemaProps: spec.SchemaProps{ - Description: "Env are environment options to set when using the provider.", + Description: "Clusters holds the used amount per cluster. Maps cluster name to used resources", Type: []string{"object"}, AdditionalProperties: &spec.SchemaOrBool{ Allows: true, Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.DevPodProviderOption"), + Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.QuotaStatusProjectCluster"), }, }, }, @@ -27683,20 +27816,19 @@ func schema_pkg_apis_storage_v1_DevPodWorkspaceProvider(ref common.ReferenceCall }, }, Dependencies: []string{ - "github.com/devsy-org/api/pkg/apis/storage/v1.DevPodProviderOption"}, + "github.com/devsy-org/api/pkg/apis/storage/v1.QuotaStatusProjectCluster"}, } } -func schema_pkg_apis_storage_v1_DevPodWorkspaceResourceRequirements(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_storage_v1_QuotaStatusProjectCluster(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "DevPodWorkspacePodResourceRequirements are less restrictive corev1.ResourceRequirements.", - Type: []string{"object"}, + Type: []string{"object"}, Properties: map[string]spec.Schema{ - "limits": { + "used": { SchemaProps: spec.SchemaProps{ - Description: "Limits describes the maximum amount of compute resources allowed.", + Description: "Used is the amount currently used. Maps resource name, such as pods, to their used amount.", Type: []string{"object"}, AdditionalProperties: &spec.SchemaOrBool{ Allows: true, @@ -27710,9 +27842,21 @@ func schema_pkg_apis_storage_v1_DevPodWorkspaceResourceRequirements(ref common.R }, }, }, - "requests": { + }, + }, + }, + } +} + +func schema_pkg_apis_storage_v1_QuotaStatusUser(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "limit": { SchemaProps: spec.SchemaProps{ - Description: "Requests describes the minimum amount of compute resources required.", + Description: "Limit is the amount limited per user / team", Type: []string{"object"}, AdditionalProperties: &spec.SchemaOrBool{ Allows: true, @@ -27726,15 +27870,23 @@ func schema_pkg_apis_storage_v1_DevPodWorkspaceResourceRequirements(ref common.R }, }, }, - "claims": { + "used": { SchemaProps: spec.SchemaProps{ - Description: "Claims lists the names of resources, defined in spec.resourceClaims, that are used by this container.", - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ + Description: "Used is the used amount per user / team", + Default: map[string]interface{}{}, + Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.QuotaStatusUserUsed"), + }, + }, + "clusters": { + SchemaProps: spec.SchemaProps{ + Description: "Clusters holds the used amount per cluster. Maps cluster name to used resources", + Type: []string{"object"}, + AdditionalProperties: &spec.SchemaOrBool{ + Allows: true, Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref(corev1.ResourceClaim{}.OpenAPIModelName()), + Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.QuotaStatusUserUsed"), }, }, }, @@ -27744,525 +27896,354 @@ func schema_pkg_apis_storage_v1_DevPodWorkspaceResourceRequirements(ref common.R }, }, Dependencies: []string{ - corev1.ResourceClaim{}.OpenAPIModelName()}, + "github.com/devsy-org/api/pkg/apis/storage/v1.QuotaStatusUserUsed"}, } } -func schema_pkg_apis_storage_v1_DevPodWorkspaceTemplate(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_storage_v1_QuotaStatusUserUsed(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "DevPodWorkspaceTemplate holds the DevPodWorkspaceTemplate information", - Type: []string{"object"}, + Type: []string{"object"}, Properties: map[string]spec.Schema{ - "kind": { - SchemaProps: spec.SchemaProps{ - Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", - Type: []string{"string"}, - Format: "", - }, - }, - "apiVersion": { - SchemaProps: spec.SchemaProps{ - Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", - Type: []string{"string"}, - Format: "", - }, - }, - "metadata": { - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref(metav1.ObjectMeta{}.OpenAPIModelName()), - }, - }, - "spec": { + "users": { SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.DevPodWorkspaceTemplateSpec"), + Description: "Users is a mapping of users to used resources", + Type: []string{"object"}, + AdditionalProperties: &spec.SchemaOrBool{ + Allows: true, + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"object"}, + AdditionalProperties: &spec.SchemaOrBool{ + Allows: true, + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + }, + }, + }, + }, }, }, - "status": { + "teams": { SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.DevPodWorkspaceTemplateStatus"), + Description: "Teams is a mapping of teams to used resources", + Type: []string{"object"}, + AdditionalProperties: &spec.SchemaOrBool{ + Allows: true, + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"object"}, + AdditionalProperties: &spec.SchemaOrBool{ + Allows: true, + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + }, + }, + }, + }, }, }, }, }, }, - Dependencies: []string{ - "github.com/devsy-org/api/pkg/apis/storage/v1.DevPodWorkspaceTemplateSpec", "github.com/devsy-org/api/pkg/apis/storage/v1.DevPodWorkspaceTemplateStatus", metav1.ObjectMeta{}.OpenAPIModelName()}, } } -func schema_pkg_apis_storage_v1_DevPodWorkspaceTemplateDefinition(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_storage_v1_Quotas(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ Type: []string{"object"}, Properties: map[string]spec.Schema{ - "kubernetes": { - SchemaProps: spec.SchemaProps{ - Description: "Kubernetes holds the definition for kubernetes based workspaces", - Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.DevPodWorkspaceKubernetesSpec"), - }, - }, - "workspaceEnv": { + "project": { SchemaProps: spec.SchemaProps{ - Description: "WorkspaceEnv are environment variables that should be available within the created workspace.", + Description: "Project holds the quotas for the whole project", Type: []string{"object"}, AdditionalProperties: &spec.SchemaOrBool{ Allows: true, Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.DevPodProviderOption"), + Default: "", + Type: []string{"string"}, + Format: "", }, }, }, }, }, - "instanceTemplate": { - SchemaProps: spec.SchemaProps{ - Description: "InstanceTemplate holds the workspace instance template", - Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.DevPodWorkspaceInstanceTemplateDefinition"), - }, - }, - "credentialForwarding": { - SchemaProps: spec.SchemaProps{ - Description: "CredentialForwarding specifies controls for how workspaces created by this template forward credentials into the workspace", - Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.CredentialForwarding"), - }, - }, - "provider": { + "user": { SchemaProps: spec.SchemaProps{ - Description: "Provider holds the legacy VM provider configuration", - Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.DevPodWorkspaceProvider"), + Description: "User holds the quotas per user / team", + Type: []string{"object"}, + AdditionalProperties: &spec.SchemaOrBool{ + Allows: true, + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + }, }, }, }, }, }, - Dependencies: []string{ - "github.com/devsy-org/api/pkg/apis/storage/v1.CredentialForwarding", "github.com/devsy-org/api/pkg/apis/storage/v1.DevPodProviderOption", "github.com/devsy-org/api/pkg/apis/storage/v1.DevPodWorkspaceInstanceTemplateDefinition", "github.com/devsy-org/api/pkg/apis/storage/v1.DevPodWorkspaceKubernetesSpec", "github.com/devsy-org/api/pkg/apis/storage/v1.DevPodWorkspaceProvider"}, } } -func schema_pkg_apis_storage_v1_DevPodWorkspaceTemplateList(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_storage_v1_RancherIntegrationSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "DevPodWorkspaceTemplateList contains a list of DevPodWorkspaceTemplate", - Type: []string{"object"}, + Type: []string{"object"}, Properties: map[string]spec.Schema{ - "kind": { + "enabled": { SchemaProps: spec.SchemaProps{ - Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", - Type: []string{"string"}, - Format: "", + Description: "Enabled indicates if the Rancher Project Integration is enabled for this project.", + Type: []string{"boolean"}, + Format: "", }, }, - "apiVersion": { + "projectRef": { SchemaProps: spec.SchemaProps{ - Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", - Type: []string{"string"}, - Format: "", + Description: "ProjectRef defines references to rancher project, required for syncMembers and syncVirtualClusters.syncMembers", + Default: map[string]interface{}{}, + Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.RancherProjectRef"), }, }, - "metadata": { + "importVirtualClusters": { SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref(metav1.ListMeta{}.OpenAPIModelName()), + Description: "ImportVirtualClusters defines settings to import virtual clusters to Rancher on creation", + Default: map[string]interface{}{}, + Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.ImportVirtualClustersSpec"), }, }, - "items": { + "syncMembers": { SchemaProps: spec.SchemaProps{ - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.DevPodWorkspaceTemplate"), - }, - }, - }, + Description: "SyncMembers defines settings to sync Rancher project members to the devsy project", + Default: map[string]interface{}{}, + Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.SyncMembersSpec"), }, }, }, - Required: []string{"items"}, }, }, Dependencies: []string{ - "github.com/devsy-org/api/pkg/apis/storage/v1.DevPodWorkspaceTemplate", metav1.ListMeta{}.OpenAPIModelName()}, + "github.com/devsy-org/api/pkg/apis/storage/v1.ImportVirtualClustersSpec", "github.com/devsy-org/api/pkg/apis/storage/v1.RancherProjectRef", "github.com/devsy-org/api/pkg/apis/storage/v1.SyncMembersSpec"}, } } -func schema_pkg_apis_storage_v1_DevPodWorkspaceTemplateSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_storage_v1_RancherProjectRef(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "DevPodWorkspaceTemplateSpec holds the specification", - Type: []string{"object"}, + Type: []string{"object"}, Properties: map[string]spec.Schema{ - "displayName": { + "cluster": { SchemaProps: spec.SchemaProps{ - Description: "DisplayName is the name that is shown in the UI", + Description: "Cluster defines the Rancher cluster ID Needs to be the same id within Devsy", Type: []string{"string"}, Format: "", }, }, - "description": { + "project": { SchemaProps: spec.SchemaProps{ - Description: "Description describes the virtual cluster template", + Description: "Project defines the Rancher project ID", Type: []string{"string"}, Format: "", }, }, - "owner": { - SchemaProps: spec.SchemaProps{ - Description: "Owner holds the owner of this object", - Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.UserOrTeam"), - }, - }, - "parameters": { - SchemaProps: spec.SchemaProps{ - Description: "Parameters define additional app parameters that will set provider values", - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.AppParameter"), - }, - }, - }, - }, - }, - "template": { - SchemaProps: spec.SchemaProps{ - Description: "Template holds the DevPod workspace template", - Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.DevPodWorkspaceTemplateDefinition"), - }, - }, - "versions": { - SchemaProps: spec.SchemaProps{ - Description: "Versions are different versions of the template that can be referenced as well", - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.DevPodWorkspaceTemplateVersion"), - }, - }, - }, - }, - }, - "access": { - SchemaProps: spec.SchemaProps{ - Description: "Access holds the access rights for users and teams", - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.Access"), - }, - }, - }, - }, - }, }, }, }, - Dependencies: []string{ - "github.com/devsy-org/api/pkg/apis/storage/v1.Access", "github.com/devsy-org/api/pkg/apis/storage/v1.AppParameter", "github.com/devsy-org/api/pkg/apis/storage/v1.DevPodWorkspaceTemplateDefinition", "github.com/devsy-org/api/pkg/apis/storage/v1.DevPodWorkspaceTemplateVersion", "github.com/devsy-org/api/pkg/apis/storage/v1.UserOrTeam"}, - } -} - -func schema_pkg_apis_storage_v1_DevPodWorkspaceTemplateStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { - return common.OpenAPIDefinition{ - Schema: spec.Schema{ - SchemaProps: spec.SchemaProps{ - Description: "DevPodWorkspaceTemplateStatus holds the status", - Type: []string{"object"}, - }, - }, } } -func schema_pkg_apis_storage_v1_DevPodWorkspaceTemplateVersion(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_storage_v1_RequirePreset(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ Type: []string{"object"}, Properties: map[string]spec.Schema{ - "template": { - SchemaProps: spec.SchemaProps{ - Description: "Template holds the DevPod template", - Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.DevPodWorkspaceTemplateDefinition"), - }, - }, - "parameters": { - SchemaProps: spec.SchemaProps{ - Description: "Parameters define additional app parameters that will set provider values", - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.AppParameter"), - }, - }, - }, - }, - }, - "version": { + "disabled": { SchemaProps: spec.SchemaProps{ - Description: "Version is the version. Needs to be in X.X.X format.", - Type: []string{"string"}, + Description: "If true, all users within the project will not be allowed to create a new instance without a preset. By default, all users are allowed to create a new instance without a preset.", + Type: []string{"boolean"}, Format: "", }, }, }, }, }, - Dependencies: []string{ - "github.com/devsy-org/api/pkg/apis/storage/v1.AppParameter", "github.com/devsy-org/api/pkg/apis/storage/v1.DevPodWorkspaceTemplateDefinition"}, } } -func schema_pkg_apis_storage_v1_DevPodWorkspaceVolumeClaimSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_storage_v1_RequireTemplate(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ Type: []string{"object"}, Properties: map[string]spec.Schema{ - "accessModes": { - VendorExtensible: spec.VendorExtensible{ - Extensions: spec.Extensions{ - "x-kubernetes-list-type": "atomic", - }, - }, - SchemaProps: spec.SchemaProps{ - Description: "accessModes contains the desired access modes the volume should have.", - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: "", - Type: []string{"string"}, - Format: "", - Enum: []interface{}{"ReadOnlyMany", "ReadWriteMany", "ReadWriteOnce", "ReadWriteOncePod"}, - }, - }, - }, - }, - }, - "selector": { - SchemaProps: spec.SchemaProps{ - Description: "selector is a label query over volumes to consider for binding.", - Ref: ref(metav1.LabelSelector{}.OpenAPIModelName()), - }, - }, - "resources": { - SchemaProps: spec.SchemaProps{ - Description: "resources represents the minimum resources the volume should have.", - Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.DevPodWorkspaceResourceRequirements"), - }, - }, - "volumeName": { - SchemaProps: spec.SchemaProps{ - Description: "volumeName is the binding reference to the PersistentVolume backing this claim.", - Type: []string{"string"}, - Format: "", - }, - }, - "storageClassName": { - SchemaProps: spec.SchemaProps{ - Description: "storageClassName is the name of the StorageClass required by the claim.", - Type: []string{"string"}, - Format: "", - }, - }, - "volumeMode": { - SchemaProps: spec.SchemaProps{ - Description: "volumeMode defines what type of volume is required by the claim.\n\nPossible enum values:\n - `\"Block\"` means the volume will not be formatted with a filesystem and will remain a raw block device.\n - `\"Filesystem\"` means the volume will be or is formatted with a filesystem.", - Type: []string{"string"}, - Format: "", - Enum: []interface{}{"Block", "Filesystem"}, - }, - }, - "dataSource": { - SchemaProps: spec.SchemaProps{ - Description: "dataSource field can be used to specify either:", - Ref: ref(corev1.TypedLocalObjectReference{}.OpenAPIModelName()), - }, - }, - "dataSourceRef": { - SchemaProps: spec.SchemaProps{ - Description: "dataSourceRef specifies the object from which to populate the volume with data, if a non-empty", - Ref: ref(corev1.TypedObjectReference{}.OpenAPIModelName()), - }, - }, - "volumeAttributesClassName": { + "disabled": { SchemaProps: spec.SchemaProps{ - Description: "volumeAttributesClassName may be used to set the VolumeAttributesClass used by this claim.", - Type: []string{"string"}, + Description: "If true, all users within the project will be allowed to create a new instance without a template. By default, only admins are allowed to create a new instance without a template.", + Type: []string{"boolean"}, Format: "", }, }, }, }, }, - Dependencies: []string{ - "github.com/devsy-org/api/pkg/apis/storage/v1.DevPodWorkspaceResourceRequirements", corev1.TypedLocalObjectReference{}.OpenAPIModelName(), corev1.TypedObjectReference{}.OpenAPIModelName(), metav1.LabelSelector{}.OpenAPIModelName()}, } } -func schema_pkg_apis_storage_v1_DevPodWorkspaceVolumeClaimTemplate(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_storage_v1_RunnerRef(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ Type: []string{"object"}, Properties: map[string]spec.Schema{ - "metadata": { - SchemaProps: spec.SchemaProps{ - Description: "The pods metadata", - Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.TemplateMetadata"), - }, - }, - "spec": { + "runner": { SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.DevPodWorkspaceVolumeClaimSpec"), + Description: "Runner is the connected runner the workspace will be created in", + Type: []string{"string"}, + Format: "", }, }, }, }, }, - Dependencies: []string{ - "github.com/devsy-org/api/pkg/apis/storage/v1.DevPodWorkspaceVolumeClaimSpec", "github.com/devsy-org/api/pkg/apis/storage/v1.TemplateMetadata"}, } } -func schema_pkg_apis_storage_v1_DockerCredentialForwarding(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_storage_v1_SSOIdentity(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ Type: []string{"object"}, Properties: map[string]spec.Schema{ - "disabled": { + "userId": { SchemaProps: spec.SchemaProps{ - Description: "Disabled prevents all workspaces created by this template from forwarding credentials into the workspace", - Type: []string{"boolean"}, + Description: "The subject of the user", + Type: []string{"string"}, Format: "", }, }, - }, - }, - }, - } -} - -func schema_pkg_apis_storage_v1_EntityInfo(ref common.ReferenceCallback) common.OpenAPIDefinition { - return common.OpenAPIDefinition{ - Schema: spec.Schema{ - SchemaProps: spec.SchemaProps{ - Type: []string{"object"}, - Properties: map[string]spec.Schema{ - "name": { + "username": { SchemaProps: spec.SchemaProps{ - Description: "Name is the kubernetes name of the object", + Description: "The username", Type: []string{"string"}, Format: "", }, }, - "displayName": { + "preferredUsername": { SchemaProps: spec.SchemaProps{ - Description: "The display name shown in the UI", + Description: "The preferred username / display name", Type: []string{"string"}, Format: "", }, }, - "icon": { + "email": { SchemaProps: spec.SchemaProps{ - Description: "Icon is the icon of the user / team", + Description: "The user email", Type: []string{"string"}, Format: "", }, }, - "username": { + "emailVerified": { SchemaProps: spec.SchemaProps{ - Description: "The username that is used to login", - Type: []string{"string"}, + Description: "If the user email was verified", + Type: []string{"boolean"}, Format: "", }, }, - "email": { + "extraClaims": { SchemaProps: spec.SchemaProps{ - Description: "The users email address", - Type: []string{"string"}, - Format: "", + Description: "ExtraClaims are claims that are not otherwise contained in this struct but may be provided by the OIDC provider. Only extra claims that are allowed by the auth config are included.", + Type: []string{"object"}, + AdditionalProperties: &spec.SchemaOrBool{ + Allows: true, + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + }, }, }, - "subject": { + "groups": { SchemaProps: spec.SchemaProps{ - Description: "The user subject", - Type: []string{"string"}, - Format: "", + Description: "The groups from the identity provider", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + }, }, }, - }, - }, - }, - } -} - -func schema_pkg_apis_storage_v1_EnvironmentRef(ref common.ReferenceCallback) common.OpenAPIDefinition { - return common.OpenAPIDefinition{ - Schema: spec.Schema{ - SchemaProps: spec.SchemaProps{ - Type: []string{"object"}, - Properties: map[string]spec.Schema{ - "name": { + "connector": { SchemaProps: spec.SchemaProps{ - Description: "Name is the name of DevPodEnvironmentTemplate this references", - Default: "", + Description: "Connector is the name of the connector this access key was created from", Type: []string{"string"}, Format: "", }, }, - "version": { + "connectorData": { SchemaProps: spec.SchemaProps{ - Description: "Version is the version of DevPodEnvironmentTemplate this references", + Description: "ConnectorData holds data used by the connector for subsequent requests after initial authentication, such as access tokens for upstream providers.\n\nThis data is never shared with end users, OAuth clients, or through the API.", Type: []string{"string"}, - Format: "", + Format: "byte", }, }, }, - Required: []string{"name"}, }, }, } } -func schema_pkg_apis_storage_v1_GitCredentialForwarding(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_storage_v1_SecretRef(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Type: []string{"object"}, + Description: "SecretRef is the reference to a secret containing the user password", + Type: []string{"object"}, Properties: map[string]spec.Schema{ - "disabled": { + "secretName": { SchemaProps: spec.SchemaProps{ - Description: "Disabled prevents all workspaces created by this template from forwarding credentials into the workspace", - Type: []string{"boolean"}, - Format: "", + Type: []string{"string"}, + Format: "", + }, + }, + "secretNamespace": { + SchemaProps: spec.SchemaProps{ + Type: []string{"string"}, + Format: "", + }, + }, + "key": { + SchemaProps: spec.SchemaProps{ + Type: []string{"string"}, + Format: "", }, }, }, @@ -28271,141 +28252,153 @@ func schema_pkg_apis_storage_v1_GitCredentialForwarding(ref common.ReferenceCall } } -func schema_pkg_apis_storage_v1_GitEnvironmentTemplate(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_storage_v1_SharedSecret(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "GitEnvironmentTemplate stores configuration of Git environment template source", + Description: "SharedSecret holds the secret information", Type: []string{"object"}, Properties: map[string]spec.Schema{ - "repository": { + "kind": { SchemaProps: spec.SchemaProps{ - Description: "Repository stores repository URL for Git environment spec source", - Default: "", + Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", Type: []string{"string"}, Format: "", }, }, - "revision": { + "apiVersion": { SchemaProps: spec.SchemaProps{ - Description: "Revision stores revision to checkout in repository", + Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", Type: []string{"string"}, Format: "", }, }, - "subpath": { + "metadata": { SchemaProps: spec.SchemaProps{ - Description: "SubPath stores subpath within Repositor where environment spec is", - Type: []string{"string"}, - Format: "", + Default: map[string]interface{}{}, + Ref: ref(metav1.ObjectMeta{}.OpenAPIModelName()), }, }, - "useProjectGitCredentials": { + "spec": { SchemaProps: spec.SchemaProps{ - Description: "UseProjectGitCredentials specifies if the project git credentials should be used instead of local ones for this environment", - Type: []string{"boolean"}, - Format: "", + Default: map[string]interface{}{}, + Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.SharedSecretSpec"), + }, + }, + "status": { + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.SharedSecretStatus"), }, }, }, - Required: []string{"repository"}, }, }, + Dependencies: []string{ + "github.com/devsy-org/api/pkg/apis/storage/v1.SharedSecretSpec", "github.com/devsy-org/api/pkg/apis/storage/v1.SharedSecretStatus", metav1.ObjectMeta{}.OpenAPIModelName()}, } } -func schema_pkg_apis_storage_v1_GitProjectCredentials(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_storage_v1_SharedSecretList(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Type: []string{"object"}, + Description: "SharedSecretList contains a list of SharedSecret.", + Type: []string{"object"}, Properties: map[string]spec.Schema{ - "token": { + "kind": { SchemaProps: spec.SchemaProps{ - Description: "Token defines the credentials to use for authentication, this is a base64 encoded string.", + Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", Type: []string{"string"}, Format: "", }, }, - "tokenSecretRef": { + "apiVersion": { SchemaProps: spec.SchemaProps{ - Description: "TokenSecretRef defines the project secret to use as credentials for authentication. Will be used if `Token` is not provided.", - Ref: ref(corev1.SecretKeySelector{}.OpenAPIModelName()), + Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + Type: []string{"string"}, + Format: "", }, }, - }, - }, - }, - Dependencies: []string{ - corev1.SecretKeySelector{}.OpenAPIModelName()}, - } -} - -func schema_pkg_apis_storage_v1_GitProjectSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { - return common.OpenAPIDefinition{ - Schema: spec.Schema{ - SchemaProps: spec.SchemaProps{ - Type: []string{"object"}, - Properties: map[string]spec.Schema{ - "http": { + "metadata": { SchemaProps: spec.SchemaProps{ - Description: "HTTP defines additional http related settings like credentials, to be specified as base64 encoded strings.", - Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.GitProjectCredentials"), + Default: map[string]interface{}{}, + Ref: ref(metav1.ListMeta{}.OpenAPIModelName()), }, }, - "ssh": { + "items": { SchemaProps: spec.SchemaProps{ - Description: "SSH defines additional ssh related settings like private keys, to be specified as base64 encoded strings.", - Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.GitProjectCredentials"), + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.SharedSecret"), + }, + }, + }, }, }, }, + Required: []string{"items"}, }, }, Dependencies: []string{ - "github.com/devsy-org/api/pkg/apis/storage/v1.GitProjectCredentials"}, + "github.com/devsy-org/api/pkg/apis/storage/v1.SharedSecret", metav1.ListMeta{}.OpenAPIModelName()}, } } -func schema_pkg_apis_storage_v1_GroupResources(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_storage_v1_SharedSecretSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "GroupResources represents resource kinds in an API group.", + Description: "SharedSecretSpec holds the specification.", Type: []string{"object"}, Properties: map[string]spec.Schema{ - "group": { + "displayName": { SchemaProps: spec.SchemaProps{ - Description: "Group is the name of the API group that contains the resources. The empty string represents the core API group.", + Description: "DisplayName is the name that should be displayed in the UI", Type: []string{"string"}, Format: "", }, }, - "resources": { + "description": { SchemaProps: spec.SchemaProps{ - Description: "Resources is a list of resources this rule applies to.\n\nFor example: 'pods' matches pods. 'pods/log' matches the log subresource of pods. '*' matches all resources and their subresources. 'pods/*' matches all subresources of pods. '*/scale' matches all scale subresources.\n\nIf wildcard is present, the validation rule will ensure resources do not overlap with each other.\n\nAn empty list implies all resources and subresources in this API groups apply.", - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ + Description: "Description describes a shared secret", + Type: []string{"string"}, + Format: "", + }, + }, + "owner": { + SchemaProps: spec.SchemaProps{ + Description: "Owner holds the owner of this object", + Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.UserOrTeam"), + }, + }, + "data": { + SchemaProps: spec.SchemaProps{ + Description: "Data contains the secret data. Each key must consist of alphanumeric characters, '-', '_' or '.'. The serialized form of the secret data is a base64 encoded string, representing the arbitrary (possibly non-string) data value here. Described in https://tools.ietf.org/html/rfc4648#section-4", + Type: []string{"object"}, + AdditionalProperties: &spec.SchemaOrBool{ + Allows: true, Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ - Default: "", - Type: []string{"string"}, - Format: "", + Type: []string{"string"}, + Format: "byte", }, }, }, }, }, - "resourceNames": { + "access": { SchemaProps: spec.SchemaProps{ - Description: "ResourceNames is a list of resource instance names that the policy matches. Using this field requires Resources to be specified. An empty list implies that every instance of the resource is matched.", + Description: "Access holds the access rights for users and teams which will be transformed to Roles and RoleBindings", Type: []string{"array"}, Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ - Default: "", - Type: []string{"string"}, - Format: "", + Default: map[string]interface{}{}, + Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.Access"), }, }, }, @@ -28414,293 +28407,191 @@ func schema_pkg_apis_storage_v1_GroupResources(ref common.ReferenceCallback) com }, }, }, + Dependencies: []string{ + "github.com/devsy-org/api/pkg/apis/storage/v1.Access", "github.com/devsy-org/api/pkg/apis/storage/v1.UserOrTeam"}, } } -func schema_pkg_apis_storage_v1_HelmChart(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_storage_v1_SharedSecretStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Type: []string{"object"}, + Description: "SharedSecretStatus holds the status.", + Type: []string{"object"}, Properties: map[string]spec.Schema{ - "metadata": { - SchemaProps: spec.SchemaProps{ - Description: "Metadata provides information about a chart", - Default: map[string]interface{}{}, - Ref: ref(v1.Metadata{}.OpenAPIModelName()), - }, - }, - "versions": { + "conditions": { SchemaProps: spec.SchemaProps{ - Description: "Versions holds all chart versions", + Description: "Conditions holds several conditions the project might be in", Type: []string{"array"}, Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ - Default: "", - Type: []string{"string"}, - Format: "", + Default: map[string]interface{}{}, + Ref: ref("github.com/devsy-org/agentapi/pkg/apis/devsy/storage/v1.Condition"), }, }, }, }, }, - "repository": { - SchemaProps: spec.SchemaProps{ - Description: "Repository is the repository name of this chart", - Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.HelmChartRepository"), - }, - }, }, }, }, Dependencies: []string{ - v1.Metadata{}.OpenAPIModelName(), "github.com/devsy-org/api/pkg/apis/storage/v1.HelmChartRepository"}, + "github.com/devsy-org/agentapi/pkg/apis/devsy/storage/v1.Condition"}, } } -func schema_pkg_apis_storage_v1_HelmChartRepository(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_storage_v1_SpaceInstance(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Type: []string{"object"}, + Description: "SpaceInstance", + Type: []string{"object"}, Properties: map[string]spec.Schema{ - "name": { + "kind": { SchemaProps: spec.SchemaProps{ - Description: "Name is the name of the repository", + Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", Type: []string{"string"}, Format: "", }, }, - "url": { + "apiVersion": { SchemaProps: spec.SchemaProps{ - Description: "URL is the repository url", + Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", Type: []string{"string"}, Format: "", }, }, - "username": { + "metadata": { SchemaProps: spec.SchemaProps{ - Description: "Username of the repository", - Type: []string{"string"}, - Format: "", + Default: map[string]interface{}{}, + Ref: ref(metav1.ObjectMeta{}.OpenAPIModelName()), }, }, - "password": { + "spec": { SchemaProps: spec.SchemaProps{ - Description: "Password of the repository", - Type: []string{"string"}, - Format: "", + Default: map[string]interface{}{}, + Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.SpaceInstanceSpec"), }, }, - "insecure": { + "status": { SchemaProps: spec.SchemaProps{ - Description: "Insecure specifies if the chart should be retrieved without TLS verification", - Type: []string{"boolean"}, - Format: "", + Default: map[string]interface{}{}, + Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.SpaceInstanceStatus"), }, }, }, }, }, + Dependencies: []string{ + "github.com/devsy-org/api/pkg/apis/storage/v1.SpaceInstanceSpec", "github.com/devsy-org/api/pkg/apis/storage/v1.SpaceInstanceStatus", metav1.ObjectMeta{}.OpenAPIModelName()}, } } -func schema_pkg_apis_storage_v1_HelmConfiguration(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_storage_v1_SpaceInstanceList(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "HelmConfiguration holds the helm configuration", + Description: "SpaceInstanceList contains a list of SpaceInstance objects.", Type: []string{"object"}, Properties: map[string]spec.Schema{ - "name": { - SchemaProps: spec.SchemaProps{ - Description: "Name of the chart to deploy", - Default: "", - Type: []string{"string"}, - Format: "", - }, - }, - "values": { - SchemaProps: spec.SchemaProps{ - Description: "The additional helm values to use. Expected block string", - Type: []string{"string"}, - Format: "", - }, - }, - "version": { - SchemaProps: spec.SchemaProps{ - Description: "Version is the version of the chart to deploy", - Type: []string{"string"}, - Format: "", - }, - }, - "repoUrl": { + "kind": { SchemaProps: spec.SchemaProps{ - Description: "The repo url to use", + Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", Type: []string{"string"}, Format: "", }, }, - "username": { + "apiVersion": { SchemaProps: spec.SchemaProps{ - Description: "The username to use for the selected repository", + Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", Type: []string{"string"}, Format: "", }, }, - "password": { + "metadata": { SchemaProps: spec.SchemaProps{ - Description: "The password to use for the selected repository", - Type: []string{"string"}, - Format: "", + Default: map[string]interface{}{}, + Ref: ref(metav1.ListMeta{}.OpenAPIModelName()), }, }, - "insecure": { + "items": { SchemaProps: spec.SchemaProps{ - Description: "Determines if the remote location uses an insecure TLS certificate.", - Type: []string{"boolean"}, - Format: "", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.SpaceInstance"), + }, + }, + }, }, }, }, - Required: []string{"name"}, + Required: []string{"items"}, }, }, + Dependencies: []string{ + "github.com/devsy-org/api/pkg/apis/storage/v1.SpaceInstance", metav1.ListMeta{}.OpenAPIModelName()}, } } -func schema_pkg_apis_storage_v1_HelmTask(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_storage_v1_SpaceInstanceSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ Type: []string{"object"}, Properties: map[string]spec.Schema{ - "release": { - SchemaProps: spec.SchemaProps{ - Description: "Release holds the release information", - Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.HelmTaskRelease"), - }, - }, - "type": { - SchemaProps: spec.SchemaProps{ - Description: "Type is the task type. Defaults to Upgrade", - Type: []string{"string"}, - Format: "", - }, - }, - "rollbackRevision": { + "displayName": { SchemaProps: spec.SchemaProps{ - Description: "RollbackRevision is the revision to rollback to", + Description: "DisplayName is the name that should be displayed in the UI", Type: []string{"string"}, Format: "", }, }, - }, - }, - }, - Dependencies: []string{ - "github.com/devsy-org/api/pkg/apis/storage/v1.HelmTaskRelease"}, - } -} - -func schema_pkg_apis_storage_v1_HelmTaskRelease(ref common.ReferenceCallback) common.OpenAPIDefinition { - return common.OpenAPIDefinition{ - Schema: spec.Schema{ - SchemaProps: spec.SchemaProps{ - Type: []string{"object"}, - Properties: map[string]spec.Schema{ - "name": { + "description": { SchemaProps: spec.SchemaProps{ - Description: "Name is the name of the release", + Description: "Description describes a space instance", Type: []string{"string"}, Format: "", }, }, - "namespace": { + "owner": { SchemaProps: spec.SchemaProps{ - Description: "Namespace of the release, if empty will use the target namespace", - Type: []string{"string"}, - Format: "", + Description: "Owner holds the owner of this object", + Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.UserOrTeam"), }, }, - "config": { + "templateRef": { SchemaProps: spec.SchemaProps{ - Description: "Config is the helm config to use to deploy the release", - Default: map[string]interface{}{}, - Ref: ref(v1.HelmReleaseConfig{}.OpenAPIModelName()), + Description: "TemplateRef holds the space template reference", + Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.TemplateRef"), }, }, - "labels": { + "template": { SchemaProps: spec.SchemaProps{ - Description: "Labels are additional labels for the helm release.", - Type: []string{"object"}, - AdditionalProperties: &spec.SchemaOrBool{ - Allows: true, - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: "", - Type: []string{"string"}, - Format: "", - }, - }, - }, + Description: "Template is the inline template to use for space creation. This is mutually exclusive with templateRef.", + Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.SpaceTemplateDefinition"), }, }, - }, - }, - }, - Dependencies: []string{ - v1.HelmReleaseConfig{}.OpenAPIModelName()}, - } -} - -func schema_pkg_apis_storage_v1_ImportVirtualClustersSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { - return common.OpenAPIDefinition{ - Schema: spec.Schema{ - SchemaProps: spec.SchemaProps{ - Type: []string{"object"}, - Properties: map[string]spec.Schema{ - "roleMapping": { + "clusterRef": { SchemaProps: spec.SchemaProps{ - Description: "RoleMapping indicates an optional role mapping from a rancher project role to a rancher cluster role. Map to an empty role to exclude users and groups with that role from being synced.", - Type: []string{"object"}, - AdditionalProperties: &spec.SchemaOrBool{ - Allows: true, - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: "", - Type: []string{"string"}, - Format: "", - }, - }, - }, + Description: "ClusterRef is the reference to the connected cluster holding this space", + Default: map[string]interface{}{}, + Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.ClusterRef"), }, }, - }, - }, - }, - } -} - -func schema_pkg_apis_storage_v1_InstanceAccess(ref common.ReferenceCallback) common.OpenAPIDefinition { - return common.OpenAPIDefinition{ - Schema: spec.Schema{ - SchemaProps: spec.SchemaProps{ - Type: []string{"object"}, - Properties: map[string]spec.Schema{ - "defaultClusterRole": { + "parameters": { SchemaProps: spec.SchemaProps{ - Description: "Specifies which cluster role should get applied to users or teams that do not match a rule below.", + Description: "Parameters are values to pass to the template. The values should be encoded as YAML string where each parameter is represented as a top-level field key.", Type: []string{"string"}, Format: "", }, }, - "rules": { + "extraAccessRules": { SchemaProps: spec.SchemaProps{ - Description: "Rules defines which users and teams should have which access to the virtual cluster. If no rule matches an authenticated incoming user, the user will get cluster admin access.", + Description: "ExtraAccessRules defines extra rules which users and teams should have which access to the virtual cluster.", Type: []string{"array"}, Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ @@ -28712,499 +28603,490 @@ func schema_pkg_apis_storage_v1_InstanceAccess(ref common.ReferenceCallback) com }, }, }, - }, - }, - }, - Dependencies: []string{ - "github.com/devsy-org/api/pkg/apis/storage/v1.InstanceAccessRule"}, - } -} - -func schema_pkg_apis_storage_v1_InstanceAccessRule(ref common.ReferenceCallback) common.OpenAPIDefinition { - return common.OpenAPIDefinition{ - Schema: spec.Schema{ - SchemaProps: spec.SchemaProps{ - Type: []string{"object"}, - Properties: map[string]spec.Schema{ - "users": { - SchemaProps: spec.SchemaProps{ - Description: "Users this rule matches. * means all users.", - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: "", - Type: []string{"string"}, - Format: "", - }, - }, - }, - }, - }, - "teams": { + "access": { SchemaProps: spec.SchemaProps{ - Description: "Teams that this rule matches.", + Description: "Access holds the access rights for users and teams", Type: []string{"array"}, Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ - Default: "", - Type: []string{"string"}, - Format: "", + Default: map[string]interface{}{}, + Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.Access"), }, }, }, }, }, - "clusterRole": { - SchemaProps: spec.SchemaProps{ - Description: "ClusterRole is the cluster role that should be assigned to the", - Type: []string{"string"}, - Format: "", - }, - }, }, }, }, + Dependencies: []string{ + "github.com/devsy-org/api/pkg/apis/storage/v1.Access", "github.com/devsy-org/api/pkg/apis/storage/v1.ClusterRef", "github.com/devsy-org/api/pkg/apis/storage/v1.InstanceAccessRule", "github.com/devsy-org/api/pkg/apis/storage/v1.SpaceTemplateDefinition", "github.com/devsy-org/api/pkg/apis/storage/v1.TemplateRef", "github.com/devsy-org/api/pkg/apis/storage/v1.UserOrTeam"}, } } -func schema_pkg_apis_storage_v1_InstanceDeployedAppStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_storage_v1_SpaceInstanceStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ Type: []string{"object"}, Properties: map[string]spec.Schema{ - "name": { + "phase": { SchemaProps: spec.SchemaProps{ - Description: "Name of the app that should get deployed", + Description: "Phase describes the current phase the space instance is in", Type: []string{"string"}, Format: "", }, }, - "namespace": { + "reason": { SchemaProps: spec.SchemaProps{ - Description: "Namespace specifies in which target namespace the app should get deployed in. Only used for virtual cluster apps.", + Description: "Reason describes the reason in machine-readable form", Type: []string{"string"}, Format: "", }, }, - "releaseName": { + "message": { SchemaProps: spec.SchemaProps{ - Description: "ReleaseName of the target app", + Description: "Message describes the reason in human-readable form", Type: []string{"string"}, Format: "", }, }, - "version": { + "conditions": { SchemaProps: spec.SchemaProps{ - Description: "Version of the app that should get deployed", - Type: []string{"string"}, - Format: "", + Description: "Conditions holds several conditions the virtual cluster might be in", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("github.com/devsy-org/agentapi/pkg/apis/devsy/storage/v1.Condition"), + }, + }, + }, }, }, - "phase": { + "spaceObjects": { SchemaProps: spec.SchemaProps{ - Description: "Phase describes the current phase the app deployment is in", - Type: []string{"string"}, - Format: "", + Description: "SpaceObjects are the objects that were applied within the virtual cluster space", + Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.ObjectsStatus"), }, }, - "reason": { + "space": { SchemaProps: spec.SchemaProps{ - Description: "Reason describes the reason in machine-readable form", - Type: []string{"string"}, - Format: "", + Description: "Space is the template rendered with all the parameters", + Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.SpaceTemplateDefinition"), }, }, - "message": { + "ignoreReconciliation": { SchemaProps: spec.SchemaProps{ - Description: "Message describes the reason in human-readable form", - Type: []string{"string"}, + Description: "IgnoreReconciliation tells the controller to ignore reconciliation for this instance -- this is primarily used when migrating virtual cluster instances from project to project; this prevents a situation where there are two virtual cluster instances representing the same virtual cluster which could cause issues with concurrent reconciliations of the same object. Once the virtual cluster instance has been cloned and placed into the new project, this (the \"old\") virtual cluster instance can safely be deleted.", + Type: []string{"boolean"}, Format: "", }, }, }, }, }, + Dependencies: []string{ + "github.com/devsy-org/agentapi/pkg/apis/devsy/storage/v1.Condition", "github.com/devsy-org/api/pkg/apis/storage/v1.ObjectsStatus", "github.com/devsy-org/api/pkg/apis/storage/v1.SpaceTemplateDefinition"}, } } -func schema_pkg_apis_storage_v1_KindSecretRef(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_storage_v1_SpaceInstanceTemplateDefinition(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "KindSecretRef is the reference to a secret containing the user password", + Description: "SpaceInstanceTemplateDefinition holds the space instance template", Type: []string{"object"}, Properties: map[string]spec.Schema{ - "apiGroup": { + "metadata": { SchemaProps: spec.SchemaProps{ - Description: "APIGroup is the api group of the secret", + Description: "The space instance metadata", + Default: map[string]interface{}{}, + Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.TemplateMetadata"), + }, + }, + }, + }, + }, + Dependencies: []string{ + "github.com/devsy-org/api/pkg/apis/storage/v1.TemplateMetadata"}, + } +} + +func schema_pkg_apis_storage_v1_SpaceTemplate(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "SpaceTemplate holds the space template information", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "kind": { + SchemaProps: spec.SchemaProps{ + Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", Type: []string{"string"}, Format: "", }, }, - "kind": { + "apiVersion": { SchemaProps: spec.SchemaProps{ - Description: "Kind is the kind of the secret", + Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", Type: []string{"string"}, Format: "", }, }, - "secretName": { + "metadata": { SchemaProps: spec.SchemaProps{ - Type: []string{"string"}, - Format: "", + Default: map[string]interface{}{}, + Ref: ref(metav1.ObjectMeta{}.OpenAPIModelName()), }, }, - "secretNamespace": { + "spec": { SchemaProps: spec.SchemaProps{ - Type: []string{"string"}, - Format: "", + Default: map[string]interface{}{}, + Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.SpaceTemplateSpec"), }, }, - "key": { + "status": { SchemaProps: spec.SchemaProps{ - Type: []string{"string"}, - Format: "", + Default: map[string]interface{}{}, + Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.SpaceTemplateStatus"), }, }, }, }, }, + Dependencies: []string{ + "github.com/devsy-org/api/pkg/apis/storage/v1.SpaceTemplateSpec", "github.com/devsy-org/api/pkg/apis/storage/v1.SpaceTemplateStatus", metav1.ObjectMeta{}.OpenAPIModelName()}, } } -func schema_pkg_apis_storage_v1_KubeVirtClusterRef(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_storage_v1_SpaceTemplateDefinition(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ Type: []string{"object"}, Properties: map[string]spec.Schema{ - "cluster": { + "metadata": { SchemaProps: spec.SchemaProps{ - Description: "Cluster is the connected cluster the VMs will be created in", - Default: "", - Type: []string{"string"}, - Format: "", + Description: "The space metadata", + Default: map[string]interface{}{}, + Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.TemplateMetadata"), }, }, - "namespace": { + "instanceTemplate": { SchemaProps: spec.SchemaProps{ - Description: "Namespace is the namespace inside the connected cluster holding VMs", - Default: "", - Type: []string{"string"}, - Format: "", + Description: "InstanceTemplate holds the space instance template", + Default: map[string]interface{}{}, + Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.SpaceInstanceTemplateDefinition"), }, }, - }, - Required: []string{"cluster", "namespace"}, - }, - }, - } -} - -func schema_pkg_apis_storage_v1_KubeVirtNodeTypeSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { - return common.OpenAPIDefinition{ - Schema: spec.Schema{ - SchemaProps: spec.SchemaProps{ - Description: "KubeVirtNodeTypeSpec defines single NodeType spec for KubeVirt provider type.", - Type: []string{"object"}, - Properties: map[string]spec.Schema{ - "providerRef": { + "objects": { SchemaProps: spec.SchemaProps{ - Description: "ProviderRef is the node provider to use for this node type.", + Description: "Objects are Kubernetes style yamls that should get deployed into the virtual cluster", Type: []string{"string"}, Format: "", }, }, - "properties": { + "charts": { SchemaProps: spec.SchemaProps{ - Description: "Properties returns a flexible set of properties that may be selected for scheduling.", - Type: []string{"object"}, - AdditionalProperties: &spec.SchemaOrBool{ - Allows: true, + Description: "Charts are helm charts that should get deployed", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ - Default: "", - Type: []string{"string"}, - Format: "", + Default: map[string]interface{}{}, + Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.TemplateHelmChart"), }, }, }, }, }, - "resources": { + "apps": { SchemaProps: spec.SchemaProps{ - Description: "Resources lists the full resources for a single node.", - Type: []string{"object"}, - AdditionalProperties: &spec.SchemaOrBool{ - Allows: true, + Description: "Apps specifies the apps that should get deployed by this template", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ - Ref: ref("k8s.io/apimachinery/pkg/api/resource.Quantity"), + Default: map[string]interface{}{}, + Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.AppReference"), }, }, }, }, }, - "overhead": { - SchemaProps: spec.SchemaProps{ - Description: "Overhead defines the resource overhead for this node type.", - Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.NodeTypeOverhead"), - }, - }, - "cost": { + "access": { SchemaProps: spec.SchemaProps{ - Description: "Cost is the instance cost. The higher the cost, the less likely it is to be selected. If empty, cost is automatically calculated from the resources specified.", - Type: []string{"integer"}, - Format: "int64", + Description: "The space access", + Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.InstanceAccess"), }, }, - "displayName": { + }, + }, + }, + Dependencies: []string{ + "github.com/devsy-org/api/pkg/apis/storage/v1.AppReference", "github.com/devsy-org/api/pkg/apis/storage/v1.InstanceAccess", "github.com/devsy-org/api/pkg/apis/storage/v1.SpaceInstanceTemplateDefinition", "github.com/devsy-org/api/pkg/apis/storage/v1.TemplateHelmChart", "github.com/devsy-org/api/pkg/apis/storage/v1.TemplateMetadata"}, + } +} + +func schema_pkg_apis_storage_v1_SpaceTemplateList(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "SpaceTemplateList contains a list of SpaceTemplate.", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "kind": { SchemaProps: spec.SchemaProps{ - Description: "DisplayName is the name that should be displayed in the UI", + Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", Type: []string{"string"}, Format: "", }, }, - "name": { + "apiVersion": { SchemaProps: spec.SchemaProps{ - Description: "Name is the name of this node type.", - Default: "", + Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", Type: []string{"string"}, Format: "", }, }, "metadata": { SchemaProps: spec.SchemaProps{ - Description: "Metadata holds metadata to add to this managed NodeType.", - Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.ManagedNodeTypeObjectMeta"), - }, - }, - "virtualMachineTemplate": { - SchemaProps: spec.SchemaProps{ - Description: "VirtualMachineTemplate is a full KubeVirt VirtualMachine template to use for this NodeType. This is mutually exclusive with MergeVirtualMachineTemplate", - Ref: ref("k8s.io/apimachinery/pkg/runtime.RawExtension"), - }, - }, - "mergeVirtualMachineTemplate": { - SchemaProps: spec.SchemaProps{ - Description: "MergeVirtualMachineTemplate will be merged into base VirtualMachine template for this NodeProvider. This allows overwriting of specific fields from top level template by individual NodeTypes This is mutually exclusive with VirtualMachineTemplate", - Ref: ref("k8s.io/apimachinery/pkg/runtime.RawExtension"), + Default: map[string]interface{}{}, + Ref: ref(metav1.ListMeta{}.OpenAPIModelName()), }, }, - "maxCapacity": { + "items": { SchemaProps: spec.SchemaProps{ - Description: "MaxCapacity is the maximum number of nodes that can be created for this NodeType.", - Type: []string{"integer"}, - Format: "int32", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.SpaceTemplate"), + }, + }, + }, }, }, }, - Required: []string{"name"}, + Required: []string{"items"}, }, }, Dependencies: []string{ - "github.com/devsy-org/api/pkg/apis/storage/v1.ManagedNodeTypeObjectMeta", "github.com/devsy-org/api/pkg/apis/storage/v1.NodeTypeOverhead", "k8s.io/apimachinery/pkg/api/resource.Quantity", "k8s.io/apimachinery/pkg/runtime.RawExtension"}, + "github.com/devsy-org/api/pkg/apis/storage/v1.SpaceTemplate", metav1.ListMeta{}.OpenAPIModelName()}, } } -func schema_pkg_apis_storage_v1_LocalClusterAccessSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_storage_v1_SpaceTemplateSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Type: []string{"object"}, + Description: "SpaceTemplateSpec holds the specification.", + Type: []string{"object"}, Properties: map[string]spec.Schema{ "displayName": { SchemaProps: spec.SchemaProps{ - Description: "DisplayName is the name that should be shown in the UI", + Description: "DisplayName is the name that is shown in the UI", Type: []string{"string"}, Format: "", }, }, "description": { SchemaProps: spec.SchemaProps{ - Description: "Description is the description of this object in human-readable text.", + Description: "Description describes the space template", Type: []string{"string"}, Format: "", }, }, - "users": { + "owner": { SchemaProps: spec.SchemaProps{ - Description: "Users are the users affected by this cluster access object", + Description: "Owner holds the owner of this object", + Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.UserOrTeam"), + }, + }, + "template": { + SchemaProps: spec.SchemaProps{ + Description: "Template holds the space template", + Default: map[string]interface{}{}, + Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.SpaceTemplateDefinition"), + }, + }, + "parameters": { + SchemaProps: spec.SchemaProps{ + Description: "Parameters define additional app parameters that will set helm values", Type: []string{"array"}, Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.UserOrTeam"), + Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.AppParameter"), }, }, }, }, }, - "teams": { + "versions": { SchemaProps: spec.SchemaProps{ - Description: "Teams are the teams affected by this cluster access object", + Description: "Versions are different space template versions that can be referenced as well", Type: []string{"array"}, Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ - Default: "", - Type: []string{"string"}, - Format: "", - }, + Default: map[string]interface{}{}, + Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.SpaceTemplateVersion"), + }, }, }, }, }, - "clusterRoles": { + "access": { SchemaProps: spec.SchemaProps{ - Description: "ClusterRoles define the cluster roles that the users should have assigned in the cluster.", + Description: "Access holds the access rights for users and teams", Type: []string{"array"}, Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.ClusterRoleRef"), + Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.Access"), }, }, }, }, }, - "priority": { - SchemaProps: spec.SchemaProps{ - Description: "Priority is a unique value that specifies the priority of this cluster access for the space constraints and quota. A higher priority means the cluster access object will override the space constraints of lower priority cluster access objects", - Type: []string{"integer"}, - Format: "int32", - }, - }, }, }, }, Dependencies: []string{ - "github.com/devsy-org/api/pkg/apis/storage/v1.ClusterRoleRef", "github.com/devsy-org/api/pkg/apis/storage/v1.UserOrTeam"}, + "github.com/devsy-org/api/pkg/apis/storage/v1.Access", "github.com/devsy-org/api/pkg/apis/storage/v1.AppParameter", "github.com/devsy-org/api/pkg/apis/storage/v1.SpaceTemplateDefinition", "github.com/devsy-org/api/pkg/apis/storage/v1.SpaceTemplateVersion", "github.com/devsy-org/api/pkg/apis/storage/v1.UserOrTeam"}, } } -func schema_pkg_apis_storage_v1_LocalClusterAccessTemplate(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_storage_v1_SpaceTemplateStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "SpaceTemplateStatus holds the status.", + Type: []string{"object"}, + }, + }, + } +} + +func schema_pkg_apis_storage_v1_SpaceTemplateVersion(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ Type: []string{"object"}, Properties: map[string]spec.Schema{ - "metadata": { + "template": { SchemaProps: spec.SchemaProps{ - Description: "Metadata is the metadata of the cluster access object", + Description: "Template holds the space template", Default: map[string]interface{}{}, - Ref: ref(metav1.ObjectMeta{}.OpenAPIModelName()), + Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.SpaceTemplateDefinition"), }, }, - "spec": { + "parameters": { SchemaProps: spec.SchemaProps{ - Description: "LocalClusterAccessSpec holds the spec of the cluster access in the cluster", - Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.LocalClusterAccessSpec"), + Description: "Parameters define additional app parameters that will set helm values", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.AppParameter"), + }, + }, + }, + }, + }, + "version": { + SchemaProps: spec.SchemaProps{ + Description: "Version is the version. Needs to be in X.X.X format.", + Type: []string{"string"}, + Format: "", }, }, }, }, }, Dependencies: []string{ - "github.com/devsy-org/api/pkg/apis/storage/v1.LocalClusterAccessSpec", metav1.ObjectMeta{}.OpenAPIModelName()}, + "github.com/devsy-org/api/pkg/apis/storage/v1.AppParameter", "github.com/devsy-org/api/pkg/apis/storage/v1.SpaceTemplateDefinition"}, } } -func schema_pkg_apis_storage_v1_LocalClusterRoleTemplate(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_storage_v1_Storage(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ Type: []string{"object"}, Properties: map[string]spec.Schema{ - "metadata": { + "storageClass": { SchemaProps: spec.SchemaProps{ - Description: "Metadata is the metadata of the cluster role template object", - Default: map[string]interface{}{}, - Ref: ref(metav1.ObjectMeta{}.OpenAPIModelName()), + Description: "StorageClass the storage class to use when provisioning the metrics backend's persistent volume If set to \"-\" or \"\" dynamic provisioning is disabled If set to undefined or null (the default), the cluster's default storage class is used for provisioning", + Type: []string{"string"}, + Format: "", }, }, - "spec": { + "size": { SchemaProps: spec.SchemaProps{ - Description: "LocalClusterRoleTemplateSpec holds the spec of the cluster role template in the cluster", - Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.LocalClusterRoleTemplateSpec"), + Description: "Size the size of the metrics backend's persistent volume", + Type: []string{"string"}, + Format: "", }, }, }, }, }, - Dependencies: []string{ - "github.com/devsy-org/api/pkg/apis/storage/v1.LocalClusterRoleTemplateSpec", metav1.ObjectMeta{}.OpenAPIModelName()}, } } -func schema_pkg_apis_storage_v1_LocalClusterRoleTemplateSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_storage_v1_StreamContainer(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ Type: []string{"object"}, Properties: map[string]spec.Schema{ - "displayName": { + "selector": { SchemaProps: spec.SchemaProps{ - Description: "DisplayName is the name that should be shown in the UI", - Type: []string{"string"}, - Format: "", + Description: "Label selector for pods. The newest matching pod will be used to stream logs from", + Default: map[string]interface{}{}, + Ref: ref(metav1.LabelSelector{}.OpenAPIModelName()), }, }, - "description": { + "container": { SchemaProps: spec.SchemaProps{ - Description: "Description is the description of this object in human-readable text.", + Description: "Container is the container name to use", Type: []string{"string"}, Format: "", }, }, - "clusterRoleTemplate": { - SchemaProps: spec.SchemaProps{ - Description: "ClusterRoleTemplate holds the cluster role template", - Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.ClusterRoleTemplateTemplate"), - }, - }, }, }, }, Dependencies: []string{ - "github.com/devsy-org/api/pkg/apis/storage/v1.ClusterRoleTemplateTemplate"}, + metav1.LabelSelector{}.OpenAPIModelName()}, } } -func schema_pkg_apis_storage_v1_ManagedNodeTypeObjectMeta(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_storage_v1_SyncMembersSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ Type: []string{"object"}, Properties: map[string]spec.Schema{ - "labels": { + "enabled": { SchemaProps: spec.SchemaProps{ - Description: "Labels holds labels to add to this managed NodeType.", - Type: []string{"object"}, - AdditionalProperties: &spec.SchemaOrBool{ - Allows: true, - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: "", - Type: []string{"string"}, - Format: "", - }, - }, - }, + Description: "Enabled indicates whether to sync rancher project members to the devsy project.", + Type: []string{"boolean"}, + Format: "", }, }, - "annotations": { + "roleMapping": { SchemaProps: spec.SchemaProps{ - Description: "Annotations holds annotations to add to this managed NodeType.", + Description: "RoleMapping indicates an optional role mapping from a rancher role to a devsy role. Map to an empty role to exclude users and groups with that role from being synced.", Type: []string{"object"}, AdditionalProperties: &spec.SchemaOrBool{ Allows: true, @@ -29224,244 +29106,128 @@ func schema_pkg_apis_storage_v1_ManagedNodeTypeObjectMeta(ref common.ReferenceCa } } -func schema_pkg_apis_storage_v1_Member(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_storage_v1_Target(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ Type: []string{"object"}, Properties: map[string]spec.Schema{ - "kind": { - SchemaProps: spec.SchemaProps{ - Description: "Kind is the kind of the member. Currently either User or Team", - Type: []string{"string"}, - Format: "", - }, - }, - "group": { + "spaceInstance": { SchemaProps: spec.SchemaProps{ - Description: "Group of the member. Currently only supports storage.devsy.sh", - Type: []string{"string"}, - Format: "", + Description: "SpaceInstance defines a space instance as target", + Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.TargetInstance"), }, }, - "name": { + "virtualClusterInstance": { SchemaProps: spec.SchemaProps{ - Description: "Name of the member", - Type: []string{"string"}, - Format: "", + Description: "VirtualClusterInstance defines a virtual cluster instance as target", + Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.TargetInstance"), }, }, - "clusterRole": { + "cluster": { SchemaProps: spec.SchemaProps{ - Description: "ClusterRole is the assigned role for the above member", - Default: "", - Type: []string{"string"}, - Format: "", + Description: "Cluster defines a connected cluster as target", + Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.TargetCluster"), }, }, }, - Required: []string{"clusterRole"}, }, }, + Dependencies: []string{ + "github.com/devsy-org/api/pkg/apis/storage/v1.TargetCluster", "github.com/devsy-org/api/pkg/apis/storage/v1.TargetInstance"}, } } -func schema_pkg_apis_storage_v1_Metrics(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_storage_v1_TargetCluster(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ Type: []string{"object"}, Properties: map[string]spec.Schema{ - "replicas": { - SchemaProps: spec.SchemaProps{ - Description: "Replicas is the number of desired replicas.", - Type: []string{"integer"}, - Format: "int32", - }, - }, - "resources": { - SchemaProps: spec.SchemaProps{ - Description: "Resources are compute resource required by the metrics backend", - Ref: ref(corev1.ResourceRequirements{}.OpenAPIModelName()), - }, - }, - "retention": { + "cluster": { SchemaProps: spec.SchemaProps{ - Description: "Retention is the metrics data retention period. Default is 1y", + Description: "Cluster is the cluster where the task should get executed", Type: []string{"string"}, Format: "", }, }, - "storage": { + "namespace": { SchemaProps: spec.SchemaProps{ - Description: "Storage contains settings related to the metrics backend's persistent volume configuration", - Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.Storage"), + Description: "Namespace is the namespace where the task should get executed", + Type: []string{"string"}, + Format: "", }, }, }, }, }, - Dependencies: []string{ - "github.com/devsy-org/api/pkg/apis/storage/v1.Storage", corev1.ResourceRequirements{}.OpenAPIModelName()}, } } -func schema_pkg_apis_storage_v1_NamedNodeTypeSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_storage_v1_TargetInstance(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ Type: []string{"object"}, Properties: map[string]spec.Schema{ - "providerRef": { - SchemaProps: spec.SchemaProps{ - Description: "ProviderRef is the node provider to use for this node type.", - Type: []string{"string"}, - Format: "", - }, - }, - "properties": { - SchemaProps: spec.SchemaProps{ - Description: "Properties returns a flexible set of properties that may be selected for scheduling.", - Type: []string{"object"}, - AdditionalProperties: &spec.SchemaOrBool{ - Allows: true, - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: "", - Type: []string{"string"}, - Format: "", - }, - }, - }, - }, - }, - "resources": { - SchemaProps: spec.SchemaProps{ - Description: "Resources lists the full resources for a single node.", - Type: []string{"object"}, - AdditionalProperties: &spec.SchemaOrBool{ - Allows: true, - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Ref: ref("k8s.io/apimachinery/pkg/api/resource.Quantity"), - }, - }, - }, - }, - }, - "overhead": { - SchemaProps: spec.SchemaProps{ - Description: "Overhead defines the resource overhead for this node type.", - Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.NodeTypeOverhead"), - }, - }, - "cost": { - SchemaProps: spec.SchemaProps{ - Description: "Cost is the instance cost. The higher the cost, the less likely it is to be selected. If empty, cost is automatically calculated from the resources specified.", - Type: []string{"integer"}, - Format: "int64", - }, - }, - "displayName": { + "name": { SchemaProps: spec.SchemaProps{ - Description: "DisplayName is the name that should be displayed in the UI", + Description: "Name is the name of the instance", Type: []string{"string"}, Format: "", }, }, - "name": { + "project": { SchemaProps: spec.SchemaProps{ - Description: "Name is the name of this node type.", - Default: "", + Description: "Project where the instance is in", Type: []string{"string"}, Format: "", }, }, - "metadata": { - SchemaProps: spec.SchemaProps{ - Description: "Metadata holds metadata to add to this managed NodeType.", - Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.ManagedNodeTypeObjectMeta"), - }, - }, }, - Required: []string{"name"}, }, }, - Dependencies: []string{ - "github.com/devsy-org/api/pkg/apis/storage/v1.ManagedNodeTypeObjectMeta", "github.com/devsy-org/api/pkg/apis/storage/v1.NodeTypeOverhead", "k8s.io/apimachinery/pkg/api/resource.Quantity"}, } } -func schema_pkg_apis_storage_v1_NamespacePattern(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_storage_v1_TargetVirtualCluster(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ Type: []string{"object"}, Properties: map[string]spec.Schema{ - "space": { - SchemaProps: spec.SchemaProps{ - Description: "Space holds the namespace pattern to use for space instances", - Type: []string{"string"}, - Format: "", - }, - }, - "virtualCluster": { + "cluster": { SchemaProps: spec.SchemaProps{ - Description: "VirtualCluster holds the namespace pattern to use for virtual cluster instances", + Description: "Cluster is the cluster where the virtual cluster lies", Type: []string{"string"}, Format: "", }, }, - "devPodWorkspace": { + "namespace": { SchemaProps: spec.SchemaProps{ - Description: "DevPodWorkspace holds the namespace pattern to use for DevPod workspaces", + Description: "Namespace is the namespace where the virtual cluster is located", Type: []string{"string"}, Format: "", }, }, - }, - }, - }, - } -} - -func schema_pkg_apis_storage_v1_NamespacedRef(ref common.ReferenceCallback) common.OpenAPIDefinition { - return common.OpenAPIDefinition{ - Schema: spec.Schema{ - SchemaProps: spec.SchemaProps{ - Type: []string{"object"}, - Properties: map[string]spec.Schema{ "name": { SchemaProps: spec.SchemaProps{ - Description: "Name is the name of this resource", - Default: "", - Type: []string{"string"}, - Format: "", - }, - }, - "namespace": { - SchemaProps: spec.SchemaProps{ - Description: "Namespace is the namespace of this resource", - Default: "", + Description: "Name of the virtual cluster", Type: []string{"string"}, Format: "", }, }, }, - Required: []string{"name", "namespace"}, }, }, } } -func schema_pkg_apis_storage_v1_NetworkPeer(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_storage_v1_Task(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "NetworkPeer hols the information of network peers", - Type: []string{"object"}, + Type: []string{"object"}, Properties: map[string]spec.Schema{ "kind": { SchemaProps: spec.SchemaProps{ @@ -29486,28 +29252,54 @@ func schema_pkg_apis_storage_v1_NetworkPeer(ref common.ReferenceCallback) common "spec": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.NetworkPeerSpec"), + Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.TaskSpec"), }, }, "status": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.NetworkPeerStatus"), + Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.TaskStatus"), }, }, }, }, }, Dependencies: []string{ - "github.com/devsy-org/api/pkg/apis/storage/v1.NetworkPeerSpec", "github.com/devsy-org/api/pkg/apis/storage/v1.NetworkPeerStatus", metav1.ObjectMeta{}.OpenAPIModelName()}, + "github.com/devsy-org/api/pkg/apis/storage/v1.TaskSpec", "github.com/devsy-org/api/pkg/apis/storage/v1.TaskStatus", metav1.ObjectMeta{}.OpenAPIModelName()}, } } -func schema_pkg_apis_storage_v1_NetworkPeerList(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_storage_v1_TaskDefinition(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "appTask": { + SchemaProps: spec.SchemaProps{ + Description: "AppTask is an app task", + Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.AppTask"), + }, + }, + "helm": { + SchemaProps: spec.SchemaProps{ + Description: "HelmTask executes a helm command", + Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.HelmTask"), + }, + }, + }, + }, + }, + Dependencies: []string{ + "github.com/devsy-org/api/pkg/apis/storage/v1.AppTask", "github.com/devsy-org/api/pkg/apis/storage/v1.HelmTask"}, + } +} + +func schema_pkg_apis_storage_v1_TaskList(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "NetworkPeerList contains a list of NetworkPeers", + Description: "TaskList contains a list of Task.", Type: []string{"object"}, Properties: map[string]spec.Schema{ "kind": { @@ -29537,7 +29329,7 @@ func schema_pkg_apis_storage_v1_NetworkPeerList(ref common.ReferenceCallback) co Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.NetworkPeer"), + Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.Task"), }, }, }, @@ -29548,126 +29340,132 @@ func schema_pkg_apis_storage_v1_NetworkPeerList(ref common.ReferenceCallback) co }, }, Dependencies: []string{ - "github.com/devsy-org/api/pkg/apis/storage/v1.NetworkPeer", metav1.ListMeta{}.OpenAPIModelName()}, + "github.com/devsy-org/api/pkg/apis/storage/v1.Task", metav1.ListMeta{}.OpenAPIModelName()}, } } -func schema_pkg_apis_storage_v1_NetworkPeerSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_storage_v1_TaskSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ Type: []string{"object"}, Properties: map[string]spec.Schema{ - "discoKey": { - SchemaProps: spec.SchemaProps{ - Description: "DiscoKey is a key used for DERP discovery", - Type: []string{"string"}, - Format: "", - }, - }, - "machineKey": { - SchemaProps: spec.SchemaProps{ - Description: "MachineKey is used to identify a network peer", - Type: []string{"string"}, - Format: "", - }, - }, - "nodeKey": { + "displayName": { SchemaProps: spec.SchemaProps{ - Description: "NodeKey is used to identify a session", + Description: "DisplayName is the name that should be displayed in the UI", Type: []string{"string"}, Format: "", }, }, - "addresses": { + "access": { SchemaProps: spec.SchemaProps{ - Description: "Addresses is a list of IP addresses of this Node directly.", + Description: "Access holds the access rights for users and teams", Type: []string{"array"}, Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ - Default: "", - Type: []string{"string"}, - Format: "", + Default: map[string]interface{}{}, + Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.Access"), }, }, }, }, }, - "allowedIPs": { + "scope": { SchemaProps: spec.SchemaProps{ - Description: "AllowedIPs is a range of IP addresses to route to this node.", - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: "", - Type: []string{"string"}, - Format: "", - }, - }, - }, + Description: "Scope defines the scope of the access key.", + Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.AccessKeyScope"), }, }, - "endpoints": { + "owner": { SchemaProps: spec.SchemaProps{ - Description: "Endpoints is a list of IP+port (public via STUN, and local LANs) where this node can be reached.", - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: "", - Type: []string{"string"}, - Format: "", - }, - }, - }, + Description: "Owner holds the owner of this object", + Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.UserOrTeam"), + }, + }, + "target": { + SchemaProps: spec.SchemaProps{ + Description: "Target where this task should get executed", + Default: map[string]interface{}{}, + Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.Target"), + }, + }, + "task": { + SchemaProps: spec.SchemaProps{ + Description: "Task defines the task to execute", + Default: map[string]interface{}{}, + Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.TaskDefinition"), }, }, }, }, }, + Dependencies: []string{ + "github.com/devsy-org/api/pkg/apis/storage/v1.Access", "github.com/devsy-org/api/pkg/apis/storage/v1.AccessKeyScope", "github.com/devsy-org/api/pkg/apis/storage/v1.Target", "github.com/devsy-org/api/pkg/apis/storage/v1.TaskDefinition", "github.com/devsy-org/api/pkg/apis/storage/v1.UserOrTeam"}, } } -func schema_pkg_apis_storage_v1_NetworkPeerStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_storage_v1_TaskStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ Type: []string{"object"}, Properties: map[string]spec.Schema{ - "lastSeen": { + "started": { SchemaProps: spec.SchemaProps{ - Description: "LastSeen is when the network peer was last online. It is not updated when Online is true.", + Description: "Started determines if the task was started", + Type: []string{"boolean"}, + Format: "", + }, + }, + "conditions": { + SchemaProps: spec.SchemaProps{ + Description: "Conditions holds several conditions the virtual cluster might be in", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("github.com/devsy-org/agentapi/pkg/apis/devsy/storage/v1.Condition"), + }, + }, + }, + }, + }, + "podPhase": { + SchemaProps: spec.SchemaProps{ + Description: "PodPhase describes the phase this task is in\n\nPossible enum values:\n - `\"Failed\"` means that all containers in the pod have terminated, and at least one container has terminated in a failure (exited with a non-zero exit code or was stopped by the system).\n - `\"Pending\"` means the pod has been accepted by the system, but one or more of the containers has not been started. This includes time before being bound to a node, as well as time spent pulling images onto the host.\n - `\"Running\"` means the pod has been bound to a node and all of the containers have been started. At least one container is still running or is in the process of being restarted.\n - `\"Succeeded\"` means that all containers in the pod have voluntarily terminated with a container exit code of 0, and the system is not going to restart any of these containers.\n - `\"Unknown\"` means that for some reason the state of the pod could not be obtained, typically due to an error in communicating with the host of the pod. Deprecated: It isn't being set since 2015 (74da3b14b0c0f658b3bb8d2def5094686d0e9095)", Type: []string{"string"}, Format: "", + Enum: []interface{}{"Failed", "Pending", "Running", "Succeeded", "Unknown"}, }, }, - "homeDerpRegion": { + "observedGeneration": { SchemaProps: spec.SchemaProps{ - Description: "HomeDerpRegion is the currently preferred DERP region by the network peer", + Description: "ObservedGeneration is the latest generation observed by the controller.", Type: []string{"integer"}, - Format: "int32", + Format: "int64", }, }, - "online": { + "containerState": { SchemaProps: spec.SchemaProps{ - Description: "Online is whether the node is currently connected to the coordination server.", - Type: []string{"boolean"}, - Format: "", + Description: "DEPRECATED: This is not set anymore after migrating to runners ContainerState describes the container state of the task", + Ref: ref(corev1.ContainerStatus{}.OpenAPIModelName()), }, }, }, }, }, + Dependencies: []string{ + "github.com/devsy-org/agentapi/pkg/apis/devsy/storage/v1.Condition", corev1.ContainerStatus{}.OpenAPIModelName()}, } } -func schema_pkg_apis_storage_v1_NodeClaim(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_storage_v1_Team(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "NodeClaim holds the node claim for vCluster.", + Description: "User holds the user information", Type: []string{"object"}, Properties: map[string]spec.Schema{ "kind": { @@ -29693,28 +29491,28 @@ func schema_pkg_apis_storage_v1_NodeClaim(ref common.ReferenceCallback) common.O "spec": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.NodeClaimSpec"), + Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.TeamSpec"), }, }, "status": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.NodeClaimStatus"), + Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.TeamStatus"), }, }, }, }, }, Dependencies: []string{ - "github.com/devsy-org/api/pkg/apis/storage/v1.NodeClaimSpec", "github.com/devsy-org/api/pkg/apis/storage/v1.NodeClaimStatus", metav1.ObjectMeta{}.OpenAPIModelName()}, + "github.com/devsy-org/api/pkg/apis/storage/v1.TeamSpec", "github.com/devsy-org/api/pkg/apis/storage/v1.TeamStatus", metav1.ObjectMeta{}.OpenAPIModelName()}, } } -func schema_pkg_apis_storage_v1_NodeClaimList(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_storage_v1_TeamList(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "NodeClaimList contains a list of NodeClaim", + Description: "TeamList contains a list of Team.", Type: []string{"object"}, Properties: map[string]spec.Schema{ "kind": { @@ -29744,7 +29542,7 @@ func schema_pkg_apis_storage_v1_NodeClaimList(ref common.ReferenceCallback) comm Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.NodeClaim"), + Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.Team"), }, }, }, @@ -29755,51 +29553,48 @@ func schema_pkg_apis_storage_v1_NodeClaimList(ref common.ReferenceCallback) comm }, }, Dependencies: []string{ - "github.com/devsy-org/api/pkg/apis/storage/v1.NodeClaim", metav1.ListMeta{}.OpenAPIModelName()}, + "github.com/devsy-org/api/pkg/apis/storage/v1.Team", metav1.ListMeta{}.OpenAPIModelName()}, } } -func schema_pkg_apis_storage_v1_NodeClaimSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_storage_v1_TeamSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "NodeClaimSpec defines spec of node claim.", - Type: []string{"object"}, + Type: []string{"object"}, Properties: map[string]spec.Schema{ - "taints": { + "displayName": { SchemaProps: spec.SchemaProps{ - Description: "Taints will be applied to the NodeClaim's node.", - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref(corev1.Taint{}.OpenAPIModelName()), - }, - }, - }, + Description: "The display name shown in the UI", + Type: []string{"string"}, + Format: "", }, }, - "startupTaints": { + "description": { SchemaProps: spec.SchemaProps{ - Description: "StartupTaints are taints that are applied to nodes upon startup which are expected to be removed automatically within a short period of time, typically by a DaemonSet that tolerates the taint. These are commonly used by daemonsets to allow initialization and enforce startup ordering. StartupTaints are ignored for provisioning purposes in that pods are not required to tolerate a StartupTaint in order to have nodes provisioned for them.", - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref(corev1.Taint{}.OpenAPIModelName()), - }, - }, - }, + Description: "Description describes a cluster access object", + Type: []string{"string"}, + Format: "", }, }, - "kubeletArgs": { + "owner": { SchemaProps: spec.SchemaProps{ - Description: "KubeletArgs are additional arguments to pass to the kubelet.", - Type: []string{"object"}, - AdditionalProperties: &spec.SchemaOrBool{ - Allows: true, + Description: "Owner holds the owner of this object", + Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.UserOrTeam"), + }, + }, + "username": { + SchemaProps: spec.SchemaProps{ + Description: "The username of the team that will be used for identification and docker registry namespace", + Type: []string{"string"}, + Format: "", + }, + }, + "users": { + SchemaProps: spec.SchemaProps{ + Description: "The devsy users that belong to a team", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: "", @@ -29810,227 +29605,276 @@ func schema_pkg_apis_storage_v1_NodeClaimSpec(ref common.ReferenceCallback) comm }, }, }, - "desiredCapacity": { + "groups": { SchemaProps: spec.SchemaProps{ - Description: "DesiredCapacity specifies the resources requested by the NodeClaim.", - Type: []string{"object"}, - AdditionalProperties: &spec.SchemaOrBool{ - Allows: true, + Description: "The groups defined in a token that belong to a team", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ - Ref: ref("k8s.io/apimachinery/pkg/api/resource.Quantity"), + Default: "", + Type: []string{"string"}, + Format: "", }, }, }, }, }, - "requirements": { + "imagePullSecrets": { SchemaProps: spec.SchemaProps{ - Description: "Requirements are the requirements for the NodeClaim.", + Description: "ImagePullSecrets holds secret references to image pull secrets the team has access to.", Type: []string{"array"}, Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref(corev1.NodeSelectorRequirement{}.OpenAPIModelName()), + Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.KindSecretRef"), }, }, }, }, }, - "providerRef": { - SchemaProps: spec.SchemaProps{ - Description: "ProviderRef is the name of the NodeProvider that this NodeClaim is based on.", - Type: []string{"string"}, - Format: "", - }, - }, - "typeRef": { - SchemaProps: spec.SchemaProps{ - Description: "TypeRef is the full name of the NodeType that this NodeClaim is based on.", - Type: []string{"string"}, - Format: "", - }, - }, - "vClusterRef": { + "clusterRoles": { SchemaProps: spec.SchemaProps{ - Description: "DevsyRef references source vCluster. This is required.", - Default: "", - Type: []string{"string"}, - Format: "", + Description: "ClusterRoles define the cluster roles that the users should have assigned in the cluster.", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.ClusterRoleRef"), + }, + }, + }, }, }, - "controlPlane": { + "access": { SchemaProps: spec.SchemaProps{ - Description: "ControlPlane indicates if the node claim is for a control plane node.", - Type: []string{"boolean"}, - Format: "", + Description: "Access holds the access rights for users and teams", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.Access"), + }, + }, + }, }, }, }, - Required: []string{"vClusterRef"}, }, }, Dependencies: []string{ - corev1.NodeSelectorRequirement{}.OpenAPIModelName(), corev1.Taint{}.OpenAPIModelName(), "k8s.io/apimachinery/pkg/api/resource.Quantity"}, + "github.com/devsy-org/api/pkg/apis/storage/v1.Access", "github.com/devsy-org/api/pkg/apis/storage/v1.ClusterRoleRef", "github.com/devsy-org/api/pkg/apis/storage/v1.KindSecretRef", "github.com/devsy-org/api/pkg/apis/storage/v1.UserOrTeam"}, } } -func schema_pkg_apis_storage_v1_NodeClaimStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_storage_v1_TeamStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"object"}, + }, + }, + } +} + +func schema_pkg_apis_storage_v1_TemplateHelmChart(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ Type: []string{"object"}, Properties: map[string]spec.Schema{ - "phase": { + "name": { SchemaProps: spec.SchemaProps{ - Description: "Phase is the current lifecycle phase of the NodeClaim.", + Description: "Name is the chart name in the repository", Type: []string{"string"}, Format: "", }, }, - "reason": { + "version": { SchemaProps: spec.SchemaProps{ - Description: "Reason describes the reason in machine-readable form", + Description: "Version is the chart version in the repository", Type: []string{"string"}, Format: "", }, }, - "message": { + "repoURL": { SchemaProps: spec.SchemaProps{ - Description: "Message describes the reason in human-readable form", + Description: "RepoURL is the repo url where the chart can be found", Type: []string{"string"}, Format: "", }, }, - "conditions": { + "username": { SchemaProps: spec.SchemaProps{ - Description: "Conditions describe the current state of the platform NodeClaim.", - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref(storagev1.Condition{}.OpenAPIModelName()), - }, - }, - }, + Description: "The username that is required for this repository", + Type: []string{"string"}, + Format: "", }, }, - }, - }, - }, - Dependencies: []string{ - storagev1.Condition{}.OpenAPIModelName()}, - } -} - -func schema_pkg_apis_storage_v1_NodeEnvironment(ref common.ReferenceCallback) common.OpenAPIDefinition { - return common.OpenAPIDefinition{ - Schema: spec.Schema{ - SchemaProps: spec.SchemaProps{ - Description: "NodeEnvironment holds the node environment for vCluster.", - Type: []string{"object"}, - Properties: map[string]spec.Schema{ - "kind": { + "usernameRef": { SchemaProps: spec.SchemaProps{ - Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + Description: "The username that is required for this repository", + Ref: ref("github.com/devsy-org/agentapi/pkg/apis/devsy/cluster/v1.ChartSecretRef"), + }, + }, + "password": { + SchemaProps: spec.SchemaProps{ + Description: "The password that is required for this repository", Type: []string{"string"}, Format: "", }, }, - "apiVersion": { + "passwordRef": { SchemaProps: spec.SchemaProps{ - Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + Description: "The password that is required for this repository", + Ref: ref("github.com/devsy-org/agentapi/pkg/apis/devsy/cluster/v1.ChartSecretRef"), + }, + }, + "insecureSkipTlsVerify": { + SchemaProps: spec.SchemaProps{ + Description: "If tls certificate checks for the chart download should be skipped", + Type: []string{"boolean"}, + Format: "", + }, + }, + "releaseName": { + SchemaProps: spec.SchemaProps{ + Description: "ReleaseName is the preferred release name of the app", Type: []string{"string"}, Format: "", }, }, - "metadata": { + "releaseNamespace": { SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref(metav1.ObjectMeta{}.OpenAPIModelName()), + Description: "ReleaseNamespace is the preferred release namespace of the app", + Type: []string{"string"}, + Format: "", }, }, - "spec": { + "values": { SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.NodeEnvironmentSpec"), + Description: "Values are the values that should get passed to the chart", + Type: []string{"string"}, + Format: "", }, }, - "status": { + "wait": { SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.NodeEnvironmentStatus"), + Description: "Wait determines if Devsy should wait during deploy for the app to become ready", + Type: []string{"boolean"}, + Format: "", + }, + }, + "timeout": { + SchemaProps: spec.SchemaProps{ + Description: "Timeout is the time to wait for any individual Kubernetes operation (like Jobs for hooks) (default 5m0s)", + Type: []string{"string"}, + Format: "", }, }, }, }, }, Dependencies: []string{ - "github.com/devsy-org/api/pkg/apis/storage/v1.NodeEnvironmentSpec", "github.com/devsy-org/api/pkg/apis/storage/v1.NodeEnvironmentStatus", metav1.ObjectMeta{}.OpenAPIModelName()}, + "github.com/devsy-org/agentapi/pkg/apis/devsy/cluster/v1.ChartSecretRef"}, } } -func schema_pkg_apis_storage_v1_NodeEnvironmentList(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_storage_v1_TemplateMetadata(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "NodeEnvironmentList contains a list of NodeEnvironment", - Type: []string{"object"}, + Type: []string{"object"}, Properties: map[string]spec.Schema{ - "kind": { + "labels": { SchemaProps: spec.SchemaProps{ - Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", - Type: []string{"string"}, - Format: "", + Description: "Labels are labels on the object", + Type: []string{"object"}, + AdditionalProperties: &spec.SchemaOrBool{ + Allows: true, + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + }, }, }, - "apiVersion": { + "annotations": { SchemaProps: spec.SchemaProps{ - Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + Description: "Annotations are annotations on the object", + Type: []string{"object"}, + AdditionalProperties: &spec.SchemaOrBool{ + Allows: true, + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + }, + }, + }, + }, + }, + }, + } +} + +func schema_pkg_apis_storage_v1_TemplateRef(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "name": { + SchemaProps: spec.SchemaProps{ + Description: "Name holds the name of the template to reference.", Type: []string{"string"}, Format: "", }, }, - "metadata": { + "version": { SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref(metav1.ListMeta{}.OpenAPIModelName()), + Description: "Version holds the template version to use. Version is expected to be in semantic versioning format. Alternatively, you can also exchange major, minor or patch with an 'x' to tell Devsy to automatically select the latest major, minor or patch version.", + Type: []string{"string"}, + Format: "", }, }, - "items": { + "syncOnce": { SchemaProps: spec.SchemaProps{ - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.NodeEnvironment"), - }, - }, - }, + Description: "SyncOnce tells the controller to sync the instance once with the template. This is useful if you want to sync an instance after a template was changed. To automatically sync an instance with a template, use 'x.x.x' as version instead.", + Type: []string{"boolean"}, + Format: "", }, }, }, - Required: []string{"items"}, }, }, - Dependencies: []string{ - "github.com/devsy-org/api/pkg/apis/storage/v1.NodeEnvironment", metav1.ListMeta{}.OpenAPIModelName()}, } } -func schema_pkg_apis_storage_v1_NodeEnvironmentSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_storage_v1_TerraformNodeTypeSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "NodeEnvironmentSpec defines spec of node environment.", - Type: []string{"object"}, + Type: []string{"object"}, Properties: map[string]spec.Schema{ + "providerRef": { + SchemaProps: spec.SchemaProps{ + Description: "ProviderRef is the node provider to use for this node type.", + Type: []string{"string"}, + Format: "", + }, + }, "properties": { SchemaProps: spec.SchemaProps{ - Description: "Properties are the properties for the NodeEnvironment.", + Description: "Properties returns a flexible set of properties that may be selected for scheduling.", Type: []string{"object"}, AdditionalProperties: &spec.SchemaOrBool{ Allows: true, @@ -30044,216 +29888,233 @@ func schema_pkg_apis_storage_v1_NodeEnvironmentSpec(ref common.ReferenceCallback }, }, }, - "providerRef": { + "resources": { SchemaProps: spec.SchemaProps{ - Description: "ProviderRef is the name of the NodeProvider that this NodeEnvironment is based on.", - Default: "", + Description: "Resources lists the full resources for a single node.", + Type: []string{"object"}, + AdditionalProperties: &spec.SchemaOrBool{ + Allows: true, + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Ref: ref(resource.Quantity{}.OpenAPIModelName()), + }, + }, + }, + }, + }, + "overhead": { + SchemaProps: spec.SchemaProps{ + Description: "Overhead defines the resource overhead for this node type.", + Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.NodeTypeOverhead"), + }, + }, + "cost": { + SchemaProps: spec.SchemaProps{ + Description: "Cost is the instance cost. The higher the cost, the less likely it is to be selected. If empty, cost is automatically calculated from the resources specified.", + Type: []string{"integer"}, + Format: "int64", + }, + }, + "displayName": { + SchemaProps: spec.SchemaProps{ + Description: "DisplayName is the name that should be displayed in the UI", Type: []string{"string"}, Format: "", }, }, - "vClusterRef": { + "name": { SchemaProps: spec.SchemaProps{ - Description: "DevsyRef references source vCluster. This is required.", + Description: "Name is the name of this node type.", Default: "", Type: []string{"string"}, Format: "", }, }, + "metadata": { + SchemaProps: spec.SchemaProps{ + Description: "Metadata holds metadata to add to this managed NodeType.", + Default: map[string]interface{}{}, + Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.ManagedNodeTypeObjectMeta"), + }, + }, + "nodeTemplate": { + SchemaProps: spec.SchemaProps{ + Description: "NodeTemplate is the template to use for this node type.", + Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.TerraformTemplate"), + }, + }, + "maxCapacity": { + SchemaProps: spec.SchemaProps{ + Description: "MaxCapacity is the maximum number of nodes that can be created for this NodeType.", + Type: []string{"integer"}, + Format: "int32", + }, + }, }, - Required: []string{"providerRef", "vClusterRef"}, + Required: []string{"name"}, }, }, + Dependencies: []string{ + "github.com/devsy-org/api/pkg/apis/storage/v1.ManagedNodeTypeObjectMeta", "github.com/devsy-org/api/pkg/apis/storage/v1.NodeTypeOverhead", "github.com/devsy-org/api/pkg/apis/storage/v1.TerraformTemplate", resource.Quantity{}.OpenAPIModelName()}, } } -func schema_pkg_apis_storage_v1_NodeEnvironmentStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_storage_v1_TerraformTemplate(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ Type: []string{"object"}, Properties: map[string]spec.Schema{ - "phase": { + "inline": { SchemaProps: spec.SchemaProps{ - Description: "Phase is the current lifecycle phase of the NodeEnvironment.", + Description: "Inline is the inline template to use for this node type.", Type: []string{"string"}, Format: "", }, }, - "reason": { + "git": { SchemaProps: spec.SchemaProps{ - Description: "Reason describes the reason in machine-readable form", - Type: []string{"string"}, - Format: "", + Description: "Git is the git repository to use for this node type.", + Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.TerraformTemplateSourceGit"), }, }, - "message": { + "timeout": { SchemaProps: spec.SchemaProps{ - Description: "Message describes the reason in human-readable form", + Description: "Timeout is the timeout to use for the terraform operations. Defaults to 60m.", Type: []string{"string"}, Format: "", }, }, - "conditions": { - SchemaProps: spec.SchemaProps{ - Description: "Conditions describe the current state of the platform NodeClaim.", - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref(storagev1.Condition{}.OpenAPIModelName()), - }, - }, - }, - }, - }, }, }, }, Dependencies: []string{ - storagev1.Condition{}.OpenAPIModelName()}, + "github.com/devsy-org/api/pkg/apis/storage/v1.TerraformTemplateSourceGit"}, } } -func schema_pkg_apis_storage_v1_NodeProvider(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_storage_v1_TerraformTemplateSourceGit(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "NodeProvider holds the information of a node provider config. This resource defines various ways a node can be provisioned or configured.", - Type: []string{"object"}, + Type: []string{"object"}, Properties: map[string]spec.Schema{ - "kind": { + "repository": { SchemaProps: spec.SchemaProps{ - Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + Description: "Repository is the repository to clone", Type: []string{"string"}, Format: "", }, }, - "apiVersion": { + "branch": { SchemaProps: spec.SchemaProps{ - Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + Description: "Branch is the branch to use", Type: []string{"string"}, Format: "", }, }, - "metadata": { - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref(metav1.ObjectMeta{}.OpenAPIModelName()), - }, - }, - "spec": { + "commit": { SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.NodeProviderSpec"), + Description: "Commit is the commit SHA to checkout", + Type: []string{"string"}, + Format: "", }, }, - "status": { + "subPath": { SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.NodeProviderStatus"), + Description: "SubPath is the subpath in the repo to use", + Type: []string{"string"}, + Format: "", }, }, - }, - }, - }, - Dependencies: []string{ - "github.com/devsy-org/api/pkg/apis/storage/v1.NodeProviderSpec", "github.com/devsy-org/api/pkg/apis/storage/v1.NodeProviderStatus", metav1.ObjectMeta{}.OpenAPIModelName()}, - } -} - -func schema_pkg_apis_storage_v1_NodeProviderBCM(ref common.ReferenceCallback) common.OpenAPIDefinition { - return common.OpenAPIDefinition{ - Schema: spec.Schema{ - SchemaProps: spec.SchemaProps{ - Description: "NodeProviderBCMSpec defines the configuration for a BCM node provider.", - Type: []string{"object"}, - Properties: map[string]spec.Schema{ - "secretRef": { + "credentials": { SchemaProps: spec.SchemaProps{ - Description: "SecretRef is a reference to secret with keys for BCM auth.", - Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.NamespacedRef"), + Description: "Credentials is the reference to a secret containing the username and password for the git repository.", + Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.SecretRef"), }, }, - "endpoint": { + "fetchInterval": { SchemaProps: spec.SchemaProps{ - Description: "Endpoint is a address for head node.", - Default: "", + Description: "FetchInterval is the interval to use for refetching the git repository. Defaults to 5m. Refetching only checks for remote changes but does not do a complete repull.", Type: []string{"string"}, Format: "", }, }, - "nodeTypes": { + "extraEnv": { SchemaProps: spec.SchemaProps{ - Description: "NodeTypes define NodeTypes that should be automatically created for this provider.", + Description: "ExtraEnv is the extra environment variables to use for the clone", Type: []string{"array"}, Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.BCMNodeTypeSpec"), + Default: "", + Type: []string{"string"}, + Format: "", }, }, }, }, }, }, - Required: []string{"secretRef", "endpoint"}, }, }, Dependencies: []string{ - "github.com/devsy-org/api/pkg/apis/storage/v1.BCMNodeTypeSpec", "github.com/devsy-org/api/pkg/apis/storage/v1.NamespacedRef"}, + "github.com/devsy-org/api/pkg/apis/storage/v1.SecretRef"}, } } -func schema_pkg_apis_storage_v1_NodeProviderKubeVirt(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_storage_v1_User(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "NodeProviderKubeVirt defines the configuration for a KubeVirt node provider.", + Description: "User holds the user information", Type: []string{"object"}, Properties: map[string]spec.Schema{ - "clusterRef": { + "kind": { SchemaProps: spec.SchemaProps{ - Description: "ClusterRef is a reference to connected host cluster in which KubeVirt operator is running", - Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.KubeVirtClusterRef"), + Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + Type: []string{"string"}, + Format: "", }, }, - "virtualMachineTemplate": { + "apiVersion": { SchemaProps: spec.SchemaProps{ - Description: "VirtualMachineTemplate is a KubeVirt VirtualMachine template to use by NodeTypes managed by this NodeProvider", - Ref: ref("k8s.io/apimachinery/pkg/runtime.RawExtension"), + Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + Type: []string{"string"}, + Format: "", }, }, - "nodeTypes": { + "metadata": { SchemaProps: spec.SchemaProps{ - Description: "NodeTypes define NodeTypes that should be automatically created for this provider.", - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.KubeVirtNodeTypeSpec"), - }, - }, - }, + Default: map[string]interface{}{}, + Ref: ref(metav1.ObjectMeta{}.OpenAPIModelName()), + }, + }, + "spec": { + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.UserSpec"), + }, + }, + "status": { + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.UserStatus"), }, }, }, - Required: []string{"nodeTypes"}, }, }, Dependencies: []string{ - "github.com/devsy-org/api/pkg/apis/storage/v1.KubeVirtClusterRef", "github.com/devsy-org/api/pkg/apis/storage/v1.KubeVirtNodeTypeSpec", "k8s.io/apimachinery/pkg/runtime.RawExtension"}, + "github.com/devsy-org/api/pkg/apis/storage/v1.UserSpec", "github.com/devsy-org/api/pkg/apis/storage/v1.UserStatus", metav1.ObjectMeta{}.OpenAPIModelName()}, } } -func schema_pkg_apis_storage_v1_NodeProviderList(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_storage_v1_UserList(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "NodeProviderList contains a list of NodeProvider", + Description: "UserList contains a list of User.", Type: []string{"object"}, Properties: map[string]spec.Schema{ "kind": { @@ -30283,7 +30144,7 @@ func schema_pkg_apis_storage_v1_NodeProviderList(ref common.ReferenceCallback) c Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.NodeProvider"), + Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.User"), }, }, }, @@ -30294,283 +30155,254 @@ func schema_pkg_apis_storage_v1_NodeProviderList(ref common.ReferenceCallback) c }, }, Dependencies: []string{ - "github.com/devsy-org/api/pkg/apis/storage/v1.NodeProvider", metav1.ListMeta{}.OpenAPIModelName()}, + "github.com/devsy-org/api/pkg/apis/storage/v1.User", metav1.ListMeta{}.OpenAPIModelName()}, } } -func schema_pkg_apis_storage_v1_NodeProviderSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_storage_v1_UserOrTeam(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "NodeProviderSpec defines the desired state of NodeProvider. Only one of the provider types (Pods, BCM, Kubevirt) should be specified at a time.", - Type: []string{"object"}, + Type: []string{"object"}, Properties: map[string]spec.Schema{ - "bcm": { + "user": { SchemaProps: spec.SchemaProps{ - Description: "BCM configures a node provider for BCM Bare Metal Cloud environments.", - Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.NodeProviderBCM"), + Description: "User specifies a Devsy user.", + Type: []string{"string"}, + Format: "", }, }, - "kubeVirt": { + "team": { SchemaProps: spec.SchemaProps{ - Description: "Kubevirt configures a node provider using KubeVirt, enabling virtual machines to be provisioned as nodes within a vCluster.", - Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.NodeProviderKubeVirt"), + Description: "Team specifies a Devsy team.", + Type: []string{"string"}, + Format: "", }, }, - "terraform": { + }, + }, + }, + } +} + +func schema_pkg_apis_storage_v1_UserOrTeamEntity(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "user": { SchemaProps: spec.SchemaProps{ - Description: "Terraform configures a node provider using Terraform, enabling nodes to be provisioned using Terraform.", - Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.NodeProviderTerraform"), + Description: "User describes an user", + Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.EntityInfo"), }, }, - "displayName": { + "team": { SchemaProps: spec.SchemaProps{ - Description: "DisplayName is the name that should be displayed in the UI", - Type: []string{"string"}, - Format: "", + Description: "Team describes a team", + Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.EntityInfo"), }, }, }, }, }, Dependencies: []string{ - "github.com/devsy-org/api/pkg/apis/storage/v1.NodeProviderBCM", "github.com/devsy-org/api/pkg/apis/storage/v1.NodeProviderKubeVirt", "github.com/devsy-org/api/pkg/apis/storage/v1.NodeProviderTerraform"}, + "github.com/devsy-org/api/pkg/apis/storage/v1.EntityInfo"}, } } -func schema_pkg_apis_storage_v1_NodeProviderStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_storage_v1_UserSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "NodeProviderStatus defines the observed state of NodeProvider.", - Type: []string{"object"}, + Type: []string{"object"}, Properties: map[string]spec.Schema{ - "conditions": { + "displayName": { SchemaProps: spec.SchemaProps{ - Description: "Conditions describe the current state of the platform NodeProvider.", - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref(storagev1.Condition{}.OpenAPIModelName()), - }, - }, - }, + Description: "The display name shown in the UI", + Type: []string{"string"}, + Format: "", }, }, - "reason": { + "description": { SchemaProps: spec.SchemaProps{ - Description: "Reason describes the reason in machine-readable form", + Description: "Description describes a cluster access object", Type: []string{"string"}, Format: "", }, }, - "phase": { + "owner": { SchemaProps: spec.SchemaProps{ - Description: "Phase is the current lifecycle phase of the NodeProvider.", + Description: "Owner holds the owner of this object", + Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.UserOrTeam"), + }, + }, + "username": { + SchemaProps: spec.SchemaProps{ + Description: "The username that is used to login", Type: []string{"string"}, Format: "", }, }, - "message": { + "icon": { SchemaProps: spec.SchemaProps{ - Description: "Message is a human-readable message indicating details about why the NodeProvider is in its current state.", + Description: "The URL to an icon that should be shown for the user", Type: []string{"string"}, Format: "", }, }, - }, - }, - }, - Dependencies: []string{ - storagev1.Condition{}.OpenAPIModelName()}, - } -} - -func schema_pkg_apis_storage_v1_NodeProviderTerraform(ref common.ReferenceCallback) common.OpenAPIDefinition { - return common.OpenAPIDefinition{ - Schema: spec.Schema{ - SchemaProps: spec.SchemaProps{ - Type: []string{"object"}, - Properties: map[string]spec.Schema{ - "nodeTemplate": { + "email": { SchemaProps: spec.SchemaProps{ - Description: "NodeTemplate is the template to use for this node provider.", - Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.TerraformTemplate"), + Description: "The users email address", + Type: []string{"string"}, + Format: "", }, }, - "nodeEnvironmentTemplate": { + "subject": { SchemaProps: spec.SchemaProps{ - Description: "NodeEnvironmentTemplate is the template to use for this node environment.", - Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.TerraformTemplate"), + Description: "The user subject as presented by the token", + Type: []string{"string"}, + Format: "", }, }, - "nodeTypes": { + "groups": { SchemaProps: spec.SchemaProps{ - Description: "NodeTypes define NodeTypes that should be automatically created for this provider.", + Description: "The groups the user has access to", Type: []string{"array"}, Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.TerraformNodeTypeSpec"), + Default: "", + Type: []string{"string"}, + Format: "", }, }, }, }, }, - }, - }, - }, - Dependencies: []string{ - "github.com/devsy-org/api/pkg/apis/storage/v1.TerraformNodeTypeSpec", "github.com/devsy-org/api/pkg/apis/storage/v1.TerraformTemplate"}, - } -} - -func schema_pkg_apis_storage_v1_NodeType(ref common.ReferenceCallback) common.OpenAPIDefinition { - return common.OpenAPIDefinition{ - Schema: spec.Schema{ - SchemaProps: spec.SchemaProps{ - Description: "NodeType holds the information of a node type.", - Type: []string{"object"}, - Properties: map[string]spec.Schema{ - "kind": { - SchemaProps: spec.SchemaProps{ - Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", - Type: []string{"string"}, - Format: "", - }, - }, - "apiVersion": { - SchemaProps: spec.SchemaProps{ - Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", - Type: []string{"string"}, - Format: "", - }, - }, - "metadata": { + "ssoGroups": { SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref(metav1.ObjectMeta{}.OpenAPIModelName()), + Description: "SSOGroups is used to remember groups that were added from sso.", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + }, }, }, - "spec": { + "passwordRef": { SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.NodeTypeSpec"), + Description: "A reference to the user password", + Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.SecretRef"), }, }, - "status": { + "codesRef": { SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.NodeTypeStatus"), + Description: "A reference to the users access keys", + Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.SecretRef"), }, }, - }, - Required: []string{"metadata"}, - }, - }, - Dependencies: []string{ - "github.com/devsy-org/api/pkg/apis/storage/v1.NodeTypeSpec", "github.com/devsy-org/api/pkg/apis/storage/v1.NodeTypeStatus", metav1.ObjectMeta{}.OpenAPIModelName()}, - } -} - -func schema_pkg_apis_storage_v1_NodeTypeCapacity(ref common.ReferenceCallback) common.OpenAPIDefinition { - return common.OpenAPIDefinition{ - Schema: spec.Schema{ - SchemaProps: spec.SchemaProps{ - Description: "IMPORTANT: DO NOT use omitempty for values in NodeTypeCapacity. The values are used in NodePool calculations and for UI.", - Type: []string{"object"}, - Properties: map[string]spec.Schema{ - "total": { + "imagePullSecrets": { SchemaProps: spec.SchemaProps{ - Description: "Total is the total number of nodes of this type", - Default: 0, - Type: []string{"integer"}, - Format: "int32", + Description: "ImagePullSecrets holds secret references to image pull secrets the user has access to.", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.KindSecretRef"), + }, + }, + }, }, }, - "claimed": { + "tokenGeneration": { SchemaProps: spec.SchemaProps{ - Description: "Claimed is the number of already claimed nodes of this type", - Default: 0, + Description: "TokenGeneration can be used to invalidate all user tokens", Type: []string{"integer"}, - Format: "int32", + Format: "int64", }, }, - }, - Required: []string{"total", "claimed"}, - }, - }, - } -} - -func schema_pkg_apis_storage_v1_NodeTypeList(ref common.ReferenceCallback) common.OpenAPIDefinition { - return common.OpenAPIDefinition{ - Schema: spec.Schema{ - SchemaProps: spec.SchemaProps{ - Description: "NodeTypeList contains a list of NodeType", - Type: []string{"object"}, - Properties: map[string]spec.Schema{ - "kind": { + "disabled": { SchemaProps: spec.SchemaProps{ - Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", - Type: []string{"string"}, + Description: "If disabled is true, an user will not be able to login anymore. All other user resources are unaffected and other users can still interact with this user", + Type: []string{"boolean"}, Format: "", }, }, - "apiVersion": { + "clusterRoles": { SchemaProps: spec.SchemaProps{ - Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", - Type: []string{"string"}, - Format: "", + Description: "ClusterRoles define the cluster roles that the users should have assigned in the cluster.", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.ClusterRoleRef"), + }, + }, + }, }, }, - "metadata": { + "access": { SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref(metav1.ListMeta{}.OpenAPIModelName()), + Description: "Access holds the access rights for users and teams", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.Access"), + }, + }, + }, }, }, - "items": { + "extraClaims": { SchemaProps: spec.SchemaProps{ - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ + Description: "ExtraClaims are additional claims that have been added to the user by an admin.", + Type: []string{"object"}, + AdditionalProperties: &spec.SchemaOrBool{ + Allows: true, Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.NodeType"), + Default: "", + Type: []string{"string"}, + Format: "", }, }, }, }, }, }, - Required: []string{"items"}, }, }, Dependencies: []string{ - "github.com/devsy-org/api/pkg/apis/storage/v1.NodeType", metav1.ListMeta{}.OpenAPIModelName()}, + "github.com/devsy-org/api/pkg/apis/storage/v1.Access", "github.com/devsy-org/api/pkg/apis/storage/v1.ClusterRoleRef", "github.com/devsy-org/api/pkg/apis/storage/v1.KindSecretRef", "github.com/devsy-org/api/pkg/apis/storage/v1.SecretRef", "github.com/devsy-org/api/pkg/apis/storage/v1.UserOrTeam"}, } } -func schema_pkg_apis_storage_v1_NodeTypeOverhead(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_storage_v1_UserStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "NodeTypeOverhead defines the resource overhead for a node type.", + Description: "UserStatus holds the status of an user", Type: []string{"object"}, Properties: map[string]spec.Schema{ - "kubeReserved": { + "teams": { SchemaProps: spec.SchemaProps{ - Description: "KubeReserved is the resource overhead for kubelet and other Kubernetes system daemons.", - Type: []string{"object"}, - AdditionalProperties: &spec.SchemaOrBool{ - Allows: true, + Description: "Teams the user is currently part of", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ - Ref: ref("k8s.io/apimachinery/pkg/api/resource.Quantity"), + Default: "", + Type: []string{"string"}, + Format: "", }, }, }, @@ -30579,304 +30411,386 @@ func schema_pkg_apis_storage_v1_NodeTypeOverhead(ref common.ReferenceCallback) c }, }, }, - Dependencies: []string{ - "k8s.io/apimachinery/pkg/api/resource.Quantity"}, } } -func schema_pkg_apis_storage_v1_NodeTypeSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_storage_v1_VaultAuthSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ Type: []string{"object"}, Properties: map[string]spec.Schema{ - "providerRef": { + "token": { SchemaProps: spec.SchemaProps{ - Description: "ProviderRef is the node provider to use for this node type.", + Description: "Token defines the token to use for authentication.", Type: []string{"string"}, Format: "", }, }, - "properties": { - SchemaProps: spec.SchemaProps{ - Description: "Properties returns a flexible set of properties that may be selected for scheduling.", - Type: []string{"object"}, - AdditionalProperties: &spec.SchemaOrBool{ - Allows: true, - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: "", - Type: []string{"string"}, - Format: "", - }, - }, - }, - }, - }, - "resources": { - SchemaProps: spec.SchemaProps{ - Description: "Resources lists the full resources for a single node.", - Type: []string{"object"}, - AdditionalProperties: &spec.SchemaOrBool{ - Allows: true, - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Ref: ref("k8s.io/apimachinery/pkg/api/resource.Quantity"), - }, - }, - }, - }, - }, - "overhead": { - SchemaProps: spec.SchemaProps{ - Description: "Overhead defines the resource overhead for this node type.", - Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.NodeTypeOverhead"), - }, - }, - "cost": { - SchemaProps: spec.SchemaProps{ - Description: "Cost is the instance cost. The higher the cost, the less likely it is to be selected. If empty, cost is automatically calculated from the resources specified.", - Type: []string{"integer"}, - Format: "int64", - }, - }, - "displayName": { + "tokenSecretRef": { SchemaProps: spec.SchemaProps{ - Description: "DisplayName is the name that should be displayed in the UI", - Type: []string{"string"}, - Format: "", + Description: "TokenSecretRef defines the Kubernetes secret to use for token authentication. Will be used if `token` is not provided.\n\nSecret data should contain the `token` key.", + Ref: ref(corev1.SecretKeySelector{}.OpenAPIModelName()), }, }, }, }, }, Dependencies: []string{ - "github.com/devsy-org/api/pkg/apis/storage/v1.NodeTypeOverhead", "k8s.io/apimachinery/pkg/api/resource.Quantity"}, + corev1.SecretKeySelector{}.OpenAPIModelName()}, } } -func schema_pkg_apis_storage_v1_NodeTypeStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_storage_v1_VaultIntegrationSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "NodeTypeStatus holds the status of a node type", - Type: []string{"object"}, + Type: []string{"object"}, Properties: map[string]spec.Schema{ - "phase": { + "enabled": { SchemaProps: spec.SchemaProps{ - Description: "Phase is the current lifecycle phase of the NodeType.", - Type: []string{"string"}, + Description: "Enabled indicates if the Vault Integration is enabled for the project -- this knob only enables the syncing of secrets to or from Vault, but does not setup Kubernetes authentication methods or Kubernetes secrets engines for devsys.", + Type: []string{"boolean"}, Format: "", }, }, - "reason": { + "address": { SchemaProps: spec.SchemaProps{ - Description: "Reason describes the reason in machine-readable form", + Description: "Address defines the address of the Vault instance to use for this project. Will default to the `VAULT_ADDR` environment variable if not provided.", Type: []string{"string"}, Format: "", }, }, - "message": { + "skipTLSVerify": { SchemaProps: spec.SchemaProps{ - Description: "Message describes the reason in human-readable form", - Type: []string{"string"}, + Description: "SkipTLSVerify defines if TLS verification should be skipped when connecting to Vault.", + Type: []string{"boolean"}, Format: "", }, }, - "cost": { - SchemaProps: spec.SchemaProps{ - Description: "Cost is the calculated instance cost from the resources specified or the price specified from spec. The higher the cost, the less likely it is to be selected.", - Type: []string{"integer"}, - Format: "int64", - }, - }, - "capacity": { + "namespace": { SchemaProps: spec.SchemaProps{ - Description: "Capacity is the capacity of the node type.", - Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.NodeTypeCapacity"), + Description: "Namespace defines the namespace to use when storing secrets in Vault.", + Type: []string{"string"}, + Format: "", }, }, - "requirements": { + "auth": { SchemaProps: spec.SchemaProps{ - Description: "Requirements is the calculated requirements based of the properties for the node type.", - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref(corev1.NodeSelectorRequirement{}.OpenAPIModelName()), - }, - }, - }, + Description: "Auth defines the authentication method to use for this project.", + Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.VaultAuthSpec"), }, }, - "conditions": { + "syncInterval": { SchemaProps: spec.SchemaProps{ - Description: "Conditions holds several conditions the node type might be in", - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref(storagev1.Condition{}.OpenAPIModelName()), - }, - }, - }, + Description: "SyncInterval defines the interval at which to sync secrets from Vault. Defaults to `1m.` See https://pkg.go.dev/time#ParseDuration for supported formats.", + Type: []string{"string"}, + Format: "", }, }, }, }, }, Dependencies: []string{ - storagev1.Condition{}.OpenAPIModelName(), "github.com/devsy-org/api/pkg/apis/storage/v1.NodeTypeCapacity", corev1.NodeSelectorRequirement{}.OpenAPIModelName()}, + "github.com/devsy-org/api/pkg/apis/storage/v1.VaultAuthSpec"}, } } -func schema_pkg_apis_storage_v1_ObjectsStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_storage_v1_VirtualClusterAccessPoint(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ Type: []string{"object"}, Properties: map[string]spec.Schema{ - "lastAppliedObjects": { - SchemaProps: spec.SchemaProps{ - Description: "LastAppliedObjects holds the status for the objects that were applied", - Type: []string{"string"}, - Format: "", - }, - }, - "charts": { - SchemaProps: spec.SchemaProps{ - Description: "Charts are the charts that were applied", - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.ChartStatus"), - }, - }, - }, - }, - }, - "apps": { + "ingress": { SchemaProps: spec.SchemaProps{ - Description: "Apps are the apps that were applied", - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.AppReference"), - }, - }, - }, + Description: "Ingress defines virtual cluster access via ingress", + Default: map[string]interface{}{}, + Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.VirtualClusterAccessPointIngressSpec"), }, }, }, }, }, Dependencies: []string{ - "github.com/devsy-org/api/pkg/apis/storage/v1.AppReference", "github.com/devsy-org/api/pkg/apis/storage/v1.ChartStatus"}, + "github.com/devsy-org/api/pkg/apis/storage/v1.VirtualClusterAccessPointIngressSpec"}, } } -func schema_pkg_apis_storage_v1_OpenCost(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_storage_v1_VirtualClusterAccessPointIngressSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ Type: []string{"object"}, Properties: map[string]spec.Schema{ - "replicas": { - SchemaProps: spec.SchemaProps{ - Description: "Replicas is the number of desired replicas.", - Type: []string{"integer"}, - Format: "int32", - }, - }, - "resources": { + "enabled": { SchemaProps: spec.SchemaProps{ - Description: "Resources are compute resource required by the OpenCost backend", - Ref: ref(corev1.ResourceRequirements{}.OpenAPIModelName()), + Description: "Enabled defines if the virtual cluster access point (via ingress) is enabled or not; requires the connected cluster to have the `devsy.sh/ingress-suffix` annotation set to define the domain name suffix used for the ingress.", + Type: []string{"boolean"}, + Format: "", }, }, }, }, }, - Dependencies: []string{ - corev1.ResourceRequirements{}.OpenAPIModelName()}, } } -func schema_pkg_apis_storage_v1_PodSelector(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_storage_v1_VirtualClusterClusterRef(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ Type: []string{"object"}, Properties: map[string]spec.Schema{ - "podSelector": { - SchemaProps: spec.SchemaProps{ - Description: "A label selector to select the virtual cluster pod to route incoming requests to.", - Default: map[string]interface{}{}, - Ref: ref(metav1.LabelSelector{}.OpenAPIModelName()), - }, - }, - "port": { + "cluster": { SchemaProps: spec.SchemaProps{ - Description: "The port of the pod to route to", - Type: []string{"integer"}, - Format: "int32", + Description: "Cluster is the connected cluster the space will be created in", + Type: []string{"string"}, + Format: "", }, }, - }, - }, - }, - Dependencies: []string{ - metav1.LabelSelector{}.OpenAPIModelName()}, - } -} - -func schema_pkg_apis_storage_v1_PresetRef(ref common.ReferenceCallback) common.OpenAPIDefinition { - return common.OpenAPIDefinition{ - Schema: spec.Schema{ - SchemaProps: spec.SchemaProps{ - Type: []string{"object"}, - Properties: map[string]spec.Schema{ - "name": { + "namespace": { SchemaProps: spec.SchemaProps{ - Description: "Name is the name of DevPodWorkspacePreset", - Default: "", + Description: "Namespace is the namespace inside the connected cluster holding the space", Type: []string{"string"}, Format: "", }, }, - "version": { + "virtualCluster": { SchemaProps: spec.SchemaProps{ - Description: "Version holds the preset version to use. Version is expected to be in semantic versioning format. Alternatively, you can also exchange major, minor or patch with an 'x' to tell Devsy to automatically select the latest major, minor or patch version.", + Description: "VirtualCluster is the name of the virtual cluster inside the namespace", Type: []string{"string"}, Format: "", }, }, }, - Required: []string{"name"}, }, }, } } -func schema_pkg_apis_storage_v1_Project(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_storage_v1_VirtualClusterCommonSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "Project", + Description: "VirtualClusterCommonSpec holds common attributes for virtual clusters and virtual cluster templates", Type: []string{"object"}, Properties: map[string]spec.Schema{ - "kind": { + "apps": { SchemaProps: spec.SchemaProps{ - Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", - Type: []string{"string"}, - Format: "", + Description: "Apps specifies the apps that should get deployed by this template", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.AppReference"), + }, + }, + }, + }, + }, + "charts": { + SchemaProps: spec.SchemaProps{ + Description: "Charts are helm charts that should get deployed", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.TemplateHelmChart"), + }, + }, + }, + }, + }, + "objects": { + SchemaProps: spec.SchemaProps{ + Description: "Objects are Kubernetes style yamls that should get deployed into the virtual cluster", + Type: []string{"string"}, + Format: "", + }, + }, + "access": { + SchemaProps: spec.SchemaProps{ + Description: "Access defines the access of users and teams to the virtual cluster.", + Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.InstanceAccess"), + }, + }, + "pro": { + SchemaProps: spec.SchemaProps{ + Description: "Pro defines the pro settings for the virtual cluster", + Default: map[string]interface{}{}, + Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.VirtualClusterProSpec"), + }, + }, + "helmRelease": { + SchemaProps: spec.SchemaProps{ + Description: "HelmRelease is the helm release configuration for the virtual cluster.", + Default: map[string]interface{}{}, + Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.VirtualClusterHelmRelease"), + }, + }, + "accessPoint": { + SchemaProps: spec.SchemaProps{ + Description: "AccessPoint defines settings to expose the virtual cluster directly via an ingress rather than through the (default) Devsy proxy", + Default: map[string]interface{}{}, + Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.VirtualClusterAccessPoint"), + }, + }, + "forwardToken": { + SchemaProps: spec.SchemaProps{ + Description: "ForwardToken signals the proxy to pass through the used token to the virtual Kubernetes api server and do a TokenReview there.", + Type: []string{"boolean"}, + Format: "", + }, + }, + }, + }, + }, + Dependencies: []string{ + "github.com/devsy-org/api/pkg/apis/storage/v1.AppReference", "github.com/devsy-org/api/pkg/apis/storage/v1.InstanceAccess", "github.com/devsy-org/api/pkg/apis/storage/v1.TemplateHelmChart", "github.com/devsy-org/api/pkg/apis/storage/v1.VirtualClusterAccessPoint", "github.com/devsy-org/api/pkg/apis/storage/v1.VirtualClusterHelmRelease", "github.com/devsy-org/api/pkg/apis/storage/v1.VirtualClusterProSpec"}, + } +} + +func schema_pkg_apis_storage_v1_VirtualClusterHelmChart(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "name": { + SchemaProps: spec.SchemaProps{ + Description: "the name of the helm chart", + Type: []string{"string"}, + Format: "", + }, + }, + "repo": { + SchemaProps: spec.SchemaProps{ + Description: "the repo of the helm chart", + Type: []string{"string"}, + Format: "", + }, + }, + "username": { + SchemaProps: spec.SchemaProps{ + Description: "The username that is required for this repository", + Type: []string{"string"}, + Format: "", + }, + }, + "password": { + SchemaProps: spec.SchemaProps{ + Description: "The password that is required for this repository", + Type: []string{"string"}, + Format: "", + }, + }, + "version": { + SchemaProps: spec.SchemaProps{ + Description: "the version of the helm chart to use", + Type: []string{"string"}, + Format: "", + }, + }, + "insecureSkipTlsVerify": { + SchemaProps: spec.SchemaProps{ + Description: "InsecureSkipTlsVerify skips the TLS verification for the helm chart", + Type: []string{"boolean"}, + Format: "", + }, + }, + }, + }, + }, + } +} + +func schema_pkg_apis_storage_v1_VirtualClusterHelmRelease(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "chart": { + SchemaProps: spec.SchemaProps{ + Description: "infos about what chart to deploy", + Default: map[string]interface{}{}, + Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.VirtualClusterHelmChart"), + }, + }, + "values": { + SchemaProps: spec.SchemaProps{ + Description: "the values for the given chart", + Type: []string{"string"}, + Format: "", + }, + }, + }, + }, + }, + Dependencies: []string{ + "github.com/devsy-org/api/pkg/apis/storage/v1.VirtualClusterHelmChart"}, + } +} + +func schema_pkg_apis_storage_v1_VirtualClusterHelmReleaseStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "phase": { + SchemaProps: spec.SchemaProps{ + Type: []string{"string"}, + Format: "", + }, + }, + "lastTransitionTime": { + SchemaProps: spec.SchemaProps{ + Ref: ref(metav1.Time{}.OpenAPIModelName()), + }, + }, + "reason": { + SchemaProps: spec.SchemaProps{ + Type: []string{"string"}, + Format: "", + }, + }, + "message": { + SchemaProps: spec.SchemaProps{ + Type: []string{"string"}, + Format: "", + }, + }, + "release": { + SchemaProps: spec.SchemaProps{ + Description: "the release that was deployed", + Default: map[string]interface{}{}, + Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.VirtualClusterHelmRelease"), + }, + }, + }, + }, + }, + Dependencies: []string{ + "github.com/devsy-org/api/pkg/apis/storage/v1.VirtualClusterHelmRelease", metav1.Time{}.OpenAPIModelName()}, + } +} + +func schema_pkg_apis_storage_v1_VirtualClusterInstance(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "VirtualClusterInstance", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "kind": { + SchemaProps: spec.SchemaProps{ + Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + Type: []string{"string"}, + Format: "", }, }, "apiVersion": { @@ -30895,28 +30809,28 @@ func schema_pkg_apis_storage_v1_Project(ref common.ReferenceCallback) common.Ope "spec": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.ProjectSpec"), + Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.VirtualClusterInstanceSpec"), }, }, "status": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.ProjectStatus"), + Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.VirtualClusterInstanceStatus"), }, }, }, }, }, Dependencies: []string{ - "github.com/devsy-org/api/pkg/apis/storage/v1.ProjectSpec", "github.com/devsy-org/api/pkg/apis/storage/v1.ProjectStatus", metav1.ObjectMeta{}.OpenAPIModelName()}, + "github.com/devsy-org/api/pkg/apis/storage/v1.VirtualClusterInstanceSpec", "github.com/devsy-org/api/pkg/apis/storage/v1.VirtualClusterInstanceStatus", metav1.ObjectMeta{}.OpenAPIModelName()}, } } -func schema_pkg_apis_storage_v1_ProjectList(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_storage_v1_VirtualClusterInstanceList(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "ProjectList contains a list of Project objects", + Description: "VirtualClusterInstanceList contains a list of VirtualClusterInstance objects.", Type: []string{"object"}, Properties: map[string]spec.Schema{ "kind": { @@ -30946,7 +30860,7 @@ func schema_pkg_apis_storage_v1_ProjectList(ref common.ReferenceCallback) common Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.Project"), + Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.VirtualClusterInstance"), }, }, }, @@ -30957,11 +30871,11 @@ func schema_pkg_apis_storage_v1_ProjectList(ref common.ReferenceCallback) common }, }, Dependencies: []string{ - "github.com/devsy-org/api/pkg/apis/storage/v1.Project", metav1.ListMeta{}.OpenAPIModelName()}, + "github.com/devsy-org/api/pkg/apis/storage/v1.VirtualClusterInstance", metav1.ListMeta{}.OpenAPIModelName()}, } } -func schema_pkg_apis_storage_v1_ProjectSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_storage_v1_VirtualClusterInstanceSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ @@ -30976,7 +30890,7 @@ func schema_pkg_apis_storage_v1_ProjectSpec(ref common.ReferenceCallback) common }, "description": { SchemaProps: spec.SchemaProps{ - Description: "Description describes an app", + Description: "Description describes a virtual cluster instance", Type: []string{"string"}, Format: "", }, @@ -30987,78 +30901,41 @@ func schema_pkg_apis_storage_v1_ProjectSpec(ref common.ReferenceCallback) common Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.UserOrTeam"), }, }, - "quotas": { - SchemaProps: spec.SchemaProps{ - Description: "Quotas define the quotas inside the project", - Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.Quotas"), - }, - }, - "allowedClusters": { - SchemaProps: spec.SchemaProps{ - Description: "AllowedClusters are target clusters that are allowed to target with environments.", - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.AllowedCluster"), - }, - }, - }, - }, - }, - "allowedRunners": { + "templateRef": { SchemaProps: spec.SchemaProps{ - Description: "AllowedRunners are target runners that are allowed to target with DevPod environments.", - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.AllowedRunner"), - }, - }, - }, + Description: "TemplateRef holds the virtual cluster template reference", + Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.TemplateRef"), }, }, - "allowedTemplates": { + "template": { SchemaProps: spec.SchemaProps{ - Description: "AllowedTemplates are the templates that are allowed to use in this project.", - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.AllowedTemplate"), - }, - }, - }, + Description: "Template is the inline template to use for virtual cluster creation. This is mutually exclusive with templateRef.", + Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.VirtualClusterTemplateDefinition"), }, }, - "requireTemplate": { + "clusterRef": { SchemaProps: spec.SchemaProps{ - Description: "RequireTemplate configures if a template is required for instance creation.", + Description: "ClusterRef is the reference to the connected cluster holding this virtual cluster", Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.RequireTemplate"), + Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.VirtualClusterClusterRef"), }, }, - "requirePreset": { + "parameters": { SchemaProps: spec.SchemaProps{ - Description: "RequirePreset configures if a preset is required for instance creation.", - Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.RequirePreset"), + Description: "Parameters are values to pass to the template. The values should be encoded as YAML string where each parameter is represented as a top-level field key.", + Type: []string{"string"}, + Format: "", }, }, - "members": { + "extraAccessRules": { SchemaProps: spec.SchemaProps{ - Description: "Members are the users and teams that are part of this project", + Description: "ExtraAccessRules defines extra rules which users and teams should have which access to the virtual cluster.", Type: []string{"array"}, Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.Member"), + Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.InstanceAccessRule"), }, }, }, @@ -31066,7 +30943,7 @@ func schema_pkg_apis_storage_v1_ProjectSpec(ref common.ReferenceCallback) common }, "access": { SchemaProps: spec.SchemaProps{ - Description: "Access holds the access rights for users and teams", + Description: "Access to the virtual cluster object itself", Type: []string{"array"}, Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ @@ -31078,152 +30955,207 @@ func schema_pkg_apis_storage_v1_ProjectSpec(ref common.ReferenceCallback) common }, }, }, - "namespacePattern": { - SchemaProps: spec.SchemaProps{ - Description: "NamespacePattern specifies template patterns to use for creating each space or virtual cluster's namespace", - Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.NamespacePattern"), - }, - }, - "argoCD": { - SchemaProps: spec.SchemaProps{ - Description: "ArgoIntegration holds information about ArgoCD Integration", - Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.ArgoIntegrationSpec"), - }, - }, - "vault": { + "networkPeer": { SchemaProps: spec.SchemaProps{ - Description: "VaultIntegration holds information about Vault Integration", - Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.VaultIntegrationSpec"), + Description: "NetworkPeer specifies if the cluster is connected via tailscale.", + Type: []string{"boolean"}, + Format: "", }, }, - "rancher": { + "external": { SchemaProps: spec.SchemaProps{ - Description: "RancherIntegration holds information about Rancher Integration", - Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.RancherIntegrationSpec"), + Description: "External specifies if the virtual cluster is managed by the platform agent or externally.", + Type: []string{"boolean"}, + Format: "", }, }, - "devPod": { + "standalone": { SchemaProps: spec.SchemaProps{ - Description: "DevPod holds DevPod specific configuration for project", - Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.DevPodProjectSpec"), + Description: "Standalone specifies if the virtual cluster is standalone and not hosted in another Kubernetes cluster.", + Type: []string{"boolean"}, + Format: "", }, }, }, }, }, Dependencies: []string{ - "github.com/devsy-org/api/pkg/apis/storage/v1.Access", "github.com/devsy-org/api/pkg/apis/storage/v1.AllowedCluster", "github.com/devsy-org/api/pkg/apis/storage/v1.AllowedRunner", "github.com/devsy-org/api/pkg/apis/storage/v1.AllowedTemplate", "github.com/devsy-org/api/pkg/apis/storage/v1.ArgoIntegrationSpec", "github.com/devsy-org/api/pkg/apis/storage/v1.DevPodProjectSpec", "github.com/devsy-org/api/pkg/apis/storage/v1.Member", "github.com/devsy-org/api/pkg/apis/storage/v1.NamespacePattern", "github.com/devsy-org/api/pkg/apis/storage/v1.Quotas", "github.com/devsy-org/api/pkg/apis/storage/v1.RancherIntegrationSpec", "github.com/devsy-org/api/pkg/apis/storage/v1.RequirePreset", "github.com/devsy-org/api/pkg/apis/storage/v1.RequireTemplate", "github.com/devsy-org/api/pkg/apis/storage/v1.UserOrTeam", "github.com/devsy-org/api/pkg/apis/storage/v1.VaultIntegrationSpec"}, + "github.com/devsy-org/api/pkg/apis/storage/v1.Access", "github.com/devsy-org/api/pkg/apis/storage/v1.InstanceAccessRule", "github.com/devsy-org/api/pkg/apis/storage/v1.TemplateRef", "github.com/devsy-org/api/pkg/apis/storage/v1.UserOrTeam", "github.com/devsy-org/api/pkg/apis/storage/v1.VirtualClusterClusterRef", "github.com/devsy-org/api/pkg/apis/storage/v1.VirtualClusterTemplateDefinition"}, } } -func schema_pkg_apis_storage_v1_ProjectStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_storage_v1_VirtualClusterInstanceStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ Type: []string{"object"}, Properties: map[string]spec.Schema{ - "quotas": { + "phase": { SchemaProps: spec.SchemaProps{ - Description: "Quotas holds the quota status", - Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.QuotaStatus"), + Description: "Phase describes the current phase the virtual cluster instance is in", + Type: []string{"string"}, + Format: "", + }, + }, + "reason": { + SchemaProps: spec.SchemaProps{ + Description: "Reason describes the reason in machine-readable form why the cluster is in the current phase", + Type: []string{"string"}, + Format: "", + }, + }, + "message": { + SchemaProps: spec.SchemaProps{ + Description: "Message describes the reason in human-readable form why the cluster is in the current phase", + Type: []string{"string"}, + Format: "", + }, + }, + "serviceUID": { + SchemaProps: spec.SchemaProps{ + Description: "ServiceUID is the service uid of the virtual cluster to uniquely identify it.", + Type: []string{"string"}, + Format: "", + }, + }, + "deployHash": { + SchemaProps: spec.SchemaProps{ + Description: "DeployHash is the hash of the last deployed values.", + Type: []string{"string"}, + Format: "", }, }, "conditions": { SchemaProps: spec.SchemaProps{ - Description: "Conditions holds several conditions the project might be in", + Description: "Conditions holds several conditions the virtual cluster might be in", Type: []string{"array"}, Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref(storagev1.Condition{}.OpenAPIModelName()), + Ref: ref("github.com/devsy-org/agentapi/pkg/apis/devsy/storage/v1.Condition"), }, }, }, }, }, + "virtualClusterObjects": { + SchemaProps: spec.SchemaProps{ + Description: "VirtualClusterObjects are the objects that were applied within the virtual cluster itself", + Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.ObjectsStatus"), + }, + }, + "spaceObjects": { + SchemaProps: spec.SchemaProps{ + Description: "SpaceObjects are the objects that were applied within the virtual cluster space", + Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.ObjectsStatus"), + }, + }, + "virtualCluster": { + SchemaProps: spec.SchemaProps{ + Description: "VirtualCluster is the template rendered with all the parameters", + Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.VirtualClusterTemplateDefinition"), + }, + }, + "ignoreReconciliation": { + SchemaProps: spec.SchemaProps{ + Description: "IgnoreReconciliation tells the controller to ignore reconciliation for this instance -- this is primarily used when migrating virtual cluster instances from project to project; this prevents a situation where there are two virtual cluster instances representing the same virtual cluster which could cause issues with concurrent reconciliations of the same object. Once the virtual cluster instance has been cloned and placed into the new project, this (the \"old\") virtual cluster instance can safely be deleted.", + Type: []string{"boolean"}, + Format: "", + }, + }, }, }, }, Dependencies: []string{ - storagev1.Condition{}.OpenAPIModelName(), "github.com/devsy-org/api/pkg/apis/storage/v1.QuotaStatus"}, + "github.com/devsy-org/agentapi/pkg/apis/devsy/storage/v1.Condition", "github.com/devsy-org/api/pkg/apis/storage/v1.ObjectsStatus", "github.com/devsy-org/api/pkg/apis/storage/v1.VirtualClusterTemplateDefinition"}, } } -func schema_pkg_apis_storage_v1_QuotaStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_storage_v1_VirtualClusterInstanceTemplateDefinition(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Type: []string{"object"}, + Description: "VirtualClusterInstanceTemplateDefinition holds the virtual cluster instance template", + Type: []string{"object"}, Properties: map[string]spec.Schema{ - "project": { + "metadata": { SchemaProps: spec.SchemaProps{ - Description: "Project is the quota status for the whole project", - Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.QuotaStatusProject"), + Description: "The virtual cluster instance metadata", + Default: map[string]interface{}{}, + Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.TemplateMetadata"), }, }, - "user": { + }, + }, + }, + Dependencies: []string{ + "github.com/devsy-org/api/pkg/apis/storage/v1.TemplateMetadata"}, + } +} + +func schema_pkg_apis_storage_v1_VirtualClusterProSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "enabled": { SchemaProps: spec.SchemaProps{ - Description: "User is the quota status for each user / team. An example status could look like this: status:\n quotas:\n user:\n limit:\n pods: \"10\"\n spaces: \"5\"\n users:\n admin:\n used:\n spaces: \"3\" # <- calculated in our apiserver\n pods: \"8\" # <- the sum calculated from clusters\n clusters:\n cluster-1: # <- populated by agent from cluster-1\n users:\n admin:\n pods: \"3\"\n cluster-2:\n users:\n admin:\n pods: \"5\"", - Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.QuotaStatusUser"), + Description: "Enabled defines if the virtual cluster is a pro cluster or not", + Type: []string{"boolean"}, + Format: "", }, }, }, }, }, - Dependencies: []string{ - "github.com/devsy-org/api/pkg/apis/storage/v1.QuotaStatusProject", "github.com/devsy-org/api/pkg/apis/storage/v1.QuotaStatusUser"}, } } -func schema_pkg_apis_storage_v1_QuotaStatusProject(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_storage_v1_VirtualClusterSpaceTemplateDefinition(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ Type: []string{"object"}, Properties: map[string]spec.Schema{ - "limit": { + "metadata": { SchemaProps: spec.SchemaProps{ - Description: "Limit is the amount limited, copied from spec.quotas.project", - Type: []string{"object"}, - AdditionalProperties: &spec.SchemaOrBool{ - Allows: true, - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: "", - Type: []string{"string"}, - Format: "", - }, - }, - }, + Description: "The space metadata", + Default: map[string]interface{}{}, + Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.TemplateMetadata"), }, }, - "used": { + "objects": { SchemaProps: spec.SchemaProps{ - Description: "Used is the amount currently used across all clusters", - Type: []string{"object"}, - AdditionalProperties: &spec.SchemaOrBool{ - Allows: true, + Description: "Objects are Kubernetes style yamls that should get deployed into the virtual cluster namespace", + Type: []string{"string"}, + Format: "", + }, + }, + "charts": { + SchemaProps: spec.SchemaProps{ + Description: "Charts are helm charts that should get deployed", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ - Default: "", - Type: []string{"string"}, - Format: "", + Default: map[string]interface{}{}, + Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.TemplateHelmChart"), }, }, }, }, }, - "clusters": { + "apps": { SchemaProps: spec.SchemaProps{ - Description: "Clusters holds the used amount per cluster. Maps cluster name to used resources", - Type: []string{"object"}, - AdditionalProperties: &spec.SchemaOrBool{ - Allows: true, + Description: "Apps specifies the apps that should get deployed by this template", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.QuotaStatusProjectCluster"), + Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.AppReference"), }, }, }, @@ -31233,494 +31165,256 @@ func schema_pkg_apis_storage_v1_QuotaStatusProject(ref common.ReferenceCallback) }, }, Dependencies: []string{ - "github.com/devsy-org/api/pkg/apis/storage/v1.QuotaStatusProjectCluster"}, + "github.com/devsy-org/api/pkg/apis/storage/v1.AppReference", "github.com/devsy-org/api/pkg/apis/storage/v1.TemplateHelmChart", "github.com/devsy-org/api/pkg/apis/storage/v1.TemplateMetadata"}, } } -func schema_pkg_apis_storage_v1_QuotaStatusProjectCluster(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_storage_v1_VirtualClusterStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Type: []string{"object"}, + Description: "VirtualClusterStatus holds the status of a virtual cluster", + Type: []string{"object"}, Properties: map[string]spec.Schema{ - "used": { + "phase": { SchemaProps: spec.SchemaProps{ - Description: "Used is the amount currently used. Maps resource name, such as pods, to their used amount.", - Type: []string{"object"}, - AdditionalProperties: &spec.SchemaOrBool{ - Allows: true, - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: "", - Type: []string{"string"}, - Format: "", - }, - }, - }, + Description: "Phase describes the current phase the virtual cluster is in", + Type: []string{"string"}, + Format: "", }, }, - }, - }, - }, - } -} - -func schema_pkg_apis_storage_v1_QuotaStatusUser(ref common.ReferenceCallback) common.OpenAPIDefinition { - return common.OpenAPIDefinition{ - Schema: spec.Schema{ - SchemaProps: spec.SchemaProps{ - Type: []string{"object"}, - Properties: map[string]spec.Schema{ - "limit": { + "reason": { SchemaProps: spec.SchemaProps{ - Description: "Limit is the amount limited per user / team", - Type: []string{"object"}, - AdditionalProperties: &spec.SchemaOrBool{ - Allows: true, - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: "", - Type: []string{"string"}, - Format: "", - }, - }, - }, + Description: "Reason describes the reason in machine readable form why the cluster is in the current phase", + Type: []string{"string"}, + Format: "", }, }, - "used": { + "message": { SchemaProps: spec.SchemaProps{ - Description: "Used is the used amount per user / team", - Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.QuotaStatusUserUsed"), + Description: "Message describes the reason in human readable form why the cluster is in the current phase", + Type: []string{"string"}, + Format: "", }, }, - "clusters": { + "controlPlaneReady": { SchemaProps: spec.SchemaProps{ - Description: "Clusters holds the used amount per cluster. Maps cluster name to used resources", - Type: []string{"object"}, - AdditionalProperties: &spec.SchemaOrBool{ - Allows: true, - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.QuotaStatusUserUsed"), - }, - }, - }, + Description: "ControlPlaneReady defines if the virtual cluster control plane is ready.", + Type: []string{"boolean"}, + Format: "", }, }, - }, - }, - }, - Dependencies: []string{ - "github.com/devsy-org/api/pkg/apis/storage/v1.QuotaStatusUserUsed"}, - } -} - -func schema_pkg_apis_storage_v1_QuotaStatusUserUsed(ref common.ReferenceCallback) common.OpenAPIDefinition { - return common.OpenAPIDefinition{ - Schema: spec.Schema{ - SchemaProps: spec.SchemaProps{ - Type: []string{"object"}, - Properties: map[string]spec.Schema{ - "users": { + "conditions": { SchemaProps: spec.SchemaProps{ - Description: "Users is a mapping of users to used resources", - Type: []string{"object"}, - AdditionalProperties: &spec.SchemaOrBool{ - Allows: true, + Description: "Conditions holds several conditions the virtual cluster might be in", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ - Type: []string{"object"}, - AdditionalProperties: &spec.SchemaOrBool{ - Allows: true, - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: "", - Type: []string{"string"}, - Format: "", - }, - }, - }, + Default: map[string]interface{}{}, + Ref: ref("github.com/devsy-org/agentapi/pkg/apis/devsy/storage/v1.Condition"), }, }, }, }, }, - "teams": { + "observedGeneration": { SchemaProps: spec.SchemaProps{ - Description: "Teams is a mapping of teams to used resources", - Type: []string{"object"}, - AdditionalProperties: &spec.SchemaOrBool{ - Allows: true, - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Type: []string{"object"}, - AdditionalProperties: &spec.SchemaOrBool{ - Allows: true, - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: "", - Type: []string{"string"}, - Format: "", - }, - }, - }, - }, - }, - }, + Description: "ObservedGeneration is the latest generation observed by the controller.", + Type: []string{"integer"}, + Format: "int64", }, }, - }, - }, - }, - } -} - -func schema_pkg_apis_storage_v1_Quotas(ref common.ReferenceCallback) common.OpenAPIDefinition { - return common.OpenAPIDefinition{ - Schema: spec.Schema{ - SchemaProps: spec.SchemaProps{ - Type: []string{"object"}, - Properties: map[string]spec.Schema{ - "project": { + "virtualClusterObjects": { SchemaProps: spec.SchemaProps{ - Description: "Project holds the quotas for the whole project", - Type: []string{"object"}, - AdditionalProperties: &spec.SchemaOrBool{ - Allows: true, - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: "", - Type: []string{"string"}, - Format: "", - }, - }, - }, + Description: "VirtualClusterObjects are the objects that were applied within the virtual cluster itself", + Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.ObjectsStatus"), }, }, - "user": { + "deployHash": { SchemaProps: spec.SchemaProps{ - Description: "User holds the quotas per user / team", - Type: []string{"object"}, - AdditionalProperties: &spec.SchemaOrBool{ - Allows: true, - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: "", - Type: []string{"string"}, - Format: "", - }, - }, - }, + Description: "DeployHash saves the latest applied chart hash", + Type: []string{"string"}, + Format: "", }, }, - }, - }, - }, - } -} - -func schema_pkg_apis_storage_v1_RancherIntegrationSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { - return common.OpenAPIDefinition{ - Schema: spec.Schema{ - SchemaProps: spec.SchemaProps{ - Type: []string{"object"}, - Properties: map[string]spec.Schema{ - "enabled": { + "multiNamespace": { SchemaProps: spec.SchemaProps{ - Description: "Enabled indicates if the Rancher Project Integration is enabled for this project.", + Description: "MultiNamespace indicates if this is a multinamespace enabled virtual cluster", Type: []string{"boolean"}, Format: "", }, }, - "projectRef": { - SchemaProps: spec.SchemaProps{ - Description: "ProjectRef defines references to rancher project, required for syncMembers and syncVirtualClusters.syncMembers", - Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.RancherProjectRef"), - }, - }, - "importVirtualClusters": { - SchemaProps: spec.SchemaProps{ - Description: "ImportVirtualClusters defines settings to import virtual clusters to Rancher on creation", - Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.ImportVirtualClustersSpec"), - }, - }, - "syncMembers": { + "helmRelease": { SchemaProps: spec.SchemaProps{ - Description: "SyncMembers defines settings to sync Rancher project members to the devsy project", - Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.SyncMembersSpec"), + Description: "DEPRECATED: do not use anymore the status of the helm release that was used to deploy the virtual cluster", + Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.VirtualClusterHelmReleaseStatus"), }, }, }, }, }, Dependencies: []string{ - "github.com/devsy-org/api/pkg/apis/storage/v1.ImportVirtualClustersSpec", "github.com/devsy-org/api/pkg/apis/storage/v1.RancherProjectRef", "github.com/devsy-org/api/pkg/apis/storage/v1.SyncMembersSpec"}, + "github.com/devsy-org/agentapi/pkg/apis/devsy/storage/v1.Condition", "github.com/devsy-org/api/pkg/apis/storage/v1.ObjectsStatus", "github.com/devsy-org/api/pkg/apis/storage/v1.VirtualClusterHelmReleaseStatus"}, } } -func schema_pkg_apis_storage_v1_RancherProjectRef(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_storage_v1_VirtualClusterTemplate(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Type: []string{"object"}, + Description: "VirtualClusterTemplate holds the virtualClusterTemplate information", + Type: []string{"object"}, Properties: map[string]spec.Schema{ - "cluster": { + "kind": { SchemaProps: spec.SchemaProps{ - Description: "Cluster defines the Rancher cluster ID Needs to be the same id within Devsy", + Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", Type: []string{"string"}, Format: "", }, }, - "project": { + "apiVersion": { SchemaProps: spec.SchemaProps{ - Description: "Project defines the Rancher project ID", + Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", Type: []string{"string"}, Format: "", }, }, - }, - }, - }, - } -} - -func schema_pkg_apis_storage_v1_RequirePreset(ref common.ReferenceCallback) common.OpenAPIDefinition { - return common.OpenAPIDefinition{ - Schema: spec.Schema{ - SchemaProps: spec.SchemaProps{ - Type: []string{"object"}, - Properties: map[string]spec.Schema{ - "disabled": { + "metadata": { SchemaProps: spec.SchemaProps{ - Description: "If true, all users within the project will not be allowed to create a new instance without a preset. By default, all users are allowed to create a new instance without a preset.", - Type: []string{"boolean"}, - Format: "", + Default: map[string]interface{}{}, + Ref: ref(metav1.ObjectMeta{}.OpenAPIModelName()), }, }, - }, - }, - }, - } -} - -func schema_pkg_apis_storage_v1_RequireTemplate(ref common.ReferenceCallback) common.OpenAPIDefinition { - return common.OpenAPIDefinition{ - Schema: spec.Schema{ - SchemaProps: spec.SchemaProps{ - Type: []string{"object"}, - Properties: map[string]spec.Schema{ - "disabled": { + "spec": { SchemaProps: spec.SchemaProps{ - Description: "If true, all users within the project will be allowed to create a new instance without a template. By default, only admins are allowed to create a new instance without a template.", - Type: []string{"boolean"}, - Format: "", + Default: map[string]interface{}{}, + Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.VirtualClusterTemplateSpec"), }, }, - }, - }, - }, - } -} - -func schema_pkg_apis_storage_v1_RunnerRef(ref common.ReferenceCallback) common.OpenAPIDefinition { - return common.OpenAPIDefinition{ - Schema: spec.Schema{ - SchemaProps: spec.SchemaProps{ - Type: []string{"object"}, - Properties: map[string]spec.Schema{ - "runner": { + "status": { SchemaProps: spec.SchemaProps{ - Description: "Runner is the connected runner the workspace will be created in", - Type: []string{"string"}, - Format: "", + Default: map[string]interface{}{}, + Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.VirtualClusterTemplateStatus"), }, }, }, }, }, + Dependencies: []string{ + "github.com/devsy-org/api/pkg/apis/storage/v1.VirtualClusterTemplateSpec", "github.com/devsy-org/api/pkg/apis/storage/v1.VirtualClusterTemplateStatus", metav1.ObjectMeta{}.OpenAPIModelName()}, } } -func schema_pkg_apis_storage_v1_SSOIdentity(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_storage_v1_VirtualClusterTemplateDefinition(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ Type: []string{"object"}, Properties: map[string]spec.Schema{ - "userId": { - SchemaProps: spec.SchemaProps{ - Description: "The subject of the user", - Type: []string{"string"}, - Format: "", - }, - }, - "username": { - SchemaProps: spec.SchemaProps{ - Description: "The username", - Type: []string{"string"}, - Format: "", - }, - }, - "preferredUsername": { - SchemaProps: spec.SchemaProps{ - Description: "The preferred username / display name", - Type: []string{"string"}, - Format: "", - }, - }, - "email": { + "metadata": { SchemaProps: spec.SchemaProps{ - Description: "The user email", - Type: []string{"string"}, - Format: "", + Description: "The virtual cluster metadata", + Default: map[string]interface{}{}, + Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.TemplateMetadata"), }, }, - "emailVerified": { + "instanceTemplate": { SchemaProps: spec.SchemaProps{ - Description: "If the user email was verified", - Type: []string{"boolean"}, - Format: "", + Description: "InstanceTemplate holds the virtual cluster instance template", + Default: map[string]interface{}{}, + Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.VirtualClusterInstanceTemplateDefinition"), }, }, - "extraClaims": { + "apps": { SchemaProps: spec.SchemaProps{ - Description: "ExtraClaims are claims that are not otherwise contained in this struct but may be provided by the OIDC provider. Only extra claims that are allowed by the auth config are included.", - Type: []string{"object"}, - AdditionalProperties: &spec.SchemaOrBool{ - Allows: true, + Description: "Apps specifies the apps that should get deployed by this template", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ - Default: "", - Type: []string{"string"}, - Format: "", + Default: map[string]interface{}{}, + Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.AppReference"), }, }, }, }, }, - "groups": { + "charts": { SchemaProps: spec.SchemaProps{ - Description: "The groups from the identity provider", + Description: "Charts are helm charts that should get deployed", Type: []string{"array"}, Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ - Default: "", - Type: []string{"string"}, - Format: "", + Default: map[string]interface{}{}, + Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.TemplateHelmChart"), }, }, }, }, }, - "connector": { + "objects": { SchemaProps: spec.SchemaProps{ - Description: "Connector is the name of the connector this access key was created from", + Description: "Objects are Kubernetes style yamls that should get deployed into the virtual cluster", Type: []string{"string"}, Format: "", }, }, - "connectorData": { - SchemaProps: spec.SchemaProps{ - Description: "ConnectorData holds data used by the connector for subsequent requests after initial authentication, such as access tokens for upstream providers.\n\nThis data is never shared with end users, OAuth clients, or through the API.", - Type: []string{"string"}, - Format: "byte", - }, - }, - }, - }, - }, - } -} - -func schema_pkg_apis_storage_v1_SecretRef(ref common.ReferenceCallback) common.OpenAPIDefinition { - return common.OpenAPIDefinition{ - Schema: spec.Schema{ - SchemaProps: spec.SchemaProps{ - Description: "SecretRef is the reference to a secret containing the user password", - Type: []string{"object"}, - Properties: map[string]spec.Schema{ - "secretName": { + "access": { SchemaProps: spec.SchemaProps{ - Type: []string{"string"}, - Format: "", + Description: "Access defines the access of users and teams to the virtual cluster.", + Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.InstanceAccess"), }, }, - "secretNamespace": { + "pro": { SchemaProps: spec.SchemaProps{ - Type: []string{"string"}, - Format: "", + Description: "Pro defines the pro settings for the virtual cluster", + Default: map[string]interface{}{}, + Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.VirtualClusterProSpec"), }, }, - "key": { + "helmRelease": { SchemaProps: spec.SchemaProps{ - Type: []string{"string"}, - Format: "", + Description: "HelmRelease is the helm release configuration for the virtual cluster.", + Default: map[string]interface{}{}, + Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.VirtualClusterHelmRelease"), }, }, - }, - }, - }, - } -} - -func schema_pkg_apis_storage_v1_SharedSecret(ref common.ReferenceCallback) common.OpenAPIDefinition { - return common.OpenAPIDefinition{ - Schema: spec.Schema{ - SchemaProps: spec.SchemaProps{ - Description: "SharedSecret holds the secret information", - Type: []string{"object"}, - Properties: map[string]spec.Schema{ - "kind": { + "accessPoint": { SchemaProps: spec.SchemaProps{ - Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", - Type: []string{"string"}, - Format: "", + Description: "AccessPoint defines settings to expose the virtual cluster directly via an ingress rather than through the (default) Devsy proxy", + Default: map[string]interface{}{}, + Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.VirtualClusterAccessPoint"), }, }, - "apiVersion": { + "forwardToken": { SchemaProps: spec.SchemaProps{ - Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", - Type: []string{"string"}, + Description: "ForwardToken signals the proxy to pass through the used token to the virtual Kubernetes api server and do a TokenReview there.", + Type: []string{"boolean"}, Format: "", }, }, - "metadata": { - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref(metav1.ObjectMeta{}.OpenAPIModelName()), - }, - }, - "spec": { - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.SharedSecretSpec"), - }, - }, - "status": { + "spaceTemplate": { SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.SharedSecretStatus"), + Description: "SpaceTemplate holds the space template", + Default: map[string]interface{}{}, + Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.VirtualClusterSpaceTemplateDefinition"), }, }, }, }, }, Dependencies: []string{ - "github.com/devsy-org/api/pkg/apis/storage/v1.SharedSecretSpec", "github.com/devsy-org/api/pkg/apis/storage/v1.SharedSecretStatus", metav1.ObjectMeta{}.OpenAPIModelName()}, + "github.com/devsy-org/api/pkg/apis/storage/v1.AppReference", "github.com/devsy-org/api/pkg/apis/storage/v1.InstanceAccess", "github.com/devsy-org/api/pkg/apis/storage/v1.TemplateHelmChart", "github.com/devsy-org/api/pkg/apis/storage/v1.TemplateMetadata", "github.com/devsy-org/api/pkg/apis/storage/v1.VirtualClusterAccessPoint", "github.com/devsy-org/api/pkg/apis/storage/v1.VirtualClusterHelmRelease", "github.com/devsy-org/api/pkg/apis/storage/v1.VirtualClusterInstanceTemplateDefinition", "github.com/devsy-org/api/pkg/apis/storage/v1.VirtualClusterProSpec", "github.com/devsy-org/api/pkg/apis/storage/v1.VirtualClusterSpaceTemplateDefinition"}, } } -func schema_pkg_apis_storage_v1_SharedSecretList(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_storage_v1_VirtualClusterTemplateList(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "SharedSecretList contains a list of SharedSecret", + Description: "VirtualClusterTemplateList contains a list of VirtualClusterTemplate.", Type: []string{"object"}, Properties: map[string]spec.Schema{ "kind": { @@ -31750,7 +31444,7 @@ func schema_pkg_apis_storage_v1_SharedSecretList(ref common.ReferenceCallback) c Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.SharedSecret"), + Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.VirtualClusterTemplate"), }, }, }, @@ -31761,27 +31455,46 @@ func schema_pkg_apis_storage_v1_SharedSecretList(ref common.ReferenceCallback) c }, }, Dependencies: []string{ - "github.com/devsy-org/api/pkg/apis/storage/v1.SharedSecret", metav1.ListMeta{}.OpenAPIModelName()}, + "github.com/devsy-org/api/pkg/apis/storage/v1.VirtualClusterTemplate", metav1.ListMeta{}.OpenAPIModelName()}, } } -func schema_pkg_apis_storage_v1_SharedSecretSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_storage_v1_VirtualClusterTemplateSpaceTemplateRef(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "name": { + SchemaProps: spec.SchemaProps{ + Description: "Name of the space template", + Type: []string{"string"}, + Format: "", + }, + }, + }, + }, + }, + } +} + +func schema_pkg_apis_storage_v1_VirtualClusterTemplateSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "SharedSecretSpec holds the specification", + Description: "VirtualClusterTemplateSpec holds the specification.", Type: []string{"object"}, Properties: map[string]spec.Schema{ "displayName": { SchemaProps: spec.SchemaProps{ - Description: "DisplayName is the name that should be displayed in the UI", + Description: "DisplayName is the name that is shown in the UI", Type: []string{"string"}, Format: "", }, }, "description": { SchemaProps: spec.SchemaProps{ - Description: "Description describes a shared secret", + Description: "Description describes the virtual cluster template", Type: []string{"string"}, Format: "", }, @@ -31792,16 +31505,36 @@ func schema_pkg_apis_storage_v1_SharedSecretSpec(ref common.ReferenceCallback) c Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.UserOrTeam"), }, }, - "data": { + "template": { SchemaProps: spec.SchemaProps{ - Description: "Data contains the secret data. Each key must consist of alphanumeric characters, '-', '_' or '.'. The serialized form of the secret data is a base64 encoded string, representing the arbitrary (possibly non-string) data value here. Described in https://tools.ietf.org/html/rfc4648#section-4", - Type: []string{"object"}, - AdditionalProperties: &spec.SchemaOrBool{ - Allows: true, + Description: "Template holds the virtual cluster template", + Default: map[string]interface{}{}, + Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.VirtualClusterTemplateDefinition"), + }, + }, + "parameters": { + SchemaProps: spec.SchemaProps{ + Description: "Parameters define additional app parameters that will set helm values", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ - Type: []string{"string"}, - Format: "byte", + Default: map[string]interface{}{}, + Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.AppParameter"), + }, + }, + }, + }, + }, + "versions": { + SchemaProps: spec.SchemaProps{ + Description: "Versions are different versions of the template that can be referenced as well", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.VirtualClusterTemplateVersion"), }, }, }, @@ -31809,7 +31542,7 @@ func schema_pkg_apis_storage_v1_SharedSecretSpec(ref common.ReferenceCallback) c }, "access": { SchemaProps: spec.SchemaProps{ - Description: "Access holds the access rights for users and teams which will be transformed to Roles and RoleBindings", + Description: "Access holds the access rights for users and teams", Type: []string{"array"}, Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ @@ -31821,322 +31554,383 @@ func schema_pkg_apis_storage_v1_SharedSecretSpec(ref common.ReferenceCallback) c }, }, }, + "spaceTemplateRef": { + SchemaProps: spec.SchemaProps{ + Description: "DEPRECATED: SpaceTemplate to use to create the virtual cluster space if it does not exist", + Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.VirtualClusterTemplateSpaceTemplateRef"), + }, + }, }, }, }, Dependencies: []string{ - "github.com/devsy-org/api/pkg/apis/storage/v1.Access", "github.com/devsy-org/api/pkg/apis/storage/v1.UserOrTeam"}, + "github.com/devsy-org/api/pkg/apis/storage/v1.Access", "github.com/devsy-org/api/pkg/apis/storage/v1.AppParameter", "github.com/devsy-org/api/pkg/apis/storage/v1.UserOrTeam", "github.com/devsy-org/api/pkg/apis/storage/v1.VirtualClusterTemplateDefinition", "github.com/devsy-org/api/pkg/apis/storage/v1.VirtualClusterTemplateSpaceTemplateRef", "github.com/devsy-org/api/pkg/apis/storage/v1.VirtualClusterTemplateVersion"}, } } -func schema_pkg_apis_storage_v1_SharedSecretStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_storage_v1_VirtualClusterTemplateStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "SharedSecretStatus holds the status", + Description: "VirtualClusterTemplateStatus holds the status.", Type: []string{"object"}, + }, + }, + } +} + +func schema_pkg_apis_storage_v1_VirtualClusterTemplateVersion(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"object"}, Properties: map[string]spec.Schema{ - "conditions": { + "template": { SchemaProps: spec.SchemaProps{ - Description: "Conditions holds several conditions the project might be in", + Description: "Template holds the space template", + Default: map[string]interface{}{}, + Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.VirtualClusterTemplateDefinition"), + }, + }, + "parameters": { + SchemaProps: spec.SchemaProps{ + Description: "Parameters define additional app parameters that will set helm values", Type: []string{"array"}, Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref(storagev1.Condition{}.OpenAPIModelName()), + Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.AppParameter"), }, }, }, }, }, + "version": { + SchemaProps: spec.SchemaProps{ + Description: "Version is the version. Needs to be in X.X.X format.", + Type: []string{"string"}, + Format: "", + }, + }, }, }, }, Dependencies: []string{ - storagev1.Condition{}.OpenAPIModelName()}, + "github.com/devsy-org/api/pkg/apis/storage/v1.AppParameter", "github.com/devsy-org/api/pkg/apis/storage/v1.VirtualClusterTemplateDefinition"}, } } -func schema_pkg_apis_storage_v1_SpaceInstance(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_storage_v1_WorkspaceRef(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "SpaceInstance", - Type: []string{"object"}, + Type: []string{"object"}, Properties: map[string]spec.Schema{ - "kind": { - SchemaProps: spec.SchemaProps{ - Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", - Type: []string{"string"}, - Format: "", - }, - }, - "apiVersion": { + "name": { SchemaProps: spec.SchemaProps{ - Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + Description: "Name is the name of DevsyWorkspaceTemplate this references", + Default: "", Type: []string{"string"}, Format: "", }, }, - "metadata": { + }, + Required: []string{"name"}, + }, + }, + } +} + +func schema_pkg_apis_storage_v1_WorkspaceResolvedTarget(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "cluster": { SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref(metav1.ObjectMeta{}.OpenAPIModelName()), + Description: "Cluster is the reference to the cluster holding this workspace", + Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.WorkspaceTargetNamespace"), }, }, - "spec": { + "virtualCluster": { SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.SpaceInstanceSpec"), + Description: "Cluster is the reference to the virtual cluster holding this workspace", + Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.WorkspaceTargetNamespace"), }, }, - "status": { + "space": { SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.SpaceInstanceStatus"), + Description: "Space is the reference to the space holding this workspace", + Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.WorkspaceTargetName"), }, }, }, }, }, Dependencies: []string{ - "github.com/devsy-org/api/pkg/apis/storage/v1.SpaceInstanceSpec", "github.com/devsy-org/api/pkg/apis/storage/v1.SpaceInstanceStatus", metav1.ObjectMeta{}.OpenAPIModelName()}, + "github.com/devsy-org/api/pkg/apis/storage/v1.WorkspaceTargetName", "github.com/devsy-org/api/pkg/apis/storage/v1.WorkspaceTargetNamespace"}, } } -func schema_pkg_apis_storage_v1_SpaceInstanceList(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_storage_v1_WorkspaceStatusResult(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "SpaceInstanceList contains a list of SpaceInstance objects", - Type: []string{"object"}, + Type: []string{"object"}, Properties: map[string]spec.Schema{ - "kind": { + "id": { SchemaProps: spec.SchemaProps{ - Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", - Type: []string{"string"}, - Format: "", + Type: []string{"string"}, + Format: "", }, }, - "apiVersion": { + "context": { SchemaProps: spec.SchemaProps{ - Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", - Type: []string{"string"}, - Format: "", + Type: []string{"string"}, + Format: "", }, }, - "metadata": { + "provider": { SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref(metav1.ListMeta{}.OpenAPIModelName()), + Type: []string{"string"}, + Format: "", }, }, - "items": { + "state": { SchemaProps: spec.SchemaProps{ - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.SpaceInstance"), - }, - }, - }, + Type: []string{"string"}, + Format: "", }, }, }, - Required: []string{"items"}, }, }, - Dependencies: []string{ - "github.com/devsy-org/api/pkg/apis/storage/v1.SpaceInstance", metav1.ListMeta{}.OpenAPIModelName()}, } } -func schema_pkg_apis_storage_v1_SpaceInstanceSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_storage_v1_WorkspaceTarget(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ Type: []string{"object"}, Properties: map[string]spec.Schema{ - "displayName": { + "cluster": { SchemaProps: spec.SchemaProps{ - Description: "DisplayName is the name that should be displayed in the UI", - Type: []string{"string"}, - Format: "", + Description: "Cluster is the reference to the cluster holding this workspace", + Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.WorkspaceTargetName"), }, }, - "description": { + "virtualCluster": { SchemaProps: spec.SchemaProps{ - Description: "Description describes a space instance", - Type: []string{"string"}, - Format: "", + Description: "Cluster is the reference to the virtual cluster holding this workspace", + Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.WorkspaceTargetName"), }, }, - "owner": { + }, + }, + }, + Dependencies: []string{ + "github.com/devsy-org/api/pkg/apis/storage/v1.WorkspaceTargetName"}, + } +} + +func schema_pkg_apis_storage_v1_WorkspaceTargetName(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "name": { SchemaProps: spec.SchemaProps{ - Description: "Owner holds the owner of this object", - Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.UserOrTeam"), + Description: "Name is the name of the target", + Default: "", + Type: []string{"string"}, + Format: "", }, }, - "templateRef": { + }, + Required: []string{"name"}, + }, + }, + } +} + +func schema_pkg_apis_storage_v1_WorkspaceTargetNamespace(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "name": { SchemaProps: spec.SchemaProps{ - Description: "TemplateRef holds the space template reference", - Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.TemplateRef"), + Description: "Name is the name of the object", + Default: "", + Type: []string{"string"}, + Format: "", }, }, - "template": { + "namespace": { SchemaProps: spec.SchemaProps{ - Description: "Template is the inline template to use for space creation. This is mutually exclusive with templateRef.", - Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.SpaceTemplateDefinition"), + Description: "Namespace is the namespace within the cluster.", + Type: []string{"string"}, + Format: "", }, }, - "clusterRef": { + }, + Required: []string{"name"}, + }, + }, + } +} + +func schema_pkg_apis_ui_v1_CspPolicy(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "Script": { SchemaProps: spec.SchemaProps{ - Description: "ClusterRef is the reference to the connected cluster holding this space", - Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.ClusterRef"), + Default: "", + Type: []string{"string"}, + Format: "", }, }, - "parameters": { + "Connect": { SchemaProps: spec.SchemaProps{ - Description: "Parameters are values to pass to the template. The values should be encoded as YAML string where each parameter is represented as a top-level field key.", - Type: []string{"string"}, - Format: "", + Default: "", + Type: []string{"string"}, + Format: "", }, }, - "extraAccessRules": { + "Frame": { SchemaProps: spec.SchemaProps{ - Description: "ExtraAccessRules defines extra rules which users and teams should have which access to the virtual cluster.", - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.InstanceAccessRule"), - }, - }, - }, + Default: "", + Type: []string{"string"}, + Format: "", }, }, - "access": { + "Font": { SchemaProps: spec.SchemaProps{ - Description: "Access holds the access rights for users and teams", - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.Access"), - }, - }, - }, + Default: "", + Type: []string{"string"}, + Format: "", }, }, }, + Required: []string{"Script", "Connect", "Frame", "Font"}, }, }, - Dependencies: []string{ - "github.com/devsy-org/api/pkg/apis/storage/v1.Access", "github.com/devsy-org/api/pkg/apis/storage/v1.ClusterRef", "github.com/devsy-org/api/pkg/apis/storage/v1.InstanceAccessRule", "github.com/devsy-org/api/pkg/apis/storage/v1.SpaceTemplateDefinition", "github.com/devsy-org/api/pkg/apis/storage/v1.TemplateRef", "github.com/devsy-org/api/pkg/apis/storage/v1.UserOrTeam"}, } } -func schema_pkg_apis_storage_v1_SpaceInstanceStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_ui_v1_DevsyVersion(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ Type: []string{"object"}, Properties: map[string]spec.Schema{ - "phase": { + "tagName": { SchemaProps: spec.SchemaProps{ - Description: "Phase describes the current phase the space instance is in", + Description: "TagName is the full tag name", Type: []string{"string"}, Format: "", }, }, - "reason": { + "prerelease": { SchemaProps: spec.SchemaProps{ - Description: "Reason describes the reason in machine-readable form", - Type: []string{"string"}, + Description: "PreRelease determines if the version is marked as prerelease", + Type: []string{"boolean"}, Format: "", }, }, - "message": { + }, + }, + }, + } +} + +func schema_pkg_apis_ui_v1_ExternalURLs(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "block": { SchemaProps: spec.SchemaProps{ - Description: "Message describes the reason in human-readable form", - Type: []string{"string"}, + Description: "Block determines if requests to external URLs from the UI should be blocked", + Type: []string{"boolean"}, Format: "", }, }, - "conditions": { + "allow": { SchemaProps: spec.SchemaProps{ - Description: "Conditions holds several conditions the virtual cluster might be in", + Description: "Allow specifies which external URLs can be called. In addition to the predefined modules, - \"devsy\" (license page, feature descriptions, ...) - \"gtm\" (google tag manager) - \"featurebase\" (changelog) any URL can be added to this list. This will allow the UI to make any request to this URL. This is only active when Block is true.", Type: []string{"array"}, Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref(storagev1.Condition{}.OpenAPIModelName()), + Default: "", + Type: []string{"string"}, + Format: "", }, }, }, }, }, - "spaceObjects": { - SchemaProps: spec.SchemaProps{ - Description: "SpaceObjects are the objects that were applied within the virtual cluster space", - Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.ObjectsStatus"), - }, - }, - "space": { - SchemaProps: spec.SchemaProps{ - Description: "Space is the template rendered with all the parameters", - Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.SpaceTemplateDefinition"), - }, - }, - "ignoreReconciliation": { - SchemaProps: spec.SchemaProps{ - Description: "IgnoreReconciliation tells the controller to ignore reconciliation for this instance -- this is primarily used when migrating virtual cluster instances from project to project; this prevents a situation where there are two virtual cluster instances representing the same virtual cluster which could cause issues with concurrent reconciliations of the same object. Once the virtual cluster instance has been cloned and placed into the new project, this (the \"old\") virtual cluster instance can safely be deleted.", - Type: []string{"boolean"}, - Format: "", - }, - }, }, }, }, - Dependencies: []string{ - storagev1.Condition{}.OpenAPIModelName(), "github.com/devsy-org/api/pkg/apis/storage/v1.ObjectsStatus", "github.com/devsy-org/api/pkg/apis/storage/v1.SpaceTemplateDefinition"}, } } -func schema_pkg_apis_storage_v1_SpaceInstanceTemplateDefinition(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_ui_v1_NavBarButton(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "SpaceInstanceTemplateDefinition holds the space instance template", - Type: []string{"object"}, + Type: []string{"object"}, Properties: map[string]spec.Schema{ - "metadata": { + "position": { SchemaProps: spec.SchemaProps{ - Description: "The space instance metadata", - Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.TemplateMetadata"), + Description: "Position holds the position of the button, can be one of: TopStart, TopEnd, BottomStart, BottomEnd. Defaults to BottomEnd", + Type: []string{"string"}, + Format: "", + }, + }, + "text": { + SchemaProps: spec.SchemaProps{ + Description: "Text holds text for the button", + Type: []string{"string"}, + Format: "", + }, + }, + "link": { + SchemaProps: spec.SchemaProps{ + Description: "Link holds the link of the navbar button", + Type: []string{"string"}, + Format: "", + }, + }, + "icon": { + SchemaProps: spec.SchemaProps{ + Description: "Icon holds the url of the icon to display", + Type: []string{"string"}, + Format: "", }, }, }, }, }, - Dependencies: []string{ - "github.com/devsy-org/api/pkg/apis/storage/v1.TemplateMetadata"}, } } -func schema_pkg_apis_storage_v1_SpaceTemplate(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_ui_v1_UISettings(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "SpaceTemplate holds the space template information", + Description: "UISettings holds the devsy ui configuration settings", Type: []string{"object"}, Properties: map[string]spec.Schema{ "kind": { @@ -32162,267 +31956,304 @@ func schema_pkg_apis_storage_v1_SpaceTemplate(ref common.ReferenceCallback) comm "spec": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.SpaceTemplateSpec"), + Ref: ref("github.com/devsy-org/api/pkg/apis/ui/v1.UISettingsSpec"), }, }, "status": { SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.SpaceTemplateStatus"), + Ref: ref("github.com/devsy-org/api/pkg/apis/ui/v1.UISettingsStatus"), }, }, }, }, }, Dependencies: []string{ - "github.com/devsy-org/api/pkg/apis/storage/v1.SpaceTemplateSpec", "github.com/devsy-org/api/pkg/apis/storage/v1.SpaceTemplateStatus", metav1.ObjectMeta{}.OpenAPIModelName()}, + "github.com/devsy-org/api/pkg/apis/ui/v1.UISettingsSpec", "github.com/devsy-org/api/pkg/apis/ui/v1.UISettingsStatus", metav1.ObjectMeta{}.OpenAPIModelName()}, } } -func schema_pkg_apis_storage_v1_SpaceTemplateDefinition(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_ui_v1_UISettingsConfig(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ Type: []string{"object"}, Properties: map[string]spec.Schema{ - "metadata": { + "loftVersion": { SchemaProps: spec.SchemaProps{ - Description: "The space metadata", - Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.TemplateMetadata"), + Description: "DevsyVersion holds the current devsy version", + Type: []string{"string"}, + Format: "", }, }, - "instanceTemplate": { + "logoURL": { SchemaProps: spec.SchemaProps{ - Description: "InstanceTemplate holds the space instance template", - Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.SpaceInstanceTemplateDefinition"), + Description: "LogoURL is url pointing to the logo to use in the Devsy UI. This path must be accessible for clients accessing the Devsy UI!", + Type: []string{"string"}, + Format: "", }, }, - "objects": { + "smallLogoURL": { SchemaProps: spec.SchemaProps{ - Description: "Objects are Kubernetes style yamls that should get deployed into the virtual cluster", + Description: "SmallLogoURL is url pointing to the small logo to use in the Devsy UI. This path must be accessible for clients accessing the Devsy UI!", Type: []string{"string"}, Format: "", }, }, - "charts": { + "logoBackgroundColor": { SchemaProps: spec.SchemaProps{ - Description: "Charts are helm charts that should get deployed", + Description: "LogoBackgroundColor is the color value (ex: \"#12345\") to use as the background color for the logo", + Type: []string{"string"}, + Format: "", + }, + }, + "legalTemplate": { + SchemaProps: spec.SchemaProps{ + Description: "LegalTemplate is a text (html) string containing the legal template to prompt to users when authenticating to Devsy", + Type: []string{"string"}, + Format: "", + }, + }, + "primaryColor": { + SchemaProps: spec.SchemaProps{ + Description: "PrimaryColor is the color value (ex: \"#12345\") to use as the primary color", + Type: []string{"string"}, + Format: "", + }, + }, + "sidebarColor": { + SchemaProps: spec.SchemaProps{ + Description: "SidebarColor is the color value (ex: \"#12345\") to use for the sidebar", + Type: []string{"string"}, + Format: "", + }, + }, + "accentColor": { + SchemaProps: spec.SchemaProps{ + Description: "AccentColor is the color value (ex: \"#12345\") to use for the accent", + Type: []string{"string"}, + Format: "", + }, + }, + "customCss": { + SchemaProps: spec.SchemaProps{ + Description: "CustomCSS holds URLs with custom css files that should be included when loading the UI", Type: []string{"array"}, Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.TemplateHelmChart"), + Default: "", + Type: []string{"string"}, + Format: "", }, }, }, }, }, - "apps": { + "customJavaScript": { SchemaProps: spec.SchemaProps{ - Description: "Apps specifies the apps that should get deployed by this template", + Description: "CustomJavaScript holds URLs with custom js files that should be included when loading the UI", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + }, + }, + }, + "navBarButtons": { + SchemaProps: spec.SchemaProps{ + Description: "NavBarButtons holds extra nav bar buttons", Type: []string{"array"}, Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.AppReference"), + Ref: ref("github.com/devsy-org/api/pkg/apis/ui/v1.NavBarButton"), }, }, }, }, }, - "access": { + "externalURLs": { SchemaProps: spec.SchemaProps{ - Description: "The space access", - Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.InstanceAccess"), + Description: "External URLs that can be called from the UI", + Default: map[string]interface{}{}, + Ref: ref("github.com/devsy-org/api/pkg/apis/ui/v1.ExternalURLs"), }, }, }, }, }, Dependencies: []string{ - "github.com/devsy-org/api/pkg/apis/storage/v1.AppReference", "github.com/devsy-org/api/pkg/apis/storage/v1.InstanceAccess", "github.com/devsy-org/api/pkg/apis/storage/v1.SpaceInstanceTemplateDefinition", "github.com/devsy-org/api/pkg/apis/storage/v1.TemplateHelmChart", "github.com/devsy-org/api/pkg/apis/storage/v1.TemplateMetadata"}, + "github.com/devsy-org/api/pkg/apis/ui/v1.ExternalURLs", "github.com/devsy-org/api/pkg/apis/ui/v1.NavBarButton"}, } } -func schema_pkg_apis_storage_v1_SpaceTemplateList(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_ui_v1_UISettingsSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "SpaceTemplateList contains a list of SpaceTemplate", + Description: "UISettingsSpec holds the specification", Type: []string{"object"}, Properties: map[string]spec.Schema{ - "kind": { + "loftVersion": { SchemaProps: spec.SchemaProps{ - Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + Description: "DevsyVersion holds the current devsy version", Type: []string{"string"}, Format: "", }, }, - "apiVersion": { + "logoURL": { SchemaProps: spec.SchemaProps{ - Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + Description: "LogoURL is url pointing to the logo to use in the Devsy UI. This path must be accessible for clients accessing the Devsy UI!", Type: []string{"string"}, Format: "", }, }, - "metadata": { + "smallLogoURL": { SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref(metav1.ListMeta{}.OpenAPIModelName()), + Description: "SmallLogoURL is url pointing to the small logo to use in the Devsy UI. This path must be accessible for clients accessing the Devsy UI!", + Type: []string{"string"}, + Format: "", }, }, - "items": { + "logoBackgroundColor": { SchemaProps: spec.SchemaProps{ - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.SpaceTemplate"), - }, - }, - }, + Description: "LogoBackgroundColor is the color value (ex: \"#12345\") to use as the background color for the logo", + Type: []string{"string"}, + Format: "", }, }, - }, - Required: []string{"items"}, - }, - }, - Dependencies: []string{ - "github.com/devsy-org/api/pkg/apis/storage/v1.SpaceTemplate", metav1.ListMeta{}.OpenAPIModelName()}, - } -} - -func schema_pkg_apis_storage_v1_SpaceTemplateSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { - return common.OpenAPIDefinition{ - Schema: spec.Schema{ - SchemaProps: spec.SchemaProps{ - Description: "SpaceTemplateSpec holds the specification", - Type: []string{"object"}, - Properties: map[string]spec.Schema{ - "displayName": { + "legalTemplate": { SchemaProps: spec.SchemaProps{ - Description: "DisplayName is the name that is shown in the UI", + Description: "LegalTemplate is a text (html) string containing the legal template to prompt to users when authenticating to Devsy", Type: []string{"string"}, Format: "", }, }, - "description": { + "primaryColor": { SchemaProps: spec.SchemaProps{ - Description: "Description describes the space template", + Description: "PrimaryColor is the color value (ex: \"#12345\") to use as the primary color", Type: []string{"string"}, Format: "", }, }, - "owner": { + "sidebarColor": { SchemaProps: spec.SchemaProps{ - Description: "Owner holds the owner of this object", - Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.UserOrTeam"), + Description: "SidebarColor is the color value (ex: \"#12345\") to use for the sidebar", + Type: []string{"string"}, + Format: "", }, }, - "template": { + "accentColor": { SchemaProps: spec.SchemaProps{ - Description: "Template holds the space template", - Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.SpaceTemplateDefinition"), + Description: "AccentColor is the color value (ex: \"#12345\") to use for the accent", + Type: []string{"string"}, + Format: "", }, }, - "parameters": { + "customCss": { SchemaProps: spec.SchemaProps{ - Description: "Parameters define additional app parameters that will set helm values", + Description: "CustomCSS holds URLs with custom css files that should be included when loading the UI", Type: []string{"array"}, Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.AppParameter"), + Default: "", + Type: []string{"string"}, + Format: "", }, }, }, }, }, - "versions": { + "customJavaScript": { SchemaProps: spec.SchemaProps{ - Description: "Versions are different space template versions that can be referenced as well", + Description: "CustomJavaScript holds URLs with custom js files that should be included when loading the UI", Type: []string{"array"}, Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.SpaceTemplateVersion"), + Default: "", + Type: []string{"string"}, + Format: "", }, }, }, }, }, - "access": { + "navBarButtons": { SchemaProps: spec.SchemaProps{ - Description: "Access holds the access rights for users and teams", + Description: "NavBarButtons holds extra nav bar buttons", Type: []string{"array"}, Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.Access"), + Ref: ref("github.com/devsy-org/api/pkg/apis/ui/v1.NavBarButton"), }, }, }, }, }, - }, - }, - }, - Dependencies: []string{ - "github.com/devsy-org/api/pkg/apis/storage/v1.Access", "github.com/devsy-org/api/pkg/apis/storage/v1.AppParameter", "github.com/devsy-org/api/pkg/apis/storage/v1.SpaceTemplateDefinition", "github.com/devsy-org/api/pkg/apis/storage/v1.SpaceTemplateVersion", "github.com/devsy-org/api/pkg/apis/storage/v1.UserOrTeam"}, - } -} - -func schema_pkg_apis_storage_v1_SpaceTemplateStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { - return common.OpenAPIDefinition{ - Schema: spec.Schema{ - SchemaProps: spec.SchemaProps{ - Description: "SpaceTemplateStatus holds the status", - Type: []string{"object"}, - }, - }, - } -} - -func schema_pkg_apis_storage_v1_SpaceTemplateVersion(ref common.ReferenceCallback) common.OpenAPIDefinition { - return common.OpenAPIDefinition{ - Schema: spec.Schema{ - SchemaProps: spec.SchemaProps{ - Type: []string{"object"}, - Properties: map[string]spec.Schema{ - "template": { + "externalURLs": { SchemaProps: spec.SchemaProps{ - Description: "Template holds the space template", + Description: "External URLs that can be called from the UI", Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.SpaceTemplateDefinition"), + Ref: ref("github.com/devsy-org/api/pkg/apis/ui/v1.ExternalURLs"), }, }, - "parameters": { + "productName": { SchemaProps: spec.SchemaProps{ - Description: "Parameters define additional app parameters that will set helm values", + Description: "Name is the name of the product", + Type: []string{"string"}, + Format: "", + }, + }, + "offline": { + SchemaProps: spec.SchemaProps{ + Description: "Offline is true if devsy is running in an airgapped environment", + Type: []string{"boolean"}, + Format: "", + }, + }, + "hasHelmRelease": { + SchemaProps: spec.SchemaProps{ + Description: "HasHelmRelease indicates whether the Devsy Platform instance has been installed via Helm", + Type: []string{"boolean"}, + Format: "", + }, + }, + "defaultDevsyVersion": { + SchemaProps: spec.SchemaProps{ + Description: "DefaultDevsyVersion is the default version of vClusters", + Type: []string{"string"}, + Format: "", + }, + }, + "availableDevsyVersions": { + SchemaProps: spec.SchemaProps{ + Description: "AvailableDevsyVersions lists all virtual cluster versions available to the platform instance", Type: []string{"array"}, Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.AppParameter"), + Ref: ref("github.com/devsy-org/api/pkg/apis/ui/v1.DevsyVersion"), }, }, }, }, }, - "version": { + "loftHosted": { SchemaProps: spec.SchemaProps{ - Description: "Version is the version. Needs to be in X.X.X format.", - Type: []string{"string"}, + Description: "DevsyHosted indicates whether the Devsy Platform instance is hosted and operated by Devsy Labs Inc.", + Type: []string{"boolean"}, Format: "", }, }, @@ -32430,26 +32261,35 @@ func schema_pkg_apis_storage_v1_SpaceTemplateVersion(ref common.ReferenceCallbac }, }, Dependencies: []string{ - "github.com/devsy-org/api/pkg/apis/storage/v1.AppParameter", "github.com/devsy-org/api/pkg/apis/storage/v1.SpaceTemplateDefinition"}, + "github.com/devsy-org/api/pkg/apis/ui/v1.DevsyVersion", "github.com/devsy-org/api/pkg/apis/ui/v1.ExternalURLs", "github.com/devsy-org/api/pkg/apis/ui/v1.NavBarButton"}, } } -func schema_pkg_apis_storage_v1_Storage(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_ui_v1_UISettingsStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Type: []string{"object"}, + Description: "UISettingsStatus holds the status", + Type: []string{"object"}, Properties: map[string]spec.Schema{ - "storageClass": { + "csps": { SchemaProps: spec.SchemaProps{ - Description: "StorageClass the storage class to use when provisioning the metrics backend's persistent volume If set to \"-\" or \"\" dynamic provisioning is disabled If set to undefined or null (the default), the cluster's default storage class is used for provisioning", - Type: []string{"string"}, - Format: "", + Description: "Csps holds Content Security Policies", + Type: []string{"object"}, + AdditionalProperties: &spec.SchemaOrBool{ + Allows: true, + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("github.com/devsy-org/api/pkg/apis/ui/v1.CspPolicy"), + }, + }, + }, }, }, - "size": { + "cspConfig": { SchemaProps: spec.SchemaProps{ - Description: "Size the size of the metrics backend's persistent volume", + Description: "CspConfig holds the raw csp config from the user", Type: []string{"string"}, Format: "", }, @@ -32457,194 +32297,310 @@ func schema_pkg_apis_storage_v1_Storage(ref common.ReferenceCallback) common.Ope }, }, }, + Dependencies: []string{ + "github.com/devsy-org/api/pkg/apis/ui/v1.CspPolicy"}, } } -func schema_pkg_apis_storage_v1_StreamContainer(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_virtualcluster_v1_HelmRelease(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ Type: []string{"object"}, Properties: map[string]spec.Schema{ - "selector": { + "kind": { SchemaProps: spec.SchemaProps{ - Description: "Label selector for pods. The newest matching pod will be used to stream logs from", - Default: map[string]interface{}{}, - Ref: ref(metav1.LabelSelector{}.OpenAPIModelName()), + Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + Type: []string{"string"}, + Format: "", }, }, - "container": { + "apiVersion": { SchemaProps: spec.SchemaProps{ - Description: "Container is the container name to use", + Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", Type: []string{"string"}, Format: "", }, }, + "metadata": { + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref(metav1.ObjectMeta{}.OpenAPIModelName()), + }, + }, + "spec": { + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("github.com/devsy-org/api/pkg/apis/virtualcluster/v1.HelmReleaseSpec"), + }, + }, + "status": { + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref("github.com/devsy-org/api/pkg/apis/virtualcluster/v1.HelmReleaseStatus"), + }, + }, }, }, }, Dependencies: []string{ - metav1.LabelSelector{}.OpenAPIModelName()}, + "github.com/devsy-org/api/pkg/apis/virtualcluster/v1.HelmReleaseSpec", "github.com/devsy-org/api/pkg/apis/virtualcluster/v1.HelmReleaseStatus", metav1.ObjectMeta{}.OpenAPIModelName()}, } } -func schema_pkg_apis_storage_v1_SyncMembersSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_virtualcluster_v1_HelmReleaseList(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ Type: []string{"object"}, Properties: map[string]spec.Schema{ - "enabled": { + "kind": { SchemaProps: spec.SchemaProps{ - Description: "Enabled indicates whether to sync rancher project members to the devsy project.", - Type: []string{"boolean"}, + Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + Type: []string{"string"}, Format: "", }, }, - "roleMapping": { + "apiVersion": { SchemaProps: spec.SchemaProps{ - Description: "RoleMapping indicates an optional role mapping from a rancher role to a devsy role. Map to an empty role to exclude users and groups with that role from being synced.", - Type: []string{"object"}, - AdditionalProperties: &spec.SchemaOrBool{ - Allows: true, + Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + Type: []string{"string"}, + Format: "", + }, + }, + "metadata": { + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref(metav1.ListMeta{}.OpenAPIModelName()), + }, + }, + "items": { + SchemaProps: spec.SchemaProps{ + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ - Default: "", - Type: []string{"string"}, - Format: "", + Default: map[string]interface{}{}, + Ref: ref("github.com/devsy-org/api/pkg/apis/virtualcluster/v1.HelmRelease"), }, }, }, }, }, }, + Required: []string{"items"}, }, }, + Dependencies: []string{ + "github.com/devsy-org/api/pkg/apis/virtualcluster/v1.HelmRelease", metav1.ListMeta{}.OpenAPIModelName()}, } } -func schema_pkg_apis_storage_v1_Target(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_virtualcluster_v1_HelmReleaseSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ Type: []string{"object"}, Properties: map[string]spec.Schema{ - "spaceInstance": { + "chart": { SchemaProps: spec.SchemaProps{ - Description: "SpaceInstance defines a space instance as target", - Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.TargetInstance"), + Description: "Chart holds information about a chart that should get deployed", + Default: map[string]interface{}{}, + Ref: ref("github.com/devsy-org/agentapi/pkg/apis/devsy/cluster/v1.Chart"), }, }, - "virtualClusterInstance": { + "manifests": { SchemaProps: spec.SchemaProps{ - Description: "VirtualClusterInstance defines a virtual cluster instance as target", - Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.TargetInstance"), + Description: "Manifests holds kube manifests that will be deployed as a chart", + Type: []string{"string"}, + Format: "", }, }, - "cluster": { + "bash": { SchemaProps: spec.SchemaProps{ - Description: "Cluster defines a connected cluster as target", - Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.TargetCluster"), + Description: "Bash holds the bash script to execute in a container in the target", + Ref: ref("github.com/devsy-org/agentapi/pkg/apis/devsy/cluster/v1.Bash"), + }, + }, + "values": { + SchemaProps: spec.SchemaProps{ + Description: "Values is the set of extra Values added to the chart. These values merge with the default values inside of the chart. You can use golang templating in here with values from parameters.", + Type: []string{"string"}, + Format: "", + }, + }, + "parameters": { + SchemaProps: spec.SchemaProps{ + Description: "Parameters are additional helm chart values that will get merged with config and are then used to deploy the helm chart.", + Type: []string{"string"}, + Format: "", + }, + }, + "annotations": { + SchemaProps: spec.SchemaProps{ + Description: "Annotations are extra annotations for this helm release", + Type: []string{"object"}, + AdditionalProperties: &spec.SchemaOrBool{ + Allows: true, + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + }, }, }, }, }, }, Dependencies: []string{ - "github.com/devsy-org/api/pkg/apis/storage/v1.TargetCluster", "github.com/devsy-org/api/pkg/apis/storage/v1.TargetInstance"}, + "github.com/devsy-org/agentapi/pkg/apis/devsy/cluster/v1.Bash", "github.com/devsy-org/agentapi/pkg/apis/devsy/cluster/v1.Chart"}, } } -func schema_pkg_apis_storage_v1_TargetCluster(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_pkg_apis_virtualcluster_v1_HelmReleaseStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ Type: []string{"object"}, Properties: map[string]spec.Schema{ - "cluster": { + "version": { SchemaProps: spec.SchemaProps{ - Description: "Cluster is the cluster where the task should get executed", - Type: []string{"string"}, - Format: "", + Description: "Revision is an int which represents the revision of the release.", + Type: []string{"integer"}, + Format: "int32", }, }, - "namespace": { + "info": { SchemaProps: spec.SchemaProps{ - Description: "Namespace is the namespace where the task should get executed", - Type: []string{"string"}, - Format: "", + Description: "Info provides information about a release", + Ref: ref("github.com/devsy-org/agentapi/pkg/apis/devsy/cluster/v1.Info"), + }, + }, + "metadata": { + SchemaProps: spec.SchemaProps{ + Description: "Metadata provides information about a chart", + Ref: ref("github.com/devsy-org/agentapi/pkg/apis/devsy/cluster/v1.Metadata"), }, }, }, }, }, + Dependencies: []string{ + "github.com/devsy-org/agentapi/pkg/apis/devsy/cluster/v1.Info", "github.com/devsy-org/agentapi/pkg/apis/devsy/cluster/v1.Metadata"}, } } -func schema_pkg_apis_storage_v1_TargetInstance(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_k8sio_api_apps_v1_ControllerRevision(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Type: []string{"object"}, + Description: "ControllerRevision implements an immutable snapshot of state data. Clients are responsible for serializing and deserializing the objects that contain their internal state. Once a ControllerRevision has been successfully created, it can not be updated. The API Server will fail validation of all requests that attempt to mutate the Data field. ControllerRevisions may, however, be deleted. Note that, due to its use by both the DaemonSet and StatefulSet controllers for update and rollback, this object is beta. However, it may be subject to name and representation changes in future releases, and clients should not depend on its stability. It is primarily for internal use by controllers.", + Type: []string{"object"}, Properties: map[string]spec.Schema{ - "name": { + "kind": { SchemaProps: spec.SchemaProps{ - Description: "Name is the name of the instance", + Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", Type: []string{"string"}, Format: "", }, }, - "project": { + "apiVersion": { SchemaProps: spec.SchemaProps{ - Description: "Project where the instance is in", + Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", Type: []string{"string"}, Format: "", }, }, + "metadata": { + SchemaProps: spec.SchemaProps{ + Description: "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata", + Default: map[string]interface{}{}, + Ref: ref(metav1.ObjectMeta{}.OpenAPIModelName()), + }, + }, + "data": { + SchemaProps: spec.SchemaProps{ + Description: "Data is the serialized representation of the state.", + Ref: ref(runtime.RawExtension{}.OpenAPIModelName()), + }, + }, + "revision": { + SchemaProps: spec.SchemaProps{ + Description: "Revision indicates the revision of the state represented by Data.", + Default: 0, + Type: []string{"integer"}, + Format: "int64", + }, + }, }, + Required: []string{"revision"}, }, }, + Dependencies: []string{ + metav1.ObjectMeta{}.OpenAPIModelName(), runtime.RawExtension{}.OpenAPIModelName()}, } } -func schema_pkg_apis_storage_v1_TargetVirtualCluster(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_k8sio_api_apps_v1_ControllerRevisionList(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Type: []string{"object"}, + Description: "ControllerRevisionList is a resource containing a list of ControllerRevision objects.", + Type: []string{"object"}, Properties: map[string]spec.Schema{ - "cluster": { + "kind": { SchemaProps: spec.SchemaProps{ - Description: "Cluster is the cluster where the virtual cluster lies", + Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", Type: []string{"string"}, Format: "", }, }, - "namespace": { + "apiVersion": { SchemaProps: spec.SchemaProps{ - Description: "Namespace is the namespace where the virtual cluster is located", + Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", Type: []string{"string"}, Format: "", }, }, - "name": { + "metadata": { SchemaProps: spec.SchemaProps{ - Description: "Name of the virtual cluster", - Type: []string{"string"}, - Format: "", + Description: "More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata", + Default: map[string]interface{}{}, + Ref: ref(metav1.ListMeta{}.OpenAPIModelName()), + }, + }, + "items": { + SchemaProps: spec.SchemaProps{ + Description: "Items is the list of ControllerRevisions", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref(v1.ControllerRevision{}.OpenAPIModelName()), + }, + }, + }, }, }, }, + Required: []string{"items"}, }, }, + Dependencies: []string{ + v1.ControllerRevision{}.OpenAPIModelName(), metav1.ListMeta{}.OpenAPIModelName()}, } } -func schema_pkg_apis_storage_v1_Task(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_k8sio_api_apps_v1_DaemonSet(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Type: []string{"object"}, + Description: "DaemonSet represents the configuration of a daemon set.", + Type: []string{"object"}, Properties: map[string]spec.Schema{ "kind": { SchemaProps: spec.SchemaProps{ @@ -32662,61 +32618,90 @@ func schema_pkg_apis_storage_v1_Task(ref common.ReferenceCallback) common.OpenAP }, "metadata": { SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref(metav1.ObjectMeta{}.OpenAPIModelName()), + Description: "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata", + Default: map[string]interface{}{}, + Ref: ref(metav1.ObjectMeta{}.OpenAPIModelName()), }, }, "spec": { SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.TaskSpec"), + Description: "The desired behavior of this daemon set. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status", + Default: map[string]interface{}{}, + Ref: ref(v1.DaemonSetSpec{}.OpenAPIModelName()), }, }, "status": { SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.TaskStatus"), + Description: "The current status of this daemon set. This data may be out of date by some window of time. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status", + Default: map[string]interface{}{}, + Ref: ref(v1.DaemonSetStatus{}.OpenAPIModelName()), }, }, }, }, }, Dependencies: []string{ - "github.com/devsy-org/api/pkg/apis/storage/v1.TaskSpec", "github.com/devsy-org/api/pkg/apis/storage/v1.TaskStatus", metav1.ObjectMeta{}.OpenAPIModelName()}, + v1.DaemonSetSpec{}.OpenAPIModelName(), v1.DaemonSetStatus{}.OpenAPIModelName(), metav1.ObjectMeta{}.OpenAPIModelName()}, } } -func schema_pkg_apis_storage_v1_TaskDefinition(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_k8sio_api_apps_v1_DaemonSetCondition(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Type: []string{"object"}, + Description: "DaemonSetCondition describes the state of a DaemonSet at a certain point.", + Type: []string{"object"}, Properties: map[string]spec.Schema{ - "appTask": { + "type": { SchemaProps: spec.SchemaProps{ - Description: "AppTask is an app task", - Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.AppTask"), + Description: "Type of DaemonSet condition.", + Default: "", + Type: []string{"string"}, + Format: "", }, }, - "helm": { + "status": { SchemaProps: spec.SchemaProps{ - Description: "HelmTask executes a helm command", - Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.HelmTask"), + Description: "Status of the condition, one of True, False, Unknown.", + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + "lastTransitionTime": { + SchemaProps: spec.SchemaProps{ + Description: "Last time the condition transitioned from one status to another.", + Ref: ref(metav1.Time{}.OpenAPIModelName()), + }, + }, + "reason": { + SchemaProps: spec.SchemaProps{ + Description: "The reason for the condition's last transition.", + Type: []string{"string"}, + Format: "", + }, + }, + "message": { + SchemaProps: spec.SchemaProps{ + Description: "A human readable message indicating details about the transition.", + Type: []string{"string"}, + Format: "", }, }, }, + Required: []string{"type", "status"}, }, }, Dependencies: []string{ - "github.com/devsy-org/api/pkg/apis/storage/v1.AppTask", "github.com/devsy-org/api/pkg/apis/storage/v1.HelmTask"}, + metav1.Time{}.OpenAPIModelName()}, } } -func schema_pkg_apis_storage_v1_TaskList(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_k8sio_api_apps_v1_DaemonSetList(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "TaskList contains a list of Task", + Description: "DaemonSetList is a collection of daemon sets.", Type: []string{"object"}, Properties: map[string]spec.Schema{ "kind": { @@ -32735,18 +32720,20 @@ func schema_pkg_apis_storage_v1_TaskList(ref common.ReferenceCallback) common.Op }, "metadata": { SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref(metav1.ListMeta{}.OpenAPIModelName()), + Description: "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata", + Default: map[string]interface{}{}, + Ref: ref(metav1.ListMeta{}.OpenAPIModelName()), }, }, "items": { SchemaProps: spec.SchemaProps{ - Type: []string{"array"}, + Description: "A list of daemon sets.", + Type: []string{"array"}, Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.Task"), + Ref: ref(v1.DaemonSet{}.OpenAPIModelName()), }, }, }, @@ -32757,132 +32744,201 @@ func schema_pkg_apis_storage_v1_TaskList(ref common.ReferenceCallback) common.Op }, }, Dependencies: []string{ - "github.com/devsy-org/api/pkg/apis/storage/v1.Task", metav1.ListMeta{}.OpenAPIModelName()}, + v1.DaemonSet{}.OpenAPIModelName(), metav1.ListMeta{}.OpenAPIModelName()}, } } -func schema_pkg_apis_storage_v1_TaskSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_k8sio_api_apps_v1_DaemonSetSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Type: []string{"object"}, + Description: "DaemonSetSpec is the specification of a daemon set.", + Type: []string{"object"}, Properties: map[string]spec.Schema{ - "displayName": { - SchemaProps: spec.SchemaProps{ - Description: "DisplayName is the name that should be displayed in the UI", - Type: []string{"string"}, - Format: "", - }, - }, - "access": { + "selector": { SchemaProps: spec.SchemaProps{ - Description: "Access holds the access rights for users and teams", - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.Access"), - }, - }, - }, + Description: "A label query over pods that are managed by the daemon set. Must match in order to be controlled. It must match the pod template's labels. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors", + Ref: ref(metav1.LabelSelector{}.OpenAPIModelName()), }, }, - "scope": { + "template": { SchemaProps: spec.SchemaProps{ - Description: "Scope defines the scope of the access key.", - Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.AccessKeyScope"), + Description: "An object that describes the pod that will be created. The DaemonSet will create exactly one copy of this pod on every node that matches the template's node selector (or on every node if no node selector is specified). The only allowed template.spec.restartPolicy value is \"Always\". More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#pod-template", + Default: map[string]interface{}{}, + Ref: ref(corev1.PodTemplateSpec{}.OpenAPIModelName()), }, }, - "owner": { + "updateStrategy": { SchemaProps: spec.SchemaProps{ - Description: "Owner holds the owner of this object", - Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.UserOrTeam"), + Description: "An update strategy to replace existing DaemonSet pods with new pods.", + Default: map[string]interface{}{}, + Ref: ref(v1.DaemonSetUpdateStrategy{}.OpenAPIModelName()), }, }, - "target": { + "minReadySeconds": { SchemaProps: spec.SchemaProps{ - Description: "Target where this task should get executed", - Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.Target"), + Description: "The minimum number of seconds for which a newly created DaemonSet pod should be ready without any of its container crashing, for it to be considered available. Defaults to 0 (pod will be considered available as soon as it is ready).", + Type: []string{"integer"}, + Format: "int32", }, }, - "task": { + "revisionHistoryLimit": { SchemaProps: spec.SchemaProps{ - Description: "Task defines the task to execute", - Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.TaskDefinition"), + Description: "The number of old history to retain to allow rollback. This is a pointer to distinguish between explicit zero and not specified. Defaults to 10.", + Type: []string{"integer"}, + Format: "int32", }, }, }, + Required: []string{"selector", "template"}, }, }, Dependencies: []string{ - "github.com/devsy-org/api/pkg/apis/storage/v1.Access", "github.com/devsy-org/api/pkg/apis/storage/v1.AccessKeyScope", "github.com/devsy-org/api/pkg/apis/storage/v1.Target", "github.com/devsy-org/api/pkg/apis/storage/v1.TaskDefinition", "github.com/devsy-org/api/pkg/apis/storage/v1.UserOrTeam"}, + v1.DaemonSetUpdateStrategy{}.OpenAPIModelName(), corev1.PodTemplateSpec{}.OpenAPIModelName(), metav1.LabelSelector{}.OpenAPIModelName()}, } } -func schema_pkg_apis_storage_v1_TaskStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_k8sio_api_apps_v1_DaemonSetStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Type: []string{"object"}, + Description: "DaemonSetStatus represents the current status of a daemon set.", + Type: []string{"object"}, Properties: map[string]spec.Schema{ - "started": { + "currentNumberScheduled": { SchemaProps: spec.SchemaProps{ - Description: "Started determines if the task was started", - Type: []string{"boolean"}, - Format: "", + Description: "The number of nodes that are running at least 1 daemon pod and are supposed to run the daemon pod. More info: https://kubernetes.io/docs/concepts/workloads/controllers/daemonset/", + Default: 0, + Type: []string{"integer"}, + Format: "int32", + }, + }, + "numberMisscheduled": { + SchemaProps: spec.SchemaProps{ + Description: "The number of nodes that are running the daemon pod, but are not supposed to run the daemon pod. More info: https://kubernetes.io/docs/concepts/workloads/controllers/daemonset/", + Default: 0, + Type: []string{"integer"}, + Format: "int32", + }, + }, + "desiredNumberScheduled": { + SchemaProps: spec.SchemaProps{ + Description: "The total number of nodes that should be running the daemon pod (including nodes correctly running the daemon pod). More info: https://kubernetes.io/docs/concepts/workloads/controllers/daemonset/", + Default: 0, + Type: []string{"integer"}, + Format: "int32", + }, + }, + "numberReady": { + SchemaProps: spec.SchemaProps{ + Description: "numberReady is the number of nodes that should be running the daemon pod and have one or more of the daemon pod running with a Ready Condition.", + Default: 0, + Type: []string{"integer"}, + Format: "int32", + }, + }, + "observedGeneration": { + SchemaProps: spec.SchemaProps{ + Description: "The most recent generation observed by the daemon set controller.", + Type: []string{"integer"}, + Format: "int64", + }, + }, + "updatedNumberScheduled": { + SchemaProps: spec.SchemaProps{ + Description: "The total number of nodes that are running updated daemon pod", + Type: []string{"integer"}, + Format: "int32", + }, + }, + "numberAvailable": { + SchemaProps: spec.SchemaProps{ + Description: "The number of nodes that should be running the daemon pod and have one or more of the daemon pod running and available (ready for at least spec.minReadySeconds)", + Type: []string{"integer"}, + Format: "int32", + }, + }, + "numberUnavailable": { + SchemaProps: spec.SchemaProps{ + Description: "The number of nodes that should be running the daemon pod and have none of the daemon pod running and available (ready for at least spec.minReadySeconds)", + Type: []string{"integer"}, + Format: "int32", + }, + }, + "collisionCount": { + SchemaProps: spec.SchemaProps{ + Description: "Count of hash collisions for the DaemonSet. The DaemonSet controller uses this field as a collision avoidance mechanism when it needs to create the name for the newest ControllerRevision.", + Type: []string{"integer"}, + Format: "int32", }, }, "conditions": { + VendorExtensible: spec.VendorExtensible{ + Extensions: spec.Extensions{ + "x-kubernetes-list-map-keys": []interface{}{ + "type", + }, + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "type", + "x-kubernetes-patch-strategy": "merge", + }, + }, SchemaProps: spec.SchemaProps{ - Description: "Conditions holds several conditions the virtual cluster might be in", + Description: "Represents the latest available observations of a DaemonSet's current state.", Type: []string{"array"}, Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref(storagev1.Condition{}.OpenAPIModelName()), + Ref: ref(v1.DaemonSetCondition{}.OpenAPIModelName()), }, }, }, }, }, - "podPhase": { + }, + Required: []string{"currentNumberScheduled", "numberMisscheduled", "desiredNumberScheduled", "numberReady"}, + }, + }, + Dependencies: []string{ + v1.DaemonSetCondition{}.OpenAPIModelName()}, + } +} + +func schema_k8sio_api_apps_v1_DaemonSetUpdateStrategy(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "DaemonSetUpdateStrategy is a struct used to control the update strategy for a DaemonSet.", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "type": { SchemaProps: spec.SchemaProps{ - Description: "PodPhase describes the phase this task is in\n\nPossible enum values:\n - `\"Failed\"` means that all containers in the pod have terminated, and at least one container has terminated in a failure (exited with a non-zero exit code or was stopped by the system).\n - `\"Pending\"` means the pod has been accepted by the system, but one or more of the containers has not been started. This includes time before being bound to a node, as well as time spent pulling images onto the host.\n - `\"Running\"` means the pod has been bound to a node and all of the containers have been started. At least one container is still running or is in the process of being restarted.\n - `\"Succeeded\"` means that all containers in the pod have voluntarily terminated with a container exit code of 0, and the system is not going to restart any of these containers.\n - `\"Unknown\"` means that for some reason the state of the pod could not be obtained, typically due to an error in communicating with the host of the pod. Deprecated: It isn't being set since 2015 (74da3b14b0c0f658b3bb8d2def5094686d0e9095)", + Description: "Type of daemon set update. Can be \"RollingUpdate\" or \"OnDelete\". Default is RollingUpdate.\n\nPossible enum values:\n - `\"OnDelete\"` Replace the old daemons only when it's killed\n - `\"RollingUpdate\"` Replace the old daemons by new ones using rolling update i.e replace them on each node one after the other.", Type: []string{"string"}, Format: "", - Enum: []interface{}{"Failed", "Pending", "Running", "Succeeded", "Unknown"}, - }, - }, - "observedGeneration": { - SchemaProps: spec.SchemaProps{ - Description: "ObservedGeneration is the latest generation observed by the controller.", - Type: []string{"integer"}, - Format: "int64", + Enum: []interface{}{"OnDelete", "RollingUpdate"}, }, }, - "containerState": { + "rollingUpdate": { SchemaProps: spec.SchemaProps{ - Description: "DEPRECATED: This is not set anymore after migrating to runners ContainerState describes the container state of the task", - Ref: ref(corev1.ContainerStatus{}.OpenAPIModelName()), + Description: "Rolling update config params. Present only if type = \"RollingUpdate\".", + Ref: ref(v1.RollingUpdateDaemonSet{}.OpenAPIModelName()), }, }, }, }, }, Dependencies: []string{ - storagev1.Condition{}.OpenAPIModelName(), corev1.ContainerStatus{}.OpenAPIModelName()}, + v1.RollingUpdateDaemonSet{}.OpenAPIModelName()}, } } -func schema_pkg_apis_storage_v1_Team(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_k8sio_api_apps_v1_Deployment(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "User holds the user information", + Description: "Deployment enables declarative updates for Pods and ReplicaSets.", Type: []string{"object"}, Properties: map[string]spec.Schema{ "kind": { @@ -32901,637 +32957,708 @@ func schema_pkg_apis_storage_v1_Team(ref common.ReferenceCallback) common.OpenAP }, "metadata": { SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref(metav1.ObjectMeta{}.OpenAPIModelName()), + Description: "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata", + Default: map[string]interface{}{}, + Ref: ref(metav1.ObjectMeta{}.OpenAPIModelName()), }, }, "spec": { SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.TeamSpec"), + Description: "Specification of the desired behavior of the Deployment.", + Default: map[string]interface{}{}, + Ref: ref(v1.DeploymentSpec{}.OpenAPIModelName()), }, }, "status": { SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.TeamStatus"), + Description: "Most recently observed status of the Deployment.", + Default: map[string]interface{}{}, + Ref: ref(v1.DeploymentStatus{}.OpenAPIModelName()), }, }, }, }, }, Dependencies: []string{ - "github.com/devsy-org/api/pkg/apis/storage/v1.TeamSpec", "github.com/devsy-org/api/pkg/apis/storage/v1.TeamStatus", metav1.ObjectMeta{}.OpenAPIModelName()}, + v1.DeploymentSpec{}.OpenAPIModelName(), v1.DeploymentStatus{}.OpenAPIModelName(), metav1.ObjectMeta{}.OpenAPIModelName()}, } } -func schema_pkg_apis_storage_v1_TeamList(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_k8sio_api_apps_v1_DeploymentCondition(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "TeamList contains a list of Team", + Description: "DeploymentCondition describes the state of a deployment at a certain point.", Type: []string{"object"}, Properties: map[string]spec.Schema{ - "kind": { + "type": { SchemaProps: spec.SchemaProps{ - Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + Description: "Type of deployment condition.", + Default: "", Type: []string{"string"}, Format: "", }, }, - "apiVersion": { + "status": { SchemaProps: spec.SchemaProps{ - Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + Description: "Status of the condition, one of True, False, Unknown.", + Default: "", Type: []string{"string"}, Format: "", }, }, - "metadata": { + "lastUpdateTime": { SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref(metav1.ListMeta{}.OpenAPIModelName()), + Description: "The last time this condition was updated.", + Ref: ref(metav1.Time{}.OpenAPIModelName()), }, }, - "items": { + "lastTransitionTime": { SchemaProps: spec.SchemaProps{ - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.Team"), - }, - }, - }, + Description: "Last time the condition transitioned from one status to another.", + Ref: ref(metav1.Time{}.OpenAPIModelName()), + }, + }, + "reason": { + SchemaProps: spec.SchemaProps{ + Description: "The reason for the condition's last transition.", + Type: []string{"string"}, + Format: "", + }, + }, + "message": { + SchemaProps: spec.SchemaProps{ + Description: "A human readable message indicating details about the transition.", + Type: []string{"string"}, + Format: "", }, }, }, - Required: []string{"items"}, + Required: []string{"type", "status"}, }, }, Dependencies: []string{ - "github.com/devsy-org/api/pkg/apis/storage/v1.Team", metav1.ListMeta{}.OpenAPIModelName()}, + metav1.Time{}.OpenAPIModelName()}, } } -func schema_pkg_apis_storage_v1_TeamSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_k8sio_api_apps_v1_DeploymentList(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Type: []string{"object"}, + Description: "DeploymentList is a list of Deployments.", + Type: []string{"object"}, Properties: map[string]spec.Schema{ - "displayName": { + "kind": { SchemaProps: spec.SchemaProps{ - Description: "The display name shown in the UI", + Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", Type: []string{"string"}, Format: "", }, }, - "description": { + "apiVersion": { SchemaProps: spec.SchemaProps{ - Description: "Description describes a cluster access object", + Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", Type: []string{"string"}, Format: "", }, }, - "owner": { - SchemaProps: spec.SchemaProps{ - Description: "Owner holds the owner of this object", - Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.UserOrTeam"), - }, - }, - "username": { + "metadata": { SchemaProps: spec.SchemaProps{ - Description: "The username of the team that will be used for identification and docker registry namespace", - Type: []string{"string"}, - Format: "", + Description: "Standard list metadata.", + Default: map[string]interface{}{}, + Ref: ref(metav1.ListMeta{}.OpenAPIModelName()), }, }, - "users": { + "items": { SchemaProps: spec.SchemaProps{ - Description: "The devsy users that belong to a team", + Description: "Items is the list of Deployments.", Type: []string{"array"}, Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ - Default: "", - Type: []string{"string"}, - Format: "", + Default: map[string]interface{}{}, + Ref: ref(v1.Deployment{}.OpenAPIModelName()), }, }, }, }, }, - "groups": { + }, + Required: []string{"items"}, + }, + }, + Dependencies: []string{ + v1.Deployment{}.OpenAPIModelName(), metav1.ListMeta{}.OpenAPIModelName()}, + } +} + +func schema_k8sio_api_apps_v1_DeploymentSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "DeploymentSpec is the specification of the desired behavior of the Deployment.", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "replicas": { SchemaProps: spec.SchemaProps{ - Description: "The groups defined in a token that belong to a team", - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: "", - Type: []string{"string"}, - Format: "", - }, - }, - }, + Description: "Number of desired pods. This is a pointer to distinguish between explicit zero and not specified. Defaults to 1.", + Type: []string{"integer"}, + Format: "int32", }, }, - "imagePullSecrets": { + "selector": { SchemaProps: spec.SchemaProps{ - Description: "ImagePullSecrets holds secret references to image pull secrets the team has access to.", - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.KindSecretRef"), - }, - }, - }, + Description: "Label selector for pods. Existing ReplicaSets whose pods are selected by this will be the ones affected by this deployment. It must match the pod template's labels.", + Ref: ref(metav1.LabelSelector{}.OpenAPIModelName()), }, }, - "clusterRoles": { + "template": { SchemaProps: spec.SchemaProps{ - Description: "ClusterRoles define the cluster roles that the users should have assigned in the cluster.", - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.ClusterRoleRef"), - }, - }, - }, + Description: "Template describes the pods that will be created. The only allowed template.spec.restartPolicy value is \"Always\".", + Default: map[string]interface{}{}, + Ref: ref(corev1.PodTemplateSpec{}.OpenAPIModelName()), }, }, - "access": { - SchemaProps: spec.SchemaProps{ - Description: "Access holds the access rights for users and teams", - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.Access"), - }, - }, + "strategy": { + VendorExtensible: spec.VendorExtensible{ + Extensions: spec.Extensions{ + "x-kubernetes-patch-strategy": "retainKeys", }, }, + SchemaProps: spec.SchemaProps{ + Description: "The deployment strategy to use to replace existing pods with new ones.", + Default: map[string]interface{}{}, + Ref: ref(v1.DeploymentStrategy{}.OpenAPIModelName()), + }, }, - }, - }, - }, - Dependencies: []string{ - "github.com/devsy-org/api/pkg/apis/storage/v1.Access", "github.com/devsy-org/api/pkg/apis/storage/v1.ClusterRoleRef", "github.com/devsy-org/api/pkg/apis/storage/v1.KindSecretRef", "github.com/devsy-org/api/pkg/apis/storage/v1.UserOrTeam"}, - } -} - -func schema_pkg_apis_storage_v1_TeamStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { - return common.OpenAPIDefinition{ - Schema: spec.Schema{ - SchemaProps: spec.SchemaProps{ - Type: []string{"object"}, - }, - }, - } -} - -func schema_pkg_apis_storage_v1_TemplateHelmChart(ref common.ReferenceCallback) common.OpenAPIDefinition { - return common.OpenAPIDefinition{ - Schema: spec.Schema{ - SchemaProps: spec.SchemaProps{ - Type: []string{"object"}, - Properties: map[string]spec.Schema{ - "name": { + "minReadySeconds": { SchemaProps: spec.SchemaProps{ - Description: "Name is the chart name in the repository", - Type: []string{"string"}, - Format: "", + Description: "Minimum number of seconds for which a newly created pod should be ready without any of its container crashing, for it to be considered available. Defaults to 0 (pod will be considered available as soon as it is ready)", + Type: []string{"integer"}, + Format: "int32", }, }, - "version": { + "revisionHistoryLimit": { SchemaProps: spec.SchemaProps{ - Description: "Version is the chart version in the repository", - Type: []string{"string"}, - Format: "", + Description: "The number of old ReplicaSets to retain to allow rollback. This is a pointer to distinguish between explicit zero and not specified. Defaults to 10.", + Type: []string{"integer"}, + Format: "int32", }, }, - "repoURL": { + "paused": { SchemaProps: spec.SchemaProps{ - Description: "RepoURL is the repo url where the chart can be found", - Type: []string{"string"}, + Description: "Indicates that the deployment is paused.", + Type: []string{"boolean"}, Format: "", }, }, - "username": { + "progressDeadlineSeconds": { SchemaProps: spec.SchemaProps{ - Description: "The username that is required for this repository", - Type: []string{"string"}, - Format: "", + Description: "The maximum time in seconds for a deployment to make progress before it is considered to be failed. The deployment controller will continue to process failed deployments and a condition with a ProgressDeadlineExceeded reason will be surfaced in the deployment status. Note that progress will not be estimated during the time a deployment is paused. Defaults to 600s.", + Type: []string{"integer"}, + Format: "int32", }, }, - "usernameRef": { + }, + Required: []string{"selector", "template"}, + }, + }, + Dependencies: []string{ + v1.DeploymentStrategy{}.OpenAPIModelName(), corev1.PodTemplateSpec{}.OpenAPIModelName(), metav1.LabelSelector{}.OpenAPIModelName()}, + } +} + +func schema_k8sio_api_apps_v1_DeploymentStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "DeploymentStatus is the most recently observed status of the Deployment.", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "observedGeneration": { SchemaProps: spec.SchemaProps{ - Description: "The username that is required for this repository", - Ref: ref(v1.ChartSecretRef{}.OpenAPIModelName()), + Description: "The generation observed by the deployment controller.", + Type: []string{"integer"}, + Format: "int64", }, }, - "password": { + "replicas": { SchemaProps: spec.SchemaProps{ - Description: "The password that is required for this repository", - Type: []string{"string"}, - Format: "", + Description: "Total number of non-terminating pods targeted by this deployment (their labels match the selector).", + Type: []string{"integer"}, + Format: "int32", }, }, - "passwordRef": { + "updatedReplicas": { SchemaProps: spec.SchemaProps{ - Description: "The password that is required for this repository", - Ref: ref(v1.ChartSecretRef{}.OpenAPIModelName()), + Description: "Total number of non-terminating pods targeted by this deployment that have the desired template spec.", + Type: []string{"integer"}, + Format: "int32", }, }, - "insecureSkipTlsVerify": { + "readyReplicas": { SchemaProps: spec.SchemaProps{ - Description: "If tls certificate checks for the chart download should be skipped", - Type: []string{"boolean"}, - Format: "", + Description: "Total number of non-terminating pods targeted by this Deployment with a Ready Condition.", + Type: []string{"integer"}, + Format: "int32", }, }, - "releaseName": { + "availableReplicas": { SchemaProps: spec.SchemaProps{ - Description: "ReleaseName is the preferred release name of the app", - Type: []string{"string"}, - Format: "", + Description: "Total number of available non-terminating pods (ready for at least minReadySeconds) targeted by this deployment.", + Type: []string{"integer"}, + Format: "int32", }, }, - "releaseNamespace": { + "unavailableReplicas": { SchemaProps: spec.SchemaProps{ - Description: "ReleaseNamespace is the preferred release namespace of the app", - Type: []string{"string"}, - Format: "", + Description: "Total number of unavailable pods targeted by this deployment. This is the total number of pods that are still required for the deployment to have 100% available capacity. They may either be pods that are running but not yet available or pods that still have not been created.", + Type: []string{"integer"}, + Format: "int32", }, }, - "values": { + "terminatingReplicas": { SchemaProps: spec.SchemaProps{ - Description: "Values are the values that should get passed to the chart", - Type: []string{"string"}, - Format: "", + Description: "Total number of terminating pods targeted by this deployment. Terminating pods have a non-null .metadata.deletionTimestamp and have not yet reached the Failed or Succeeded .status.phase.\n\nThis is a beta field and requires enabling DeploymentReplicaSetTerminatingReplicas feature (enabled by default).", + Type: []string{"integer"}, + Format: "int32", }, }, - "wait": { + "conditions": { + VendorExtensible: spec.VendorExtensible{ + Extensions: spec.Extensions{ + "x-kubernetes-list-map-keys": []interface{}{ + "type", + }, + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "type", + "x-kubernetes-patch-strategy": "merge", + }, + }, SchemaProps: spec.SchemaProps{ - Description: "Wait determines if Devsy should wait during deploy for the app to become ready", - Type: []string{"boolean"}, - Format: "", + Description: "Represents the latest available observations of a deployment's current state.", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref(v1.DeploymentCondition{}.OpenAPIModelName()), + }, + }, + }, }, }, - "timeout": { + "collisionCount": { SchemaProps: spec.SchemaProps{ - Description: "Timeout is the time to wait for any individual Kubernetes operation (like Jobs for hooks) (default 5m0s)", - Type: []string{"string"}, - Format: "", + Description: "Count of hash collisions for the Deployment. The Deployment controller uses this field as a collision avoidance mechanism when it needs to create the name for the newest ReplicaSet.", + Type: []string{"integer"}, + Format: "int32", }, }, }, }, }, Dependencies: []string{ - v1.ChartSecretRef{}.OpenAPIModelName()}, + v1.DeploymentCondition{}.OpenAPIModelName()}, } } -func schema_pkg_apis_storage_v1_TemplateMetadata(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_k8sio_api_apps_v1_DeploymentStrategy(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Type: []string{"object"}, + Description: "DeploymentStrategy describes how to replace existing pods with new ones.", + Type: []string{"object"}, Properties: map[string]spec.Schema{ - "labels": { + "type": { SchemaProps: spec.SchemaProps{ - Description: "Labels are labels on the object", - Type: []string{"object"}, - AdditionalProperties: &spec.SchemaOrBool{ - Allows: true, - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: "", - Type: []string{"string"}, - Format: "", - }, - }, - }, + Description: "Type of deployment. Can be \"Recreate\" or \"RollingUpdate\". Default is RollingUpdate.\n\nPossible enum values:\n - `\"Recreate\"` Kill all existing pods before creating new ones.\n - `\"RollingUpdate\"` Replace the old ReplicaSets by new one using rolling update i.e gradually scale down the old ReplicaSets and scale up the new one.", + Type: []string{"string"}, + Format: "", + Enum: []interface{}{"Recreate", "RollingUpdate"}, }, }, - "annotations": { + "rollingUpdate": { SchemaProps: spec.SchemaProps{ - Description: "Annotations are annotations on the object", - Type: []string{"object"}, - AdditionalProperties: &spec.SchemaOrBool{ - Allows: true, - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: "", - Type: []string{"string"}, - Format: "", - }, - }, - }, + Description: "Rolling update config params. Present only if DeploymentStrategyType = RollingUpdate.", + Ref: ref(v1.RollingUpdateDeployment{}.OpenAPIModelName()), }, }, }, }, }, + Dependencies: []string{ + v1.RollingUpdateDeployment{}.OpenAPIModelName()}, } } -func schema_pkg_apis_storage_v1_TemplateRef(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_k8sio_api_apps_v1_ReplicaSet(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Type: []string{"object"}, + Description: "ReplicaSet ensures that a specified number of pod replicas are running at any given time.", + Type: []string{"object"}, Properties: map[string]spec.Schema{ - "name": { + "kind": { SchemaProps: spec.SchemaProps{ - Description: "Name holds the name of the template to reference.", + Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", Type: []string{"string"}, Format: "", }, }, - "version": { + "apiVersion": { SchemaProps: spec.SchemaProps{ - Description: "Version holds the template version to use. Version is expected to be in semantic versioning format. Alternatively, you can also exchange major, minor or patch with an 'x' to tell Devsy to automatically select the latest major, minor or patch version.", + Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", Type: []string{"string"}, Format: "", }, }, - "syncOnce": { + "metadata": { SchemaProps: spec.SchemaProps{ - Description: "SyncOnce tells the controller to sync the instance once with the template. This is useful if you want to sync an instance after a template was changed. To automatically sync an instance with a template, use 'x.x.x' as version instead.", - Type: []string{"boolean"}, - Format: "", + Description: "If the Labels of a ReplicaSet are empty, they are defaulted to be the same as the Pod(s) that the ReplicaSet manages. Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata", + Default: map[string]interface{}{}, + Ref: ref(metav1.ObjectMeta{}.OpenAPIModelName()), + }, + }, + "spec": { + SchemaProps: spec.SchemaProps{ + Description: "Spec defines the specification of the desired behavior of the ReplicaSet. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status", + Default: map[string]interface{}{}, + Ref: ref(v1.ReplicaSetSpec{}.OpenAPIModelName()), + }, + }, + "status": { + SchemaProps: spec.SchemaProps{ + Description: "Status is the most recently observed status of the ReplicaSet. This data may be out of date by some window of time. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status", + Default: map[string]interface{}{}, + Ref: ref(v1.ReplicaSetStatus{}.OpenAPIModelName()), }, }, }, }, }, + Dependencies: []string{ + v1.ReplicaSetSpec{}.OpenAPIModelName(), v1.ReplicaSetStatus{}.OpenAPIModelName(), metav1.ObjectMeta{}.OpenAPIModelName()}, } } -func schema_pkg_apis_storage_v1_TerraformNodeTypeSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_k8sio_api_apps_v1_ReplicaSetCondition(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Type: []string{"object"}, + Description: "ReplicaSetCondition describes the state of a replica set at a certain point.", + Type: []string{"object"}, Properties: map[string]spec.Schema{ - "providerRef": { + "type": { SchemaProps: spec.SchemaProps{ - Description: "ProviderRef is the node provider to use for this node type.", + Description: "Type of replica set condition.", + Default: "", Type: []string{"string"}, Format: "", }, }, - "properties": { + "status": { SchemaProps: spec.SchemaProps{ - Description: "Properties returns a flexible set of properties that may be selected for scheduling.", - Type: []string{"object"}, - AdditionalProperties: &spec.SchemaOrBool{ - Allows: true, - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: "", - Type: []string{"string"}, - Format: "", - }, - }, - }, + Description: "Status of the condition, one of True, False, Unknown.", + Default: "", + Type: []string{"string"}, + Format: "", }, }, - "resources": { + "lastTransitionTime": { SchemaProps: spec.SchemaProps{ - Description: "Resources lists the full resources for a single node.", - Type: []string{"object"}, - AdditionalProperties: &spec.SchemaOrBool{ - Allows: true, - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Ref: ref("k8s.io/apimachinery/pkg/api/resource.Quantity"), - }, - }, - }, + Description: "The last time the condition transitioned from one status to another.", + Ref: ref(metav1.Time{}.OpenAPIModelName()), }, }, - "overhead": { + "reason": { SchemaProps: spec.SchemaProps{ - Description: "Overhead defines the resource overhead for this node type.", - Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.NodeTypeOverhead"), + Description: "The reason for the condition's last transition.", + Type: []string{"string"}, + Format: "", }, }, - "cost": { + "message": { SchemaProps: spec.SchemaProps{ - Description: "Cost is the instance cost. The higher the cost, the less likely it is to be selected. If empty, cost is automatically calculated from the resources specified.", - Type: []string{"integer"}, - Format: "int64", + Description: "A human readable message indicating details about the transition.", + Type: []string{"string"}, + Format: "", }, }, - "displayName": { + }, + Required: []string{"type", "status"}, + }, + }, + Dependencies: []string{ + metav1.Time{}.OpenAPIModelName()}, + } +} + +func schema_k8sio_api_apps_v1_ReplicaSetList(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "ReplicaSetList is a collection of ReplicaSets.", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "kind": { SchemaProps: spec.SchemaProps{ - Description: "DisplayName is the name that should be displayed in the UI", + Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", Type: []string{"string"}, Format: "", }, }, - "name": { + "apiVersion": { SchemaProps: spec.SchemaProps{ - Description: "Name is the name of this node type.", - Default: "", + Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", Type: []string{"string"}, Format: "", }, }, "metadata": { SchemaProps: spec.SchemaProps{ - Description: "Metadata holds metadata to add to this managed NodeType.", + Description: "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.ManagedNodeTypeObjectMeta"), - }, - }, - "nodeTemplate": { - SchemaProps: spec.SchemaProps{ - Description: "NodeTemplate is the template to use for this node type.", - Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.TerraformTemplate"), + Ref: ref(metav1.ListMeta{}.OpenAPIModelName()), }, }, - "maxCapacity": { + "items": { SchemaProps: spec.SchemaProps{ - Description: "MaxCapacity is the maximum number of nodes that can be created for this NodeType.", - Type: []string{"integer"}, - Format: "int32", + Description: "List of ReplicaSets. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicaset", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref(v1.ReplicaSet{}.OpenAPIModelName()), + }, + }, + }, }, }, }, - Required: []string{"name"}, + Required: []string{"items"}, }, }, Dependencies: []string{ - "github.com/devsy-org/api/pkg/apis/storage/v1.ManagedNodeTypeObjectMeta", "github.com/devsy-org/api/pkg/apis/storage/v1.NodeTypeOverhead", "github.com/devsy-org/api/pkg/apis/storage/v1.TerraformTemplate", "k8s.io/apimachinery/pkg/api/resource.Quantity"}, + v1.ReplicaSet{}.OpenAPIModelName(), metav1.ListMeta{}.OpenAPIModelName()}, } } -func schema_pkg_apis_storage_v1_TerraformTemplate(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_k8sio_api_apps_v1_ReplicaSetSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Type: []string{"object"}, + Description: "ReplicaSetSpec is the specification of a ReplicaSet.", + Type: []string{"object"}, Properties: map[string]spec.Schema{ - "inline": { + "replicas": { SchemaProps: spec.SchemaProps{ - Description: "Inline is the inline template to use for this node type.", - Type: []string{"string"}, - Format: "", + Description: "Replicas is the number of desired pods. This is a pointer to distinguish between explicit zero and unspecified. Defaults to 1. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicaset", + Type: []string{"integer"}, + Format: "int32", }, }, - "git": { + "minReadySeconds": { SchemaProps: spec.SchemaProps{ - Description: "Git is the git repository to use for this node type.", - Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.TerraformTemplateSourceGit"), + Description: "Minimum number of seconds for which a newly created pod should be ready without any of its container crashing, for it to be considered available. Defaults to 0 (pod will be considered available as soon as it is ready)", + Type: []string{"integer"}, + Format: "int32", }, }, - "timeout": { + "selector": { SchemaProps: spec.SchemaProps{ - Description: "Timeout is the timeout to use for the terraform operations. Defaults to 60m.", - Type: []string{"string"}, - Format: "", + Description: "Selector is a label query over pods that should match the replica count. Label keys and values that must match in order to be controlled by this replica set. It must match the pod template's labels. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors", + Ref: ref(metav1.LabelSelector{}.OpenAPIModelName()), + }, + }, + "template": { + SchemaProps: spec.SchemaProps{ + Description: "Template is the object that describes the pod that will be created if insufficient replicas are detected. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicaset/#pod-template", + Default: map[string]interface{}{}, + Ref: ref(corev1.PodTemplateSpec{}.OpenAPIModelName()), }, }, }, + Required: []string{"selector"}, }, }, Dependencies: []string{ - "github.com/devsy-org/api/pkg/apis/storage/v1.TerraformTemplateSourceGit"}, + corev1.PodTemplateSpec{}.OpenAPIModelName(), metav1.LabelSelector{}.OpenAPIModelName()}, } } -func schema_pkg_apis_storage_v1_TerraformTemplateSourceGit(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_k8sio_api_apps_v1_ReplicaSetStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Type: []string{"object"}, + Description: "ReplicaSetStatus represents the current status of a ReplicaSet.", + Type: []string{"object"}, Properties: map[string]spec.Schema{ - "repository": { + "replicas": { SchemaProps: spec.SchemaProps{ - Description: "Repository is the repository to clone", - Type: []string{"string"}, - Format: "", + Description: "Replicas is the most recently observed number of non-terminating pods. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicaset", + Default: 0, + Type: []string{"integer"}, + Format: "int32", }, }, - "branch": { + "fullyLabeledReplicas": { SchemaProps: spec.SchemaProps{ - Description: "Branch is the branch to use", - Type: []string{"string"}, - Format: "", + Description: "The number of non-terminating pods that have labels matching the labels of the pod template of the replicaset.", + Type: []string{"integer"}, + Format: "int32", }, }, - "commit": { + "readyReplicas": { SchemaProps: spec.SchemaProps{ - Description: "Commit is the commit SHA to checkout", - Type: []string{"string"}, - Format: "", + Description: "The number of non-terminating pods targeted by this ReplicaSet with a Ready Condition.", + Type: []string{"integer"}, + Format: "int32", }, }, - "subPath": { + "availableReplicas": { SchemaProps: spec.SchemaProps{ - Description: "SubPath is the subpath in the repo to use", - Type: []string{"string"}, - Format: "", + Description: "The number of available non-terminating pods (ready for at least minReadySeconds) for this replica set.", + Type: []string{"integer"}, + Format: "int32", }, }, - "credentials": { + "terminatingReplicas": { SchemaProps: spec.SchemaProps{ - Description: "Credentials is the reference to a secret containing the username and password for the git repository.", - Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.SecretRef"), + Description: "The number of terminating pods for this replica set. Terminating pods have a non-null .metadata.deletionTimestamp and have not yet reached the Failed or Succeeded .status.phase.\n\nThis is a beta field and requires enabling DeploymentReplicaSetTerminatingReplicas feature (enabled by default).", + Type: []string{"integer"}, + Format: "int32", }, }, - "fetchInterval": { + "observedGeneration": { SchemaProps: spec.SchemaProps{ - Description: "FetchInterval is the interval to use for refetching the git repository. Defaults to 5m. Refetching only checks for remote changes but does not do a complete repull.", - Type: []string{"string"}, - Format: "", + Description: "ObservedGeneration reflects the generation of the most recently observed ReplicaSet.", + Type: []string{"integer"}, + Format: "int64", }, }, - "extraEnv": { + "conditions": { + VendorExtensible: spec.VendorExtensible{ + Extensions: spec.Extensions{ + "x-kubernetes-list-map-keys": []interface{}{ + "type", + }, + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "type", + "x-kubernetes-patch-strategy": "merge", + }, + }, SchemaProps: spec.SchemaProps{ - Description: "ExtraEnv is the extra environment variables to use for the clone", + Description: "Represents the latest available observations of a replica set's current state.", Type: []string{"array"}, Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ - Default: "", - Type: []string{"string"}, - Format: "", + Default: map[string]interface{}{}, + Ref: ref(v1.ReplicaSetCondition{}.OpenAPIModelName()), }, }, }, }, }, }, + Required: []string{"replicas"}, }, }, Dependencies: []string{ - "github.com/devsy-org/api/pkg/apis/storage/v1.SecretRef"}, + v1.ReplicaSetCondition{}.OpenAPIModelName()}, } } -func schema_pkg_apis_storage_v1_User(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_k8sio_api_apps_v1_RollingUpdateDaemonSet(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "User holds the user information", + Description: "Spec to control the desired behavior of daemon set rolling update.", Type: []string{"object"}, Properties: map[string]spec.Schema{ - "kind": { + "maxUnavailable": { SchemaProps: spec.SchemaProps{ - Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", - Type: []string{"string"}, - Format: "", + Description: "The maximum number of DaemonSet pods that can be unavailable during the update. Value can be an absolute number (ex: 5) or a percentage of total number of DaemonSet pods at the start of the update (ex: 10%). Absolute number is calculated from percentage by rounding up. This cannot be 0 if MaxSurge is 0 Default value is 1. Example: when this is set to 30%, at most 30% of the total number of nodes that should be running the daemon pod (i.e. status.desiredNumberScheduled) can have their pods stopped for an update at any given time. The update starts by stopping at most 30% of those DaemonSet pods and then brings up new DaemonSet pods in their place. Once the new pods are available, it then proceeds onto other DaemonSet pods, thus ensuring that at least 70% of original number of DaemonSet pods are available at all times during the update.", + Ref: ref(intstr.IntOrString{}.OpenAPIModelName()), }, }, - "apiVersion": { + "maxSurge": { SchemaProps: spec.SchemaProps{ - Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", - Type: []string{"string"}, - Format: "", + Description: "The maximum number of nodes with an existing available DaemonSet pod that can have an updated DaemonSet pod during during an update. Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%). This can not be 0 if MaxUnavailable is 0. Absolute number is calculated from percentage by rounding up to a minimum of 1. Default value is 0. Example: when this is set to 30%, at most 30% of the total number of nodes that should be running the daemon pod (i.e. status.desiredNumberScheduled) can have their a new pod created before the old pod is marked as deleted. The update starts by launching new pods on 30% of nodes. Once an updated pod is available (Ready for at least minReadySeconds) the old DaemonSet pod on that node is marked deleted. If the old pod becomes unavailable for any reason (Ready transitions to false, is evicted, or is drained) an updated pod is immediately created on that node without considering surge limits. Allowing surge implies the possibility that the resources consumed by the daemonset on any given node can double if the readiness check fails, and so resource intensive daemonsets should take into account that they may cause evictions during disruption.", + Ref: ref(intstr.IntOrString{}.OpenAPIModelName()), }, }, - "metadata": { + }, + }, + }, + Dependencies: []string{ + intstr.IntOrString{}.OpenAPIModelName()}, + } +} + +func schema_k8sio_api_apps_v1_RollingUpdateDeployment(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "Spec to control the desired behavior of rolling update.", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "maxUnavailable": { SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref(metav1.ObjectMeta{}.OpenAPIModelName()), + Description: "The maximum number of pods that can be unavailable during the update. Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%). Absolute number is calculated from percentage by rounding down. This can not be 0 if MaxSurge is 0. Defaults to 25%. Example: when this is set to 30%, the old ReplicaSet can be scaled down to 70% of desired pods immediately when the rolling update starts. Once new pods are ready, old ReplicaSet can be scaled down further, followed by scaling up the new ReplicaSet, ensuring that the total number of pods available at all times during the update is at least 70% of desired pods.", + Ref: ref(intstr.IntOrString{}.OpenAPIModelName()), }, }, - "spec": { + "maxSurge": { SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.UserSpec"), + Description: "The maximum number of pods that can be scheduled above the desired number of pods. Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%). This can not be 0 if MaxUnavailable is 0. Absolute number is calculated from percentage by rounding up. Defaults to 25%. Example: when this is set to 30%, the new ReplicaSet can be scaled up immediately when the rolling update starts, such that the total number of old and new pods do not exceed 130% of desired pods. Once old pods have been killed, new ReplicaSet can be scaled up further, ensuring that total number of pods running at any time during the update is at most 130% of desired pods.", + Ref: ref(intstr.IntOrString{}.OpenAPIModelName()), }, }, - "status": { + }, + }, + }, + Dependencies: []string{ + intstr.IntOrString{}.OpenAPIModelName()}, + } +} + +func schema_k8sio_api_apps_v1_RollingUpdateStatefulSetStrategy(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "RollingUpdateStatefulSetStrategy is used to communicate parameter for RollingUpdateStatefulSetStrategyType.", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "partition": { SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.UserStatus"), + Description: "Partition indicates the ordinal at which the StatefulSet should be partitioned for updates. During a rolling update, all pods from ordinal Replicas-1 to Partition are updated. All pods from ordinal Partition-1 to 0 remain untouched. This is helpful in being able to do a canary based deployment. The default value is 0.", + Type: []string{"integer"}, + Format: "int32", + }, + }, + "maxUnavailable": { + SchemaProps: spec.SchemaProps{ + Description: "The maximum number of pods that can be unavailable during the update. Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%). Absolute number is calculated from percentage by rounding up. This can not be 0. Defaults to 1. This field is beta-level and is enabled by default. The field applies to all pods in the range 0 to Replicas-1. That means if there is any unavailable pod in the range 0 to Replicas-1, it will be counted towards MaxUnavailable. This setting might not be effective for the OrderedReady podManagementPolicy. That policy ensures pods are created and become ready one at a time.", + Ref: ref(intstr.IntOrString{}.OpenAPIModelName()), }, }, }, }, }, Dependencies: []string{ - "github.com/devsy-org/api/pkg/apis/storage/v1.UserSpec", "github.com/devsy-org/api/pkg/apis/storage/v1.UserStatus", metav1.ObjectMeta{}.OpenAPIModelName()}, + intstr.IntOrString{}.OpenAPIModelName()}, } } -func schema_pkg_apis_storage_v1_UserList(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_k8sio_api_apps_v1_StatefulSet(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "UserList contains a list of User", + Description: "StatefulSet represents a set of pods with consistent identities. Identities are defined as:\n - Network: A single stable DNS and hostname.\n - Storage: As many VolumeClaims as requested.\n\nThe StatefulSet guarantees that a given network identity will always map to the same storage identity.", Type: []string{"object"}, Properties: map[string]spec.Schema{ "kind": { @@ -33550,657 +33677,756 @@ func schema_pkg_apis_storage_v1_UserList(ref common.ReferenceCallback) common.Op }, "metadata": { SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref(metav1.ListMeta{}.OpenAPIModelName()), + Description: "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata", + Default: map[string]interface{}{}, + Ref: ref(metav1.ObjectMeta{}.OpenAPIModelName()), }, }, - "items": { + "spec": { SchemaProps: spec.SchemaProps{ - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.User"), - }, - }, - }, + Description: "Spec defines the desired identities of pods in this set.", + Default: map[string]interface{}{}, + Ref: ref(v1.StatefulSetSpec{}.OpenAPIModelName()), + }, + }, + "status": { + SchemaProps: spec.SchemaProps{ + Description: "Status is the current status of Pods in this StatefulSet. This data may be out of date by some window of time.", + Default: map[string]interface{}{}, + Ref: ref(v1.StatefulSetStatus{}.OpenAPIModelName()), }, }, }, - Required: []string{"items"}, }, }, Dependencies: []string{ - "github.com/devsy-org/api/pkg/apis/storage/v1.User", metav1.ListMeta{}.OpenAPIModelName()}, + v1.StatefulSetSpec{}.OpenAPIModelName(), v1.StatefulSetStatus{}.OpenAPIModelName(), metav1.ObjectMeta{}.OpenAPIModelName()}, } } -func schema_pkg_apis_storage_v1_UserOrTeam(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_k8sio_api_apps_v1_StatefulSetCondition(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Type: []string{"object"}, + Description: "StatefulSetCondition describes the state of a statefulset at a certain point.", + Type: []string{"object"}, Properties: map[string]spec.Schema{ - "user": { + "type": { SchemaProps: spec.SchemaProps{ - Description: "User specifies a Devsy user.", + Description: "Type of statefulset condition.", + Default: "", Type: []string{"string"}, Format: "", }, }, - "team": { + "status": { SchemaProps: spec.SchemaProps{ - Description: "Team specifies a Devsy team.", + Description: "Status of the condition, one of True, False, Unknown.", + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + "lastTransitionTime": { + SchemaProps: spec.SchemaProps{ + Description: "Last time the condition transitioned from one status to another.", + Ref: ref(metav1.Time{}.OpenAPIModelName()), + }, + }, + "reason": { + SchemaProps: spec.SchemaProps{ + Description: "The reason for the condition's last transition.", + Type: []string{"string"}, + Format: "", + }, + }, + "message": { + SchemaProps: spec.SchemaProps{ + Description: "A human readable message indicating details about the transition.", Type: []string{"string"}, Format: "", }, }, }, + Required: []string{"type", "status"}, }, }, + Dependencies: []string{ + metav1.Time{}.OpenAPIModelName()}, } } -func schema_pkg_apis_storage_v1_UserOrTeamEntity(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_k8sio_api_apps_v1_StatefulSetList(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Type: []string{"object"}, + Description: "StatefulSetList is a collection of StatefulSets.", + Type: []string{"object"}, Properties: map[string]spec.Schema{ - "user": { + "kind": { SchemaProps: spec.SchemaProps{ - Description: "User describes an user", - Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.EntityInfo"), + Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + Type: []string{"string"}, + Format: "", }, }, - "team": { + "apiVersion": { SchemaProps: spec.SchemaProps{ - Description: "Team describes a team", - Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.EntityInfo"), + Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + Type: []string{"string"}, + Format: "", + }, + }, + "metadata": { + SchemaProps: spec.SchemaProps{ + Description: "Standard list's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata", + Default: map[string]interface{}{}, + Ref: ref(metav1.ListMeta{}.OpenAPIModelName()), + }, + }, + "items": { + SchemaProps: spec.SchemaProps{ + Description: "Items is the list of stateful sets.", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref(v1.StatefulSet{}.OpenAPIModelName()), + }, + }, + }, }, }, }, + Required: []string{"items"}, }, }, Dependencies: []string{ - "github.com/devsy-org/api/pkg/apis/storage/v1.EntityInfo"}, + v1.StatefulSet{}.OpenAPIModelName(), metav1.ListMeta{}.OpenAPIModelName()}, } } -func schema_pkg_apis_storage_v1_UserSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_k8sio_api_apps_v1_StatefulSetOrdinals(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Type: []string{"object"}, + Description: "StatefulSetOrdinals describes the policy used for replica ordinal assignment in this StatefulSet.", + Type: []string{"object"}, Properties: map[string]spec.Schema{ - "displayName": { + "start": { SchemaProps: spec.SchemaProps{ - Description: "The display name shown in the UI", - Type: []string{"string"}, - Format: "", + Description: "start is the number representing the first replica's index. It may be used to number replicas from an alternate index (eg: 1-indexed) over the default 0-indexed names, or to orchestrate progressive movement of replicas from one StatefulSet to another. If set, replica indices will be in the range:\n [.spec.ordinals.start, .spec.ordinals.start + .spec.replicas).\nIf unset, defaults to 0. Replica indices will be in the range:\n [0, .spec.replicas).", + Default: 0, + Type: []string{"integer"}, + Format: "int32", }, }, - "description": { + }, + }, + }, + } +} + +func schema_k8sio_api_apps_v1_StatefulSetPersistentVolumeClaimRetentionPolicy(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "StatefulSetPersistentVolumeClaimRetentionPolicy describes the policy used for PVCs created from the StatefulSet VolumeClaimTemplates.", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "whenDeleted": { SchemaProps: spec.SchemaProps{ - Description: "Description describes a cluster access object", + Description: "WhenDeleted specifies what happens to PVCs created from StatefulSet VolumeClaimTemplates when the StatefulSet is deleted. The default policy of `Retain` causes PVCs to not be affected by StatefulSet deletion. The `Delete` policy causes those PVCs to be deleted.", Type: []string{"string"}, Format: "", }, }, - "owner": { - SchemaProps: spec.SchemaProps{ - Description: "Owner holds the owner of this object", - Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.UserOrTeam"), - }, - }, - "username": { + "whenScaled": { SchemaProps: spec.SchemaProps{ - Description: "The username that is used to login", + Description: "WhenScaled specifies what happens to PVCs created from StatefulSet VolumeClaimTemplates when the StatefulSet is scaled down. The default policy of `Retain` causes PVCs to not be affected by a scaledown. The `Delete` policy causes the associated PVCs for any excess pods above the replica count to be deleted.", Type: []string{"string"}, Format: "", }, }, - "icon": { + }, + }, + }, + } +} + +func schema_k8sio_api_apps_v1_StatefulSetSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "A StatefulSetSpec is the specification of a StatefulSet.", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "replicas": { SchemaProps: spec.SchemaProps{ - Description: "The URL to an icon that should be shown for the user", - Type: []string{"string"}, - Format: "", + Description: "replicas is the desired number of replicas of the given Template. These are replicas in the sense that they are instantiations of the same Template, but individual replicas also have a consistent identity. If unspecified, defaults to 1.", + Type: []string{"integer"}, + Format: "int32", }, }, - "email": { + "selector": { SchemaProps: spec.SchemaProps{ - Description: "The users email address", - Type: []string{"string"}, - Format: "", + Description: "selector is a label query over pods that should match the replica count. It must match the pod template's labels. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors", + Ref: ref(metav1.LabelSelector{}.OpenAPIModelName()), }, }, - "subject": { + "template": { SchemaProps: spec.SchemaProps{ - Description: "The user subject as presented by the token", - Type: []string{"string"}, - Format: "", + Description: "template is the object that describes the pod that will be created if insufficient replicas are detected. Each pod stamped out by the StatefulSet will fulfill this Template, but have a unique identity from the rest of the StatefulSet. Each pod will be named with the format -. For example, a pod in a StatefulSet named \"web\" with index number \"3\" would be named \"web-3\". The only allowed template.spec.restartPolicy value is \"Always\".", + Default: map[string]interface{}{}, + Ref: ref(corev1.PodTemplateSpec{}.OpenAPIModelName()), }, }, - "groups": { - SchemaProps: spec.SchemaProps{ - Description: "The groups the user has access to", - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: "", - Type: []string{"string"}, - Format: "", - }, - }, + "volumeClaimTemplates": { + VendorExtensible: spec.VendorExtensible{ + Extensions: spec.Extensions{ + "x-kubernetes-list-type": "atomic", }, }, - }, - "ssoGroups": { SchemaProps: spec.SchemaProps{ - Description: "SSOGroups is used to remember groups that were added from sso.", + Description: "volumeClaimTemplates is a list of claims that pods are allowed to reference. The StatefulSet controller is responsible for mapping network identities to claims in a way that maintains the identity of a pod. Every claim in this list must have at least one matching (by name) volumeMount in one container in the template. A claim in this list takes precedence over any volumes in the template, with the same name.", Type: []string{"array"}, Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ - Default: "", - Type: []string{"string"}, - Format: "", + Default: map[string]interface{}{}, + Ref: ref(corev1.PersistentVolumeClaim{}.OpenAPIModelName()), }, }, }, }, }, - "passwordRef": { + "serviceName": { SchemaProps: spec.SchemaProps{ - Description: "A reference to the user password", - Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.SecretRef"), + Description: "serviceName is the name of the service that governs this StatefulSet. This service must exist before the StatefulSet, and is responsible for the network identity of the set. Pods get DNS/hostnames that follow the pattern: pod-specific-string.serviceName.default.svc.cluster.local where \"pod-specific-string\" is managed by the StatefulSet controller.", + Default: "", + Type: []string{"string"}, + Format: "", }, }, - "codesRef": { + "podManagementPolicy": { SchemaProps: spec.SchemaProps{ - Description: "A reference to the users access keys", - Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.SecretRef"), + Description: "podManagementPolicy controls how pods are created during initial scale up, when replacing pods on nodes, or when scaling down. The default policy is `OrderedReady`, where pods are created in increasing order (pod-0, then pod-1, etc) and the controller will wait until each pod is ready before continuing. When scaling down, the pods are removed in the opposite order. The alternative policy is `Parallel` which will create pods in parallel to match the desired scale without waiting, and on scale down will delete all pods at once.\n\nPossible enum values:\n - `\"OrderedReady\"` will create pods in strictly increasing order on scale up and strictly decreasing order on scale down, progressing only when the previous pod is ready or terminated. At most one pod will be changed at any time.\n - `\"Parallel\"` will create and delete pods as soon as the stateful set replica count is changed, and will not wait for pods to be ready or complete termination.", + Type: []string{"string"}, + Format: "", + Enum: []interface{}{"OrderedReady", "Parallel"}, }, }, - "imagePullSecrets": { + "updateStrategy": { SchemaProps: spec.SchemaProps{ - Description: "ImagePullSecrets holds secret references to image pull secrets the user has access to.", - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.KindSecretRef"), - }, - }, - }, + Description: "updateStrategy indicates the StatefulSetUpdateStrategy that will be employed to update Pods in the StatefulSet when a revision is made to Template.", + Default: map[string]interface{}{}, + Ref: ref(v1.StatefulSetUpdateStrategy{}.OpenAPIModelName()), }, }, - "tokenGeneration": { + "revisionHistoryLimit": { SchemaProps: spec.SchemaProps{ - Description: "TokenGeneration can be used to invalidate all user tokens", + Description: "revisionHistoryLimit is the maximum number of revisions that will be maintained in the StatefulSet's revision history. The revision history consists of all revisions not represented by a currently applied StatefulSetSpec version. The default value is 10.", Type: []string{"integer"}, - Format: "int64", - }, - }, - "disabled": { - SchemaProps: spec.SchemaProps{ - Description: "If disabled is true, an user will not be able to login anymore. All other user resources are unaffected and other users can still interact with this user", - Type: []string{"boolean"}, - Format: "", + Format: "int32", }, }, - "clusterRoles": { + "minReadySeconds": { SchemaProps: spec.SchemaProps{ - Description: "ClusterRoles define the cluster roles that the users should have assigned in the cluster.", - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.ClusterRoleRef"), - }, - }, - }, + Description: "Minimum number of seconds for which a newly created pod should be ready without any of its container crashing for it to be considered available. Defaults to 0 (pod will be considered available as soon as it is ready)", + Type: []string{"integer"}, + Format: "int32", }, }, - "access": { + "persistentVolumeClaimRetentionPolicy": { SchemaProps: spec.SchemaProps{ - Description: "Access holds the access rights for users and teams", - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.Access"), - }, - }, - }, + Description: "persistentVolumeClaimRetentionPolicy describes the lifecycle of persistent volume claims created from volumeClaimTemplates. By default, all persistent volume claims are created as needed and retained until manually deleted. This policy allows the lifecycle to be altered, for example by deleting persistent volume claims when their stateful set is deleted, or when their pod is scaled down.", + Ref: ref(v1.StatefulSetPersistentVolumeClaimRetentionPolicy{}.OpenAPIModelName()), }, }, - "extraClaims": { + "ordinals": { SchemaProps: spec.SchemaProps{ - Description: "ExtraClaims are additional claims that have been added to the user by an admin.", - Type: []string{"object"}, - AdditionalProperties: &spec.SchemaOrBool{ - Allows: true, - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: "", - Type: []string{"string"}, - Format: "", - }, - }, - }, + Description: "ordinals controls the numbering of replica indices in a StatefulSet. The default ordinals behavior assigns a \"0\" index to the first replica and increments the index by one for each additional replica requested.", + Ref: ref(v1.StatefulSetOrdinals{}.OpenAPIModelName()), }, }, }, + Required: []string{"selector", "template"}, }, }, Dependencies: []string{ - "github.com/devsy-org/api/pkg/apis/storage/v1.Access", "github.com/devsy-org/api/pkg/apis/storage/v1.ClusterRoleRef", "github.com/devsy-org/api/pkg/apis/storage/v1.KindSecretRef", "github.com/devsy-org/api/pkg/apis/storage/v1.SecretRef", "github.com/devsy-org/api/pkg/apis/storage/v1.UserOrTeam"}, + v1.StatefulSetOrdinals{}.OpenAPIModelName(), v1.StatefulSetPersistentVolumeClaimRetentionPolicy{}.OpenAPIModelName(), v1.StatefulSetUpdateStrategy{}.OpenAPIModelName(), corev1.PersistentVolumeClaim{}.OpenAPIModelName(), corev1.PodTemplateSpec{}.OpenAPIModelName(), metav1.LabelSelector{}.OpenAPIModelName()}, } } -func schema_pkg_apis_storage_v1_UserStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_k8sio_api_apps_v1_StatefulSetStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "UserStatus holds the status of an user", + Description: "StatefulSetStatus represents the current state of a StatefulSet.", Type: []string{"object"}, Properties: map[string]spec.Schema{ - "teams": { + "observedGeneration": { SchemaProps: spec.SchemaProps{ - Description: "Teams the user is currently part of", + Description: "observedGeneration is the most recent generation observed for this StatefulSet. It corresponds to the StatefulSet's generation, which is updated on mutation by the API Server.", + Type: []string{"integer"}, + Format: "int64", + }, + }, + "replicas": { + SchemaProps: spec.SchemaProps{ + Description: "replicas is the number of Pods created by the StatefulSet controller.", + Default: 0, + Type: []string{"integer"}, + Format: "int32", + }, + }, + "readyReplicas": { + SchemaProps: spec.SchemaProps{ + Description: "readyReplicas is the number of pods created for this StatefulSet with a Ready Condition.", + Type: []string{"integer"}, + Format: "int32", + }, + }, + "currentReplicas": { + SchemaProps: spec.SchemaProps{ + Description: "currentReplicas is the number of Pods created by the StatefulSet controller from the StatefulSet version indicated by currentRevision.", + Type: []string{"integer"}, + Format: "int32", + }, + }, + "updatedReplicas": { + SchemaProps: spec.SchemaProps{ + Description: "updatedReplicas is the number of Pods created by the StatefulSet controller from the StatefulSet version indicated by updateRevision.", + Type: []string{"integer"}, + Format: "int32", + }, + }, + "currentRevision": { + SchemaProps: spec.SchemaProps{ + Description: "currentRevision, if not empty, indicates the version of the StatefulSet used to generate Pods in the sequence [0,currentReplicas).", + Type: []string{"string"}, + Format: "", + }, + }, + "updateRevision": { + SchemaProps: spec.SchemaProps{ + Description: "updateRevision, if not empty, indicates the version of the StatefulSet used to generate Pods in the sequence [replicas-updatedReplicas,replicas)", + Type: []string{"string"}, + Format: "", + }, + }, + "collisionCount": { + SchemaProps: spec.SchemaProps{ + Description: "collisionCount is the count of hash collisions for the StatefulSet. The StatefulSet controller uses this field as a collision avoidance mechanism when it needs to create the name for the newest ControllerRevision.", + Type: []string{"integer"}, + Format: "int32", + }, + }, + "conditions": { + VendorExtensible: spec.VendorExtensible{ + Extensions: spec.Extensions{ + "x-kubernetes-list-map-keys": []interface{}{ + "type", + }, + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "type", + "x-kubernetes-patch-strategy": "merge", + }, + }, + SchemaProps: spec.SchemaProps{ + Description: "Represents the latest available observations of a statefulset's current state.", Type: []string{"array"}, Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ - Default: "", - Type: []string{"string"}, - Format: "", + Default: map[string]interface{}{}, + Ref: ref(v1.StatefulSetCondition{}.OpenAPIModelName()), }, }, }, }, }, + "availableReplicas": { + SchemaProps: spec.SchemaProps{ + Description: "Total number of available pods (ready for at least minReadySeconds) targeted by this statefulset.", + Default: 0, + Type: []string{"integer"}, + Format: "int32", + }, + }, }, + Required: []string{"replicas"}, }, }, + Dependencies: []string{ + v1.StatefulSetCondition{}.OpenAPIModelName()}, } } -func schema_pkg_apis_storage_v1_VaultAuthSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_k8sio_api_apps_v1_StatefulSetUpdateStrategy(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Type: []string{"object"}, + Description: "StatefulSetUpdateStrategy indicates the strategy that the StatefulSet controller will use to perform updates. It includes any additional parameters necessary to perform the update for the indicated strategy.", + Type: []string{"object"}, Properties: map[string]spec.Schema{ - "token": { + "type": { SchemaProps: spec.SchemaProps{ - Description: "Token defines the token to use for authentication.", + Description: "Type indicates the type of the StatefulSetUpdateStrategy. Default is RollingUpdate.\n\nPossible enum values:\n - `\"OnDelete\"` triggers the legacy behavior. Version tracking and ordered rolling restarts are disabled. Pods are recreated from the StatefulSetSpec when they are manually deleted. When a scale operation is performed with this strategy,specification version indicated by the StatefulSet's currentRevision.\n - `\"RollingUpdate\"` indicates that update will be applied to all Pods in the StatefulSet with respect to the StatefulSet ordering constraints. When a scale operation is performed with this strategy, new Pods will be created from the specification version indicated by the StatefulSet's updateRevision.", Type: []string{"string"}, Format: "", + Enum: []interface{}{"OnDelete", "RollingUpdate"}, }, }, - "tokenSecretRef": { + "rollingUpdate": { SchemaProps: spec.SchemaProps{ - Description: "TokenSecretRef defines the Kubernetes secret to use for token authentication. Will be used if `token` is not provided.\n\nSecret data should contain the `token` key.", - Ref: ref(corev1.SecretKeySelector{}.OpenAPIModelName()), + Description: "RollingUpdate is used to communicate parameters when Type is RollingUpdateStatefulSetStrategyType.", + Ref: ref(v1.RollingUpdateStatefulSetStrategy{}.OpenAPIModelName()), }, }, }, }, }, Dependencies: []string{ - corev1.SecretKeySelector{}.OpenAPIModelName()}, + v1.RollingUpdateStatefulSetStrategy{}.OpenAPIModelName()}, } } -func schema_pkg_apis_storage_v1_VaultIntegrationSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_k8sio_api_batch_v1_CronJob(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Type: []string{"object"}, + Description: "CronJob represents the configuration of a single cron job.", + Type: []string{"object"}, Properties: map[string]spec.Schema{ - "enabled": { - SchemaProps: spec.SchemaProps{ - Description: "Enabled indicates if the Vault Integration is enabled for the project -- this knob only enables the syncing of secrets to or from Vault, but does not setup Kubernetes authentication methods or Kubernetes secrets engines for devsys.", - Type: []string{"boolean"}, - Format: "", - }, - }, - "address": { + "kind": { SchemaProps: spec.SchemaProps{ - Description: "Address defines the address of the Vault instance to use for this project. Will default to the `VAULT_ADDR` environment variable if not provided.", + Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", Type: []string{"string"}, Format: "", }, }, - "skipTLSVerify": { + "apiVersion": { SchemaProps: spec.SchemaProps{ - Description: "SkipTLSVerify defines if TLS verification should be skipped when connecting to Vault.", - Type: []string{"boolean"}, + Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + Type: []string{"string"}, Format: "", }, }, - "namespace": { + "metadata": { SchemaProps: spec.SchemaProps{ - Description: "Namespace defines the namespace to use when storing secrets in Vault.", - Type: []string{"string"}, - Format: "", + Description: "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata", + Default: map[string]interface{}{}, + Ref: ref(metav1.ObjectMeta{}.OpenAPIModelName()), }, }, - "auth": { + "spec": { SchemaProps: spec.SchemaProps{ - Description: "Auth defines the authentication method to use for this project.", - Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.VaultAuthSpec"), + Description: "Specification of the desired behavior of a cron job, including the schedule. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status", + Default: map[string]interface{}{}, + Ref: ref(batchv1.CronJobSpec{}.OpenAPIModelName()), }, }, - "syncInterval": { + "status": { SchemaProps: spec.SchemaProps{ - Description: "SyncInterval defines the interval at which to sync secrets from Vault. Defaults to `1m.` See https://pkg.go.dev/time#ParseDuration for supported formats.", - Type: []string{"string"}, - Format: "", + Description: "Current status of a cron job. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status", + Default: map[string]interface{}{}, + Ref: ref(batchv1.CronJobStatus{}.OpenAPIModelName()), }, }, }, }, }, Dependencies: []string{ - "github.com/devsy-org/api/pkg/apis/storage/v1.VaultAuthSpec"}, + batchv1.CronJobSpec{}.OpenAPIModelName(), batchv1.CronJobStatus{}.OpenAPIModelName(), metav1.ObjectMeta{}.OpenAPIModelName()}, } } -func schema_pkg_apis_storage_v1_VirtualClusterAccessPoint(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_k8sio_api_batch_v1_CronJobList(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Type: []string{"object"}, + Description: "CronJobList is a collection of cron jobs.", + Type: []string{"object"}, Properties: map[string]spec.Schema{ - "ingress": { + "kind": { SchemaProps: spec.SchemaProps{ - Description: "Ingress defines virtual cluster access via ingress", + Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + Type: []string{"string"}, + Format: "", + }, + }, + "apiVersion": { + SchemaProps: spec.SchemaProps{ + Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + Type: []string{"string"}, + Format: "", + }, + }, + "metadata": { + SchemaProps: spec.SchemaProps{ + Description: "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata", Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.VirtualClusterAccessPointIngressSpec"), + Ref: ref(metav1.ListMeta{}.OpenAPIModelName()), + }, + }, + "items": { + SchemaProps: spec.SchemaProps{ + Description: "items is the list of CronJobs.", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref(batchv1.CronJob{}.OpenAPIModelName()), + }, + }, + }, }, }, }, + Required: []string{"items"}, }, }, Dependencies: []string{ - "github.com/devsy-org/api/pkg/apis/storage/v1.VirtualClusterAccessPointIngressSpec"}, + batchv1.CronJob{}.OpenAPIModelName(), metav1.ListMeta{}.OpenAPIModelName()}, } } -func schema_pkg_apis_storage_v1_VirtualClusterAccessPointIngressSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_k8sio_api_batch_v1_CronJobSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Type: []string{"object"}, + Description: "CronJobSpec describes how the job execution will look like and when it will actually run.", + Type: []string{"object"}, Properties: map[string]spec.Schema{ - "enabled": { + "schedule": { SchemaProps: spec.SchemaProps{ - Description: "Enabled defines if the virtual cluster access point (via ingress) is enabled or not; requires the connected cluster to have the `devsy.sh/ingress-suffix` annotation set to define the domain name suffix used for the ingress.", - Type: []string{"boolean"}, + Description: "The schedule in Cron format, see https://en.wikipedia.org/wiki/Cron.", + Default: "", + Type: []string{"string"}, Format: "", }, }, - }, - }, - }, - } -} - -func schema_pkg_apis_storage_v1_VirtualClusterClusterRef(ref common.ReferenceCallback) common.OpenAPIDefinition { - return common.OpenAPIDefinition{ - Schema: spec.Schema{ - SchemaProps: spec.SchemaProps{ - Type: []string{"object"}, - Properties: map[string]spec.Schema{ - "cluster": { + "timeZone": { SchemaProps: spec.SchemaProps{ - Description: "Cluster is the connected cluster the space will be created in", + Description: "The time zone name for the given schedule, see https://en.wikipedia.org/wiki/List_of_tz_database_time_zones. If not specified, this will default to the time zone of the kube-controller-manager process. The set of valid time zone names and the time zone offset is loaded from the system-wide time zone database by the API server during CronJob validation and the controller manager during execution. If no system-wide time zone database can be found a bundled version of the database is used instead. If the time zone name becomes invalid during the lifetime of a CronJob or due to a change in host configuration, the controller will stop creating new new Jobs and will create a system event with the reason UnknownTimeZone. More information can be found in https://kubernetes.io/docs/concepts/workloads/controllers/cron-jobs/#time-zones", Type: []string{"string"}, Format: "", }, }, - "namespace": { + "startingDeadlineSeconds": { SchemaProps: spec.SchemaProps{ - Description: "Namespace is the namespace inside the connected cluster holding the space", + Description: "Optional deadline in seconds for starting the job if it misses scheduled time for any reason. Missed jobs executions will be counted as failed ones.", + Type: []string{"integer"}, + Format: "int64", + }, + }, + "concurrencyPolicy": { + SchemaProps: spec.SchemaProps{ + Description: "Specifies how to treat concurrent executions of a Job. Valid values are:\n\n- \"Allow\" (default): allows CronJobs to run concurrently; - \"Forbid\": forbids concurrent runs, skipping next run if previous run hasn't finished yet; - \"Replace\": cancels currently running job and replaces it with a new one\n\nPossible enum values:\n - `\"Allow\"` allows CronJobs to run concurrently.\n - `\"Forbid\"` forbids concurrent runs, skipping next run if previous hasn't finished yet.\n - `\"Replace\"` cancels currently running job and replaces it with a new one.", Type: []string{"string"}, Format: "", + Enum: []interface{}{"Allow", "Forbid", "Replace"}, }, }, - "virtualCluster": { + "suspend": { SchemaProps: spec.SchemaProps{ - Description: "VirtualCluster is the name of the virtual cluster inside the namespace", - Type: []string{"string"}, + Description: "This flag tells the controller to suspend subsequent executions, it does not apply to already started executions. Defaults to false.", + Type: []string{"boolean"}, Format: "", }, }, + "jobTemplate": { + SchemaProps: spec.SchemaProps{ + Description: "Specifies the job that will be created when executing a CronJob.", + Default: map[string]interface{}{}, + Ref: ref(batchv1.JobTemplateSpec{}.OpenAPIModelName()), + }, + }, + "successfulJobsHistoryLimit": { + SchemaProps: spec.SchemaProps{ + Description: "The number of successful finished jobs to retain. Value must be non-negative integer. Defaults to 3.", + Type: []string{"integer"}, + Format: "int32", + }, + }, + "failedJobsHistoryLimit": { + SchemaProps: spec.SchemaProps{ + Description: "The number of failed finished jobs to retain. Value must be non-negative integer. Defaults to 1.", + Type: []string{"integer"}, + Format: "int32", + }, + }, }, + Required: []string{"schedule", "jobTemplate"}, }, }, + Dependencies: []string{ + batchv1.JobTemplateSpec{}.OpenAPIModelName()}, } } -func schema_pkg_apis_storage_v1_VirtualClusterCommonSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_k8sio_api_batch_v1_CronJobStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "VirtualClusterCommonSpec holds common attributes for virtual clusters and virtual cluster templates", + Description: "CronJobStatus represents the current state of a cron job.", Type: []string{"object"}, Properties: map[string]spec.Schema{ - "apps": { + "active": { + VendorExtensible: spec.VendorExtensible{ + Extensions: spec.Extensions{ + "x-kubernetes-list-type": "atomic", + }, + }, SchemaProps: spec.SchemaProps{ - Description: "Apps specifies the apps that should get deployed by this template", + Description: "A list of pointers to currently running jobs.", Type: []string{"array"}, Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.AppReference"), + Ref: ref(corev1.ObjectReference{}.OpenAPIModelName()), }, }, }, }, }, - "charts": { + "lastScheduleTime": { SchemaProps: spec.SchemaProps{ - Description: "Charts are helm charts that should get deployed", - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.TemplateHelmChart"), - }, - }, - }, + Description: "Information when was the last time the job was successfully scheduled.", + Ref: ref(metav1.Time{}.OpenAPIModelName()), }, }, - "objects": { + "lastSuccessfulTime": { SchemaProps: spec.SchemaProps{ - Description: "Objects are Kubernetes style yamls that should get deployed into the virtual cluster", - Type: []string{"string"}, - Format: "", + Description: "Information when was the last time the job successfully completed.", + Ref: ref(metav1.Time{}.OpenAPIModelName()), }, }, - "access": { + }, + }, + }, + Dependencies: []string{ + corev1.ObjectReference{}.OpenAPIModelName(), metav1.Time{}.OpenAPIModelName()}, + } +} + +func schema_k8sio_api_batch_v1_Job(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "Job represents the configuration of a single job.", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "kind": { SchemaProps: spec.SchemaProps{ - Description: "Access defines the access of users and teams to the virtual cluster.", - Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.InstanceAccess"), + Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + Type: []string{"string"}, + Format: "", }, }, - "pro": { + "apiVersion": { SchemaProps: spec.SchemaProps{ - Description: "Pro defines the pro settings for the virtual cluster", - Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.VirtualClusterProSpec"), + Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + Type: []string{"string"}, + Format: "", }, }, - "helmRelease": { + "metadata": { SchemaProps: spec.SchemaProps{ - Description: "HelmRelease is the helm release configuration for the virtual cluster.", + Description: "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata", Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.VirtualClusterHelmRelease"), + Ref: ref(metav1.ObjectMeta{}.OpenAPIModelName()), }, }, - "accessPoint": { + "spec": { SchemaProps: spec.SchemaProps{ - Description: "AccessPoint defines settings to expose the virtual cluster directly via an ingress rather than through the (default) Devsy proxy", + Description: "Specification of the desired behavior of a job. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status", Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.VirtualClusterAccessPoint"), + Ref: ref(batchv1.JobSpec{}.OpenAPIModelName()), }, }, - "forwardToken": { + "status": { SchemaProps: spec.SchemaProps{ - Description: "ForwardToken signals the proxy to pass through the used token to the virtual Kubernetes api server and do a TokenReview there.", - Type: []string{"boolean"}, - Format: "", + Description: "Current status of a job. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status", + Default: map[string]interface{}{}, + Ref: ref(batchv1.JobStatus{}.OpenAPIModelName()), }, }, }, }, }, Dependencies: []string{ - "github.com/devsy-org/api/pkg/apis/storage/v1.AppReference", "github.com/devsy-org/api/pkg/apis/storage/v1.InstanceAccess", "github.com/devsy-org/api/pkg/apis/storage/v1.TemplateHelmChart", "github.com/devsy-org/api/pkg/apis/storage/v1.VirtualClusterAccessPoint", "github.com/devsy-org/api/pkg/apis/storage/v1.VirtualClusterHelmRelease", "github.com/devsy-org/api/pkg/apis/storage/v1.VirtualClusterProSpec"}, + batchv1.JobSpec{}.OpenAPIModelName(), batchv1.JobStatus{}.OpenAPIModelName(), metav1.ObjectMeta{}.OpenAPIModelName()}, } } -func schema_pkg_apis_storage_v1_VirtualClusterHelmChart(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_k8sio_api_batch_v1_JobCondition(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Type: []string{"object"}, + Description: "JobCondition describes current state of a job.", + Type: []string{"object"}, Properties: map[string]spec.Schema{ - "name": { + "type": { SchemaProps: spec.SchemaProps{ - Description: "the name of the helm chart", + Description: "Type of job condition, Complete or Failed.", + Default: "", Type: []string{"string"}, Format: "", }, }, - "repo": { + "status": { SchemaProps: spec.SchemaProps{ - Description: "the repo of the helm chart", + Description: "Status of the condition, one of True, False, Unknown.", + Default: "", Type: []string{"string"}, Format: "", }, }, - "username": { + "lastProbeTime": { SchemaProps: spec.SchemaProps{ - Description: "The username that is required for this repository", - Type: []string{"string"}, - Format: "", + Description: "Last time the condition was checked.", + Ref: ref(metav1.Time{}.OpenAPIModelName()), }, }, - "password": { + "lastTransitionTime": { SchemaProps: spec.SchemaProps{ - Description: "The password that is required for this repository", - Type: []string{"string"}, - Format: "", + Description: "Last time the condition transit from one status to another.", + Ref: ref(metav1.Time{}.OpenAPIModelName()), }, }, - "version": { + "reason": { SchemaProps: spec.SchemaProps{ - Description: "the version of the helm chart to use", + Description: "(brief) reason for the condition's last transition.", Type: []string{"string"}, Format: "", }, }, - "insecureSkipTlsVerify": { - SchemaProps: spec.SchemaProps{ - Description: "InsecureSkipTlsVerify skips the TLS verification for the helm chart", - Type: []string{"boolean"}, - Format: "", - }, - }, - }, - }, - }, - } -} - -func schema_pkg_apis_storage_v1_VirtualClusterHelmRelease(ref common.ReferenceCallback) common.OpenAPIDefinition { - return common.OpenAPIDefinition{ - Schema: spec.Schema{ - SchemaProps: spec.SchemaProps{ - Type: []string{"object"}, - Properties: map[string]spec.Schema{ - "chart": { - SchemaProps: spec.SchemaProps{ - Description: "infos about what chart to deploy", - Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.VirtualClusterHelmChart"), - }, - }, - "values": { + "message": { SchemaProps: spec.SchemaProps{ - Description: "the values for the given chart", + Description: "Human readable message indicating details about last transition.", Type: []string{"string"}, Format: "", }, }, }, + Required: []string{"type", "status"}, }, }, Dependencies: []string{ - "github.com/devsy-org/api/pkg/apis/storage/v1.VirtualClusterHelmChart"}, - } -} - -func schema_pkg_apis_storage_v1_VirtualClusterHelmReleaseStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { - return common.OpenAPIDefinition{ - Schema: spec.Schema{ - SchemaProps: spec.SchemaProps{ - Type: []string{"object"}, - Properties: map[string]spec.Schema{ - "phase": { - SchemaProps: spec.SchemaProps{ - Type: []string{"string"}, - Format: "", - }, - }, - "lastTransitionTime": { - SchemaProps: spec.SchemaProps{ - Ref: ref(metav1.Time{}.OpenAPIModelName()), - }, - }, - "reason": { - SchemaProps: spec.SchemaProps{ - Type: []string{"string"}, - Format: "", - }, - }, - "message": { - SchemaProps: spec.SchemaProps{ - Type: []string{"string"}, - Format: "", - }, - }, - "release": { - SchemaProps: spec.SchemaProps{ - Description: "the release that was deployed", - Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.VirtualClusterHelmRelease"), - }, - }, - }, - }, - }, - Dependencies: []string{ - "github.com/devsy-org/api/pkg/apis/storage/v1.VirtualClusterHelmRelease", metav1.Time{}.OpenAPIModelName()}, + metav1.Time{}.OpenAPIModelName()}, } } -func schema_pkg_apis_storage_v1_VirtualClusterInstance(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_k8sio_api_batch_v1_JobList(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "VirtualClusterInstance", + Description: "JobList is a collection of jobs.", Type: []string{"object"}, Properties: map[string]spec.Schema{ "kind": { @@ -34219,674 +34445,512 @@ func schema_pkg_apis_storage_v1_VirtualClusterInstance(ref common.ReferenceCallb }, "metadata": { SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref(metav1.ObjectMeta{}.OpenAPIModelName()), - }, - }, - "spec": { - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.VirtualClusterInstanceSpec"), + Description: "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata", + Default: map[string]interface{}{}, + Ref: ref(metav1.ListMeta{}.OpenAPIModelName()), }, }, - "status": { + "items": { SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.VirtualClusterInstanceStatus"), + Description: "items is the list of Jobs.", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref(batchv1.Job{}.OpenAPIModelName()), + }, + }, + }, }, }, }, + Required: []string{"items"}, }, }, Dependencies: []string{ - "github.com/devsy-org/api/pkg/apis/storage/v1.VirtualClusterInstanceSpec", "github.com/devsy-org/api/pkg/apis/storage/v1.VirtualClusterInstanceStatus", metav1.ObjectMeta{}.OpenAPIModelName()}, + batchv1.Job{}.OpenAPIModelName(), metav1.ListMeta{}.OpenAPIModelName()}, } } -func schema_pkg_apis_storage_v1_VirtualClusterInstanceList(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_k8sio_api_batch_v1_JobSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "VirtualClusterInstanceList contains a list of VirtualClusterInstance objects", + Description: "JobSpec describes how the job execution will look like.", Type: []string{"object"}, Properties: map[string]spec.Schema{ - "kind": { + "parallelism": { SchemaProps: spec.SchemaProps{ - Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", - Type: []string{"string"}, - Format: "", + Description: "Specifies the maximum desired number of pods the job should run at any given time. The actual number of pods running in steady state will be less than this number when ((.spec.completions - .status.successful) < .spec.parallelism), i.e. when the work left to do is less than max parallelism. More info: https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/", + Type: []string{"integer"}, + Format: "int32", }, }, - "apiVersion": { + "completions": { SchemaProps: spec.SchemaProps{ - Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", - Type: []string{"string"}, - Format: "", + Description: "Specifies the desired number of successfully finished pods the job should be run with. Setting to null means that the success of any pod signals the success of all pods, and allows parallelism to have any positive value. Setting to 1 means that parallelism is limited to 1 and the success of that pod signals the success of the job. More info: https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/", + Type: []string{"integer"}, + Format: "int32", }, }, - "metadata": { + "activeDeadlineSeconds": { SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref(metav1.ListMeta{}.OpenAPIModelName()), + Description: "Specifies the duration in seconds relative to the startTime that the job may be continuously active before the system tries to terminate it; value must be positive integer. If a Job is suspended (at creation or through an update), this timer will effectively be stopped and reset when the Job is resumed again.", + Type: []string{"integer"}, + Format: "int64", }, }, - "items": { + "podFailurePolicy": { SchemaProps: spec.SchemaProps{ - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.VirtualClusterInstance"), - }, - }, - }, + Description: "Specifies the policy of handling failed pods. In particular, it allows to specify the set of actions and conditions which need to be satisfied to take the associated action. If empty, the default behaviour applies - the counter of failed pods, represented by the jobs's .status.failed field, is incremented and it is checked against the backoffLimit. This field cannot be used in combination with restartPolicy=OnFailure.", + Ref: ref(batchv1.PodFailurePolicy{}.OpenAPIModelName()), }, }, - }, - Required: []string{"items"}, - }, - }, - Dependencies: []string{ - "github.com/devsy-org/api/pkg/apis/storage/v1.VirtualClusterInstance", metav1.ListMeta{}.OpenAPIModelName()}, - } -} - -func schema_pkg_apis_storage_v1_VirtualClusterInstanceSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { - return common.OpenAPIDefinition{ - Schema: spec.Schema{ - SchemaProps: spec.SchemaProps{ - Type: []string{"object"}, - Properties: map[string]spec.Schema{ - "displayName": { + "successPolicy": { SchemaProps: spec.SchemaProps{ - Description: "DisplayName is the name that should be displayed in the UI", - Type: []string{"string"}, - Format: "", + Description: "successPolicy specifies the policy when the Job can be declared as succeeded. If empty, the default behavior applies - the Job is declared as succeeded only when the number of succeeded pods equals to the completions. When the field is specified, it must be immutable and works only for the Indexed Jobs. Once the Job meets the SuccessPolicy, the lingering pods are terminated.", + Ref: ref(batchv1.SuccessPolicy{}.OpenAPIModelName()), }, }, - "description": { + "backoffLimit": { SchemaProps: spec.SchemaProps{ - Description: "Description describes a virtual cluster instance", - Type: []string{"string"}, - Format: "", + Description: "Specifies the number of retries before marking this job failed. Defaults to 6, unless backoffLimitPerIndex (only Indexed Job) is specified. When backoffLimitPerIndex is specified, backoffLimit defaults to 2147483647.", + Type: []string{"integer"}, + Format: "int32", }, }, - "owner": { + "backoffLimitPerIndex": { SchemaProps: spec.SchemaProps{ - Description: "Owner holds the owner of this object", - Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.UserOrTeam"), + Description: "Specifies the limit for the number of retries within an index before marking this index as failed. When enabled the number of failures per index is kept in the pod's batch.kubernetes.io/job-index-failure-count annotation. It can only be set when Job's completionMode=Indexed, and the Pod's restart policy is Never. The field is immutable.", + Type: []string{"integer"}, + Format: "int32", }, }, - "templateRef": { + "maxFailedIndexes": { SchemaProps: spec.SchemaProps{ - Description: "TemplateRef holds the virtual cluster template reference", - Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.TemplateRef"), + Description: "Specifies the maximal number of failed indexes before marking the Job as failed, when backoffLimitPerIndex is set. Once the number of failed indexes exceeds this number the entire Job is marked as Failed and its execution is terminated. When left as null the job continues execution of all of its indexes and is marked with the `Complete` Job condition. It can only be specified when backoffLimitPerIndex is set. It can be null or up to completions. It is required and must be less than or equal to 10^4 when is completions greater than 10^5.", + Type: []string{"integer"}, + Format: "int32", }, }, - "template": { + "selector": { SchemaProps: spec.SchemaProps{ - Description: "Template is the inline template to use for virtual cluster creation. This is mutually exclusive with templateRef.", - Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.VirtualClusterTemplateDefinition"), + Description: "A label query over pods that should match the pod count. Normally, the system sets this field for you. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors", + Ref: ref(metav1.LabelSelector{}.OpenAPIModelName()), }, }, - "clusterRef": { + "manualSelector": { SchemaProps: spec.SchemaProps{ - Description: "ClusterRef is the reference to the connected cluster holding this virtual cluster", - Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.VirtualClusterClusterRef"), + Description: "manualSelector controls generation of pod labels and pod selectors. Leave `manualSelector` unset unless you are certain what you are doing. When false or unset, the system pick labels unique to this job and appends those labels to the pod template. When true, the user is responsible for picking unique labels and specifying the selector. Failure to pick a unique label may cause this and other jobs to not function correctly. However, You may see `manualSelector=true` in jobs that were created with the old `extensions/v1beta1` API. More info: https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/#specifying-your-own-pod-selector", + Type: []string{"boolean"}, + Format: "", }, }, - "parameters": { + "template": { SchemaProps: spec.SchemaProps{ - Description: "Parameters are values to pass to the template. The values should be encoded as YAML string where each parameter is represented as a top-level field key.", - Type: []string{"string"}, - Format: "", + Description: "Describes the pod that will be created when executing a job. The only allowed template.spec.restartPolicy values are \"Never\" or \"OnFailure\". More info: https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/", + Default: map[string]interface{}{}, + Ref: ref(corev1.PodTemplateSpec{}.OpenAPIModelName()), }, }, - "extraAccessRules": { + "ttlSecondsAfterFinished": { SchemaProps: spec.SchemaProps{ - Description: "ExtraAccessRules defines extra rules which users and teams should have which access to the virtual cluster.", - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.InstanceAccessRule"), - }, - }, - }, + Description: "ttlSecondsAfterFinished limits the lifetime of a Job that has finished execution (either Complete or Failed). If this field is set, ttlSecondsAfterFinished after the Job finishes, it is eligible to be automatically deleted. When the Job is being deleted, its lifecycle guarantees (e.g. finalizers) will be honored. If this field is unset, the Job won't be automatically deleted. If this field is set to zero, the Job becomes eligible to be deleted immediately after it finishes.", + Type: []string{"integer"}, + Format: "int32", }, }, - "access": { + "completionMode": { SchemaProps: spec.SchemaProps{ - Description: "Access to the virtual cluster object itself", - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.Access"), - }, - }, - }, + Description: "completionMode specifies how Pod completions are tracked. It can be `NonIndexed` (default) or `Indexed`.\n\n`NonIndexed` means that the Job is considered complete when there have been .spec.completions successfully completed Pods. Each Pod completion is homologous to each other.\n\n`Indexed` means that the Pods of a Job get an associated completion index from 0 to (.spec.completions - 1), available in the annotation batch.kubernetes.io/job-completion-index. The Job is considered complete when there is one successfully completed Pod for each index. When value is `Indexed`, .spec.completions must be specified and `.spec.parallelism` must be less than or equal to 10^5. In addition, The Pod name takes the form `$(job-name)-$(index)-$(random-string)`, the Pod hostname takes the form `$(job-name)-$(index)`.\n\nMore completion modes can be added in the future. If the Job controller observes a mode that it doesn't recognize, which is possible during upgrades due to version skew, the controller skips updates for the Job.\n\nPossible enum values:\n - `\"Indexed\"` is a Job completion mode. In this mode, the Pods of a Job get an associated completion index from 0 to (.spec.completions - 1). The Job is considered complete when a Pod completes for each completion index.\n - `\"NonIndexed\"` is a Job completion mode. In this mode, the Job is considered complete when there have been .spec.completions successfully completed Pods. Pod completions are homologous to each other.", + Type: []string{"string"}, + Format: "", + Enum: []interface{}{"Indexed", "NonIndexed"}, }, }, - "networkPeer": { + "suspend": { SchemaProps: spec.SchemaProps{ - Description: "NetworkPeer specifies if the cluster is connected via tailscale.", + Description: "suspend specifies whether the Job controller should create Pods or not. If a Job is created with suspend set to true, no Pods are created by the Job controller. If a Job is suspended after creation (i.e. the flag goes from false to true), the Job controller will delete all active Pods associated with this Job. Users must design their workload to gracefully handle this. Suspending a Job will reset the StartTime field of the Job, effectively resetting the ActiveDeadlineSeconds timer too. Defaults to false.", Type: []string{"boolean"}, Format: "", }, }, - "external": { + "podReplacementPolicy": { SchemaProps: spec.SchemaProps{ - Description: "External specifies if the virtual cluster is managed by the platform agent or externally.", - Type: []string{"boolean"}, + Description: "podReplacementPolicy specifies when to create replacement Pods. Possible values are: - TerminatingOrFailed means that we recreate pods\n when they are terminating (has a metadata.deletionTimestamp) or failed.\n- Failed means to wait until a previously created Pod is fully terminated (has phase\n Failed or Succeeded) before creating a replacement Pod.\n\nWhen using podFailurePolicy, Failed is the the only allowed value. TerminatingOrFailed and Failed are allowed values when podFailurePolicy is not in use.\n\nPossible enum values:\n - `\"Failed\"` means to wait until a previously created Pod is fully terminated (has phase Failed or Succeeded) before creating a replacement Pod.\n - `\"TerminatingOrFailed\"` means that we recreate pods when they are terminating (has a metadata.deletionTimestamp) or failed.", + Type: []string{"string"}, Format: "", + Enum: []interface{}{"Failed", "TerminatingOrFailed"}, }, }, - "standalone": { + "managedBy": { SchemaProps: spec.SchemaProps{ - Description: "Standalone specifies if the virtual cluster is standalone and not hosted in another Kubernetes cluster.", - Type: []string{"boolean"}, + Description: "ManagedBy field indicates the controller that manages a Job. The k8s Job controller reconciles jobs which don't have this field at all or the field value is the reserved string `kubernetes.io/job-controller`, but skips reconciling Jobs with a custom value for this field. The value must be a valid domain-prefixed path (e.g. acme.io/foo) - all characters before the first \"/\" must be a valid subdomain as defined by RFC 1123. All characters trailing the first \"/\" must be valid HTTP Path characters as defined by RFC 3986. The value cannot exceed 63 characters. This field is immutable.", + Type: []string{"string"}, Format: "", }, }, }, + Required: []string{"template"}, }, }, Dependencies: []string{ - "github.com/devsy-org/api/pkg/apis/storage/v1.Access", "github.com/devsy-org/api/pkg/apis/storage/v1.InstanceAccessRule", "github.com/devsy-org/api/pkg/apis/storage/v1.TemplateRef", "github.com/devsy-org/api/pkg/apis/storage/v1.UserOrTeam", "github.com/devsy-org/api/pkg/apis/storage/v1.VirtualClusterClusterRef", "github.com/devsy-org/api/pkg/apis/storage/v1.VirtualClusterTemplateDefinition"}, + batchv1.PodFailurePolicy{}.OpenAPIModelName(), batchv1.SuccessPolicy{}.OpenAPIModelName(), corev1.PodTemplateSpec{}.OpenAPIModelName(), metav1.LabelSelector{}.OpenAPIModelName()}, } } -func schema_pkg_apis_storage_v1_VirtualClusterInstanceStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_k8sio_api_batch_v1_JobStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Type: []string{"object"}, + Description: "JobStatus represents the current state of a Job.", + Type: []string{"object"}, Properties: map[string]spec.Schema{ - "phase": { + "conditions": { + VendorExtensible: spec.VendorExtensible{ + Extensions: spec.Extensions{ + "x-kubernetes-list-type": "atomic", + "x-kubernetes-patch-merge-key": "type", + "x-kubernetes-patch-strategy": "merge", + }, + }, SchemaProps: spec.SchemaProps{ - Description: "Phase describes the current phase the virtual cluster instance is in", - Type: []string{"string"}, - Format: "", + Description: "The latest available observations of an object's current state. When a Job fails, one of the conditions will have type \"Failed\" and status true. When a Job is suspended, one of the conditions will have type \"Suspended\" and status true; when the Job is resumed, the status of this condition will become false. When a Job is completed, one of the conditions will have type \"Complete\" and status true.\n\nA job is considered finished when it is in a terminal condition, either \"Complete\" or \"Failed\". A Job cannot have both the \"Complete\" and \"Failed\" conditions. Additionally, it cannot be in the \"Complete\" and \"FailureTarget\" conditions. The \"Complete\", \"Failed\" and \"FailureTarget\" conditions cannot be disabled.\n\nMore info: https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref(batchv1.JobCondition{}.OpenAPIModelName()), + }, + }, + }, }, }, - "reason": { + "startTime": { SchemaProps: spec.SchemaProps{ - Description: "Reason describes the reason in machine-readable form why the cluster is in the current phase", - Type: []string{"string"}, - Format: "", + Description: "Represents time when the job controller started processing a job. When a Job is created in the suspended state, this field is not set until the first time it is resumed. This field is reset every time a Job is resumed from suspension. It is represented in RFC3339 form and is in UTC.\n\nOnce set, the field can only be removed when the job is suspended. The field cannot be modified while the job is unsuspended or finished.", + Ref: ref(metav1.Time{}.OpenAPIModelName()), }, }, - "message": { + "completionTime": { SchemaProps: spec.SchemaProps{ - Description: "Message describes the reason in human-readable form why the cluster is in the current phase", - Type: []string{"string"}, - Format: "", + Description: "Represents time when the job was completed. It is not guaranteed to be set in happens-before order across separate operations. It is represented in RFC3339 form and is in UTC. The completion time is set when the job finishes successfully, and only then. The value cannot be updated or removed. The value indicates the same or later point in time as the startTime field.", + Ref: ref(metav1.Time{}.OpenAPIModelName()), }, }, - "serviceUID": { + "active": { SchemaProps: spec.SchemaProps{ - Description: "ServiceUID is the service uid of the virtual cluster to uniquely identify it.", - Type: []string{"string"}, - Format: "", + Description: "The number of pending and running pods which are not terminating (without a deletionTimestamp). The value is zero for finished jobs.", + Type: []string{"integer"}, + Format: "int32", }, }, - "deployHash": { + "succeeded": { SchemaProps: spec.SchemaProps{ - Description: "DeployHash is the hash of the last deployed values.", - Type: []string{"string"}, - Format: "", + Description: "The number of pods which reached phase Succeeded. The value increases monotonically for a given spec. However, it may decrease in reaction to scale down of elastic indexed jobs.", + Type: []string{"integer"}, + Format: "int32", }, }, - "conditions": { + "failed": { SchemaProps: spec.SchemaProps{ - Description: "Conditions holds several conditions the virtual cluster might be in", - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref(storagev1.Condition{}.OpenAPIModelName()), - }, - }, - }, + Description: "The number of pods which reached phase Failed. The value increases monotonically.", + Type: []string{"integer"}, + Format: "int32", }, }, - "virtualClusterObjects": { + "terminating": { SchemaProps: spec.SchemaProps{ - Description: "VirtualClusterObjects are the objects that were applied within the virtual cluster itself", - Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.ObjectsStatus"), + Description: "The number of pods which are terminating (in phase Pending or Running and have a deletionTimestamp).\n\nThis field is beta-level. The job controller populates the field when the feature gate JobPodReplacementPolicy is enabled (enabled by default).", + Type: []string{"integer"}, + Format: "int32", }, }, - "spaceObjects": { + "completedIndexes": { SchemaProps: spec.SchemaProps{ - Description: "SpaceObjects are the objects that were applied within the virtual cluster space", - Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.ObjectsStatus"), + Description: "completedIndexes holds the completed indexes when .spec.completionMode = \"Indexed\" in a text format. The indexes are represented as decimal integers separated by commas. The numbers are listed in increasing order. Three or more consecutive numbers are compressed and represented by the first and last element of the series, separated by a hyphen. For example, if the completed indexes are 1, 3, 4, 5 and 7, they are represented as \"1,3-5,7\".", + Type: []string{"string"}, + Format: "", }, }, - "virtualCluster": { + "failedIndexes": { SchemaProps: spec.SchemaProps{ - Description: "VirtualCluster is the template rendered with all the parameters", - Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.VirtualClusterTemplateDefinition"), + Description: "FailedIndexes holds the failed indexes when spec.backoffLimitPerIndex is set. The indexes are represented in the text format analogous as for the `completedIndexes` field, ie. they are kept as decimal integers separated by commas. The numbers are listed in increasing order. Three or more consecutive numbers are compressed and represented by the first and last element of the series, separated by a hyphen. For example, if the failed indexes are 1, 3, 4, 5 and 7, they are represented as \"1,3-5,7\". The set of failed indexes cannot overlap with the set of completed indexes.", + Type: []string{"string"}, + Format: "", }, }, - "ignoreReconciliation": { + "uncountedTerminatedPods": { SchemaProps: spec.SchemaProps{ - Description: "IgnoreReconciliation tells the controller to ignore reconciliation for this instance -- this is primarily used when migrating virtual cluster instances from project to project; this prevents a situation where there are two virtual cluster instances representing the same virtual cluster which could cause issues with concurrent reconciliations of the same object. Once the virtual cluster instance has been cloned and placed into the new project, this (the \"old\") virtual cluster instance can safely be deleted.", - Type: []string{"boolean"}, - Format: "", + Description: "uncountedTerminatedPods holds the UIDs of Pods that have terminated but the job controller hasn't yet accounted for in the status counters.\n\nThe job controller creates pods with a finalizer. When a pod terminates (succeeded or failed), the controller does three steps to account for it in the job status:\n\n1. Add the pod UID to the arrays in this field. 2. Remove the pod finalizer. 3. Remove the pod UID from the arrays while increasing the corresponding\n counter.\n\nOld jobs might not be tracked using this field, in which case the field remains null. The structure is empty for finished jobs.", + Ref: ref(batchv1.UncountedTerminatedPods{}.OpenAPIModelName()), + }, + }, + "ready": { + SchemaProps: spec.SchemaProps{ + Description: "The number of active pods which have a Ready condition and are not terminating (without a deletionTimestamp).", + Type: []string{"integer"}, + Format: "int32", }, }, }, }, }, Dependencies: []string{ - storagev1.Condition{}.OpenAPIModelName(), "github.com/devsy-org/api/pkg/apis/storage/v1.ObjectsStatus", "github.com/devsy-org/api/pkg/apis/storage/v1.VirtualClusterTemplateDefinition"}, + batchv1.JobCondition{}.OpenAPIModelName(), batchv1.UncountedTerminatedPods{}.OpenAPIModelName(), metav1.Time{}.OpenAPIModelName()}, } } -func schema_pkg_apis_storage_v1_VirtualClusterInstanceTemplateDefinition(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_k8sio_api_batch_v1_JobTemplateSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "VirtualClusterInstanceTemplateDefinition holds the virtual cluster instance template", + Description: "JobTemplateSpec describes the data a Job should have when created from a template", Type: []string{"object"}, Properties: map[string]spec.Schema{ "metadata": { SchemaProps: spec.SchemaProps{ - Description: "The virtual cluster instance metadata", + Description: "Standard object's metadata of the jobs created from this template. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata", Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.TemplateMetadata"), + Ref: ref(metav1.ObjectMeta{}.OpenAPIModelName()), + }, + }, + "spec": { + SchemaProps: spec.SchemaProps{ + Description: "Specification of the desired behavior of the job. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status", + Default: map[string]interface{}{}, + Ref: ref(batchv1.JobSpec{}.OpenAPIModelName()), }, }, }, }, }, Dependencies: []string{ - "github.com/devsy-org/api/pkg/apis/storage/v1.TemplateMetadata"}, + batchv1.JobSpec{}.OpenAPIModelName(), metav1.ObjectMeta{}.OpenAPIModelName()}, } } -func schema_pkg_apis_storage_v1_VirtualClusterProSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_k8sio_api_batch_v1_PodFailurePolicy(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Type: []string{"object"}, + Description: "PodFailurePolicy describes how failed pods influence the backoffLimit.", + Type: []string{"object"}, Properties: map[string]spec.Schema{ - "enabled": { + "rules": { + VendorExtensible: spec.VendorExtensible{ + Extensions: spec.Extensions{ + "x-kubernetes-list-type": "atomic", + }, + }, SchemaProps: spec.SchemaProps{ - Description: "Enabled defines if the virtual cluster is a pro cluster or not", - Type: []string{"boolean"}, - Format: "", + Description: "A list of pod failure policy rules. The rules are evaluated in order. Once a rule matches a Pod failure, the remaining of the rules are ignored. When no rule matches the Pod failure, the default handling applies - the counter of pod failures is incremented and it is checked against the backoffLimit. At most 20 elements are allowed.", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref(batchv1.PodFailurePolicyRule{}.OpenAPIModelName()), + }, + }, + }, }, }, }, + Required: []string{"rules"}, }, }, + Dependencies: []string{ + batchv1.PodFailurePolicyRule{}.OpenAPIModelName()}, } } -func schema_pkg_apis_storage_v1_VirtualClusterSpaceTemplateDefinition(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_k8sio_api_batch_v1_PodFailurePolicyOnExitCodesRequirement(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Type: []string{"object"}, + Description: "PodFailurePolicyOnExitCodesRequirement describes the requirement for handling a failed pod based on its container exit codes. In particular, it lookups the .state.terminated.exitCode for each app container and init container status, represented by the .status.containerStatuses and .status.initContainerStatuses fields in the Pod status, respectively. Containers completed with success (exit code 0) are excluded from the requirement check.", + Type: []string{"object"}, Properties: map[string]spec.Schema{ - "metadata": { + "containerName": { SchemaProps: spec.SchemaProps{ - Description: "The space metadata", - Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.TemplateMetadata"), + Description: "Restricts the check for exit codes to the container with the specified name. When null, the rule applies to all containers. When specified, it should match one the container or initContainer names in the pod template.", + Type: []string{"string"}, + Format: "", }, }, - "objects": { + "operator": { SchemaProps: spec.SchemaProps{ - Description: "Objects are Kubernetes style yamls that should get deployed into the virtual cluster namespace", + Description: "Represents the relationship between the container exit code(s) and the specified values. Containers completed with success (exit code 0) are excluded from the requirement check. Possible values are:\n\n- In: the requirement is satisfied if at least one container exit code\n (might be multiple if there are multiple containers not restricted\n by the 'containerName' field) is in the set of specified values.\n- NotIn: the requirement is satisfied if at least one container exit code\n (might be multiple if there are multiple containers not restricted\n by the 'containerName' field) is not in the set of specified values.\nAdditional values are considered to be added in the future. Clients should react to an unknown operator by assuming the requirement is not satisfied.\n\nPossible enum values:\n - `\"In\"`\n - `\"NotIn\"`", + Default: "", Type: []string{"string"}, Format: "", + Enum: []interface{}{"In", "NotIn"}, }, }, - "charts": { - SchemaProps: spec.SchemaProps{ - Description: "Charts are helm charts that should get deployed", - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.TemplateHelmChart"), - }, - }, + "values": { + VendorExtensible: spec.VendorExtensible{ + Extensions: spec.Extensions{ + "x-kubernetes-list-type": "set", }, }, - }, - "apps": { SchemaProps: spec.SchemaProps{ - Description: "Apps specifies the apps that should get deployed by this template", + Description: "Specifies the set of values. Each returned container exit code (might be multiple in case of multiple containers) is checked against this set of values with respect to the operator. The list of values must be ordered and must not contain duplicates. Value '0' cannot be used for the In operator. At least one element is required. At most 255 elements are allowed.", Type: []string{"array"}, Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.AppReference"), + Default: 0, + Type: []string{"integer"}, + Format: "int32", }, }, }, }, }, }, + Required: []string{"operator", "values"}, }, }, - Dependencies: []string{ - "github.com/devsy-org/api/pkg/apis/storage/v1.AppReference", "github.com/devsy-org/api/pkg/apis/storage/v1.TemplateHelmChart", "github.com/devsy-org/api/pkg/apis/storage/v1.TemplateMetadata"}, } } -func schema_pkg_apis_storage_v1_VirtualClusterStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_k8sio_api_batch_v1_PodFailurePolicyOnPodConditionsPattern(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "VirtualClusterStatus holds the status of a virtual cluster", + Description: "PodFailurePolicyOnPodConditionsPattern describes a pattern for matching an actual pod condition type.", Type: []string{"object"}, Properties: map[string]spec.Schema{ - "phase": { + "type": { SchemaProps: spec.SchemaProps{ - Description: "Phase describes the current phase the virtual cluster is in", + Description: "Specifies the required Pod condition type. To match a pod condition it is required that specified type equals the pod condition type.", + Default: "", Type: []string{"string"}, Format: "", }, }, - "reason": { + "status": { SchemaProps: spec.SchemaProps{ - Description: "Reason describes the reason in machine readable form why the cluster is in the current phase", + Description: "Specifies the required Pod condition status. To match a pod condition it is required that the specified status equals the pod condition status. Defaults to True.", + Default: "", Type: []string{"string"}, Format: "", }, }, - "message": { + }, + Required: []string{"type"}, + }, + }, + } +} + +func schema_k8sio_api_batch_v1_PodFailurePolicyRule(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "PodFailurePolicyRule describes how a pod failure is handled when the requirements are met. One of onExitCodes and onPodConditions, but not both, can be used in each rule.", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "action": { SchemaProps: spec.SchemaProps{ - Description: "Message describes the reason in human readable form why the cluster is in the current phase", + Description: "Specifies the action taken on a pod failure when the requirements are satisfied. Possible values are:\n\n- FailJob: indicates that the pod's job is marked as Failed and all\n running pods are terminated.\n- FailIndex: indicates that the pod's index is marked as Failed and will\n not be restarted.\n- Ignore: indicates that the counter towards the .backoffLimit is not\n incremented and a replacement pod is created.\n- Count: indicates that the pod is handled in the default way - the\n counter towards the .backoffLimit is incremented.\nAdditional values are considered to be added in the future. Clients should react to an unknown action by skipping the rule.\n\nPossible enum values:\n - `\"Count\"` This is an action which might be taken on a pod failure - the pod failure is handled in the default way - the counter towards .backoffLimit, represented by the job's .status.failed field, is incremented.\n - `\"FailIndex\"` This is an action which might be taken on a pod failure - mark the Job's index as failed to avoid restarts within this index. This action can only be used when backoffLimitPerIndex is set.\n - `\"FailJob\"` This is an action which might be taken on a pod failure - mark the pod's job as Failed and terminate all running pods.\n - `\"Ignore\"` This is an action which might be taken on a pod failure - the counter towards .backoffLimit, represented by the job's .status.failed field, is not incremented and a replacement pod is created.", + Default: "", Type: []string{"string"}, Format: "", + Enum: []interface{}{"Count", "FailIndex", "FailJob", "Ignore"}, }, }, - "controlPlaneReady": { + "onExitCodes": { SchemaProps: spec.SchemaProps{ - Description: "ControlPlaneReady defines if the virtual cluster control plane is ready.", - Type: []string{"boolean"}, - Format: "", + Description: "Represents the requirement on the container exit codes.", + Ref: ref(batchv1.PodFailurePolicyOnExitCodesRequirement{}.OpenAPIModelName()), }, }, - "conditions": { + "onPodConditions": { + VendorExtensible: spec.VendorExtensible{ + Extensions: spec.Extensions{ + "x-kubernetes-list-type": "atomic", + }, + }, SchemaProps: spec.SchemaProps{ - Description: "Conditions holds several conditions the virtual cluster might be in", + Description: "Represents the requirement on the pod conditions. The requirement is represented as a list of pod condition patterns. The requirement is satisfied if at least one pattern matches an actual pod condition. At most 20 elements are allowed.", Type: []string{"array"}, Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref(storagev1.Condition{}.OpenAPIModelName()), + Ref: ref(batchv1.PodFailurePolicyOnPodConditionsPattern{}.OpenAPIModelName()), }, }, }, }, }, - "observedGeneration": { - SchemaProps: spec.SchemaProps{ - Description: "ObservedGeneration is the latest generation observed by the controller.", - Type: []string{"integer"}, - Format: "int64", - }, - }, - "virtualClusterObjects": { - SchemaProps: spec.SchemaProps{ - Description: "VirtualClusterObjects are the objects that were applied within the virtual cluster itself", - Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.ObjectsStatus"), - }, - }, - "deployHash": { - SchemaProps: spec.SchemaProps{ - Description: "DeployHash saves the latest applied chart hash", - Type: []string{"string"}, - Format: "", - }, - }, - "multiNamespace": { - SchemaProps: spec.SchemaProps{ - Description: "MultiNamespace indicates if this is a multinamespace enabled virtual cluster", - Type: []string{"boolean"}, - Format: "", - }, - }, - "helmRelease": { - SchemaProps: spec.SchemaProps{ - Description: "DEPRECATED: do not use anymore the status of the helm release that was used to deploy the virtual cluster", - Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.VirtualClusterHelmReleaseStatus"), - }, - }, }, + Required: []string{"action"}, }, }, Dependencies: []string{ - storagev1.Condition{}.OpenAPIModelName(), "github.com/devsy-org/api/pkg/apis/storage/v1.ObjectsStatus", "github.com/devsy-org/api/pkg/apis/storage/v1.VirtualClusterHelmReleaseStatus"}, + batchv1.PodFailurePolicyOnExitCodesRequirement{}.OpenAPIModelName(), batchv1.PodFailurePolicyOnPodConditionsPattern{}.OpenAPIModelName()}, } } -func schema_pkg_apis_storage_v1_VirtualClusterTemplate(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_k8sio_api_batch_v1_SuccessPolicy(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "VirtualClusterTemplate holds the virtualClusterTemplate information", + Description: "SuccessPolicy describes when a Job can be declared as succeeded based on the success of some indexes.", Type: []string{"object"}, Properties: map[string]spec.Schema{ - "kind": { - SchemaProps: spec.SchemaProps{ - Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", - Type: []string{"string"}, - Format: "", - }, - }, - "apiVersion": { - SchemaProps: spec.SchemaProps{ - Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", - Type: []string{"string"}, - Format: "", - }, - }, - "metadata": { - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref(metav1.ObjectMeta{}.OpenAPIModelName()), - }, - }, - "spec": { - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.VirtualClusterTemplateSpec"), + "rules": { + VendorExtensible: spec.VendorExtensible{ + Extensions: spec.Extensions{ + "x-kubernetes-list-type": "atomic", + }, }, - }, - "status": { SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.VirtualClusterTemplateStatus"), + Description: "rules represents the list of alternative rules for the declaring the Jobs as successful before `.status.succeeded >= .spec.completions`. Once any of the rules are met, the \"SuccessCriteriaMet\" condition is added, and the lingering pods are removed. The terminal state for such a Job has the \"Complete\" condition. Additionally, these rules are evaluated in order; Once the Job meets one of the rules, other rules are ignored. At most 20 elements are allowed.", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref(batchv1.SuccessPolicyRule{}.OpenAPIModelName()), + }, + }, + }, }, }, }, + Required: []string{"rules"}, }, }, Dependencies: []string{ - "github.com/devsy-org/api/pkg/apis/storage/v1.VirtualClusterTemplateSpec", "github.com/devsy-org/api/pkg/apis/storage/v1.VirtualClusterTemplateStatus", metav1.ObjectMeta{}.OpenAPIModelName()}, + batchv1.SuccessPolicyRule{}.OpenAPIModelName()}, } } -func schema_pkg_apis_storage_v1_VirtualClusterTemplateDefinition(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_k8sio_api_batch_v1_SuccessPolicyRule(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Type: []string{"object"}, + Description: "SuccessPolicyRule describes rule for declaring a Job as succeeded. Each rule must have at least one of the \"succeededIndexes\" or \"succeededCount\" specified.", + Type: []string{"object"}, Properties: map[string]spec.Schema{ - "metadata": { - SchemaProps: spec.SchemaProps{ - Description: "The virtual cluster metadata", - Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.TemplateMetadata"), - }, - }, - "instanceTemplate": { - SchemaProps: spec.SchemaProps{ - Description: "InstanceTemplate holds the virtual cluster instance template", - Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.VirtualClusterInstanceTemplateDefinition"), - }, - }, - "apps": { - SchemaProps: spec.SchemaProps{ - Description: "Apps specifies the apps that should get deployed by this template", - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.AppReference"), - }, - }, - }, - }, - }, - "charts": { - SchemaProps: spec.SchemaProps{ - Description: "Charts are helm charts that should get deployed", - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.TemplateHelmChart"), - }, - }, - }, - }, - }, - "objects": { - SchemaProps: spec.SchemaProps{ - Description: "Objects are Kubernetes style yamls that should get deployed into the virtual cluster", - Type: []string{"string"}, - Format: "", - }, - }, - "access": { - SchemaProps: spec.SchemaProps{ - Description: "Access defines the access of users and teams to the virtual cluster.", - Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.InstanceAccess"), - }, - }, - "pro": { - SchemaProps: spec.SchemaProps{ - Description: "Pro defines the pro settings for the virtual cluster", - Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.VirtualClusterProSpec"), - }, - }, - "helmRelease": { - SchemaProps: spec.SchemaProps{ - Description: "HelmRelease is the helm release configuration for the virtual cluster.", - Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.VirtualClusterHelmRelease"), - }, - }, - "accessPoint": { - SchemaProps: spec.SchemaProps{ - Description: "AccessPoint defines settings to expose the virtual cluster directly via an ingress rather than through the (default) Devsy proxy", - Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.VirtualClusterAccessPoint"), - }, - }, - "forwardToken": { - SchemaProps: spec.SchemaProps{ - Description: "ForwardToken signals the proxy to pass through the used token to the virtual Kubernetes api server and do a TokenReview there.", - Type: []string{"boolean"}, - Format: "", - }, - }, - "spaceTemplate": { - SchemaProps: spec.SchemaProps{ - Description: "SpaceTemplate holds the space template", - Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.VirtualClusterSpaceTemplateDefinition"), - }, - }, - }, - }, - }, - Dependencies: []string{ - "github.com/devsy-org/api/pkg/apis/storage/v1.AppReference", "github.com/devsy-org/api/pkg/apis/storage/v1.InstanceAccess", "github.com/devsy-org/api/pkg/apis/storage/v1.TemplateHelmChart", "github.com/devsy-org/api/pkg/apis/storage/v1.TemplateMetadata", "github.com/devsy-org/api/pkg/apis/storage/v1.VirtualClusterAccessPoint", "github.com/devsy-org/api/pkg/apis/storage/v1.VirtualClusterHelmRelease", "github.com/devsy-org/api/pkg/apis/storage/v1.VirtualClusterInstanceTemplateDefinition", "github.com/devsy-org/api/pkg/apis/storage/v1.VirtualClusterProSpec", "github.com/devsy-org/api/pkg/apis/storage/v1.VirtualClusterSpaceTemplateDefinition"}, - } -} - -func schema_pkg_apis_storage_v1_VirtualClusterTemplateList(ref common.ReferenceCallback) common.OpenAPIDefinition { - return common.OpenAPIDefinition{ - Schema: spec.Schema{ - SchemaProps: spec.SchemaProps{ - Description: "VirtualClusterTemplateList contains a list of VirtualClusterTemplate", - Type: []string{"object"}, - Properties: map[string]spec.Schema{ - "kind": { - SchemaProps: spec.SchemaProps{ - Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", - Type: []string{"string"}, - Format: "", - }, - }, - "apiVersion": { + "succeededIndexes": { SchemaProps: spec.SchemaProps{ - Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + Description: "succeededIndexes specifies the set of indexes which need to be contained in the actual set of the succeeded indexes for the Job. The list of indexes must be within 0 to \".spec.completions-1\" and must not contain duplicates. At least one element is required. The indexes are represented as intervals separated by commas. The intervals can be a decimal integer or a pair of decimal integers separated by a hyphen. The number are listed in represented by the first and last element of the series, separated by a hyphen. For example, if the completed indexes are 1, 3, 4, 5 and 7, they are represented as \"1,3-5,7\". When this field is null, this field doesn't default to any value and is never evaluated at any time.", Type: []string{"string"}, Format: "", }, }, - "metadata": { - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref(metav1.ListMeta{}.OpenAPIModelName()), - }, - }, - "items": { - SchemaProps: spec.SchemaProps{ - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.VirtualClusterTemplate"), - }, - }, - }, - }, - }, - }, - Required: []string{"items"}, - }, - }, - Dependencies: []string{ - "github.com/devsy-org/api/pkg/apis/storage/v1.VirtualClusterTemplate", metav1.ListMeta{}.OpenAPIModelName()}, - } -} - -func schema_pkg_apis_storage_v1_VirtualClusterTemplateSpaceTemplateRef(ref common.ReferenceCallback) common.OpenAPIDefinition { - return common.OpenAPIDefinition{ - Schema: spec.Schema{ - SchemaProps: spec.SchemaProps{ - Type: []string{"object"}, - Properties: map[string]spec.Schema{ - "name": { + "succeededCount": { SchemaProps: spec.SchemaProps{ - Description: "Name of the space template", - Type: []string{"string"}, - Format: "", + Description: "succeededCount specifies the minimal required size of the actual set of the succeeded indexes for the Job. When succeededCount is used along with succeededIndexes, the check is constrained only to the set of indexes specified by succeededIndexes. For example, given that succeededIndexes is \"1-4\", succeededCount is \"3\", and completed indexes are \"1\", \"3\", and \"5\", the Job isn't declared as succeeded because only \"1\" and \"3\" indexes are considered in that rules. When this field is null, this doesn't default to any value and is never evaluated at any time. When specified it needs to be a positive integer.", + Type: []string{"integer"}, + Format: "int32", }, }, }, @@ -34895,308 +34959,54 @@ func schema_pkg_apis_storage_v1_VirtualClusterTemplateSpaceTemplateRef(ref commo } } -func schema_pkg_apis_storage_v1_VirtualClusterTemplateSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_k8sio_api_batch_v1_UncountedTerminatedPods(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "VirtualClusterTemplateSpec holds the specification", + Description: "UncountedTerminatedPods holds UIDs of Pods that have terminated but haven't been accounted in Job status counters.", Type: []string{"object"}, Properties: map[string]spec.Schema{ - "displayName": { - SchemaProps: spec.SchemaProps{ - Description: "DisplayName is the name that is shown in the UI", - Type: []string{"string"}, - Format: "", - }, - }, - "description": { - SchemaProps: spec.SchemaProps{ - Description: "Description describes the virtual cluster template", - Type: []string{"string"}, - Format: "", - }, - }, - "owner": { - SchemaProps: spec.SchemaProps{ - Description: "Owner holds the owner of this object", - Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.UserOrTeam"), - }, - }, - "template": { - SchemaProps: spec.SchemaProps{ - Description: "Template holds the virtual cluster template", - Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.VirtualClusterTemplateDefinition"), - }, - }, - "parameters": { - SchemaProps: spec.SchemaProps{ - Description: "Parameters define additional app parameters that will set helm values", - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.AppParameter"), - }, - }, + "succeeded": { + VendorExtensible: spec.VendorExtensible{ + Extensions: spec.Extensions{ + "x-kubernetes-list-type": "set", }, }, - }, - "versions": { SchemaProps: spec.SchemaProps{ - Description: "Versions are different versions of the template that can be referenced as well", + Description: "succeeded holds UIDs of succeeded Pods.", Type: []string{"array"}, Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.VirtualClusterTemplateVersion"), + Default: "", + Type: []string{"string"}, + Format: "", }, }, }, }, }, - "access": { - SchemaProps: spec.SchemaProps{ - Description: "Access holds the access rights for users and teams", - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.Access"), - }, - }, + "failed": { + VendorExtensible: spec.VendorExtensible{ + Extensions: spec.Extensions{ + "x-kubernetes-list-type": "set", }, }, - }, - "spaceTemplateRef": { - SchemaProps: spec.SchemaProps{ - Description: "DEPRECATED: SpaceTemplate to use to create the virtual cluster space if it does not exist", - Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.VirtualClusterTemplateSpaceTemplateRef"), - }, - }, - }, - }, - }, - Dependencies: []string{ - "github.com/devsy-org/api/pkg/apis/storage/v1.Access", "github.com/devsy-org/api/pkg/apis/storage/v1.AppParameter", "github.com/devsy-org/api/pkg/apis/storage/v1.UserOrTeam", "github.com/devsy-org/api/pkg/apis/storage/v1.VirtualClusterTemplateDefinition", "github.com/devsy-org/api/pkg/apis/storage/v1.VirtualClusterTemplateSpaceTemplateRef", "github.com/devsy-org/api/pkg/apis/storage/v1.VirtualClusterTemplateVersion"}, - } -} - -func schema_pkg_apis_storage_v1_VirtualClusterTemplateStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { - return common.OpenAPIDefinition{ - Schema: spec.Schema{ - SchemaProps: spec.SchemaProps{ - Description: "VirtualClusterTemplateStatus holds the status", - Type: []string{"object"}, - }, - }, - } -} - -func schema_pkg_apis_storage_v1_VirtualClusterTemplateVersion(ref common.ReferenceCallback) common.OpenAPIDefinition { - return common.OpenAPIDefinition{ - Schema: spec.Schema{ - SchemaProps: spec.SchemaProps{ - Type: []string{"object"}, - Properties: map[string]spec.Schema{ - "template": { - SchemaProps: spec.SchemaProps{ - Description: "Template holds the space template", - Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.VirtualClusterTemplateDefinition"), - }, - }, - "parameters": { SchemaProps: spec.SchemaProps{ - Description: "Parameters define additional app parameters that will set helm values", + Description: "failed holds UIDs of failed Pods.", Type: []string{"array"}, Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.AppParameter"), + Default: "", + Type: []string{"string"}, + Format: "", }, }, }, }, }, - "version": { - SchemaProps: spec.SchemaProps{ - Description: "Version is the version. Needs to be in X.X.X format.", - Type: []string{"string"}, - Format: "", - }, - }, - }, - }, - }, - Dependencies: []string{ - "github.com/devsy-org/api/pkg/apis/storage/v1.AppParameter", "github.com/devsy-org/api/pkg/apis/storage/v1.VirtualClusterTemplateDefinition"}, - } -} - -func schema_pkg_apis_storage_v1_WorkspaceRef(ref common.ReferenceCallback) common.OpenAPIDefinition { - return common.OpenAPIDefinition{ - Schema: spec.Schema{ - SchemaProps: spec.SchemaProps{ - Type: []string{"object"}, - Properties: map[string]spec.Schema{ - "name": { - SchemaProps: spec.SchemaProps{ - Description: "Name is the name of DevPodWorkspaceTemplate this references", - Default: "", - Type: []string{"string"}, - Format: "", - }, - }, - }, - Required: []string{"name"}, - }, - }, - } -} - -func schema_pkg_apis_storage_v1_WorkspaceResolvedTarget(ref common.ReferenceCallback) common.OpenAPIDefinition { - return common.OpenAPIDefinition{ - Schema: spec.Schema{ - SchemaProps: spec.SchemaProps{ - Type: []string{"object"}, - Properties: map[string]spec.Schema{ - "cluster": { - SchemaProps: spec.SchemaProps{ - Description: "Cluster is the reference to the cluster holding this workspace", - Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.WorkspaceTargetNamespace"), - }, - }, - "virtualCluster": { - SchemaProps: spec.SchemaProps{ - Description: "Cluster is the reference to the virtual cluster holding this workspace", - Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.WorkspaceTargetNamespace"), - }, - }, - "space": { - SchemaProps: spec.SchemaProps{ - Description: "Space is the reference to the space holding this workspace", - Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.WorkspaceTargetName"), - }, - }, - }, - }, - }, - Dependencies: []string{ - "github.com/devsy-org/api/pkg/apis/storage/v1.WorkspaceTargetName", "github.com/devsy-org/api/pkg/apis/storage/v1.WorkspaceTargetNamespace"}, - } -} - -func schema_pkg_apis_storage_v1_WorkspaceStatusResult(ref common.ReferenceCallback) common.OpenAPIDefinition { - return common.OpenAPIDefinition{ - Schema: spec.Schema{ - SchemaProps: spec.SchemaProps{ - Type: []string{"object"}, - Properties: map[string]spec.Schema{ - "id": { - SchemaProps: spec.SchemaProps{ - Type: []string{"string"}, - Format: "", - }, - }, - "context": { - SchemaProps: spec.SchemaProps{ - Type: []string{"string"}, - Format: "", - }, - }, - "provider": { - SchemaProps: spec.SchemaProps{ - Type: []string{"string"}, - Format: "", - }, - }, - "state": { - SchemaProps: spec.SchemaProps{ - Type: []string{"string"}, - Format: "", - }, - }, - }, - }, - }, - } -} - -func schema_pkg_apis_storage_v1_WorkspaceTarget(ref common.ReferenceCallback) common.OpenAPIDefinition { - return common.OpenAPIDefinition{ - Schema: spec.Schema{ - SchemaProps: spec.SchemaProps{ - Type: []string{"object"}, - Properties: map[string]spec.Schema{ - "cluster": { - SchemaProps: spec.SchemaProps{ - Description: "Cluster is the reference to the cluster holding this workspace", - Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.WorkspaceTargetName"), - }, - }, - "virtualCluster": { - SchemaProps: spec.SchemaProps{ - Description: "Cluster is the reference to the virtual cluster holding this workspace", - Ref: ref("github.com/devsy-org/api/pkg/apis/storage/v1.WorkspaceTargetName"), - }, - }, - }, - }, - }, - Dependencies: []string{ - "github.com/devsy-org/api/pkg/apis/storage/v1.WorkspaceTargetName"}, - } -} - -func schema_pkg_apis_storage_v1_WorkspaceTargetName(ref common.ReferenceCallback) common.OpenAPIDefinition { - return common.OpenAPIDefinition{ - Schema: spec.Schema{ - SchemaProps: spec.SchemaProps{ - Type: []string{"object"}, - Properties: map[string]spec.Schema{ - "name": { - SchemaProps: spec.SchemaProps{ - Description: "Name is the name of the target", - Default: "", - Type: []string{"string"}, - Format: "", - }, - }, - }, - Required: []string{"name"}, - }, - }, - } -} - -func schema_pkg_apis_storage_v1_WorkspaceTargetNamespace(ref common.ReferenceCallback) common.OpenAPIDefinition { - return common.OpenAPIDefinition{ - Schema: spec.Schema{ - SchemaProps: spec.SchemaProps{ - Type: []string{"object"}, - Properties: map[string]spec.Schema{ - "name": { - SchemaProps: spec.SchemaProps{ - Description: "Name is the name of the object", - Default: "", - Type: []string{"string"}, - Format: "", - }, - }, - "namespace": { - SchemaProps: spec.SchemaProps{ - Description: "Namespace is the namespace within the cluster.", - Type: []string{"string"}, - Format: "", - }, - }, }, - Required: []string{"name"}, }, }, } @@ -37362,7 +37172,7 @@ func schema_k8sio_api_core_v1_ContainerStatus(ref common.ReferenceCallback) comm Allows: true, Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ - Ref: ref("k8s.io/apimachinery/pkg/api/resource.Quantity"), + Ref: ref(resource.Quantity{}.OpenAPIModelName()), }, }, }, @@ -37441,7 +37251,7 @@ func schema_k8sio_api_core_v1_ContainerStatus(ref common.ReferenceCallback) comm }, }, Dependencies: []string{ - corev1.ContainerState{}.OpenAPIModelName(), corev1.ContainerUser{}.OpenAPIModelName(), corev1.ResourceRequirements{}.OpenAPIModelName(), corev1.ResourceStatus{}.OpenAPIModelName(), corev1.VolumeMountStatus{}.OpenAPIModelName(), "k8s.io/apimachinery/pkg/api/resource.Quantity"}, + corev1.ContainerState{}.OpenAPIModelName(), corev1.ContainerUser{}.OpenAPIModelName(), corev1.ResourceRequirements{}.OpenAPIModelName(), corev1.ResourceStatus{}.OpenAPIModelName(), corev1.VolumeMountStatus{}.OpenAPIModelName(), resource.Quantity{}.OpenAPIModelName()}, } } @@ -37623,14 +37433,14 @@ func schema_k8sio_api_core_v1_EmptyDirVolumeSource(ref common.ReferenceCallback) "sizeLimit": { SchemaProps: spec.SchemaProps{ Description: "sizeLimit is the total amount of local storage required for this EmptyDir volume. The size limit is also applicable for memory medium. The maximum usage on memory medium EmptyDir would be the minimum value between the SizeLimit specified here and the sum of memory limits of all containers in a pod. The default is nil which means that the limit is undefined. More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir", - Ref: ref("k8s.io/apimachinery/pkg/api/resource.Quantity"), + Ref: ref(resource.Quantity{}.OpenAPIModelName()), }, }, }, }, }, Dependencies: []string{ - "k8s.io/apimachinery/pkg/api/resource.Quantity"}, + resource.Quantity{}.OpenAPIModelName()}, } } @@ -39444,7 +39254,7 @@ func schema_k8sio_api_core_v1_HTTPGetAction(ref common.ReferenceCallback) common "port": { SchemaProps: spec.SchemaProps{ Description: "Name or number of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME.", - Ref: ref("k8s.io/apimachinery/pkg/util/intstr.IntOrString"), + Ref: ref(intstr.IntOrString{}.OpenAPIModelName()), }, }, "host": { @@ -39486,7 +39296,7 @@ func schema_k8sio_api_core_v1_HTTPGetAction(ref common.ReferenceCallback) common }, }, Dependencies: []string{ - corev1.HTTPHeader{}.OpenAPIModelName(), "k8s.io/apimachinery/pkg/util/intstr.IntOrString"}, + corev1.HTTPHeader{}.OpenAPIModelName(), intstr.IntOrString{}.OpenAPIModelName()}, } } @@ -40037,7 +39847,7 @@ func schema_k8sio_api_core_v1_LimitRangeItem(ref common.ReferenceCallback) commo Allows: true, Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ - Ref: ref("k8s.io/apimachinery/pkg/api/resource.Quantity"), + Ref: ref(resource.Quantity{}.OpenAPIModelName()), }, }, }, @@ -40051,7 +39861,7 @@ func schema_k8sio_api_core_v1_LimitRangeItem(ref common.ReferenceCallback) commo Allows: true, Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ - Ref: ref("k8s.io/apimachinery/pkg/api/resource.Quantity"), + Ref: ref(resource.Quantity{}.OpenAPIModelName()), }, }, }, @@ -40065,7 +39875,7 @@ func schema_k8sio_api_core_v1_LimitRangeItem(ref common.ReferenceCallback) commo Allows: true, Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ - Ref: ref("k8s.io/apimachinery/pkg/api/resource.Quantity"), + Ref: ref(resource.Quantity{}.OpenAPIModelName()), }, }, }, @@ -40079,7 +39889,7 @@ func schema_k8sio_api_core_v1_LimitRangeItem(ref common.ReferenceCallback) commo Allows: true, Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ - Ref: ref("k8s.io/apimachinery/pkg/api/resource.Quantity"), + Ref: ref(resource.Quantity{}.OpenAPIModelName()), }, }, }, @@ -40093,7 +39903,7 @@ func schema_k8sio_api_core_v1_LimitRangeItem(ref common.ReferenceCallback) commo Allows: true, Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ - Ref: ref("k8s.io/apimachinery/pkg/api/resource.Quantity"), + Ref: ref(resource.Quantity{}.OpenAPIModelName()), }, }, }, @@ -40104,7 +39914,7 @@ func schema_k8sio_api_core_v1_LimitRangeItem(ref common.ReferenceCallback) commo }, }, Dependencies: []string{ - "k8s.io/apimachinery/pkg/api/resource.Quantity"}, + resource.Quantity{}.OpenAPIModelName()}, } } @@ -40279,7 +40089,7 @@ func schema_k8sio_api_core_v1_List(ref common.ReferenceCallback) common.OpenAPID Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ - Ref: ref("k8s.io/apimachinery/pkg/runtime.RawExtension"), + Ref: ref(runtime.RawExtension{}.OpenAPIModelName()), }, }, }, @@ -40290,7 +40100,7 @@ func schema_k8sio_api_core_v1_List(ref common.ReferenceCallback) common.OpenAPID }, }, Dependencies: []string{ - metav1.ListMeta{}.OpenAPIModelName(), "k8s.io/apimachinery/pkg/runtime.RawExtension"}, + metav1.ListMeta{}.OpenAPIModelName(), runtime.RawExtension{}.OpenAPIModelName()}, } } @@ -41413,7 +41223,7 @@ func schema_k8sio_api_core_v1_NodeStatus(ref common.ReferenceCallback) common.Op Allows: true, Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ - Ref: ref("k8s.io/apimachinery/pkg/api/resource.Quantity"), + Ref: ref(resource.Quantity{}.OpenAPIModelName()), }, }, }, @@ -41427,7 +41237,7 @@ func schema_k8sio_api_core_v1_NodeStatus(ref common.ReferenceCallback) common.Op Allows: true, Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ - Ref: ref("k8s.io/apimachinery/pkg/api/resource.Quantity"), + Ref: ref(resource.Quantity{}.OpenAPIModelName()), }, }, }, @@ -41616,7 +41426,7 @@ func schema_k8sio_api_core_v1_NodeStatus(ref common.ReferenceCallback) common.Op }, }, Dependencies: []string{ - corev1.AttachedVolume{}.OpenAPIModelName(), corev1.ContainerImage{}.OpenAPIModelName(), corev1.NodeAddress{}.OpenAPIModelName(), corev1.NodeCondition{}.OpenAPIModelName(), corev1.NodeConfigStatus{}.OpenAPIModelName(), corev1.NodeDaemonEndpoints{}.OpenAPIModelName(), corev1.NodeFeatures{}.OpenAPIModelName(), corev1.NodeRuntimeHandler{}.OpenAPIModelName(), corev1.NodeSystemInfo{}.OpenAPIModelName(), "k8s.io/apimachinery/pkg/api/resource.Quantity"}, + corev1.AttachedVolume{}.OpenAPIModelName(), corev1.ContainerImage{}.OpenAPIModelName(), corev1.NodeAddress{}.OpenAPIModelName(), corev1.NodeCondition{}.OpenAPIModelName(), corev1.NodeConfigStatus{}.OpenAPIModelName(), corev1.NodeDaemonEndpoints{}.OpenAPIModelName(), corev1.NodeFeatures{}.OpenAPIModelName(), corev1.NodeRuntimeHandler{}.OpenAPIModelName(), corev1.NodeSystemInfo{}.OpenAPIModelName(), resource.Quantity{}.OpenAPIModelName()}, } } @@ -42186,7 +41996,7 @@ func schema_k8sio_api_core_v1_PersistentVolumeClaimStatus(ref common.ReferenceCa Allows: true, Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ - Ref: ref("k8s.io/apimachinery/pkg/api/resource.Quantity"), + Ref: ref(resource.Quantity{}.OpenAPIModelName()), }, }, }, @@ -42224,7 +42034,7 @@ func schema_k8sio_api_core_v1_PersistentVolumeClaimStatus(ref common.ReferenceCa Allows: true, Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ - Ref: ref("k8s.io/apimachinery/pkg/api/resource.Quantity"), + Ref: ref(resource.Quantity{}.OpenAPIModelName()), }, }, }, @@ -42269,7 +42079,7 @@ func schema_k8sio_api_core_v1_PersistentVolumeClaimStatus(ref common.ReferenceCa }, }, Dependencies: []string{ - corev1.ModifyVolumeStatus{}.OpenAPIModelName(), corev1.PersistentVolumeClaimCondition{}.OpenAPIModelName(), "k8s.io/apimachinery/pkg/api/resource.Quantity"}, + corev1.ModifyVolumeStatus{}.OpenAPIModelName(), corev1.PersistentVolumeClaimCondition{}.OpenAPIModelName(), resource.Quantity{}.OpenAPIModelName()}, } } @@ -42545,7 +42355,7 @@ func schema_k8sio_api_core_v1_PersistentVolumeSpec(ref common.ReferenceCallback) Allows: true, Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ - Ref: ref("k8s.io/apimachinery/pkg/api/resource.Quantity"), + Ref: ref(resource.Quantity{}.OpenAPIModelName()), }, }, }, @@ -42775,7 +42585,7 @@ func schema_k8sio_api_core_v1_PersistentVolumeSpec(ref common.ReferenceCallback) }, }, Dependencies: []string{ - corev1.AWSElasticBlockStoreVolumeSource{}.OpenAPIModelName(), corev1.AzureDiskVolumeSource{}.OpenAPIModelName(), corev1.AzureFilePersistentVolumeSource{}.OpenAPIModelName(), corev1.CSIPersistentVolumeSource{}.OpenAPIModelName(), corev1.CephFSPersistentVolumeSource{}.OpenAPIModelName(), corev1.CinderPersistentVolumeSource{}.OpenAPIModelName(), corev1.FCVolumeSource{}.OpenAPIModelName(), corev1.FlexPersistentVolumeSource{}.OpenAPIModelName(), corev1.FlockerVolumeSource{}.OpenAPIModelName(), corev1.GCEPersistentDiskVolumeSource{}.OpenAPIModelName(), corev1.GlusterfsPersistentVolumeSource{}.OpenAPIModelName(), corev1.HostPathVolumeSource{}.OpenAPIModelName(), corev1.ISCSIPersistentVolumeSource{}.OpenAPIModelName(), corev1.LocalVolumeSource{}.OpenAPIModelName(), corev1.NFSVolumeSource{}.OpenAPIModelName(), corev1.ObjectReference{}.OpenAPIModelName(), corev1.PhotonPersistentDiskVolumeSource{}.OpenAPIModelName(), corev1.PortworxVolumeSource{}.OpenAPIModelName(), corev1.QuobyteVolumeSource{}.OpenAPIModelName(), corev1.RBDPersistentVolumeSource{}.OpenAPIModelName(), corev1.ScaleIOPersistentVolumeSource{}.OpenAPIModelName(), corev1.StorageOSPersistentVolumeSource{}.OpenAPIModelName(), corev1.VolumeNodeAffinity{}.OpenAPIModelName(), corev1.VsphereVirtualDiskVolumeSource{}.OpenAPIModelName(), "k8s.io/apimachinery/pkg/api/resource.Quantity"}, + corev1.AWSElasticBlockStoreVolumeSource{}.OpenAPIModelName(), corev1.AzureDiskVolumeSource{}.OpenAPIModelName(), corev1.AzureFilePersistentVolumeSource{}.OpenAPIModelName(), corev1.CSIPersistentVolumeSource{}.OpenAPIModelName(), corev1.CephFSPersistentVolumeSource{}.OpenAPIModelName(), corev1.CinderPersistentVolumeSource{}.OpenAPIModelName(), corev1.FCVolumeSource{}.OpenAPIModelName(), corev1.FlexPersistentVolumeSource{}.OpenAPIModelName(), corev1.FlockerVolumeSource{}.OpenAPIModelName(), corev1.GCEPersistentDiskVolumeSource{}.OpenAPIModelName(), corev1.GlusterfsPersistentVolumeSource{}.OpenAPIModelName(), corev1.HostPathVolumeSource{}.OpenAPIModelName(), corev1.ISCSIPersistentVolumeSource{}.OpenAPIModelName(), corev1.LocalVolumeSource{}.OpenAPIModelName(), corev1.NFSVolumeSource{}.OpenAPIModelName(), corev1.ObjectReference{}.OpenAPIModelName(), corev1.PhotonPersistentDiskVolumeSource{}.OpenAPIModelName(), corev1.PortworxVolumeSource{}.OpenAPIModelName(), corev1.QuobyteVolumeSource{}.OpenAPIModelName(), corev1.RBDPersistentVolumeSource{}.OpenAPIModelName(), corev1.ScaleIOPersistentVolumeSource{}.OpenAPIModelName(), corev1.StorageOSPersistentVolumeSource{}.OpenAPIModelName(), corev1.VolumeNodeAffinity{}.OpenAPIModelName(), corev1.VsphereVirtualDiskVolumeSource{}.OpenAPIModelName(), resource.Quantity{}.OpenAPIModelName()}, } } @@ -44441,7 +44251,7 @@ func schema_k8sio_api_core_v1_PodSpec(ref common.ReferenceCallback) common.OpenA Allows: true, Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ - Ref: ref("k8s.io/apimachinery/pkg/api/resource.Quantity"), + Ref: ref(resource.Quantity{}.OpenAPIModelName()), }, }, }, @@ -44564,7 +44374,7 @@ func schema_k8sio_api_core_v1_PodSpec(ref common.ReferenceCallback) common.OpenA }, }, Dependencies: []string{ - corev1.Affinity{}.OpenAPIModelName(), corev1.Container{}.OpenAPIModelName(), corev1.EphemeralContainer{}.OpenAPIModelName(), corev1.HostAlias{}.OpenAPIModelName(), corev1.LocalObjectReference{}.OpenAPIModelName(), corev1.PodDNSConfig{}.OpenAPIModelName(), corev1.PodOS{}.OpenAPIModelName(), corev1.PodReadinessGate{}.OpenAPIModelName(), corev1.PodResourceClaim{}.OpenAPIModelName(), corev1.PodSchedulingGate{}.OpenAPIModelName(), corev1.PodSecurityContext{}.OpenAPIModelName(), corev1.ResourceRequirements{}.OpenAPIModelName(), corev1.Toleration{}.OpenAPIModelName(), corev1.TopologySpreadConstraint{}.OpenAPIModelName(), corev1.Volume{}.OpenAPIModelName(), corev1.WorkloadReference{}.OpenAPIModelName(), "k8s.io/apimachinery/pkg/api/resource.Quantity"}, + corev1.Affinity{}.OpenAPIModelName(), corev1.Container{}.OpenAPIModelName(), corev1.EphemeralContainer{}.OpenAPIModelName(), corev1.HostAlias{}.OpenAPIModelName(), corev1.LocalObjectReference{}.OpenAPIModelName(), corev1.PodDNSConfig{}.OpenAPIModelName(), corev1.PodOS{}.OpenAPIModelName(), corev1.PodReadinessGate{}.OpenAPIModelName(), corev1.PodResourceClaim{}.OpenAPIModelName(), corev1.PodSchedulingGate{}.OpenAPIModelName(), corev1.PodSecurityContext{}.OpenAPIModelName(), corev1.ResourceRequirements{}.OpenAPIModelName(), corev1.Toleration{}.OpenAPIModelName(), corev1.TopologySpreadConstraint{}.OpenAPIModelName(), corev1.Volume{}.OpenAPIModelName(), corev1.WorkloadReference{}.OpenAPIModelName(), resource.Quantity{}.OpenAPIModelName()}, } } @@ -44810,7 +44620,7 @@ func schema_k8sio_api_core_v1_PodStatus(ref common.ReferenceCallback) common.Ope Allows: true, Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ - Ref: ref("k8s.io/apimachinery/pkg/api/resource.Quantity"), + Ref: ref(resource.Quantity{}.OpenAPIModelName()), }, }, }, @@ -44826,7 +44636,7 @@ func schema_k8sio_api_core_v1_PodStatus(ref common.ReferenceCallback) common.Ope }, }, Dependencies: []string{ - corev1.ContainerStatus{}.OpenAPIModelName(), corev1.HostIP{}.OpenAPIModelName(), corev1.PodCondition{}.OpenAPIModelName(), corev1.PodExtendedResourceClaimStatus{}.OpenAPIModelName(), corev1.PodIP{}.OpenAPIModelName(), corev1.PodResourceClaimStatus{}.OpenAPIModelName(), corev1.ResourceRequirements{}.OpenAPIModelName(), "k8s.io/apimachinery/pkg/api/resource.Quantity", metav1.Time{}.OpenAPIModelName()}, + corev1.ContainerStatus{}.OpenAPIModelName(), corev1.HostIP{}.OpenAPIModelName(), corev1.PodCondition{}.OpenAPIModelName(), corev1.PodExtendedResourceClaimStatus{}.OpenAPIModelName(), corev1.PodIP{}.OpenAPIModelName(), corev1.PodResourceClaimStatus{}.OpenAPIModelName(), corev1.ResourceRequirements{}.OpenAPIModelName(), resource.Quantity{}.OpenAPIModelName(), metav1.Time{}.OpenAPIModelName()}, } } @@ -45923,729 +45733,3523 @@ func schema_k8sio_api_core_v1_ResourceFieldSelector(ref common.ReferenceCallback }, "resource": { SchemaProps: spec.SchemaProps{ - Description: "Required: resource to select", - Default: "", - Type: []string{"string"}, - Format: "", + Description: "Required: resource to select", + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + "divisor": { + SchemaProps: spec.SchemaProps{ + Description: "Specifies the output format of the exposed resources, defaults to \"1\"", + Ref: ref(resource.Quantity{}.OpenAPIModelName()), + }, + }, + }, + Required: []string{"resource"}, + }, + VendorExtensible: spec.VendorExtensible{ + Extensions: spec.Extensions{ + "x-kubernetes-map-type": "atomic", + }, + }, + }, + Dependencies: []string{ + resource.Quantity{}.OpenAPIModelName()}, + } +} + +func schema_k8sio_api_core_v1_ResourceHealth(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "ResourceHealth represents the health of a resource. It has the latest device health information. This is a part of KEP https://kep.k8s.io/4680.", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "resourceID": { + SchemaProps: spec.SchemaProps{ + Description: "ResourceID is the unique identifier of the resource. See the ResourceID type for more information.", + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + "health": { + SchemaProps: spec.SchemaProps{ + Description: "Health of the resource. can be one of:\n - Healthy: operates as normal\n - Unhealthy: reported unhealthy. We consider this a temporary health issue\n since we do not have a mechanism today to distinguish\n temporary and permanent issues.\n - Unknown: The status cannot be determined.\n For example, Device Plugin got unregistered and hasn't been re-registered since.\n\nIn future we may want to introduce the PermanentlyUnhealthy Status.", + Type: []string{"string"}, + Format: "", + }, + }, + }, + Required: []string{"resourceID"}, + }, + }, + } +} + +func schema_k8sio_api_core_v1_ResourceQuota(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "ResourceQuota sets aggregate quota restrictions enforced per namespace", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "kind": { + SchemaProps: spec.SchemaProps{ + Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + Type: []string{"string"}, + Format: "", + }, + }, + "apiVersion": { + SchemaProps: spec.SchemaProps{ + Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + Type: []string{"string"}, + Format: "", + }, + }, + "metadata": { + SchemaProps: spec.SchemaProps{ + Description: "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata", + Default: map[string]interface{}{}, + Ref: ref(metav1.ObjectMeta{}.OpenAPIModelName()), + }, + }, + "spec": { + SchemaProps: spec.SchemaProps{ + Description: "Spec defines the desired quota. https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status", + Default: map[string]interface{}{}, + Ref: ref(corev1.ResourceQuotaSpec{}.OpenAPIModelName()), + }, + }, + "status": { + SchemaProps: spec.SchemaProps{ + Description: "Status defines the actual enforced quota and its current usage. https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status", + Default: map[string]interface{}{}, + Ref: ref(corev1.ResourceQuotaStatus{}.OpenAPIModelName()), + }, + }, + }, + }, + }, + Dependencies: []string{ + corev1.ResourceQuotaSpec{}.OpenAPIModelName(), corev1.ResourceQuotaStatus{}.OpenAPIModelName(), metav1.ObjectMeta{}.OpenAPIModelName()}, + } +} + +func schema_k8sio_api_core_v1_ResourceQuotaList(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "ResourceQuotaList is a list of ResourceQuota items.", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "kind": { + SchemaProps: spec.SchemaProps{ + Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + Type: []string{"string"}, + Format: "", + }, + }, + "apiVersion": { + SchemaProps: spec.SchemaProps{ + Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + Type: []string{"string"}, + Format: "", + }, + }, + "metadata": { + SchemaProps: spec.SchemaProps{ + Description: "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + Default: map[string]interface{}{}, + Ref: ref(metav1.ListMeta{}.OpenAPIModelName()), + }, + }, + "items": { + SchemaProps: spec.SchemaProps{ + Description: "Items is a list of ResourceQuota objects. More info: https://kubernetes.io/docs/concepts/policy/resource-quotas/", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref(corev1.ResourceQuota{}.OpenAPIModelName()), + }, + }, + }, + }, + }, + }, + Required: []string{"items"}, + }, + }, + Dependencies: []string{ + corev1.ResourceQuota{}.OpenAPIModelName(), metav1.ListMeta{}.OpenAPIModelName()}, + } +} + +func schema_k8sio_api_core_v1_ResourceQuotaSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "ResourceQuotaSpec defines the desired hard limits to enforce for Quota.", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "hard": { + SchemaProps: spec.SchemaProps{ + Description: "hard is the set of desired hard limits for each named resource. More info: https://kubernetes.io/docs/concepts/policy/resource-quotas/", + Type: []string{"object"}, + AdditionalProperties: &spec.SchemaOrBool{ + Allows: true, + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Ref: ref(resource.Quantity{}.OpenAPIModelName()), + }, + }, + }, + }, + }, + "scopes": { + VendorExtensible: spec.VendorExtensible{ + Extensions: spec.Extensions{ + "x-kubernetes-list-type": "atomic", + }, + }, + SchemaProps: spec.SchemaProps{ + Description: "A collection of filters that must match each object tracked by a quota. If not specified, the quota matches all objects.", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: "", + Type: []string{"string"}, + Format: "", + Enum: []interface{}{"BestEffort", "CrossNamespacePodAffinity", "NotBestEffort", "NotTerminating", "PriorityClass", "Terminating", "VolumeAttributesClass"}, + }, + }, + }, + }, + }, + "scopeSelector": { + SchemaProps: spec.SchemaProps{ + Description: "scopeSelector is also a collection of filters like scopes that must match each object tracked by a quota but expressed using ScopeSelectorOperator in combination with possible values. For a resource to match, both scopes AND scopeSelector (if specified in spec), must be matched.", + Ref: ref(corev1.ScopeSelector{}.OpenAPIModelName()), + }, + }, + }, + }, + }, + Dependencies: []string{ + corev1.ScopeSelector{}.OpenAPIModelName(), resource.Quantity{}.OpenAPIModelName()}, + } +} + +func schema_k8sio_api_core_v1_ResourceQuotaStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "ResourceQuotaStatus defines the enforced hard limits and observed use.", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "hard": { + SchemaProps: spec.SchemaProps{ + Description: "Hard is the set of enforced hard limits for each named resource. More info: https://kubernetes.io/docs/concepts/policy/resource-quotas/", + Type: []string{"object"}, + AdditionalProperties: &spec.SchemaOrBool{ + Allows: true, + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Ref: ref(resource.Quantity{}.OpenAPIModelName()), + }, + }, + }, + }, + }, + "used": { + SchemaProps: spec.SchemaProps{ + Description: "Used is the current observed total usage of the resource in the namespace.", + Type: []string{"object"}, + AdditionalProperties: &spec.SchemaOrBool{ + Allows: true, + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Ref: ref(resource.Quantity{}.OpenAPIModelName()), + }, + }, + }, + }, + }, + }, + }, + }, + Dependencies: []string{ + resource.Quantity{}.OpenAPIModelName()}, + } +} + +func schema_k8sio_api_core_v1_ResourceRequirements(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "ResourceRequirements describes the compute resource requirements.", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "limits": { + SchemaProps: spec.SchemaProps{ + Description: "Limits describes the maximum amount of compute resources allowed. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/", + Type: []string{"object"}, + AdditionalProperties: &spec.SchemaOrBool{ + Allows: true, + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Ref: ref(resource.Quantity{}.OpenAPIModelName()), + }, + }, + }, + }, + }, + "requests": { + SchemaProps: spec.SchemaProps{ + Description: "Requests describes the minimum amount of compute resources required. If Requests is omitted for a container, it defaults to Limits if that is explicitly specified, otherwise to an implementation-defined value. Requests cannot exceed Limits. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/", + Type: []string{"object"}, + AdditionalProperties: &spec.SchemaOrBool{ + Allows: true, + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Ref: ref(resource.Quantity{}.OpenAPIModelName()), + }, + }, + }, + }, + }, + "claims": { + VendorExtensible: spec.VendorExtensible{ + Extensions: spec.Extensions{ + "x-kubernetes-list-map-keys": []interface{}{ + "name", + }, + "x-kubernetes-list-type": "map", + }, + }, + SchemaProps: spec.SchemaProps{ + Description: "Claims lists the names of resources, defined in spec.resourceClaims, that are used by this container.\n\nThis field depends on the DynamicResourceAllocation feature gate.\n\nThis field is immutable. It can only be set for containers.", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref(corev1.ResourceClaim{}.OpenAPIModelName()), + }, + }, + }, + }, + }, + }, + }, + }, + Dependencies: []string{ + corev1.ResourceClaim{}.OpenAPIModelName(), resource.Quantity{}.OpenAPIModelName()}, + } +} + +func schema_k8sio_api_core_v1_ResourceStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "ResourceStatus represents the status of a single resource allocated to a Pod.", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "name": { + SchemaProps: spec.SchemaProps{ + Description: "Name of the resource. Must be unique within the pod and in case of non-DRA resource, match one of the resources from the pod spec. For DRA resources, the value must be \"claim:/\". When this status is reported about a container, the \"claim_name\" and \"request\" must match one of the claims of this container.", + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + "resources": { + VendorExtensible: spec.VendorExtensible{ + Extensions: spec.Extensions{ + "x-kubernetes-list-map-keys": []interface{}{ + "resourceID", + }, + "x-kubernetes-list-type": "map", + }, + }, + SchemaProps: spec.SchemaProps{ + Description: "List of unique resources health. Each element in the list contains an unique resource ID and its health. At a minimum, for the lifetime of a Pod, resource ID must uniquely identify the resource allocated to the Pod on the Node. If other Pod on the same Node reports the status with the same resource ID, it must be the same resource they share. See ResourceID type definition for a specific format it has in various use cases.", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref(corev1.ResourceHealth{}.OpenAPIModelName()), + }, + }, + }, + }, + }, + }, + Required: []string{"name"}, + }, + }, + Dependencies: []string{ + corev1.ResourceHealth{}.OpenAPIModelName()}, + } +} + +func schema_k8sio_api_core_v1_SELinuxOptions(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "SELinuxOptions are the labels to be applied to the container", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "user": { + SchemaProps: spec.SchemaProps{ + Description: "User is a SELinux user label that applies to the container.", + Type: []string{"string"}, + Format: "", + }, + }, + "role": { + SchemaProps: spec.SchemaProps{ + Description: "Role is a SELinux role label that applies to the container.", + Type: []string{"string"}, + Format: "", + }, + }, + "type": { + SchemaProps: spec.SchemaProps{ + Description: "Type is a SELinux type label that applies to the container.", + Type: []string{"string"}, + Format: "", + }, + }, + "level": { + SchemaProps: spec.SchemaProps{ + Description: "Level is SELinux level label that applies to the container.", + Type: []string{"string"}, + Format: "", + }, + }, + }, + }, + }, + } +} + +func schema_k8sio_api_core_v1_ScaleIOPersistentVolumeSource(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "ScaleIOPersistentVolumeSource represents a persistent ScaleIO volume", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "gateway": { + SchemaProps: spec.SchemaProps{ + Description: "gateway is the host address of the ScaleIO API Gateway.", + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + "system": { + SchemaProps: spec.SchemaProps{ + Description: "system is the name of the storage system as configured in ScaleIO.", + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + "secretRef": { + SchemaProps: spec.SchemaProps{ + Description: "secretRef references to the secret for ScaleIO user and other sensitive information. If this is not provided, Login operation will fail.", + Ref: ref(corev1.SecretReference{}.OpenAPIModelName()), + }, + }, + "sslEnabled": { + SchemaProps: spec.SchemaProps{ + Description: "sslEnabled is the flag to enable/disable SSL communication with Gateway, default false", + Type: []string{"boolean"}, + Format: "", + }, + }, + "protectionDomain": { + SchemaProps: spec.SchemaProps{ + Description: "protectionDomain is the name of the ScaleIO Protection Domain for the configured storage.", + Type: []string{"string"}, + Format: "", + }, + }, + "storagePool": { + SchemaProps: spec.SchemaProps{ + Description: "storagePool is the ScaleIO Storage Pool associated with the protection domain.", + Type: []string{"string"}, + Format: "", + }, + }, + "storageMode": { + SchemaProps: spec.SchemaProps{ + Description: "storageMode indicates whether the storage for a volume should be ThickProvisioned or ThinProvisioned. Default is ThinProvisioned.", + Default: "ThinProvisioned", + Type: []string{"string"}, + Format: "", + }, + }, + "volumeName": { + SchemaProps: spec.SchemaProps{ + Description: "volumeName is the name of a volume already created in the ScaleIO system that is associated with this volume source.", + Type: []string{"string"}, + Format: "", + }, + }, + "fsType": { + SchemaProps: spec.SchemaProps{ + Description: "fsType is the filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\", \"ntfs\". Default is \"xfs\"", + Default: "xfs", + Type: []string{"string"}, + Format: "", + }, + }, + "readOnly": { + SchemaProps: spec.SchemaProps{ + Description: "readOnly defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts.", + Type: []string{"boolean"}, + Format: "", + }, + }, + }, + Required: []string{"gateway", "system", "secretRef"}, + }, + }, + Dependencies: []string{ + corev1.SecretReference{}.OpenAPIModelName()}, + } +} + +func schema_k8sio_api_core_v1_ScaleIOVolumeSource(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "ScaleIOVolumeSource represents a persistent ScaleIO volume", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "gateway": { + SchemaProps: spec.SchemaProps{ + Description: "gateway is the host address of the ScaleIO API Gateway.", + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + "system": { + SchemaProps: spec.SchemaProps{ + Description: "system is the name of the storage system as configured in ScaleIO.", + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + "secretRef": { + SchemaProps: spec.SchemaProps{ + Description: "secretRef references to the secret for ScaleIO user and other sensitive information. If this is not provided, Login operation will fail.", + Ref: ref(corev1.LocalObjectReference{}.OpenAPIModelName()), + }, + }, + "sslEnabled": { + SchemaProps: spec.SchemaProps{ + Description: "sslEnabled Flag enable/disable SSL communication with Gateway, default false", + Type: []string{"boolean"}, + Format: "", + }, + }, + "protectionDomain": { + SchemaProps: spec.SchemaProps{ + Description: "protectionDomain is the name of the ScaleIO Protection Domain for the configured storage.", + Type: []string{"string"}, + Format: "", + }, + }, + "storagePool": { + SchemaProps: spec.SchemaProps{ + Description: "storagePool is the ScaleIO Storage Pool associated with the protection domain.", + Type: []string{"string"}, + Format: "", + }, + }, + "storageMode": { + SchemaProps: spec.SchemaProps{ + Description: "storageMode indicates whether the storage for a volume should be ThickProvisioned or ThinProvisioned. Default is ThinProvisioned.", + Default: "ThinProvisioned", + Type: []string{"string"}, + Format: "", + }, + }, + "volumeName": { + SchemaProps: spec.SchemaProps{ + Description: "volumeName is the name of a volume already created in the ScaleIO system that is associated with this volume source.", + Type: []string{"string"}, + Format: "", + }, + }, + "fsType": { + SchemaProps: spec.SchemaProps{ + Description: "fsType is the filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\", \"ntfs\". Default is \"xfs\".", + Default: "xfs", + Type: []string{"string"}, + Format: "", + }, + }, + "readOnly": { + SchemaProps: spec.SchemaProps{ + Description: "readOnly Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts.", + Type: []string{"boolean"}, + Format: "", + }, + }, + }, + Required: []string{"gateway", "system", "secretRef"}, + }, + }, + Dependencies: []string{ + corev1.LocalObjectReference{}.OpenAPIModelName()}, + } +} + +func schema_k8sio_api_core_v1_ScopeSelector(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "A scope selector represents the AND of the selectors represented by the scoped-resource selector requirements.", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "matchExpressions": { + VendorExtensible: spec.VendorExtensible{ + Extensions: spec.Extensions{ + "x-kubernetes-list-type": "atomic", + }, + }, + SchemaProps: spec.SchemaProps{ + Description: "A list of scope selector requirements by scope of the resources.", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref(corev1.ScopedResourceSelectorRequirement{}.OpenAPIModelName()), + }, + }, + }, + }, + }, + }, + }, + VendorExtensible: spec.VendorExtensible{ + Extensions: spec.Extensions{ + "x-kubernetes-map-type": "atomic", + }, + }, + }, + Dependencies: []string{ + corev1.ScopedResourceSelectorRequirement{}.OpenAPIModelName()}, + } +} + +func schema_k8sio_api_core_v1_ScopedResourceSelectorRequirement(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "A scoped-resource selector requirement is a selector that contains values, a scope name, and an operator that relates the scope name and values.", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "scopeName": { + SchemaProps: spec.SchemaProps{ + Description: "The name of the scope that the selector applies to.\n\nPossible enum values:\n - `\"BestEffort\"` Match all pod objects that have best effort quality of service\n - `\"CrossNamespacePodAffinity\"` Match all pod objects that have cross-namespace pod (anti)affinity mentioned.\n - `\"NotBestEffort\"` Match all pod objects that do not have best effort quality of service\n - `\"NotTerminating\"` Match all pod objects where spec.activeDeadlineSeconds is nil\n - `\"PriorityClass\"` Match all pod objects that have priority class mentioned\n - `\"Terminating\"` Match all pod objects where spec.activeDeadlineSeconds >=0\n - `\"VolumeAttributesClass\"` Match all pvc objects that have volume attributes class mentioned.", + Default: "", + Type: []string{"string"}, + Format: "", + Enum: []interface{}{"BestEffort", "CrossNamespacePodAffinity", "NotBestEffort", "NotTerminating", "PriorityClass", "Terminating", "VolumeAttributesClass"}, + }, + }, + "operator": { + SchemaProps: spec.SchemaProps{ + Description: "Represents a scope's relationship to a set of values. Valid operators are In, NotIn, Exists, DoesNotExist.\n\nPossible enum values:\n - `\"DoesNotExist\"`\n - `\"Exists\"`\n - `\"In\"`\n - `\"NotIn\"`", + Default: "", + Type: []string{"string"}, + Format: "", + Enum: []interface{}{"DoesNotExist", "Exists", "In", "NotIn"}, + }, + }, + "values": { + VendorExtensible: spec.VendorExtensible{ + Extensions: spec.Extensions{ + "x-kubernetes-list-type": "atomic", + }, + }, + SchemaProps: spec.SchemaProps{ + Description: "An array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. This array is replaced during a strategic merge patch.", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + }, + }, + }, + }, + Required: []string{"scopeName", "operator"}, + }, + }, + } +} + +func schema_k8sio_api_core_v1_SeccompProfile(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "SeccompProfile defines a pod/container's seccomp profile settings. Only one profile source may be set.", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "type": { + SchemaProps: spec.SchemaProps{ + Description: "type indicates which kind of seccomp profile will be applied. Valid options are:\n\nLocalhost - a profile defined in a file on the node should be used. RuntimeDefault - the container runtime default profile should be used. Unconfined - no profile should be applied.\n\nPossible enum values:\n - `\"Localhost\"` indicates a profile defined in a file on the node should be used. The file's location relative to /seccomp.\n - `\"RuntimeDefault\"` represents the default container runtime seccomp profile.\n - `\"Unconfined\"` indicates no seccomp profile is applied (A.K.A. unconfined).", + Default: "", + Type: []string{"string"}, + Format: "", + Enum: []interface{}{"Localhost", "RuntimeDefault", "Unconfined"}, + }, + }, + "localhostProfile": { + SchemaProps: spec.SchemaProps{ + Description: "localhostProfile indicates a profile defined in a file on the node should be used. The profile must be preconfigured on the node to work. Must be a descending path, relative to the kubelet's configured seccomp profile location. Must be set if type is \"Localhost\". Must NOT be set for any other type.", + Type: []string{"string"}, + Format: "", + }, + }, + }, + Required: []string{"type"}, + }, + VendorExtensible: spec.VendorExtensible{ + Extensions: spec.Extensions{ + "x-kubernetes-unions": []interface{}{ + map[string]interface{}{ + "discriminator": "type", + "fields-to-discriminateBy": map[string]interface{}{ + "localhostProfile": "LocalhostProfile", + }, + }, + }, + }, + }, + }, + } +} + +func schema_k8sio_api_core_v1_Secret(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "Secret holds secret data of a certain type. The total bytes of the values in the Data field must be less than MaxSecretSize bytes.", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "kind": { + SchemaProps: spec.SchemaProps{ + Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + Type: []string{"string"}, + Format: "", + }, + }, + "apiVersion": { + SchemaProps: spec.SchemaProps{ + Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + Type: []string{"string"}, + Format: "", + }, + }, + "metadata": { + SchemaProps: spec.SchemaProps{ + Description: "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata", + Default: map[string]interface{}{}, + Ref: ref(metav1.ObjectMeta{}.OpenAPIModelName()), + }, + }, + "immutable": { + SchemaProps: spec.SchemaProps{ + Description: "Immutable, if set to true, ensures that data stored in the Secret cannot be updated (only object metadata can be modified). If not set to true, the field can be modified at any time. Defaulted to nil.", + Type: []string{"boolean"}, + Format: "", + }, + }, + "data": { + SchemaProps: spec.SchemaProps{ + Description: "Data contains the secret data. Each key must consist of alphanumeric characters, '-', '_' or '.'. The serialized form of the secret data is a base64 encoded string, representing the arbitrary (possibly non-string) data value here. Described in https://tools.ietf.org/html/rfc4648#section-4", + Type: []string{"object"}, + AdditionalProperties: &spec.SchemaOrBool{ + Allows: true, + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"string"}, + Format: "byte", + }, + }, + }, + }, + }, + "stringData": { + SchemaProps: spec.SchemaProps{ + Description: "stringData allows specifying non-binary secret data in string form. It is provided as a write-only input field for convenience. All keys and values are merged into the data field on write, overwriting any existing values. The stringData field is never output when reading from the API.", + Type: []string{"object"}, + AdditionalProperties: &spec.SchemaOrBool{ + Allows: true, + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + }, + }, + }, + "type": { + SchemaProps: spec.SchemaProps{ + Description: "Used to facilitate programmatic handling of secret data. More info: https://kubernetes.io/docs/concepts/configuration/secret/#secret-types", + Type: []string{"string"}, + Format: "", + }, + }, + }, + }, + }, + Dependencies: []string{ + metav1.ObjectMeta{}.OpenAPIModelName()}, + } +} + +func schema_k8sio_api_core_v1_SecretEnvSource(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "SecretEnvSource selects a Secret to populate the environment variables with.\n\nThe contents of the target Secret's Data field will represent the key-value pairs as environment variables.", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "name": { + SchemaProps: spec.SchemaProps{ + Description: "Name of the referent. This field is effectively required, but due to backwards compatibility is allowed to be empty. Instances of this type with an empty value here are almost certainly wrong. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + "optional": { + SchemaProps: spec.SchemaProps{ + Description: "Specify whether the Secret must be defined", + Type: []string{"boolean"}, + Format: "", + }, + }, + }, + }, + }, + } +} + +func schema_k8sio_api_core_v1_SecretKeySelector(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "SecretKeySelector selects a key of a Secret.", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "name": { + SchemaProps: spec.SchemaProps{ + Description: "Name of the referent. This field is effectively required, but due to backwards compatibility is allowed to be empty. Instances of this type with an empty value here are almost certainly wrong. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + "key": { + SchemaProps: spec.SchemaProps{ + Description: "The key of the secret to select from. Must be a valid secret key.", + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + "optional": { + SchemaProps: spec.SchemaProps{ + Description: "Specify whether the Secret or its key must be defined", + Type: []string{"boolean"}, + Format: "", + }, + }, + }, + Required: []string{"key"}, + }, + VendorExtensible: spec.VendorExtensible{ + Extensions: spec.Extensions{ + "x-kubernetes-map-type": "atomic", + }, + }, + }, + } +} + +func schema_k8sio_api_core_v1_SecretList(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "SecretList is a list of Secret.", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "kind": { + SchemaProps: spec.SchemaProps{ + Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + Type: []string{"string"}, + Format: "", + }, + }, + "apiVersion": { + SchemaProps: spec.SchemaProps{ + Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + Type: []string{"string"}, + Format: "", + }, + }, + "metadata": { + SchemaProps: spec.SchemaProps{ + Description: "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + Default: map[string]interface{}{}, + Ref: ref(metav1.ListMeta{}.OpenAPIModelName()), + }, + }, + "items": { + SchemaProps: spec.SchemaProps{ + Description: "Items is a list of secret objects. More info: https://kubernetes.io/docs/concepts/configuration/secret", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref(corev1.Secret{}.OpenAPIModelName()), + }, + }, + }, + }, + }, + }, + Required: []string{"items"}, + }, + }, + Dependencies: []string{ + corev1.Secret{}.OpenAPIModelName(), metav1.ListMeta{}.OpenAPIModelName()}, + } +} + +func schema_k8sio_api_core_v1_SecretProjection(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "Adapts a secret into a projected volume.\n\nThe contents of the target Secret's Data field will be presented in a projected volume as files using the keys in the Data field as the file names. Note that this is identical to a secret volume source without the default mode.", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "name": { + SchemaProps: spec.SchemaProps{ + Description: "Name of the referent. This field is effectively required, but due to backwards compatibility is allowed to be empty. Instances of this type with an empty value here are almost certainly wrong. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + "items": { + VendorExtensible: spec.VendorExtensible{ + Extensions: spec.Extensions{ + "x-kubernetes-list-type": "atomic", + }, + }, + SchemaProps: spec.SchemaProps{ + Description: "items if unspecified, each key-value pair in the Data field of the referenced Secret will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the Secret, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'.", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref(corev1.KeyToPath{}.OpenAPIModelName()), + }, + }, + }, + }, + }, + "optional": { + SchemaProps: spec.SchemaProps{ + Description: "optional field specify whether the Secret or its key must be defined", + Type: []string{"boolean"}, + Format: "", + }, + }, + }, + }, + }, + Dependencies: []string{ + corev1.KeyToPath{}.OpenAPIModelName()}, + } +} + +func schema_k8sio_api_core_v1_SecretReference(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "SecretReference represents a Secret Reference. It has enough information to retrieve secret in any namespace", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "name": { + SchemaProps: spec.SchemaProps{ + Description: "name is unique within a namespace to reference a secret resource.", + Type: []string{"string"}, + Format: "", + }, + }, + "namespace": { + SchemaProps: spec.SchemaProps{ + Description: "namespace defines the space within which the secret name must be unique.", + Type: []string{"string"}, + Format: "", + }, + }, + }, + }, + VendorExtensible: spec.VendorExtensible{ + Extensions: spec.Extensions{ + "x-kubernetes-map-type": "atomic", + }, + }, + }, + } +} + +func schema_k8sio_api_core_v1_SecretVolumeSource(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "Adapts a Secret into a volume.\n\nThe contents of the target Secret's Data field will be presented in a volume as files using the keys in the Data field as the file names. Secret volumes support ownership management and SELinux relabeling.", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "secretName": { + SchemaProps: spec.SchemaProps{ + Description: "secretName is the name of the secret in the pod's namespace to use. More info: https://kubernetes.io/docs/concepts/storage/volumes#secret", + Type: []string{"string"}, + Format: "", + }, + }, + "items": { + VendorExtensible: spec.VendorExtensible{ + Extensions: spec.Extensions{ + "x-kubernetes-list-type": "atomic", + }, + }, + SchemaProps: spec.SchemaProps{ + Description: "items If unspecified, each key-value pair in the Data field of the referenced Secret will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the Secret, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'.", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref(corev1.KeyToPath{}.OpenAPIModelName()), + }, + }, + }, + }, + }, + "defaultMode": { + SchemaProps: spec.SchemaProps{ + Description: "defaultMode is Optional: mode bits used to set permissions on created files by default. Must be an octal value between 0000 and 0777 or a decimal value between 0 and 511. YAML accepts both octal and decimal values, JSON requires decimal values for mode bits. Defaults to 0644. Directories within the path are not affected by this setting. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set.", + Type: []string{"integer"}, + Format: "int32", + }, + }, + "optional": { + SchemaProps: spec.SchemaProps{ + Description: "optional field specify whether the Secret or its keys must be defined", + Type: []string{"boolean"}, + Format: "", + }, + }, + }, + }, + }, + Dependencies: []string{ + corev1.KeyToPath{}.OpenAPIModelName()}, + } +} + +func schema_k8sio_api_core_v1_SecurityContext(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "SecurityContext holds security configuration that will be applied to a container. Some fields are present in both SecurityContext and PodSecurityContext. When both are set, the values in SecurityContext take precedence.", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "capabilities": { + SchemaProps: spec.SchemaProps{ + Description: "The capabilities to add/drop when running containers. Defaults to the default set of capabilities granted by the container runtime. Note that this field cannot be set when spec.os.name is windows.", + Ref: ref(corev1.Capabilities{}.OpenAPIModelName()), + }, + }, + "privileged": { + SchemaProps: spec.SchemaProps{ + Description: "Run container in privileged mode. Processes in privileged containers are essentially equivalent to root on the host. Defaults to false. Note that this field cannot be set when spec.os.name is windows.", + Type: []string{"boolean"}, + Format: "", + }, + }, + "seLinuxOptions": { + SchemaProps: spec.SchemaProps{ + Description: "The SELinux context to be applied to the container. If unspecified, the container runtime will allocate a random SELinux context for each container. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. Note that this field cannot be set when spec.os.name is windows.", + Ref: ref(corev1.SELinuxOptions{}.OpenAPIModelName()), + }, + }, + "windowsOptions": { + SchemaProps: spec.SchemaProps{ + Description: "The Windows specific settings applied to all containers. If unspecified, the options from the PodSecurityContext will be used. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. Note that this field cannot be set when spec.os.name is linux.", + Ref: ref(corev1.WindowsSecurityContextOptions{}.OpenAPIModelName()), + }, + }, + "runAsUser": { + SchemaProps: spec.SchemaProps{ + Description: "The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. Note that this field cannot be set when spec.os.name is windows.", + Type: []string{"integer"}, + Format: "int64", + }, + }, + "runAsGroup": { + SchemaProps: spec.SchemaProps{ + Description: "The GID to run the entrypoint of the container process. Uses runtime default if unset. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. Note that this field cannot be set when spec.os.name is windows.", + Type: []string{"integer"}, + Format: "int64", + }, + }, + "runAsNonRoot": { + SchemaProps: spec.SchemaProps{ + Description: "Indicates that the container must run as a non-root user. If true, the Kubelet will validate the image at runtime to ensure that it does not run as UID 0 (root) and fail to start the container if it does. If unset or false, no such validation will be performed. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence.", + Type: []string{"boolean"}, + Format: "", + }, + }, + "readOnlyRootFilesystem": { + SchemaProps: spec.SchemaProps{ + Description: "Whether this container has a read-only root filesystem. Default is false. Note that this field cannot be set when spec.os.name is windows.", + Type: []string{"boolean"}, + Format: "", + }, + }, + "allowPrivilegeEscalation": { + SchemaProps: spec.SchemaProps{ + Description: "AllowPrivilegeEscalation controls whether a process can gain more privileges than its parent process. This bool directly controls if the no_new_privs flag will be set on the container process. AllowPrivilegeEscalation is true always when the container is: 1) run as Privileged 2) has CAP_SYS_ADMIN Note that this field cannot be set when spec.os.name is windows.", + Type: []string{"boolean"}, + Format: "", + }, + }, + "procMount": { + SchemaProps: spec.SchemaProps{ + Description: "procMount denotes the type of proc mount to use for the containers. The default value is Default which uses the container runtime defaults for readonly paths and masked paths. This requires the ProcMountType feature flag to be enabled. Note that this field cannot be set when spec.os.name is windows.\n\nPossible enum values:\n - `\"Default\"` uses the container runtime defaults for readonly and masked paths for /proc. Most container runtimes mask certain paths in /proc to avoid accidental security exposure of special devices or information.\n - `\"Unmasked\"` bypasses the default masking behavior of the container runtime and ensures the newly created /proc the container stays in tact with no modifications.", + Type: []string{"string"}, + Format: "", + Enum: []interface{}{"Default", "Unmasked"}, + }, + }, + "seccompProfile": { + SchemaProps: spec.SchemaProps{ + Description: "The seccomp options to use by this container. If seccomp options are provided at both the pod & container level, the container options override the pod options. Note that this field cannot be set when spec.os.name is windows.", + Ref: ref(corev1.SeccompProfile{}.OpenAPIModelName()), + }, + }, + "appArmorProfile": { + SchemaProps: spec.SchemaProps{ + Description: "appArmorProfile is the AppArmor options to use by this container. If set, this profile overrides the pod's appArmorProfile. Note that this field cannot be set when spec.os.name is windows.", + Ref: ref(corev1.AppArmorProfile{}.OpenAPIModelName()), + }, + }, + }, + }, + }, + Dependencies: []string{ + corev1.AppArmorProfile{}.OpenAPIModelName(), corev1.Capabilities{}.OpenAPIModelName(), corev1.SELinuxOptions{}.OpenAPIModelName(), corev1.SeccompProfile{}.OpenAPIModelName(), corev1.WindowsSecurityContextOptions{}.OpenAPIModelName()}, + } +} + +func schema_k8sio_api_core_v1_SerializedReference(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "SerializedReference is a reference to serialized object.", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "kind": { + SchemaProps: spec.SchemaProps{ + Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + Type: []string{"string"}, + Format: "", + }, + }, + "apiVersion": { + SchemaProps: spec.SchemaProps{ + Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + Type: []string{"string"}, + Format: "", + }, + }, + "reference": { + SchemaProps: spec.SchemaProps{ + Description: "The reference to an object in the system.", + Default: map[string]interface{}{}, + Ref: ref(corev1.ObjectReference{}.OpenAPIModelName()), + }, + }, + }, + }, + }, + Dependencies: []string{ + corev1.ObjectReference{}.OpenAPIModelName()}, + } +} + +func schema_k8sio_api_core_v1_Service(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "Service is a named abstraction of software service (for example, mysql) consisting of local port (for example 3306) that the proxy listens on, and the selector that determines which pods will answer requests sent through the proxy.", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "kind": { + SchemaProps: spec.SchemaProps{ + Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + Type: []string{"string"}, + Format: "", + }, + }, + "apiVersion": { + SchemaProps: spec.SchemaProps{ + Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + Type: []string{"string"}, + Format: "", + }, + }, + "metadata": { + SchemaProps: spec.SchemaProps{ + Description: "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata", + Default: map[string]interface{}{}, + Ref: ref(metav1.ObjectMeta{}.OpenAPIModelName()), + }, + }, + "spec": { + SchemaProps: spec.SchemaProps{ + Description: "Spec defines the behavior of a service. https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status", + Default: map[string]interface{}{}, + Ref: ref(corev1.ServiceSpec{}.OpenAPIModelName()), + }, + }, + "status": { + SchemaProps: spec.SchemaProps{ + Description: "Most recently observed status of the service. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status", + Default: map[string]interface{}{}, + Ref: ref(corev1.ServiceStatus{}.OpenAPIModelName()), + }, + }, + }, + }, + }, + Dependencies: []string{ + corev1.ServiceSpec{}.OpenAPIModelName(), corev1.ServiceStatus{}.OpenAPIModelName(), metav1.ObjectMeta{}.OpenAPIModelName()}, + } +} + +func schema_k8sio_api_core_v1_ServiceAccount(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "ServiceAccount binds together: * a name, understood by users, and perhaps by peripheral systems, for an identity * a principal that can be authenticated and authorized * a set of secrets", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "kind": { + SchemaProps: spec.SchemaProps{ + Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + Type: []string{"string"}, + Format: "", + }, + }, + "apiVersion": { + SchemaProps: spec.SchemaProps{ + Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + Type: []string{"string"}, + Format: "", + }, + }, + "metadata": { + SchemaProps: spec.SchemaProps{ + Description: "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata", + Default: map[string]interface{}{}, + Ref: ref(metav1.ObjectMeta{}.OpenAPIModelName()), + }, + }, + "secrets": { + VendorExtensible: spec.VendorExtensible{ + Extensions: spec.Extensions{ + "x-kubernetes-list-map-keys": []interface{}{ + "name", + }, + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "name", + "x-kubernetes-patch-strategy": "merge", + }, + }, + SchemaProps: spec.SchemaProps{ + Description: "Secrets is a list of the secrets in the same namespace that pods running using this ServiceAccount are allowed to use. Pods are only limited to this list if this service account has a \"kubernetes.io/enforce-mountable-secrets\" annotation set to \"true\". The \"kubernetes.io/enforce-mountable-secrets\" annotation is deprecated since v1.32. Prefer separate namespaces to isolate access to mounted secrets. This field should not be used to find auto-generated service account token secrets for use outside of pods. Instead, tokens can be requested directly using the TokenRequest API, or service account token secrets can be manually created. More info: https://kubernetes.io/docs/concepts/configuration/secret", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref(corev1.ObjectReference{}.OpenAPIModelName()), + }, + }, + }, + }, + }, + "imagePullSecrets": { + VendorExtensible: spec.VendorExtensible{ + Extensions: spec.Extensions{ + "x-kubernetes-list-type": "atomic", + }, + }, + SchemaProps: spec.SchemaProps{ + Description: "ImagePullSecrets is a list of references to secrets in the same namespace to use for pulling any images in pods that reference this ServiceAccount. ImagePullSecrets are distinct from Secrets because Secrets can be mounted in the pod, but ImagePullSecrets are only accessed by the kubelet. More info: https://kubernetes.io/docs/concepts/containers/images/#specifying-imagepullsecrets-on-a-pod", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref(corev1.LocalObjectReference{}.OpenAPIModelName()), + }, + }, + }, + }, + }, + "automountServiceAccountToken": { + SchemaProps: spec.SchemaProps{ + Description: "AutomountServiceAccountToken indicates whether pods running as this service account should have an API token automatically mounted. Can be overridden at the pod level.", + Type: []string{"boolean"}, + Format: "", + }, + }, + }, + }, + }, + Dependencies: []string{ + corev1.LocalObjectReference{}.OpenAPIModelName(), corev1.ObjectReference{}.OpenAPIModelName(), metav1.ObjectMeta{}.OpenAPIModelName()}, + } +} + +func schema_k8sio_api_core_v1_ServiceAccountList(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "ServiceAccountList is a list of ServiceAccount objects", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "kind": { + SchemaProps: spec.SchemaProps{ + Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + Type: []string{"string"}, + Format: "", + }, + }, + "apiVersion": { + SchemaProps: spec.SchemaProps{ + Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + Type: []string{"string"}, + Format: "", + }, + }, + "metadata": { + SchemaProps: spec.SchemaProps{ + Description: "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + Default: map[string]interface{}{}, + Ref: ref(metav1.ListMeta{}.OpenAPIModelName()), + }, + }, + "items": { + SchemaProps: spec.SchemaProps{ + Description: "List of ServiceAccounts. More info: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref(corev1.ServiceAccount{}.OpenAPIModelName()), + }, + }, + }, + }, + }, + }, + Required: []string{"items"}, + }, + }, + Dependencies: []string{ + corev1.ServiceAccount{}.OpenAPIModelName(), metav1.ListMeta{}.OpenAPIModelName()}, + } +} + +func schema_k8sio_api_core_v1_ServiceAccountTokenProjection(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "ServiceAccountTokenProjection represents a projected service account token volume. This projection can be used to insert a service account token into the pods runtime filesystem for use against APIs (Kubernetes API Server or otherwise).", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "audience": { + SchemaProps: spec.SchemaProps{ + Description: "audience is the intended audience of the token. A recipient of a token must identify itself with an identifier specified in the audience of the token, and otherwise should reject the token. The audience defaults to the identifier of the apiserver.", + Type: []string{"string"}, + Format: "", + }, + }, + "expirationSeconds": { + SchemaProps: spec.SchemaProps{ + Description: "expirationSeconds is the requested duration of validity of the service account token. As the token approaches expiration, the kubelet volume plugin will proactively rotate the service account token. The kubelet will start trying to rotate the token if the token is older than 80 percent of its time to live or if the token is older than 24 hours.Defaults to 1 hour and must be at least 10 minutes.", + Type: []string{"integer"}, + Format: "int64", + }, + }, + "path": { + SchemaProps: spec.SchemaProps{ + Description: "path is the path relative to the mount point of the file to project the token into.", + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + }, + Required: []string{"path"}, + }, + }, + } +} + +func schema_k8sio_api_core_v1_ServiceList(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "ServiceList holds a list of services.", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "kind": { + SchemaProps: spec.SchemaProps{ + Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + Type: []string{"string"}, + Format: "", + }, + }, + "apiVersion": { + SchemaProps: spec.SchemaProps{ + Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + Type: []string{"string"}, + Format: "", + }, + }, + "metadata": { + SchemaProps: spec.SchemaProps{ + Description: "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + Default: map[string]interface{}{}, + Ref: ref(metav1.ListMeta{}.OpenAPIModelName()), + }, + }, + "items": { + SchemaProps: spec.SchemaProps{ + Description: "List of services", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref(corev1.Service{}.OpenAPIModelName()), + }, + }, + }, + }, + }, + }, + Required: []string{"items"}, + }, + }, + Dependencies: []string{ + corev1.Service{}.OpenAPIModelName(), metav1.ListMeta{}.OpenAPIModelName()}, + } +} + +func schema_k8sio_api_core_v1_ServicePort(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "ServicePort contains information on service's port.", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "name": { + SchemaProps: spec.SchemaProps{ + Description: "The name of this port within the service. This must be a DNS_LABEL. All ports within a ServiceSpec must have unique names. When considering the endpoints for a Service, this must match the 'name' field in the EndpointPort. Optional if only one ServicePort is defined on this service.", + Type: []string{"string"}, + Format: "", + }, + }, + "protocol": { + SchemaProps: spec.SchemaProps{ + Description: "The IP protocol for this port. Supports \"TCP\", \"UDP\", and \"SCTP\". Default is TCP.\n\nPossible enum values:\n - `\"SCTP\"` is the SCTP protocol.\n - `\"TCP\"` is the TCP protocol.\n - `\"UDP\"` is the UDP protocol.", + Default: "TCP", + Type: []string{"string"}, + Format: "", + Enum: []interface{}{"SCTP", "TCP", "UDP"}, + }, + }, + "appProtocol": { + SchemaProps: spec.SchemaProps{ + Description: "The application protocol for this port. This is used as a hint for implementations to offer richer behavior for protocols that they understand. This field follows standard Kubernetes label syntax. Valid values are either:\n\n* Un-prefixed protocol names - reserved for IANA standard service names (as per RFC-6335 and https://www.iana.org/assignments/service-names).\n\n* Kubernetes-defined prefixed names:\n * 'kubernetes.io/h2c' - HTTP/2 prior knowledge over cleartext as described in https://www.rfc-editor.org/rfc/rfc9113.html#name-starting-http-2-with-prior-\n * 'kubernetes.io/ws' - WebSocket over cleartext as described in https://www.rfc-editor.org/rfc/rfc6455\n * 'kubernetes.io/wss' - WebSocket over TLS as described in https://www.rfc-editor.org/rfc/rfc6455\n\n* Other protocols should use implementation-defined prefixed names such as mycompany.com/my-custom-protocol.", + Type: []string{"string"}, + Format: "", + }, + }, + "port": { + SchemaProps: spec.SchemaProps{ + Description: "The port that will be exposed by this service.", + Default: 0, + Type: []string{"integer"}, + Format: "int32", + }, + }, + "targetPort": { + SchemaProps: spec.SchemaProps{ + Description: "Number or name of the port to access on the pods targeted by the service. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. If this is a string, it will be looked up as a named port in the target Pod's container ports. If this is not specified, the value of the 'port' field is used (an identity map). This field is ignored for services with clusterIP=None, and should be omitted or set equal to the 'port' field. More info: https://kubernetes.io/docs/concepts/services-networking/service/#defining-a-service", + Ref: ref(intstr.IntOrString{}.OpenAPIModelName()), + }, + }, + "nodePort": { + SchemaProps: spec.SchemaProps{ + Description: "The port on each node on which this service is exposed when type is NodePort or LoadBalancer. Usually assigned by the system. If a value is specified, in-range, and not in use it will be used, otherwise the operation will fail. If not specified, a port will be allocated if this Service requires one. If this field is specified when creating a Service which does not need it, creation will fail. This field will be wiped when updating a Service to no longer need it (e.g. changing type from NodePort to ClusterIP). More info: https://kubernetes.io/docs/concepts/services-networking/service/#type-nodeport", + Type: []string{"integer"}, + Format: "int32", + }, + }, + }, + Required: []string{"port"}, + }, + }, + Dependencies: []string{ + intstr.IntOrString{}.OpenAPIModelName()}, + } +} + +func schema_k8sio_api_core_v1_ServiceProxyOptions(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "ServiceProxyOptions is the query options to a Service's proxy call.", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "kind": { + SchemaProps: spec.SchemaProps{ + Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + Type: []string{"string"}, + Format: "", + }, + }, + "apiVersion": { + SchemaProps: spec.SchemaProps{ + Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + Type: []string{"string"}, + Format: "", + }, + }, + "path": { + SchemaProps: spec.SchemaProps{ + Description: "Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy.", + Type: []string{"string"}, + Format: "", + }, + }, + }, + }, + }, + } +} + +func schema_k8sio_api_core_v1_ServiceSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "ServiceSpec describes the attributes that a user creates on a service.", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "ports": { + VendorExtensible: spec.VendorExtensible{ + Extensions: spec.Extensions{ + "x-kubernetes-list-map-keys": []interface{}{ + "port", + "protocol", + }, + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "port", + "x-kubernetes-patch-strategy": "merge", + }, + }, + SchemaProps: spec.SchemaProps{ + Description: "The list of ports that are exposed by this service. More info: https://kubernetes.io/docs/concepts/services-networking/service/#virtual-ips-and-service-proxies", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref(corev1.ServicePort{}.OpenAPIModelName()), + }, + }, + }, + }, + }, + "selector": { + VendorExtensible: spec.VendorExtensible{ + Extensions: spec.Extensions{ + "x-kubernetes-map-type": "atomic", + }, + }, + SchemaProps: spec.SchemaProps{ + Description: "Route service traffic to pods with label keys and values matching this selector. If empty or not present, the service is assumed to have an external process managing its endpoints, which Kubernetes will not modify. Only applies to types ClusterIP, NodePort, and LoadBalancer. Ignored if type is ExternalName. More info: https://kubernetes.io/docs/concepts/services-networking/service/", + Type: []string{"object"}, + AdditionalProperties: &spec.SchemaOrBool{ + Allows: true, + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + }, + }, + }, + "clusterIP": { + SchemaProps: spec.SchemaProps{ + Description: "clusterIP is the IP address of the service and is usually assigned randomly. If an address is specified manually, is in-range (as per system configuration), and is not in use, it will be allocated to the service; otherwise creation of the service will fail. This field may not be changed through updates unless the type field is also being changed to ExternalName (which requires this field to be blank) or the type field is being changed from ExternalName (in which case this field may optionally be specified, as describe above). Valid values are \"None\", empty string (\"\"), or a valid IP address. Setting this to \"None\" makes a \"headless service\" (no virtual IP), which is useful when direct endpoint connections are preferred and proxying is not required. Only applies to types ClusterIP, NodePort, and LoadBalancer. If this field is specified when creating a Service of type ExternalName, creation will fail. This field will be wiped when updating a Service to type ExternalName. More info: https://kubernetes.io/docs/concepts/services-networking/service/#virtual-ips-and-service-proxies", + Type: []string{"string"}, + Format: "", + }, + }, + "clusterIPs": { + VendorExtensible: spec.VendorExtensible{ + Extensions: spec.Extensions{ + "x-kubernetes-list-type": "atomic", + }, + }, + SchemaProps: spec.SchemaProps{ + Description: "ClusterIPs is a list of IP addresses assigned to this service, and are usually assigned randomly. If an address is specified manually, is in-range (as per system configuration), and is not in use, it will be allocated to the service; otherwise creation of the service will fail. This field may not be changed through updates unless the type field is also being changed to ExternalName (which requires this field to be empty) or the type field is being changed from ExternalName (in which case this field may optionally be specified, as describe above). Valid values are \"None\", empty string (\"\"), or a valid IP address. Setting this to \"None\" makes a \"headless service\" (no virtual IP), which is useful when direct endpoint connections are preferred and proxying is not required. Only applies to types ClusterIP, NodePort, and LoadBalancer. If this field is specified when creating a Service of type ExternalName, creation will fail. This field will be wiped when updating a Service to type ExternalName. If this field is not specified, it will be initialized from the clusterIP field. If this field is specified, clients must ensure that clusterIPs[0] and clusterIP have the same value.\n\nThis field may hold a maximum of two entries (dual-stack IPs, in either order). These IPs must correspond to the values of the ipFamilies field. Both clusterIPs and ipFamilies are governed by the ipFamilyPolicy field. More info: https://kubernetes.io/docs/concepts/services-networking/service/#virtual-ips-and-service-proxies", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + }, + }, + }, + "type": { + SchemaProps: spec.SchemaProps{ + Description: "type determines how the Service is exposed. Defaults to ClusterIP. Valid options are ExternalName, ClusterIP, NodePort, and LoadBalancer. \"ClusterIP\" allocates a cluster-internal IP address for load-balancing to endpoints. Endpoints are determined by the selector or if that is not specified, by manual construction of an Endpoints object or EndpointSlice objects. If clusterIP is \"None\", no virtual IP is allocated and the endpoints are published as a set of endpoints rather than a virtual IP. \"NodePort\" builds on ClusterIP and allocates a port on every node which routes to the same endpoints as the clusterIP. \"LoadBalancer\" builds on NodePort and creates an external load-balancer (if supported in the current cloud) which routes to the same endpoints as the clusterIP. \"ExternalName\" aliases this service to the specified externalName. Several other fields do not apply to ExternalName services. More info: https://kubernetes.io/docs/concepts/services-networking/service/#publishing-services-service-types\n\nPossible enum values:\n - `\"ClusterIP\"` means a service will only be accessible inside the cluster, via the cluster IP.\n - `\"ExternalName\"` means a service consists of only a reference to an external name that kubedns or equivalent will return as a CNAME record, with no exposing or proxying of any pods involved.\n - `\"LoadBalancer\"` means a service will be exposed via an external load balancer (if the cloud provider supports it), in addition to 'NodePort' type.\n - `\"NodePort\"` means a service will be exposed on one port of every node, in addition to 'ClusterIP' type.", + Type: []string{"string"}, + Format: "", + Enum: []interface{}{"ClusterIP", "ExternalName", "LoadBalancer", "NodePort"}, + }, + }, + "externalIPs": { + VendorExtensible: spec.VendorExtensible{ + Extensions: spec.Extensions{ + "x-kubernetes-list-type": "atomic", + }, + }, + SchemaProps: spec.SchemaProps{ + Description: "externalIPs is a list of IP addresses for which nodes in the cluster will also accept traffic for this service. These IPs are not managed by Kubernetes. The user is responsible for ensuring that traffic arrives at a node with this IP. A common example is external load-balancers that are not part of the Kubernetes system.", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + }, + }, + }, + "sessionAffinity": { + SchemaProps: spec.SchemaProps{ + Description: "Supports \"ClientIP\" and \"None\". Used to maintain session affinity. Enable client IP based session affinity. Must be ClientIP or None. Defaults to None. More info: https://kubernetes.io/docs/concepts/services-networking/service/#virtual-ips-and-service-proxies\n\nPossible enum values:\n - `\"ClientIP\"` is the Client IP based.\n - `\"None\"` - no session affinity.", + Type: []string{"string"}, + Format: "", + Enum: []interface{}{"ClientIP", "None"}, + }, + }, + "loadBalancerIP": { + SchemaProps: spec.SchemaProps{ + Description: "Only applies to Service Type: LoadBalancer. This feature depends on whether the underlying cloud-provider supports specifying the loadBalancerIP when a load balancer is created. This field will be ignored if the cloud-provider does not support the feature. Deprecated: This field was under-specified and its meaning varies across implementations. Using it is non-portable and it may not support dual-stack. Users are encouraged to use implementation-specific annotations when available.", + Type: []string{"string"}, + Format: "", + }, + }, + "loadBalancerSourceRanges": { + VendorExtensible: spec.VendorExtensible{ + Extensions: spec.Extensions{ + "x-kubernetes-list-type": "atomic", + }, + }, + SchemaProps: spec.SchemaProps{ + Description: "If specified and supported by the platform, this will restrict traffic through the cloud-provider load-balancer will be restricted to the specified client IPs. This field will be ignored if the cloud-provider does not support the feature.\" More info: https://kubernetes.io/docs/tasks/access-application-cluster/create-external-load-balancer/", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + }, + }, + }, + "externalName": { + SchemaProps: spec.SchemaProps{ + Description: "externalName is the external reference that discovery mechanisms will return as an alias for this service (e.g. a DNS CNAME record). No proxying will be involved. Must be a lowercase RFC-1123 hostname (https://tools.ietf.org/html/rfc1123) and requires `type` to be \"ExternalName\".", + Type: []string{"string"}, + Format: "", + }, + }, + "externalTrafficPolicy": { + SchemaProps: spec.SchemaProps{ + Description: "externalTrafficPolicy describes how nodes distribute service traffic they receive on one of the Service's \"externally-facing\" addresses (NodePorts, ExternalIPs, and LoadBalancer IPs). If set to \"Local\", the proxy will configure the service in a way that assumes that external load balancers will take care of balancing the service traffic between nodes, and so each node will deliver traffic only to the node-local endpoints of the service, without masquerading the client source IP. (Traffic mistakenly sent to a node with no endpoints will be dropped.) The default value, \"Cluster\", uses the standard behavior of routing to all endpoints evenly (possibly modified by topology and other features). Note that traffic sent to an External IP or LoadBalancer IP from within the cluster will always get \"Cluster\" semantics, but clients sending to a NodePort from within the cluster may need to take traffic policy into account when picking a node.\n\nPossible enum values:\n - `\"Cluster\"` routes traffic to all endpoints.\n - `\"Local\"` preserves the source IP of the traffic by routing only to endpoints on the same node as the traffic was received on (dropping the traffic if there are no local endpoints).", + Type: []string{"string"}, + Format: "", + Enum: []interface{}{"Cluster", "Local"}, + }, + }, + "healthCheckNodePort": { + SchemaProps: spec.SchemaProps{ + Description: "healthCheckNodePort specifies the healthcheck nodePort for the service. This only applies when type is set to LoadBalancer and externalTrafficPolicy is set to Local. If a value is specified, is in-range, and is not in use, it will be used. If not specified, a value will be automatically allocated. External systems (e.g. load-balancers) can use this port to determine if a given node holds endpoints for this service or not. If this field is specified when creating a Service which does not need it, creation will fail. This field will be wiped when updating a Service to no longer need it (e.g. changing type). This field cannot be updated once set.", + Type: []string{"integer"}, + Format: "int32", + }, + }, + "publishNotReadyAddresses": { + SchemaProps: spec.SchemaProps{ + Description: "publishNotReadyAddresses indicates that any agent which deals with endpoints for this Service should disregard any indications of ready/not-ready. The primary use case for setting this field is for a StatefulSet's Headless Service to propagate SRV DNS records for its Pods for the purpose of peer discovery. The Kubernetes controllers that generate Endpoints and EndpointSlice resources for Services interpret this to mean that all endpoints are considered \"ready\" even if the Pods themselves are not. Agents which consume only Kubernetes generated endpoints through the Endpoints or EndpointSlice resources can safely assume this behavior.", + Type: []string{"boolean"}, + Format: "", + }, + }, + "sessionAffinityConfig": { + SchemaProps: spec.SchemaProps{ + Description: "sessionAffinityConfig contains the configurations of session affinity.", + Ref: ref(corev1.SessionAffinityConfig{}.OpenAPIModelName()), + }, + }, + "ipFamilies": { + VendorExtensible: spec.VendorExtensible{ + Extensions: spec.Extensions{ + "x-kubernetes-list-type": "atomic", + }, + }, + SchemaProps: spec.SchemaProps{ + Description: "IPFamilies is a list of IP families (e.g. IPv4, IPv6) assigned to this service. This field is usually assigned automatically based on cluster configuration and the ipFamilyPolicy field. If this field is specified manually, the requested family is available in the cluster, and ipFamilyPolicy allows it, it will be used; otherwise creation of the service will fail. This field is conditionally mutable: it allows for adding or removing a secondary IP family, but it does not allow changing the primary IP family of the Service. Valid values are \"IPv4\" and \"IPv6\". This field only applies to Services of types ClusterIP, NodePort, and LoadBalancer, and does apply to \"headless\" services. This field will be wiped when updating a Service to type ExternalName.\n\nThis field may hold a maximum of two entries (dual-stack families, in either order). These families must correspond to the values of the clusterIPs field, if specified. Both clusterIPs and ipFamilies are governed by the ipFamilyPolicy field.", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: "", + Type: []string{"string"}, + Format: "", + Enum: []interface{}{"", "IPv4", "IPv6"}, + }, + }, + }, + }, + }, + "ipFamilyPolicy": { + SchemaProps: spec.SchemaProps{ + Description: "IPFamilyPolicy represents the dual-stack-ness requested or required by this Service. If there is no value provided, then this field will be set to SingleStack. Services can be \"SingleStack\" (a single IP family), \"PreferDualStack\" (two IP families on dual-stack configured clusters or a single IP family on single-stack clusters), or \"RequireDualStack\" (two IP families on dual-stack configured clusters, otherwise fail). The ipFamilies and clusterIPs fields depend on the value of this field. This field will be wiped when updating a service to type ExternalName.\n\nPossible enum values:\n - `\"PreferDualStack\"` indicates that this service prefers dual-stack when the cluster is configured for dual-stack. If the cluster is not configured for dual-stack the service will be assigned a single IPFamily. If the IPFamily is not set in service.spec.ipFamilies then the service will be assigned the default IPFamily configured on the cluster\n - `\"RequireDualStack\"` indicates that this service requires dual-stack. Using IPFamilyPolicyRequireDualStack on a single stack cluster will result in validation errors. The IPFamilies (and their order) assigned to this service is based on service.spec.ipFamilies. If service.spec.ipFamilies was not provided then it will be assigned according to how they are configured on the cluster. If service.spec.ipFamilies has only one entry then the alternative IPFamily will be added by apiserver\n - `\"SingleStack\"` indicates that this service is required to have a single IPFamily. The IPFamily assigned is based on the default IPFamily used by the cluster or as identified by service.spec.ipFamilies field", + Type: []string{"string"}, + Format: "", + Enum: []interface{}{"PreferDualStack", "RequireDualStack", "SingleStack"}, + }, + }, + "allocateLoadBalancerNodePorts": { + SchemaProps: spec.SchemaProps{ + Description: "allocateLoadBalancerNodePorts defines if NodePorts will be automatically allocated for services with type LoadBalancer. Default is \"true\". It may be set to \"false\" if the cluster load-balancer does not rely on NodePorts. If the caller requests specific NodePorts (by specifying a value), those requests will be respected, regardless of this field. This field may only be set for services with type LoadBalancer and will be cleared if the type is changed to any other type.", + Type: []string{"boolean"}, + Format: "", + }, + }, + "loadBalancerClass": { + SchemaProps: spec.SchemaProps{ + Description: "loadBalancerClass is the class of the load balancer implementation this Service belongs to. If specified, the value of this field must be a label-style identifier, with an optional prefix, e.g. \"internal-vip\" or \"example.com/internal-vip\". Unprefixed names are reserved for end-users. This field can only be set when the Service type is 'LoadBalancer'. If not set, the default load balancer implementation is used, today this is typically done through the cloud provider integration, but should apply for any default implementation. If set, it is assumed that a load balancer implementation is watching for Services with a matching class. Any default load balancer implementation (e.g. cloud providers) should ignore Services that set this field. This field can only be set when creating or updating a Service to type 'LoadBalancer'. Once set, it can not be changed. This field will be wiped when a service is updated to a non 'LoadBalancer' type.", + Type: []string{"string"}, + Format: "", + }, + }, + "internalTrafficPolicy": { + SchemaProps: spec.SchemaProps{ + Description: "InternalTrafficPolicy describes how nodes distribute service traffic they receive on the ClusterIP. If set to \"Local\", the proxy will assume that pods only want to talk to endpoints of the service on the same node as the pod, dropping the traffic if there are no local endpoints. The default value, \"Cluster\", uses the standard behavior of routing to all endpoints evenly (possibly modified by topology and other features).\n\nPossible enum values:\n - `\"Cluster\"` routes traffic to all endpoints.\n - `\"Local\"` routes traffic only to endpoints on the same node as the client pod (dropping the traffic if there are no local endpoints).", + Type: []string{"string"}, + Format: "", + Enum: []interface{}{"Cluster", "Local"}, + }, + }, + "trafficDistribution": { + SchemaProps: spec.SchemaProps{ + Description: "TrafficDistribution offers a way to express preferences for how traffic is distributed to Service endpoints. Implementations can use this field as a hint, but are not required to guarantee strict adherence. If the field is not set, the implementation will apply its default routing strategy. If set to \"PreferClose\", implementations should prioritize endpoints that are in the same zone.", + Type: []string{"string"}, + Format: "", + }, + }, + }, + }, + }, + Dependencies: []string{ + corev1.ServicePort{}.OpenAPIModelName(), corev1.SessionAffinityConfig{}.OpenAPIModelName()}, + } +} + +func schema_k8sio_api_core_v1_ServiceStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "ServiceStatus represents the current status of a service.", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "loadBalancer": { + SchemaProps: spec.SchemaProps{ + Description: "LoadBalancer contains the current status of the load-balancer, if one is present.", + Default: map[string]interface{}{}, + Ref: ref(corev1.LoadBalancerStatus{}.OpenAPIModelName()), + }, + }, + "conditions": { + VendorExtensible: spec.VendorExtensible{ + Extensions: spec.Extensions{ + "x-kubernetes-list-map-keys": []interface{}{ + "type", + }, + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "type", + "x-kubernetes-patch-strategy": "merge", + }, + }, + SchemaProps: spec.SchemaProps{ + Description: "Current service state", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref(metav1.Condition{}.OpenAPIModelName()), + }, + }, + }, + }, + }, + }, + }, + }, + Dependencies: []string{ + corev1.LoadBalancerStatus{}.OpenAPIModelName(), metav1.Condition{}.OpenAPIModelName()}, + } +} + +func schema_k8sio_api_core_v1_SessionAffinityConfig(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "SessionAffinityConfig represents the configurations of session affinity.", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "clientIP": { + SchemaProps: spec.SchemaProps{ + Description: "clientIP contains the configurations of Client IP based session affinity.", + Ref: ref(corev1.ClientIPConfig{}.OpenAPIModelName()), + }, + }, + }, + }, + }, + Dependencies: []string{ + corev1.ClientIPConfig{}.OpenAPIModelName()}, + } +} + +func schema_k8sio_api_core_v1_SleepAction(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "SleepAction describes a \"sleep\" action.", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "seconds": { + SchemaProps: spec.SchemaProps{ + Description: "Seconds is the number of seconds to sleep.", + Default: 0, + Type: []string{"integer"}, + Format: "int64", + }, + }, + }, + Required: []string{"seconds"}, + }, + }, + } +} + +func schema_k8sio_api_core_v1_StorageOSPersistentVolumeSource(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "Represents a StorageOS persistent volume resource.", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "volumeName": { + SchemaProps: spec.SchemaProps{ + Description: "volumeName is the human-readable name of the StorageOS volume. Volume names are only unique within a namespace.", + Type: []string{"string"}, + Format: "", + }, + }, + "volumeNamespace": { + SchemaProps: spec.SchemaProps{ + Description: "volumeNamespace specifies the scope of the volume within StorageOS. If no namespace is specified then the Pod's namespace will be used. This allows the Kubernetes name scoping to be mirrored within StorageOS for tighter integration. Set VolumeName to any name to override the default behaviour. Set to \"default\" if you are not using namespaces within StorageOS. Namespaces that do not pre-exist within StorageOS will be created.", + Type: []string{"string"}, + Format: "", + }, + }, + "fsType": { + SchemaProps: spec.SchemaProps{ + Description: "fsType is the filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified.", + Type: []string{"string"}, + Format: "", + }, + }, + "readOnly": { + SchemaProps: spec.SchemaProps{ + Description: "readOnly defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts.", + Type: []string{"boolean"}, + Format: "", + }, + }, + "secretRef": { + SchemaProps: spec.SchemaProps{ + Description: "secretRef specifies the secret to use for obtaining the StorageOS API credentials. If not specified, default values will be attempted.", + Ref: ref(corev1.ObjectReference{}.OpenAPIModelName()), + }, + }, + }, + }, + }, + Dependencies: []string{ + corev1.ObjectReference{}.OpenAPIModelName()}, + } +} + +func schema_k8sio_api_core_v1_StorageOSVolumeSource(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "Represents a StorageOS persistent volume resource.", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "volumeName": { + SchemaProps: spec.SchemaProps{ + Description: "volumeName is the human-readable name of the StorageOS volume. Volume names are only unique within a namespace.", + Type: []string{"string"}, + Format: "", + }, + }, + "volumeNamespace": { + SchemaProps: spec.SchemaProps{ + Description: "volumeNamespace specifies the scope of the volume within StorageOS. If no namespace is specified then the Pod's namespace will be used. This allows the Kubernetes name scoping to be mirrored within StorageOS for tighter integration. Set VolumeName to any name to override the default behaviour. Set to \"default\" if you are not using namespaces within StorageOS. Namespaces that do not pre-exist within StorageOS will be created.", + Type: []string{"string"}, + Format: "", + }, + }, + "fsType": { + SchemaProps: spec.SchemaProps{ + Description: "fsType is the filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified.", + Type: []string{"string"}, + Format: "", + }, + }, + "readOnly": { + SchemaProps: spec.SchemaProps{ + Description: "readOnly defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts.", + Type: []string{"boolean"}, + Format: "", + }, + }, + "secretRef": { + SchemaProps: spec.SchemaProps{ + Description: "secretRef specifies the secret to use for obtaining the StorageOS API credentials. If not specified, default values will be attempted.", + Ref: ref(corev1.LocalObjectReference{}.OpenAPIModelName()), + }, + }, + }, + }, + }, + Dependencies: []string{ + corev1.LocalObjectReference{}.OpenAPIModelName()}, + } +} + +func schema_k8sio_api_core_v1_Sysctl(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "Sysctl defines a kernel parameter to be set", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "name": { + SchemaProps: spec.SchemaProps{ + Description: "Name of a property to set", + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + "value": { + SchemaProps: spec.SchemaProps{ + Description: "Value of a property to set", + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + }, + Required: []string{"name", "value"}, + }, + }, + } +} + +func schema_k8sio_api_core_v1_TCPSocketAction(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "TCPSocketAction describes an action based on opening a socket", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "port": { + SchemaProps: spec.SchemaProps{ + Description: "Number or name of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME.", + Ref: ref(intstr.IntOrString{}.OpenAPIModelName()), + }, + }, + "host": { + SchemaProps: spec.SchemaProps{ + Description: "Optional: Host name to connect to, defaults to the pod IP.", + Type: []string{"string"}, + Format: "", + }, + }, + }, + Required: []string{"port"}, + }, + }, + Dependencies: []string{ + intstr.IntOrString{}.OpenAPIModelName()}, + } +} + +func schema_k8sio_api_core_v1_Taint(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "The node this Taint is attached to has the \"effect\" on any pod that does not tolerate the Taint.", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "key": { + SchemaProps: spec.SchemaProps{ + Description: "Required. The taint key to be applied to a node.", + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + "value": { + SchemaProps: spec.SchemaProps{ + Description: "The taint value corresponding to the taint key.", + Type: []string{"string"}, + Format: "", + }, + }, + "effect": { + SchemaProps: spec.SchemaProps{ + Description: "Required. The effect of the taint on pods that do not tolerate the taint. Valid effects are NoSchedule, PreferNoSchedule and NoExecute.\n\nPossible enum values:\n - `\"NoExecute\"` Evict any already-running pods that do not tolerate the taint. Currently enforced by NodeController.\n - `\"NoSchedule\"` Do not allow new pods to schedule onto the node unless they tolerate the taint, but allow all pods submitted to Kubelet without going through the scheduler to start, and allow all already-running pods to continue running. Enforced by the scheduler.\n - `\"PreferNoSchedule\"` Like TaintEffectNoSchedule, but the scheduler tries not to schedule new pods onto the node, rather than prohibiting new pods from scheduling onto the node entirely. Enforced by the scheduler.", + Default: "", + Type: []string{"string"}, + Format: "", + Enum: []interface{}{"NoExecute", "NoSchedule", "PreferNoSchedule"}, + }, + }, + "timeAdded": { + SchemaProps: spec.SchemaProps{ + Description: "TimeAdded represents the time at which the taint was added.", + Ref: ref(metav1.Time{}.OpenAPIModelName()), + }, + }, + }, + Required: []string{"key", "effect"}, + }, + }, + Dependencies: []string{ + metav1.Time{}.OpenAPIModelName()}, + } +} + +func schema_k8sio_api_core_v1_Toleration(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "The pod this Toleration is attached to tolerates any taint that matches the triple using the matching operator .", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "key": { + SchemaProps: spec.SchemaProps{ + Description: "Key is the taint key that the toleration applies to. Empty means match all taint keys. If the key is empty, operator must be Exists; this combination means to match all values and all keys.", + Type: []string{"string"}, + Format: "", + }, + }, + "operator": { + SchemaProps: spec.SchemaProps{ + Description: "Operator represents a key's relationship to the value. Valid operators are Exists, Equal, Lt, and Gt. Defaults to Equal. Exists is equivalent to wildcard for value, so that a pod can tolerate all taints of a particular category. Lt and Gt perform numeric comparisons (requires feature gate TaintTolerationComparisonOperators).\n\nPossible enum values:\n - `\"Equal\"`\n - `\"Exists\"`\n - `\"Gt\"`\n - `\"Lt\"`", + Type: []string{"string"}, + Format: "", + Enum: []interface{}{"Equal", "Exists", "Gt", "Lt"}, + }, + }, + "value": { + SchemaProps: spec.SchemaProps{ + Description: "Value is the taint value the toleration matches to. If the operator is Exists, the value should be empty, otherwise just a regular string.", + Type: []string{"string"}, + Format: "", + }, + }, + "effect": { + SchemaProps: spec.SchemaProps{ + Description: "Effect indicates the taint effect to match. Empty means match all taint effects. When specified, allowed values are NoSchedule, PreferNoSchedule and NoExecute.\n\nPossible enum values:\n - `\"NoExecute\"` Evict any already-running pods that do not tolerate the taint. Currently enforced by NodeController.\n - `\"NoSchedule\"` Do not allow new pods to schedule onto the node unless they tolerate the taint, but allow all pods submitted to Kubelet without going through the scheduler to start, and allow all already-running pods to continue running. Enforced by the scheduler.\n - `\"PreferNoSchedule\"` Like TaintEffectNoSchedule, but the scheduler tries not to schedule new pods onto the node, rather than prohibiting new pods from scheduling onto the node entirely. Enforced by the scheduler.", + Type: []string{"string"}, + Format: "", + Enum: []interface{}{"NoExecute", "NoSchedule", "PreferNoSchedule"}, + }, + }, + "tolerationSeconds": { + SchemaProps: spec.SchemaProps{ + Description: "TolerationSeconds represents the period of time the toleration (which must be of effect NoExecute, otherwise this field is ignored) tolerates the taint. By default, it is not set, which means tolerate the taint forever (do not evict). Zero and negative values will be treated as 0 (evict immediately) by the system.", + Type: []string{"integer"}, + Format: "int64", + }, + }, + }, + }, + }, + } +} + +func schema_k8sio_api_core_v1_TopologySelectorLabelRequirement(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "A topology selector requirement is a selector that matches given label. This is an alpha feature and may change in the future.", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "key": { + SchemaProps: spec.SchemaProps{ + Description: "The label key that the selector applies to.", + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + "values": { + VendorExtensible: spec.VendorExtensible{ + Extensions: spec.Extensions{ + "x-kubernetes-list-type": "atomic", + }, + }, + SchemaProps: spec.SchemaProps{ + Description: "An array of string values. One value must match the label to be selected. Each entry in Values is ORed.", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + }, + }, + }, + }, + Required: []string{"key", "values"}, + }, + }, + } +} + +func schema_k8sio_api_core_v1_TopologySelectorTerm(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "A topology selector term represents the result of label queries. A null or empty topology selector term matches no objects. The requirements of them are ANDed. It provides a subset of functionality as NodeSelectorTerm. This is an alpha feature and may change in the future.", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "matchLabelExpressions": { + VendorExtensible: spec.VendorExtensible{ + Extensions: spec.Extensions{ + "x-kubernetes-list-type": "atomic", + }, + }, + SchemaProps: spec.SchemaProps{ + Description: "A list of topology selector requirements by labels.", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref(corev1.TopologySelectorLabelRequirement{}.OpenAPIModelName()), + }, + }, + }, + }, + }, + }, + }, + VendorExtensible: spec.VendorExtensible{ + Extensions: spec.Extensions{ + "x-kubernetes-map-type": "atomic", + }, + }, + }, + Dependencies: []string{ + corev1.TopologySelectorLabelRequirement{}.OpenAPIModelName()}, + } +} + +func schema_k8sio_api_core_v1_TopologySpreadConstraint(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "TopologySpreadConstraint specifies how to spread matching pods among the given topology.", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "maxSkew": { + SchemaProps: spec.SchemaProps{ + Description: "MaxSkew describes the degree to which pods may be unevenly distributed. When `whenUnsatisfiable=DoNotSchedule`, it is the maximum permitted difference between the number of matching pods in the target topology and the global minimum. The global minimum is the minimum number of matching pods in an eligible domain or zero if the number of eligible domains is less than MinDomains. For example, in a 3-zone cluster, MaxSkew is set to 1, and pods with the same labelSelector spread as 2/2/1: In this case, the global minimum is 1. | zone1 | zone2 | zone3 | | P P | P P | P | - if MaxSkew is 1, incoming pod can only be scheduled to zone3 to become 2/2/2; scheduling it onto zone1(zone2) would make the ActualSkew(3-1) on zone1(zone2) violate MaxSkew(1). - if MaxSkew is 2, incoming pod can be scheduled onto any zone. When `whenUnsatisfiable=ScheduleAnyway`, it is used to give higher precedence to topologies that satisfy it. It's a required field. Default value is 1 and 0 is not allowed.", + Default: 0, + Type: []string{"integer"}, + Format: "int32", + }, + }, + "topologyKey": { + SchemaProps: spec.SchemaProps{ + Description: "TopologyKey is the key of node labels. Nodes that have a label with this key and identical values are considered to be in the same topology. We consider each as a \"bucket\", and try to put balanced number of pods into each bucket. We define a domain as a particular instance of a topology. Also, we define an eligible domain as a domain whose nodes meet the requirements of nodeAffinityPolicy and nodeTaintsPolicy. e.g. If TopologyKey is \"kubernetes.io/hostname\", each Node is a domain of that topology. And, if TopologyKey is \"topology.kubernetes.io/zone\", each zone is a domain of that topology. It's a required field.", + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + "whenUnsatisfiable": { + SchemaProps: spec.SchemaProps{ + Description: "WhenUnsatisfiable indicates how to deal with a pod if it doesn't satisfy the spread constraint. - DoNotSchedule (default) tells the scheduler not to schedule it. - ScheduleAnyway tells the scheduler to schedule the pod in any location,\n but giving higher precedence to topologies that would help reduce the\n skew.\nA constraint is considered \"Unsatisfiable\" for an incoming pod if and only if every possible node assignment for that pod would violate \"MaxSkew\" on some topology. For example, in a 3-zone cluster, MaxSkew is set to 1, and pods with the same labelSelector spread as 3/1/1: | zone1 | zone2 | zone3 | | P P P | P | P | If WhenUnsatisfiable is set to DoNotSchedule, incoming pod can only be scheduled to zone2(zone3) to become 3/2/1(3/1/2) as ActualSkew(2-1) on zone2(zone3) satisfies MaxSkew(1). In other words, the cluster can still be imbalanced, but scheduler won't make it *more* imbalanced. It's a required field.\n\nPossible enum values:\n - `\"DoNotSchedule\"` instructs the scheduler not to schedule the pod when constraints are not satisfied.\n - `\"ScheduleAnyway\"` instructs the scheduler to schedule the pod even if constraints are not satisfied.", + Default: "", + Type: []string{"string"}, + Format: "", + Enum: []interface{}{"DoNotSchedule", "ScheduleAnyway"}, + }, + }, + "labelSelector": { + SchemaProps: spec.SchemaProps{ + Description: "LabelSelector is used to find matching pods. Pods that match this label selector are counted to determine the number of pods in their corresponding topology domain.", + Ref: ref(metav1.LabelSelector{}.OpenAPIModelName()), + }, + }, + "minDomains": { + SchemaProps: spec.SchemaProps{ + Description: "MinDomains indicates a minimum number of eligible domains. When the number of eligible domains with matching topology keys is less than minDomains, Pod Topology Spread treats \"global minimum\" as 0, and then the calculation of Skew is performed. And when the number of eligible domains with matching topology keys equals or greater than minDomains, this value has no effect on scheduling. As a result, when the number of eligible domains is less than minDomains, scheduler won't schedule more than maxSkew Pods to those domains. If value is nil, the constraint behaves as if MinDomains is equal to 1. Valid values are integers greater than 0. When value is not nil, WhenUnsatisfiable must be DoNotSchedule.\n\nFor example, in a 3-zone cluster, MaxSkew is set to 2, MinDomains is set to 5 and pods with the same labelSelector spread as 2/2/2: | zone1 | zone2 | zone3 | | P P | P P | P P | The number of domains is less than 5(MinDomains), so \"global minimum\" is treated as 0. In this situation, new pod with the same labelSelector cannot be scheduled, because computed skew will be 3(3 - 0) if new Pod is scheduled to any of the three zones, it will violate MaxSkew.", + Type: []string{"integer"}, + Format: "int32", + }, + }, + "nodeAffinityPolicy": { + SchemaProps: spec.SchemaProps{ + Description: "NodeAffinityPolicy indicates how we will treat Pod's nodeAffinity/nodeSelector when calculating pod topology spread skew. Options are: - Honor: only nodes matching nodeAffinity/nodeSelector are included in the calculations. - Ignore: nodeAffinity/nodeSelector are ignored. All nodes are included in the calculations.\n\nIf this value is nil, the behavior is equivalent to the Honor policy.\n\nPossible enum values:\n - `\"Honor\"` means use this scheduling directive when calculating pod topology spread skew.\n - `\"Ignore\"` means ignore this scheduling directive when calculating pod topology spread skew.", + Type: []string{"string"}, + Format: "", + Enum: []interface{}{"Honor", "Ignore"}, + }, + }, + "nodeTaintsPolicy": { + SchemaProps: spec.SchemaProps{ + Description: "NodeTaintsPolicy indicates how we will treat node taints when calculating pod topology spread skew. Options are: - Honor: nodes without taints, along with tainted nodes for which the incoming pod has a toleration, are included. - Ignore: node taints are ignored. All nodes are included.\n\nIf this value is nil, the behavior is equivalent to the Ignore policy.\n\nPossible enum values:\n - `\"Honor\"` means use this scheduling directive when calculating pod topology spread skew.\n - `\"Ignore\"` means ignore this scheduling directive when calculating pod topology spread skew.", + Type: []string{"string"}, + Format: "", + Enum: []interface{}{"Honor", "Ignore"}, + }, + }, + "matchLabelKeys": { + VendorExtensible: spec.VendorExtensible{ + Extensions: spec.Extensions{ + "x-kubernetes-list-type": "atomic", + }, + }, + SchemaProps: spec.SchemaProps{ + Description: "MatchLabelKeys is a set of pod label keys to select the pods over which spreading will be calculated. The keys are used to lookup values from the incoming pod labels, those key-value labels are ANDed with labelSelector to select the group of existing pods over which spreading will be calculated for the incoming pod. The same key is forbidden to exist in both MatchLabelKeys and LabelSelector. MatchLabelKeys cannot be set when LabelSelector isn't set. Keys that don't exist in the incoming pod labels will be ignored. A null or empty list means only match against labelSelector.\n\nThis is a beta field and requires the MatchLabelKeysInPodTopologySpread feature gate to be enabled (enabled by default).", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + }, + }, + }, + }, + Required: []string{"maxSkew", "topologyKey", "whenUnsatisfiable"}, + }, + }, + Dependencies: []string{ + metav1.LabelSelector{}.OpenAPIModelName()}, + } +} + +func schema_k8sio_api_core_v1_TypedLocalObjectReference(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "TypedLocalObjectReference contains enough information to let you locate the typed referenced object inside the same namespace.", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "apiGroup": { + SchemaProps: spec.SchemaProps{ + Description: "APIGroup is the group for the resource being referenced. If APIGroup is not specified, the specified Kind must be in the core API group. For any other third-party types, APIGroup is required.", + Type: []string{"string"}, + Format: "", + }, + }, + "kind": { + SchemaProps: spec.SchemaProps{ + Description: "Kind is the type of resource being referenced", + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + "name": { + SchemaProps: spec.SchemaProps{ + Description: "Name is the name of resource being referenced", + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + }, + Required: []string{"kind", "name"}, + }, + VendorExtensible: spec.VendorExtensible{ + Extensions: spec.Extensions{ + "x-kubernetes-map-type": "atomic", + }, + }, + }, + } +} + +func schema_k8sio_api_core_v1_TypedObjectReference(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "TypedObjectReference contains enough information to let you locate the typed referenced object", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "apiGroup": { + SchemaProps: spec.SchemaProps{ + Description: "APIGroup is the group for the resource being referenced. If APIGroup is not specified, the specified Kind must be in the core API group. For any other third-party types, APIGroup is required.", + Type: []string{"string"}, + Format: "", + }, + }, + "kind": { + SchemaProps: spec.SchemaProps{ + Description: "Kind is the type of resource being referenced", + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + "name": { + SchemaProps: spec.SchemaProps{ + Description: "Name is the name of resource being referenced", + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + "namespace": { + SchemaProps: spec.SchemaProps{ + Description: "Namespace is the namespace of resource being referenced Note that when a namespace is specified, a gateway.networking.k8s.io/ReferenceGrant object is required in the referent namespace to allow that namespace's owner to accept the reference. See the ReferenceGrant documentation for details. (Alpha) This field requires the CrossNamespaceVolumeDataSource feature gate to be enabled.", + Type: []string{"string"}, + Format: "", + }, + }, + }, + Required: []string{"kind", "name"}, + }, + }, + } +} + +func schema_k8sio_api_core_v1_Volume(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "Volume represents a named volume in a pod that may be accessed by any container in the pod.", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "name": { + SchemaProps: spec.SchemaProps{ + Description: "name of the volume. Must be a DNS_LABEL and unique within the pod. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + "hostPath": { + SchemaProps: spec.SchemaProps{ + Description: "hostPath represents a pre-existing file or directory on the host machine that is directly exposed to the container. This is generally used for system agents or other privileged things that are allowed to see the host machine. Most containers will NOT need this. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath", + Ref: ref(corev1.HostPathVolumeSource{}.OpenAPIModelName()), + }, + }, + "emptyDir": { + SchemaProps: spec.SchemaProps{ + Description: "emptyDir represents a temporary directory that shares a pod's lifetime. More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir", + Ref: ref(corev1.EmptyDirVolumeSource{}.OpenAPIModelName()), + }, + }, + "gcePersistentDisk": { + SchemaProps: spec.SchemaProps{ + Description: "gcePersistentDisk represents a GCE Disk resource that is attached to a kubelet's host machine and then exposed to the pod. Deprecated: GCEPersistentDisk is deprecated. All operations for the in-tree gcePersistentDisk type are redirected to the pd.csi.storage.gke.io CSI driver. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk", + Ref: ref(corev1.GCEPersistentDiskVolumeSource{}.OpenAPIModelName()), + }, + }, + "awsElasticBlockStore": { + SchemaProps: spec.SchemaProps{ + Description: "awsElasticBlockStore represents an AWS Disk resource that is attached to a kubelet's host machine and then exposed to the pod. Deprecated: AWSElasticBlockStore is deprecated. All operations for the in-tree awsElasticBlockStore type are redirected to the ebs.csi.aws.com CSI driver. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore", + Ref: ref(corev1.AWSElasticBlockStoreVolumeSource{}.OpenAPIModelName()), + }, + }, + "gitRepo": { + SchemaProps: spec.SchemaProps{ + Description: "gitRepo represents a git repository at a particular revision. Deprecated: GitRepo is deprecated. To provision a container with a git repo, mount an EmptyDir into an InitContainer that clones the repo using git, then mount the EmptyDir into the Pod's container.", + Ref: ref(corev1.GitRepoVolumeSource{}.OpenAPIModelName()), + }, + }, + "secret": { + SchemaProps: spec.SchemaProps{ + Description: "secret represents a secret that should populate this volume. More info: https://kubernetes.io/docs/concepts/storage/volumes#secret", + Ref: ref(corev1.SecretVolumeSource{}.OpenAPIModelName()), + }, + }, + "nfs": { + SchemaProps: spec.SchemaProps{ + Description: "nfs represents an NFS mount on the host that shares a pod's lifetime More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs", + Ref: ref(corev1.NFSVolumeSource{}.OpenAPIModelName()), + }, + }, + "iscsi": { + SchemaProps: spec.SchemaProps{ + Description: "iscsi represents an ISCSI Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes/#iscsi", + Ref: ref(corev1.ISCSIVolumeSource{}.OpenAPIModelName()), + }, + }, + "glusterfs": { + SchemaProps: spec.SchemaProps{ + Description: "glusterfs represents a Glusterfs mount on the host that shares a pod's lifetime. Deprecated: Glusterfs is deprecated and the in-tree glusterfs type is no longer supported.", + Ref: ref(corev1.GlusterfsVolumeSource{}.OpenAPIModelName()), + }, + }, + "persistentVolumeClaim": { + SchemaProps: spec.SchemaProps{ + Description: "persistentVolumeClaimVolumeSource represents a reference to a PersistentVolumeClaim in the same namespace. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims", + Ref: ref(corev1.PersistentVolumeClaimVolumeSource{}.OpenAPIModelName()), + }, + }, + "rbd": { + SchemaProps: spec.SchemaProps{ + Description: "rbd represents a Rados Block Device mount on the host that shares a pod's lifetime. Deprecated: RBD is deprecated and the in-tree rbd type is no longer supported.", + Ref: ref(corev1.RBDVolumeSource{}.OpenAPIModelName()), + }, + }, + "flexVolume": { + SchemaProps: spec.SchemaProps{ + Description: "flexVolume represents a generic volume resource that is provisioned/attached using an exec based plugin. Deprecated: FlexVolume is deprecated. Consider using a CSIDriver instead.", + Ref: ref(corev1.FlexVolumeSource{}.OpenAPIModelName()), + }, + }, + "cinder": { + SchemaProps: spec.SchemaProps{ + Description: "cinder represents a cinder volume attached and mounted on kubelets host machine. Deprecated: Cinder is deprecated. All operations for the in-tree cinder type are redirected to the cinder.csi.openstack.org CSI driver. More info: https://examples.k8s.io/mysql-cinder-pd/README.md", + Ref: ref(corev1.CinderVolumeSource{}.OpenAPIModelName()), + }, + }, + "cephfs": { + SchemaProps: spec.SchemaProps{ + Description: "cephFS represents a Ceph FS mount on the host that shares a pod's lifetime. Deprecated: CephFS is deprecated and the in-tree cephfs type is no longer supported.", + Ref: ref(corev1.CephFSVolumeSource{}.OpenAPIModelName()), + }, + }, + "flocker": { + SchemaProps: spec.SchemaProps{ + Description: "flocker represents a Flocker volume attached to a kubelet's host machine. This depends on the Flocker control service being running. Deprecated: Flocker is deprecated and the in-tree flocker type is no longer supported.", + Ref: ref(corev1.FlockerVolumeSource{}.OpenAPIModelName()), + }, + }, + "downwardAPI": { + SchemaProps: spec.SchemaProps{ + Description: "downwardAPI represents downward API about the pod that should populate this volume", + Ref: ref(corev1.DownwardAPIVolumeSource{}.OpenAPIModelName()), + }, + }, + "fc": { + SchemaProps: spec.SchemaProps{ + Description: "fc represents a Fibre Channel resource that is attached to a kubelet's host machine and then exposed to the pod.", + Ref: ref(corev1.FCVolumeSource{}.OpenAPIModelName()), + }, + }, + "azureFile": { + SchemaProps: spec.SchemaProps{ + Description: "azureFile represents an Azure File Service mount on the host and bind mount to the pod. Deprecated: AzureFile is deprecated. All operations for the in-tree azureFile type are redirected to the file.csi.azure.com CSI driver.", + Ref: ref(corev1.AzureFileVolumeSource{}.OpenAPIModelName()), + }, + }, + "configMap": { + SchemaProps: spec.SchemaProps{ + Description: "configMap represents a configMap that should populate this volume", + Ref: ref(corev1.ConfigMapVolumeSource{}.OpenAPIModelName()), + }, + }, + "vsphereVolume": { + SchemaProps: spec.SchemaProps{ + Description: "vsphereVolume represents a vSphere volume attached and mounted on kubelets host machine. Deprecated: VsphereVolume is deprecated. All operations for the in-tree vsphereVolume type are redirected to the csi.vsphere.vmware.com CSI driver.", + Ref: ref(corev1.VsphereVirtualDiskVolumeSource{}.OpenAPIModelName()), + }, + }, + "quobyte": { + SchemaProps: spec.SchemaProps{ + Description: "quobyte represents a Quobyte mount on the host that shares a pod's lifetime. Deprecated: Quobyte is deprecated and the in-tree quobyte type is no longer supported.", + Ref: ref(corev1.QuobyteVolumeSource{}.OpenAPIModelName()), + }, + }, + "azureDisk": { + SchemaProps: spec.SchemaProps{ + Description: "azureDisk represents an Azure Data Disk mount on the host and bind mount to the pod. Deprecated: AzureDisk is deprecated. All operations for the in-tree azureDisk type are redirected to the disk.csi.azure.com CSI driver.", + Ref: ref(corev1.AzureDiskVolumeSource{}.OpenAPIModelName()), + }, + }, + "photonPersistentDisk": { + SchemaProps: spec.SchemaProps{ + Description: "photonPersistentDisk represents a PhotonController persistent disk attached and mounted on kubelets host machine. Deprecated: PhotonPersistentDisk is deprecated and the in-tree photonPersistentDisk type is no longer supported.", + Ref: ref(corev1.PhotonPersistentDiskVolumeSource{}.OpenAPIModelName()), + }, + }, + "projected": { + SchemaProps: spec.SchemaProps{ + Description: "projected items for all in one resources secrets, configmaps, and downward API", + Ref: ref(corev1.ProjectedVolumeSource{}.OpenAPIModelName()), + }, + }, + "portworxVolume": { + SchemaProps: spec.SchemaProps{ + Description: "portworxVolume represents a portworx volume attached and mounted on kubelets host machine. Deprecated: PortworxVolume is deprecated. All operations for the in-tree portworxVolume type are redirected to the pxd.portworx.com CSI driver when the CSIMigrationPortworx feature-gate is on.", + Ref: ref(corev1.PortworxVolumeSource{}.OpenAPIModelName()), + }, + }, + "scaleIO": { + SchemaProps: spec.SchemaProps{ + Description: "scaleIO represents a ScaleIO persistent volume attached and mounted on Kubernetes nodes. Deprecated: ScaleIO is deprecated and the in-tree scaleIO type is no longer supported.", + Ref: ref(corev1.ScaleIOVolumeSource{}.OpenAPIModelName()), + }, + }, + "storageos": { + SchemaProps: spec.SchemaProps{ + Description: "storageOS represents a StorageOS volume attached and mounted on Kubernetes nodes. Deprecated: StorageOS is deprecated and the in-tree storageos type is no longer supported.", + Ref: ref(corev1.StorageOSVolumeSource{}.OpenAPIModelName()), + }, + }, + "csi": { + SchemaProps: spec.SchemaProps{ + Description: "csi (Container Storage Interface) represents ephemeral storage that is handled by certain external CSI drivers.", + Ref: ref(corev1.CSIVolumeSource{}.OpenAPIModelName()), + }, + }, + "ephemeral": { + SchemaProps: spec.SchemaProps{ + Description: "ephemeral represents a volume that is handled by a cluster storage driver. The volume's lifecycle is tied to the pod that defines it - it will be created before the pod starts, and deleted when the pod is removed.\n\nUse this if: a) the volume is only needed while the pod runs, b) features of normal volumes like restoring from snapshot or capacity\n tracking are needed,\nc) the storage driver is specified through a storage class, and d) the storage driver supports dynamic volume provisioning through\n a PersistentVolumeClaim (see EphemeralVolumeSource for more\n information on the connection between this volume type\n and PersistentVolumeClaim).\n\nUse PersistentVolumeClaim or one of the vendor-specific APIs for volumes that persist for longer than the lifecycle of an individual pod.\n\nUse CSI for light-weight local ephemeral volumes if the CSI driver is meant to be used that way - see the documentation of the driver for more information.\n\nA pod can use both types of ephemeral volumes and persistent volumes at the same time.", + Ref: ref(corev1.EphemeralVolumeSource{}.OpenAPIModelName()), + }, + }, + "image": { + SchemaProps: spec.SchemaProps{ + Description: "image represents an OCI object (a container image or artifact) pulled and mounted on the kubelet's host machine. The volume is resolved at pod startup depending on which PullPolicy value is provided:\n\n- Always: the kubelet always attempts to pull the reference. Container creation will fail If the pull fails. - Never: the kubelet never pulls the reference and only uses a local image or artifact. Container creation will fail if the reference isn't present. - IfNotPresent: the kubelet pulls if the reference isn't already present on disk. Container creation will fail if the reference isn't present and the pull fails.\n\nThe volume gets re-resolved if the pod gets deleted and recreated, which means that new remote content will become available on pod recreation. A failure to resolve or pull the image during pod startup will block containers from starting and may add significant latency. Failures will be retried using normal volume backoff and will be reported on the pod reason and message. The types of objects that may be mounted by this volume are defined by the container runtime implementation on a host machine and at minimum must include all valid types supported by the container image field. The OCI object gets mounted in a single directory (spec.containers[*].volumeMounts.mountPath) by merging the manifest layers in the same way as for container images. The volume will be mounted read-only (ro) and non-executable files (noexec). Sub path mounts for containers are not supported (spec.containers[*].volumeMounts.subpath) before 1.33. The field spec.securityContext.fsGroupChangePolicy has no effect on this volume type.", + Ref: ref(corev1.ImageVolumeSource{}.OpenAPIModelName()), + }, + }, + }, + Required: []string{"name"}, + }, + }, + Dependencies: []string{ + corev1.AWSElasticBlockStoreVolumeSource{}.OpenAPIModelName(), corev1.AzureDiskVolumeSource{}.OpenAPIModelName(), corev1.AzureFileVolumeSource{}.OpenAPIModelName(), corev1.CSIVolumeSource{}.OpenAPIModelName(), corev1.CephFSVolumeSource{}.OpenAPIModelName(), corev1.CinderVolumeSource{}.OpenAPIModelName(), corev1.ConfigMapVolumeSource{}.OpenAPIModelName(), corev1.DownwardAPIVolumeSource{}.OpenAPIModelName(), corev1.EmptyDirVolumeSource{}.OpenAPIModelName(), corev1.EphemeralVolumeSource{}.OpenAPIModelName(), corev1.FCVolumeSource{}.OpenAPIModelName(), corev1.FlexVolumeSource{}.OpenAPIModelName(), corev1.FlockerVolumeSource{}.OpenAPIModelName(), corev1.GCEPersistentDiskVolumeSource{}.OpenAPIModelName(), corev1.GitRepoVolumeSource{}.OpenAPIModelName(), corev1.GlusterfsVolumeSource{}.OpenAPIModelName(), corev1.HostPathVolumeSource{}.OpenAPIModelName(), corev1.ISCSIVolumeSource{}.OpenAPIModelName(), corev1.ImageVolumeSource{}.OpenAPIModelName(), corev1.NFSVolumeSource{}.OpenAPIModelName(), corev1.PersistentVolumeClaimVolumeSource{}.OpenAPIModelName(), corev1.PhotonPersistentDiskVolumeSource{}.OpenAPIModelName(), corev1.PortworxVolumeSource{}.OpenAPIModelName(), corev1.ProjectedVolumeSource{}.OpenAPIModelName(), corev1.QuobyteVolumeSource{}.OpenAPIModelName(), corev1.RBDVolumeSource{}.OpenAPIModelName(), corev1.ScaleIOVolumeSource{}.OpenAPIModelName(), corev1.SecretVolumeSource{}.OpenAPIModelName(), corev1.StorageOSVolumeSource{}.OpenAPIModelName(), corev1.VsphereVirtualDiskVolumeSource{}.OpenAPIModelName()}, + } +} + +func schema_k8sio_api_core_v1_VolumeDevice(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "volumeDevice describes a mapping of a raw block device within a container.", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "name": { + SchemaProps: spec.SchemaProps{ + Description: "name must match the name of a persistentVolumeClaim in the pod", + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + "devicePath": { + SchemaProps: spec.SchemaProps{ + Description: "devicePath is the path inside of the container that the device will be mapped to.", + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + }, + Required: []string{"name", "devicePath"}, + }, + }, + } +} + +func schema_k8sio_api_core_v1_VolumeMount(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "VolumeMount describes a mounting of a Volume within a container.", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "name": { + SchemaProps: spec.SchemaProps{ + Description: "This must match the Name of a Volume.", + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + "readOnly": { + SchemaProps: spec.SchemaProps{ + Description: "Mounted read-only if true, read-write otherwise (false or unspecified). Defaults to false.", + Type: []string{"boolean"}, + Format: "", + }, + }, + "recursiveReadOnly": { + SchemaProps: spec.SchemaProps{ + Description: "RecursiveReadOnly specifies whether read-only mounts should be handled recursively.\n\nIf ReadOnly is false, this field has no meaning and must be unspecified.\n\nIf ReadOnly is true, and this field is set to Disabled, the mount is not made recursively read-only. If this field is set to IfPossible, the mount is made recursively read-only, if it is supported by the container runtime. If this field is set to Enabled, the mount is made recursively read-only if it is supported by the container runtime, otherwise the pod will not be started and an error will be generated to indicate the reason.\n\nIf this field is set to IfPossible or Enabled, MountPropagation must be set to None (or be unspecified, which defaults to None).\n\nIf this field is not specified, it is treated as an equivalent of Disabled.", + Type: []string{"string"}, + Format: "", + }, + }, + "mountPath": { + SchemaProps: spec.SchemaProps{ + Description: "Path within the container at which the volume should be mounted. Must not contain ':'.", + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + "subPath": { + SchemaProps: spec.SchemaProps{ + Description: "Path within the volume from which the container's volume should be mounted. Defaults to \"\" (volume's root).", + Type: []string{"string"}, + Format: "", + }, + }, + "mountPropagation": { + SchemaProps: spec.SchemaProps{ + Description: "mountPropagation determines how mounts are propagated from the host to container and the other way around. When not set, MountPropagationNone is used. This field is beta in 1.10. When RecursiveReadOnly is set to IfPossible or to Enabled, MountPropagation must be None or unspecified (which defaults to None).\n\nPossible enum values:\n - `\"Bidirectional\"` means that the volume in a container will receive new mounts from the host or other containers, and its own mounts will be propagated from the container to the host or other containers. Note that this mode is recursively applied to all mounts in the volume (\"rshared\" in Linux terminology).\n - `\"HostToContainer\"` means that the volume in a container will receive new mounts from the host or other containers, but filesystems mounted inside the container won't be propagated to the host or other containers. Note that this mode is recursively applied to all mounts in the volume (\"rslave\" in Linux terminology).\n - `\"None\"` means that the volume in a container will not receive new mounts from the host or other containers, and filesystems mounted inside the container won't be propagated to the host or other containers. Note that this mode corresponds to \"private\" in Linux terminology.", + Type: []string{"string"}, + Format: "", + Enum: []interface{}{"Bidirectional", "HostToContainer", "None"}, + }, + }, + "subPathExpr": { + SchemaProps: spec.SchemaProps{ + Description: "Expanded path within the volume from which the container's volume should be mounted. Behaves similarly to SubPath but environment variable references $(VAR_NAME) are expanded using the container's environment. Defaults to \"\" (volume's root). SubPathExpr and SubPath are mutually exclusive.", + Type: []string{"string"}, + Format: "", + }, + }, + }, + Required: []string{"name", "mountPath"}, + }, + }, + } +} + +func schema_k8sio_api_core_v1_VolumeMountStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "VolumeMountStatus shows status of volume mounts.", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "name": { + SchemaProps: spec.SchemaProps{ + Description: "Name corresponds to the name of the original VolumeMount.", + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + "mountPath": { + SchemaProps: spec.SchemaProps{ + Description: "MountPath corresponds to the original VolumeMount.", + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + "readOnly": { + SchemaProps: spec.SchemaProps{ + Description: "ReadOnly corresponds to the original VolumeMount.", + Type: []string{"boolean"}, + Format: "", + }, + }, + "recursiveReadOnly": { + SchemaProps: spec.SchemaProps{ + Description: "RecursiveReadOnly must be set to Disabled, Enabled, or unspecified (for non-readonly mounts). An IfPossible value in the original VolumeMount must be translated to Disabled or Enabled, depending on the mount result.", + Type: []string{"string"}, + Format: "", + }, + }, + }, + Required: []string{"name", "mountPath"}, + }, + }, + } +} + +func schema_k8sio_api_core_v1_VolumeNodeAffinity(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "VolumeNodeAffinity defines constraints that limit what nodes this volume can be accessed from.", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "required": { + SchemaProps: spec.SchemaProps{ + Description: "required specifies hard node constraints that must be met.", + Ref: ref(corev1.NodeSelector{}.OpenAPIModelName()), + }, + }, + }, + }, + }, + Dependencies: []string{ + corev1.NodeSelector{}.OpenAPIModelName()}, + } +} + +func schema_k8sio_api_core_v1_VolumeProjection(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "Projection that may be projected along with other supported volume types. Exactly one of these fields must be set.", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "secret": { + SchemaProps: spec.SchemaProps{ + Description: "secret information about the secret data to project", + Ref: ref(corev1.SecretProjection{}.OpenAPIModelName()), + }, + }, + "downwardAPI": { + SchemaProps: spec.SchemaProps{ + Description: "downwardAPI information about the downwardAPI data to project", + Ref: ref(corev1.DownwardAPIProjection{}.OpenAPIModelName()), + }, + }, + "configMap": { + SchemaProps: spec.SchemaProps{ + Description: "configMap information about the configMap data to project", + Ref: ref(corev1.ConfigMapProjection{}.OpenAPIModelName()), + }, + }, + "serviceAccountToken": { + SchemaProps: spec.SchemaProps{ + Description: "serviceAccountToken is information about the serviceAccountToken data to project", + Ref: ref(corev1.ServiceAccountTokenProjection{}.OpenAPIModelName()), + }, + }, + "clusterTrustBundle": { + SchemaProps: spec.SchemaProps{ + Description: "ClusterTrustBundle allows a pod to access the `.spec.trustBundle` field of ClusterTrustBundle objects in an auto-updating file.\n\nAlpha, gated by the ClusterTrustBundleProjection feature gate.\n\nClusterTrustBundle objects can either be selected by name, or by the combination of signer name and a label selector.\n\nKubelet performs aggressive normalization of the PEM contents written into the pod filesystem. Esoteric PEM features such as inter-block comments and block headers are stripped. Certificates are deduplicated. The ordering of certificates within the file is arbitrary, and Kubelet may change the order over time.", + Ref: ref(corev1.ClusterTrustBundleProjection{}.OpenAPIModelName()), + }, + }, + "podCertificate": { + SchemaProps: spec.SchemaProps{ + Description: "Projects an auto-rotating credential bundle (private key and certificate chain) that the pod can use either as a TLS client or server.\n\nKubelet generates a private key and uses it to send a PodCertificateRequest to the named signer. Once the signer approves the request and issues a certificate chain, Kubelet writes the key and certificate chain to the pod filesystem. The pod does not start until certificates have been issued for each podCertificate projected volume source in its spec.\n\nKubelet will begin trying to rotate the certificate at the time indicated by the signer using the PodCertificateRequest.Status.BeginRefreshAt timestamp.\n\nKubelet can write a single file, indicated by the credentialBundlePath field, or separate files, indicated by the keyPath and certificateChainPath fields.\n\nThe credential bundle is a single file in PEM format. The first PEM entry is the private key (in PKCS#8 format), and the remaining PEM entries are the certificate chain issued by the signer (typically, signers will return their certificate chain in leaf-to-root order).\n\nPrefer using the credential bundle format, since your application code can read it atomically. If you use keyPath and certificateChainPath, your application must make two separate file reads. If these coincide with a certificate rotation, it is possible that the private key and leaf certificate you read may not correspond to each other. Your application will need to check for this condition, and re-read until they are consistent.\n\nThe named signer controls chooses the format of the certificate it issues; consult the signer implementation's documentation to learn how to use the certificates it issues.", + Ref: ref(corev1.PodCertificateProjection{}.OpenAPIModelName()), + }, + }, + }, + }, + }, + Dependencies: []string{ + corev1.ClusterTrustBundleProjection{}.OpenAPIModelName(), corev1.ConfigMapProjection{}.OpenAPIModelName(), corev1.DownwardAPIProjection{}.OpenAPIModelName(), corev1.PodCertificateProjection{}.OpenAPIModelName(), corev1.SecretProjection{}.OpenAPIModelName(), corev1.ServiceAccountTokenProjection{}.OpenAPIModelName()}, + } +} + +func schema_k8sio_api_core_v1_VolumeResourceRequirements(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "VolumeResourceRequirements describes the storage resource requirements for a volume.", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "limits": { + SchemaProps: spec.SchemaProps{ + Description: "Limits describes the maximum amount of compute resources allowed. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/", + Type: []string{"object"}, + AdditionalProperties: &spec.SchemaOrBool{ + Allows: true, + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Ref: ref(resource.Quantity{}.OpenAPIModelName()), + }, + }, + }, + }, + }, + "requests": { + SchemaProps: spec.SchemaProps{ + Description: "Requests describes the minimum amount of compute resources required. If Requests is omitted for a container, it defaults to Limits if that is explicitly specified, otherwise to an implementation-defined value. Requests cannot exceed Limits. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/", + Type: []string{"object"}, + AdditionalProperties: &spec.SchemaOrBool{ + Allows: true, + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Ref: ref(resource.Quantity{}.OpenAPIModelName()), + }, + }, + }, + }, + }, + }, + }, + }, + Dependencies: []string{ + resource.Quantity{}.OpenAPIModelName()}, + } +} + +func schema_k8sio_api_core_v1_VolumeSource(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "Represents the source of a volume to mount. Only one of its members may be specified.", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "hostPath": { + SchemaProps: spec.SchemaProps{ + Description: "hostPath represents a pre-existing file or directory on the host machine that is directly exposed to the container. This is generally used for system agents or other privileged things that are allowed to see the host machine. Most containers will NOT need this. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath", + Ref: ref(corev1.HostPathVolumeSource{}.OpenAPIModelName()), + }, + }, + "emptyDir": { + SchemaProps: spec.SchemaProps{ + Description: "emptyDir represents a temporary directory that shares a pod's lifetime. More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir", + Ref: ref(corev1.EmptyDirVolumeSource{}.OpenAPIModelName()), + }, + }, + "gcePersistentDisk": { + SchemaProps: spec.SchemaProps{ + Description: "gcePersistentDisk represents a GCE Disk resource that is attached to a kubelet's host machine and then exposed to the pod. Deprecated: GCEPersistentDisk is deprecated. All operations for the in-tree gcePersistentDisk type are redirected to the pd.csi.storage.gke.io CSI driver. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk", + Ref: ref(corev1.GCEPersistentDiskVolumeSource{}.OpenAPIModelName()), + }, + }, + "awsElasticBlockStore": { + SchemaProps: spec.SchemaProps{ + Description: "awsElasticBlockStore represents an AWS Disk resource that is attached to a kubelet's host machine and then exposed to the pod. Deprecated: AWSElasticBlockStore is deprecated. All operations for the in-tree awsElasticBlockStore type are redirected to the ebs.csi.aws.com CSI driver. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore", + Ref: ref(corev1.AWSElasticBlockStoreVolumeSource{}.OpenAPIModelName()), + }, + }, + "gitRepo": { + SchemaProps: spec.SchemaProps{ + Description: "gitRepo represents a git repository at a particular revision. Deprecated: GitRepo is deprecated. To provision a container with a git repo, mount an EmptyDir into an InitContainer that clones the repo using git, then mount the EmptyDir into the Pod's container.", + Ref: ref(corev1.GitRepoVolumeSource{}.OpenAPIModelName()), + }, + }, + "secret": { + SchemaProps: spec.SchemaProps{ + Description: "secret represents a secret that should populate this volume. More info: https://kubernetes.io/docs/concepts/storage/volumes#secret", + Ref: ref(corev1.SecretVolumeSource{}.OpenAPIModelName()), + }, + }, + "nfs": { + SchemaProps: spec.SchemaProps{ + Description: "nfs represents an NFS mount on the host that shares a pod's lifetime More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs", + Ref: ref(corev1.NFSVolumeSource{}.OpenAPIModelName()), + }, + }, + "iscsi": { + SchemaProps: spec.SchemaProps{ + Description: "iscsi represents an ISCSI Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes/#iscsi", + Ref: ref(corev1.ISCSIVolumeSource{}.OpenAPIModelName()), + }, + }, + "glusterfs": { + SchemaProps: spec.SchemaProps{ + Description: "glusterfs represents a Glusterfs mount on the host that shares a pod's lifetime. Deprecated: Glusterfs is deprecated and the in-tree glusterfs type is no longer supported.", + Ref: ref(corev1.GlusterfsVolumeSource{}.OpenAPIModelName()), + }, + }, + "persistentVolumeClaim": { + SchemaProps: spec.SchemaProps{ + Description: "persistentVolumeClaimVolumeSource represents a reference to a PersistentVolumeClaim in the same namespace. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims", + Ref: ref(corev1.PersistentVolumeClaimVolumeSource{}.OpenAPIModelName()), + }, + }, + "rbd": { + SchemaProps: spec.SchemaProps{ + Description: "rbd represents a Rados Block Device mount on the host that shares a pod's lifetime. Deprecated: RBD is deprecated and the in-tree rbd type is no longer supported.", + Ref: ref(corev1.RBDVolumeSource{}.OpenAPIModelName()), + }, + }, + "flexVolume": { + SchemaProps: spec.SchemaProps{ + Description: "flexVolume represents a generic volume resource that is provisioned/attached using an exec based plugin. Deprecated: FlexVolume is deprecated. Consider using a CSIDriver instead.", + Ref: ref(corev1.FlexVolumeSource{}.OpenAPIModelName()), + }, + }, + "cinder": { + SchemaProps: spec.SchemaProps{ + Description: "cinder represents a cinder volume attached and mounted on kubelets host machine. Deprecated: Cinder is deprecated. All operations for the in-tree cinder type are redirected to the cinder.csi.openstack.org CSI driver. More info: https://examples.k8s.io/mysql-cinder-pd/README.md", + Ref: ref(corev1.CinderVolumeSource{}.OpenAPIModelName()), + }, + }, + "cephfs": { + SchemaProps: spec.SchemaProps{ + Description: "cephFS represents a Ceph FS mount on the host that shares a pod's lifetime. Deprecated: CephFS is deprecated and the in-tree cephfs type is no longer supported.", + Ref: ref(corev1.CephFSVolumeSource{}.OpenAPIModelName()), + }, + }, + "flocker": { + SchemaProps: spec.SchemaProps{ + Description: "flocker represents a Flocker volume attached to a kubelet's host machine. This depends on the Flocker control service being running. Deprecated: Flocker is deprecated and the in-tree flocker type is no longer supported.", + Ref: ref(corev1.FlockerVolumeSource{}.OpenAPIModelName()), + }, + }, + "downwardAPI": { + SchemaProps: spec.SchemaProps{ + Description: "downwardAPI represents downward API about the pod that should populate this volume", + Ref: ref(corev1.DownwardAPIVolumeSource{}.OpenAPIModelName()), + }, + }, + "fc": { + SchemaProps: spec.SchemaProps{ + Description: "fc represents a Fibre Channel resource that is attached to a kubelet's host machine and then exposed to the pod.", + Ref: ref(corev1.FCVolumeSource{}.OpenAPIModelName()), + }, + }, + "azureFile": { + SchemaProps: spec.SchemaProps{ + Description: "azureFile represents an Azure File Service mount on the host and bind mount to the pod. Deprecated: AzureFile is deprecated. All operations for the in-tree azureFile type are redirected to the file.csi.azure.com CSI driver.", + Ref: ref(corev1.AzureFileVolumeSource{}.OpenAPIModelName()), + }, + }, + "configMap": { + SchemaProps: spec.SchemaProps{ + Description: "configMap represents a configMap that should populate this volume", + Ref: ref(corev1.ConfigMapVolumeSource{}.OpenAPIModelName()), + }, + }, + "vsphereVolume": { + SchemaProps: spec.SchemaProps{ + Description: "vsphereVolume represents a vSphere volume attached and mounted on kubelets host machine. Deprecated: VsphereVolume is deprecated. All operations for the in-tree vsphereVolume type are redirected to the csi.vsphere.vmware.com CSI driver.", + Ref: ref(corev1.VsphereVirtualDiskVolumeSource{}.OpenAPIModelName()), + }, + }, + "quobyte": { + SchemaProps: spec.SchemaProps{ + Description: "quobyte represents a Quobyte mount on the host that shares a pod's lifetime. Deprecated: Quobyte is deprecated and the in-tree quobyte type is no longer supported.", + Ref: ref(corev1.QuobyteVolumeSource{}.OpenAPIModelName()), + }, + }, + "azureDisk": { + SchemaProps: spec.SchemaProps{ + Description: "azureDisk represents an Azure Data Disk mount on the host and bind mount to the pod. Deprecated: AzureDisk is deprecated. All operations for the in-tree azureDisk type are redirected to the disk.csi.azure.com CSI driver.", + Ref: ref(corev1.AzureDiskVolumeSource{}.OpenAPIModelName()), + }, + }, + "photonPersistentDisk": { + SchemaProps: spec.SchemaProps{ + Description: "photonPersistentDisk represents a PhotonController persistent disk attached and mounted on kubelets host machine. Deprecated: PhotonPersistentDisk is deprecated and the in-tree photonPersistentDisk type is no longer supported.", + Ref: ref(corev1.PhotonPersistentDiskVolumeSource{}.OpenAPIModelName()), + }, + }, + "projected": { + SchemaProps: spec.SchemaProps{ + Description: "projected items for all in one resources secrets, configmaps, and downward API", + Ref: ref(corev1.ProjectedVolumeSource{}.OpenAPIModelName()), + }, + }, + "portworxVolume": { + SchemaProps: spec.SchemaProps{ + Description: "portworxVolume represents a portworx volume attached and mounted on kubelets host machine. Deprecated: PortworxVolume is deprecated. All operations for the in-tree portworxVolume type are redirected to the pxd.portworx.com CSI driver when the CSIMigrationPortworx feature-gate is on.", + Ref: ref(corev1.PortworxVolumeSource{}.OpenAPIModelName()), + }, + }, + "scaleIO": { + SchemaProps: spec.SchemaProps{ + Description: "scaleIO represents a ScaleIO persistent volume attached and mounted on Kubernetes nodes. Deprecated: ScaleIO is deprecated and the in-tree scaleIO type is no longer supported.", + Ref: ref(corev1.ScaleIOVolumeSource{}.OpenAPIModelName()), + }, + }, + "storageos": { + SchemaProps: spec.SchemaProps{ + Description: "storageOS represents a StorageOS volume attached and mounted on Kubernetes nodes. Deprecated: StorageOS is deprecated and the in-tree storageos type is no longer supported.", + Ref: ref(corev1.StorageOSVolumeSource{}.OpenAPIModelName()), + }, + }, + "csi": { + SchemaProps: spec.SchemaProps{ + Description: "csi (Container Storage Interface) represents ephemeral storage that is handled by certain external CSI drivers.", + Ref: ref(corev1.CSIVolumeSource{}.OpenAPIModelName()), + }, + }, + "ephemeral": { + SchemaProps: spec.SchemaProps{ + Description: "ephemeral represents a volume that is handled by a cluster storage driver. The volume's lifecycle is tied to the pod that defines it - it will be created before the pod starts, and deleted when the pod is removed.\n\nUse this if: a) the volume is only needed while the pod runs, b) features of normal volumes like restoring from snapshot or capacity\n tracking are needed,\nc) the storage driver is specified through a storage class, and d) the storage driver supports dynamic volume provisioning through\n a PersistentVolumeClaim (see EphemeralVolumeSource for more\n information on the connection between this volume type\n and PersistentVolumeClaim).\n\nUse PersistentVolumeClaim or one of the vendor-specific APIs for volumes that persist for longer than the lifecycle of an individual pod.\n\nUse CSI for light-weight local ephemeral volumes if the CSI driver is meant to be used that way - see the documentation of the driver for more information.\n\nA pod can use both types of ephemeral volumes and persistent volumes at the same time.", + Ref: ref(corev1.EphemeralVolumeSource{}.OpenAPIModelName()), }, }, - "divisor": { + "image": { SchemaProps: spec.SchemaProps{ - Description: "Specifies the output format of the exposed resources, defaults to \"1\"", - Ref: ref("k8s.io/apimachinery/pkg/api/resource.Quantity"), + Description: "image represents an OCI object (a container image or artifact) pulled and mounted on the kubelet's host machine. The volume is resolved at pod startup depending on which PullPolicy value is provided:\n\n- Always: the kubelet always attempts to pull the reference. Container creation will fail If the pull fails. - Never: the kubelet never pulls the reference and only uses a local image or artifact. Container creation will fail if the reference isn't present. - IfNotPresent: the kubelet pulls if the reference isn't already present on disk. Container creation will fail if the reference isn't present and the pull fails.\n\nThe volume gets re-resolved if the pod gets deleted and recreated, which means that new remote content will become available on pod recreation. A failure to resolve or pull the image during pod startup will block containers from starting and may add significant latency. Failures will be retried using normal volume backoff and will be reported on the pod reason and message. The types of objects that may be mounted by this volume are defined by the container runtime implementation on a host machine and at minimum must include all valid types supported by the container image field. The OCI object gets mounted in a single directory (spec.containers[*].volumeMounts.mountPath) by merging the manifest layers in the same way as for container images. The volume will be mounted read-only (ro) and non-executable files (noexec). Sub path mounts for containers are not supported (spec.containers[*].volumeMounts.subpath) before 1.33. The field spec.securityContext.fsGroupChangePolicy has no effect on this volume type.", + Ref: ref(corev1.ImageVolumeSource{}.OpenAPIModelName()), }, }, }, - Required: []string{"resource"}, - }, - VendorExtensible: spec.VendorExtensible{ - Extensions: spec.Extensions{ - "x-kubernetes-map-type": "atomic", - }, }, }, Dependencies: []string{ - "k8s.io/apimachinery/pkg/api/resource.Quantity"}, + corev1.AWSElasticBlockStoreVolumeSource{}.OpenAPIModelName(), corev1.AzureDiskVolumeSource{}.OpenAPIModelName(), corev1.AzureFileVolumeSource{}.OpenAPIModelName(), corev1.CSIVolumeSource{}.OpenAPIModelName(), corev1.CephFSVolumeSource{}.OpenAPIModelName(), corev1.CinderVolumeSource{}.OpenAPIModelName(), corev1.ConfigMapVolumeSource{}.OpenAPIModelName(), corev1.DownwardAPIVolumeSource{}.OpenAPIModelName(), corev1.EmptyDirVolumeSource{}.OpenAPIModelName(), corev1.EphemeralVolumeSource{}.OpenAPIModelName(), corev1.FCVolumeSource{}.OpenAPIModelName(), corev1.FlexVolumeSource{}.OpenAPIModelName(), corev1.FlockerVolumeSource{}.OpenAPIModelName(), corev1.GCEPersistentDiskVolumeSource{}.OpenAPIModelName(), corev1.GitRepoVolumeSource{}.OpenAPIModelName(), corev1.GlusterfsVolumeSource{}.OpenAPIModelName(), corev1.HostPathVolumeSource{}.OpenAPIModelName(), corev1.ISCSIVolumeSource{}.OpenAPIModelName(), corev1.ImageVolumeSource{}.OpenAPIModelName(), corev1.NFSVolumeSource{}.OpenAPIModelName(), corev1.PersistentVolumeClaimVolumeSource{}.OpenAPIModelName(), corev1.PhotonPersistentDiskVolumeSource{}.OpenAPIModelName(), corev1.PortworxVolumeSource{}.OpenAPIModelName(), corev1.ProjectedVolumeSource{}.OpenAPIModelName(), corev1.QuobyteVolumeSource{}.OpenAPIModelName(), corev1.RBDVolumeSource{}.OpenAPIModelName(), corev1.ScaleIOVolumeSource{}.OpenAPIModelName(), corev1.SecretVolumeSource{}.OpenAPIModelName(), corev1.StorageOSVolumeSource{}.OpenAPIModelName(), corev1.VsphereVirtualDiskVolumeSource{}.OpenAPIModelName()}, } } -func schema_k8sio_api_core_v1_ResourceHealth(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_k8sio_api_core_v1_VsphereVirtualDiskVolumeSource(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "ResourceHealth represents the health of a resource. It has the latest device health information. This is a part of KEP https://kep.k8s.io/4680.", + Description: "Represents a vSphere volume resource.", Type: []string{"object"}, Properties: map[string]spec.Schema{ - "resourceID": { + "volumePath": { SchemaProps: spec.SchemaProps{ - Description: "ResourceID is the unique identifier of the resource. See the ResourceID type for more information.", + Description: "volumePath is the path that identifies vSphere volume vmdk", Default: "", Type: []string{"string"}, Format: "", }, }, - "health": { + "fsType": { SchemaProps: spec.SchemaProps{ - Description: "Health of the resource. can be one of:\n - Healthy: operates as normal\n - Unhealthy: reported unhealthy. We consider this a temporary health issue\n since we do not have a mechanism today to distinguish\n temporary and permanent issues.\n - Unknown: The status cannot be determined.\n For example, Device Plugin got unregistered and hasn't been re-registered since.\n\nIn future we may want to introduce the PermanentlyUnhealthy Status.", + Description: "fsType is filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified.", Type: []string{"string"}, Format: "", }, }, - }, - Required: []string{"resourceID"}, - }, - }, - } -} - -func schema_k8sio_api_core_v1_ResourceQuota(ref common.ReferenceCallback) common.OpenAPIDefinition { - return common.OpenAPIDefinition{ - Schema: spec.Schema{ - SchemaProps: spec.SchemaProps{ - Description: "ResourceQuota sets aggregate quota restrictions enforced per namespace", - Type: []string{"object"}, - Properties: map[string]spec.Schema{ - "kind": { + "storagePolicyName": { SchemaProps: spec.SchemaProps{ - Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + Description: "storagePolicyName is the storage Policy Based Management (SPBM) profile name.", Type: []string{"string"}, Format: "", }, }, - "apiVersion": { + "storagePolicyID": { SchemaProps: spec.SchemaProps{ - Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + Description: "storagePolicyID is the storage Policy Based Management (SPBM) profile ID associated with the StoragePolicyName.", Type: []string{"string"}, Format: "", }, }, - "metadata": { - SchemaProps: spec.SchemaProps{ - Description: "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata", - Default: map[string]interface{}{}, - Ref: ref(metav1.ObjectMeta{}.OpenAPIModelName()), - }, - }, - "spec": { - SchemaProps: spec.SchemaProps{ - Description: "Spec defines the desired quota. https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status", - Default: map[string]interface{}{}, - Ref: ref(corev1.ResourceQuotaSpec{}.OpenAPIModelName()), - }, - }, - "status": { - SchemaProps: spec.SchemaProps{ - Description: "Status defines the actual enforced quota and its current usage. https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status", - Default: map[string]interface{}{}, - Ref: ref(corev1.ResourceQuotaStatus{}.OpenAPIModelName()), - }, - }, }, + Required: []string{"volumePath"}, }, }, - Dependencies: []string{ - corev1.ResourceQuotaSpec{}.OpenAPIModelName(), corev1.ResourceQuotaStatus{}.OpenAPIModelName(), metav1.ObjectMeta{}.OpenAPIModelName()}, } } -func schema_k8sio_api_core_v1_ResourceQuotaList(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_k8sio_api_core_v1_WeightedPodAffinityTerm(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "ResourceQuotaList is a list of ResourceQuota items.", + Description: "The weights of all of the matched WeightedPodAffinityTerm fields are added per-node to find the most preferred node(s)", Type: []string{"object"}, Properties: map[string]spec.Schema{ - "kind": { - SchemaProps: spec.SchemaProps{ - Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", - Type: []string{"string"}, - Format: "", - }, - }, - "apiVersion": { + "weight": { SchemaProps: spec.SchemaProps{ - Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", - Type: []string{"string"}, - Format: "", + Description: "weight associated with matching the corresponding podAffinityTerm, in the range 1-100.", + Default: 0, + Type: []string{"integer"}, + Format: "int32", }, }, - "metadata": { + "podAffinityTerm": { SchemaProps: spec.SchemaProps{ - Description: "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + Description: "Required. A pod affinity term, associated with the corresponding weight.", Default: map[string]interface{}{}, - Ref: ref(metav1.ListMeta{}.OpenAPIModelName()), - }, - }, - "items": { - SchemaProps: spec.SchemaProps{ - Description: "Items is a list of ResourceQuota objects. More info: https://kubernetes.io/docs/concepts/policy/resource-quotas/", - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref(corev1.ResourceQuota{}.OpenAPIModelName()), - }, - }, - }, + Ref: ref(corev1.PodAffinityTerm{}.OpenAPIModelName()), }, }, }, - Required: []string{"items"}, + Required: []string{"weight", "podAffinityTerm"}, }, }, Dependencies: []string{ - corev1.ResourceQuota{}.OpenAPIModelName(), metav1.ListMeta{}.OpenAPIModelName()}, + corev1.PodAffinityTerm{}.OpenAPIModelName()}, } } -func schema_k8sio_api_core_v1_ResourceQuotaSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_k8sio_api_core_v1_WindowsSecurityContextOptions(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "ResourceQuotaSpec defines the desired hard limits to enforce for Quota.", + Description: "WindowsSecurityContextOptions contain Windows-specific options and credentials.", Type: []string{"object"}, Properties: map[string]spec.Schema{ - "hard": { + "gmsaCredentialSpecName": { SchemaProps: spec.SchemaProps{ - Description: "hard is the set of desired hard limits for each named resource. More info: https://kubernetes.io/docs/concepts/policy/resource-quotas/", - Type: []string{"object"}, - AdditionalProperties: &spec.SchemaOrBool{ - Allows: true, - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Ref: ref("k8s.io/apimachinery/pkg/api/resource.Quantity"), - }, - }, - }, + Description: "GMSACredentialSpecName is the name of the GMSA credential spec to use.", + Type: []string{"string"}, + Format: "", }, }, - "scopes": { - VendorExtensible: spec.VendorExtensible{ - Extensions: spec.Extensions{ - "x-kubernetes-list-type": "atomic", - }, + "gmsaCredentialSpec": { + SchemaProps: spec.SchemaProps{ + Description: "GMSACredentialSpec is where the GMSA admission webhook (https://github.com/kubernetes-sigs/windows-gmsa) inlines the contents of the GMSA credential spec named by the GMSACredentialSpecName field.", + Type: []string{"string"}, + Format: "", }, + }, + "runAsUserName": { SchemaProps: spec.SchemaProps{ - Description: "A collection of filters that must match each object tracked by a quota. If not specified, the quota matches all objects.", - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: "", - Type: []string{"string"}, - Format: "", - Enum: []interface{}{"BestEffort", "CrossNamespacePodAffinity", "NotBestEffort", "NotTerminating", "PriorityClass", "Terminating", "VolumeAttributesClass"}, - }, - }, - }, + Description: "The UserName in Windows to run the entrypoint of the container process. Defaults to the user specified in image metadata if unspecified. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence.", + Type: []string{"string"}, + Format: "", }, }, - "scopeSelector": { + "hostProcess": { SchemaProps: spec.SchemaProps{ - Description: "scopeSelector is also a collection of filters like scopes that must match each object tracked by a quota but expressed using ScopeSelectorOperator in combination with possible values. For a resource to match, both scopes AND scopeSelector (if specified in spec), must be matched.", - Ref: ref(corev1.ScopeSelector{}.OpenAPIModelName()), + Description: "HostProcess determines if a container should be run as a 'Host Process' container. All of a Pod's containers must have the same effective HostProcess value (it is not allowed to have a mix of HostProcess containers and non-HostProcess containers). In addition, if HostProcess is true then HostNetwork must also be set to true.", + Type: []string{"boolean"}, + Format: "", }, }, }, }, }, - Dependencies: []string{ - corev1.ScopeSelector{}.OpenAPIModelName(), "k8s.io/apimachinery/pkg/api/resource.Quantity"}, } } -func schema_k8sio_api_core_v1_ResourceQuotaStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_k8sio_api_core_v1_WorkloadReference(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "ResourceQuotaStatus defines the enforced hard limits and observed use.", + Description: "WorkloadReference identifies the Workload object and PodGroup membership that a Pod belongs to. The scheduler uses this information to apply workload-aware scheduling semantics.", Type: []string{"object"}, Properties: map[string]spec.Schema{ - "hard": { + "name": { SchemaProps: spec.SchemaProps{ - Description: "Hard is the set of enforced hard limits for each named resource. More info: https://kubernetes.io/docs/concepts/policy/resource-quotas/", - Type: []string{"object"}, - AdditionalProperties: &spec.SchemaOrBool{ - Allows: true, - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Ref: ref("k8s.io/apimachinery/pkg/api/resource.Quantity"), - }, - }, - }, + Description: "Name defines the name of the Workload object this Pod belongs to. Workload must be in the same namespace as the Pod. If it doesn't match any existing Workload, the Pod will remain unschedulable until a Workload object is created and observed by the kube-scheduler. It must be a DNS subdomain.", + Default: "", + Type: []string{"string"}, + Format: "", }, }, - "used": { + "podGroup": { SchemaProps: spec.SchemaProps{ - Description: "Used is the current observed total usage of the resource in the namespace.", - Type: []string{"object"}, - AdditionalProperties: &spec.SchemaOrBool{ - Allows: true, - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Ref: ref("k8s.io/apimachinery/pkg/api/resource.Quantity"), - }, - }, - }, + Description: "PodGroup is the name of the PodGroup within the Workload that this Pod belongs to. If it doesn't match any existing PodGroup within the Workload, the Pod will remain unschedulable until the Workload object is recreated and observed by the kube-scheduler. It must be a DNS label.", + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + "podGroupReplicaKey": { + SchemaProps: spec.SchemaProps{ + Description: "PodGroupReplicaKey specifies the replica key of the PodGroup to which this Pod belongs. It is used to distinguish pods belonging to different replicas of the same pod group. The pod group policy is applied separately to each replica. When set, it must be a DNS label.", + Type: []string{"string"}, + Format: "", }, }, }, + Required: []string{"name", "podGroup"}, }, }, - Dependencies: []string{ - "k8s.io/apimachinery/pkg/api/resource.Quantity"}, } } -func schema_k8sio_api_core_v1_ResourceRequirements(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_k8sio_api_networking_v1_HTTPIngressPath(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "ResourceRequirements describes the compute resource requirements.", + Description: "HTTPIngressPath associates a path with a backend. Incoming urls matching the path are forwarded to the backend.", Type: []string{"object"}, Properties: map[string]spec.Schema{ - "limits": { + "path": { SchemaProps: spec.SchemaProps{ - Description: "Limits describes the maximum amount of compute resources allowed. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/", - Type: []string{"object"}, - AdditionalProperties: &spec.SchemaOrBool{ - Allows: true, - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Ref: ref("k8s.io/apimachinery/pkg/api/resource.Quantity"), - }, - }, - }, + Description: "path is matched against the path of an incoming request. Currently it can contain characters disallowed from the conventional \"path\" part of a URL as defined by RFC 3986. Paths must begin with a '/' and must be present when using PathType with value \"Exact\" or \"Prefix\".", + Type: []string{"string"}, + Format: "", }, }, - "requests": { + "pathType": { SchemaProps: spec.SchemaProps{ - Description: "Requests describes the minimum amount of compute resources required. If Requests is omitted for a container, it defaults to Limits if that is explicitly specified, otherwise to an implementation-defined value. Requests cannot exceed Limits. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/", - Type: []string{"object"}, - AdditionalProperties: &spec.SchemaOrBool{ - Allows: true, - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Ref: ref("k8s.io/apimachinery/pkg/api/resource.Quantity"), - }, - }, - }, + Description: "pathType determines the interpretation of the path matching. PathType can be one of the following values: * Exact: Matches the URL path exactly. * Prefix: Matches based on a URL path prefix split by '/'. Matching is\n done on a path element by element basis. A path element refers is the\n list of labels in the path split by the '/' separator. A request is a\n match for path p if every p is an element-wise prefix of p of the\n request path. Note that if the last element of the path is a substring\n of the last element in request path, it is not a match (e.g. /foo/bar\n matches /foo/bar/baz, but does not match /foo/barbaz).\n* ImplementationSpecific: Interpretation of the Path matching is up to\n the IngressClass. Implementations can treat this as a separate PathType\n or treat it identically to Prefix or Exact path types.\nImplementations are required to support all path types.\n\nPossible enum values:\n - `\"Exact\"` matches the URL path exactly and with case sensitivity.\n - `\"ImplementationSpecific\"` matching is up to the IngressClass. Implementations can treat this as a separate PathType or treat it identically to Prefix or Exact path types.\n - `\"Prefix\"` matches based on a URL path prefix split by '/'. Matching is case sensitive and done on a path element by element basis. A path element refers to the list of labels in the path split by the '/' separator. A request is a match for path p if every p is an element-wise prefix of p of the request path. Note that if the last element of the path is a substring of the last element in request path, it is not a match (e.g. /foo/bar matches /foo/bar/baz, but does not match /foo/barbaz). If multiple matching paths exist in an Ingress spec, the longest matching path is given priority. Examples: - /foo/bar does not match requests to /foo/barbaz - /foo/bar matches request to /foo/bar and /foo/bar/baz - /foo and /foo/ both match requests to /foo and /foo/. If both paths are present in an Ingress spec, the longest matching path (/foo/) is given priority.", + Type: []string{"string"}, + Format: "", + Enum: []interface{}{"Exact", "ImplementationSpecific", "Prefix"}, }, }, - "claims": { - VendorExtensible: spec.VendorExtensible{ - Extensions: spec.Extensions{ - "x-kubernetes-list-map-keys": []interface{}{ - "name", - }, - "x-kubernetes-list-type": "map", - }, - }, + "backend": { SchemaProps: spec.SchemaProps{ - Description: "Claims lists the names of resources, defined in spec.resourceClaims, that are used by this container.\n\nThis field depends on the DynamicResourceAllocation feature gate.\n\nThis field is immutable. It can only be set for containers.", - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref(corev1.ResourceClaim{}.OpenAPIModelName()), - }, - }, - }, + Description: "backend defines the referenced service endpoint to which the traffic will be forwarded to.", + Default: map[string]interface{}{}, + Ref: ref(networkingv1.IngressBackend{}.OpenAPIModelName()), }, }, }, + Required: []string{"pathType", "backend"}, }, }, Dependencies: []string{ - corev1.ResourceClaim{}.OpenAPIModelName(), "k8s.io/apimachinery/pkg/api/resource.Quantity"}, + networkingv1.IngressBackend{}.OpenAPIModelName()}, } } -func schema_k8sio_api_core_v1_ResourceStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_k8sio_api_networking_v1_HTTPIngressRuleValue(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "ResourceStatus represents the status of a single resource allocated to a Pod.", + Description: "HTTPIngressRuleValue is a list of http selectors pointing to backends. In the example: http:///? -> backend where where parts of the url correspond to RFC 3986, this resource will be used to match against everything after the last '/' and before the first '?' or '#'.", Type: []string{"object"}, Properties: map[string]spec.Schema{ - "name": { - SchemaProps: spec.SchemaProps{ - Description: "Name of the resource. Must be unique within the pod and in case of non-DRA resource, match one of the resources from the pod spec. For DRA resources, the value must be \"claim:/\". When this status is reported about a container, the \"claim_name\" and \"request\" must match one of the claims of this container.", - Default: "", - Type: []string{"string"}, - Format: "", - }, - }, - "resources": { + "paths": { VendorExtensible: spec.VendorExtensible{ Extensions: spec.Extensions{ - "x-kubernetes-list-map-keys": []interface{}{ - "resourceID", - }, - "x-kubernetes-list-type": "map", + "x-kubernetes-list-type": "atomic", }, }, SchemaProps: spec.SchemaProps{ - Description: "List of unique resources health. Each element in the list contains an unique resource ID and its health. At a minimum, for the lifetime of a Pod, resource ID must uniquely identify the resource allocated to the Pod on the Node. If other Pod on the same Node reports the status with the same resource ID, it must be the same resource they share. See ResourceID type definition for a specific format it has in various use cases.", + Description: "paths is a collection of paths that map requests to backends.", Type: []string{"array"}, Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref(corev1.ResourceHealth{}.OpenAPIModelName()), + Ref: ref(networkingv1.HTTPIngressPath{}.OpenAPIModelName()), }, }, }, }, }, }, - Required: []string{"name"}, + Required: []string{"paths"}, }, }, Dependencies: []string{ - corev1.ResourceHealth{}.OpenAPIModelName()}, + networkingv1.HTTPIngressPath{}.OpenAPIModelName()}, } } -func schema_k8sio_api_core_v1_SELinuxOptions(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_k8sio_api_networking_v1_IPAddress(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "SELinuxOptions are the labels to be applied to the container", + Description: "IPAddress represents a single IP of a single IP Family. The object is designed to be used by APIs that operate on IP addresses. The object is used by the Service core API for allocation of IP addresses. An IP address can be represented in different formats, to guarantee the uniqueness of the IP, the name of the object is the IP address in canonical format, four decimal digits separated by dots suppressing leading zeros for IPv4 and the representation defined by RFC 5952 for IPv6. Valid: 192.168.1.5 or 2001:db8::1 or 2001:db8:aaaa:bbbb:cccc:dddd:eeee:1 Invalid: 10.01.2.3 or 2001:db8:0:0:0::1", Type: []string{"object"}, Properties: map[string]spec.Schema{ - "user": { + "kind": { SchemaProps: spec.SchemaProps{ - Description: "User is a SELinux user label that applies to the container.", + Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", Type: []string{"string"}, Format: "", }, }, - "role": { + "apiVersion": { SchemaProps: spec.SchemaProps{ - Description: "Role is a SELinux role label that applies to the container.", + Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", Type: []string{"string"}, Format: "", }, }, - "type": { + "metadata": { SchemaProps: spec.SchemaProps{ - Description: "Type is a SELinux type label that applies to the container.", - Type: []string{"string"}, - Format: "", + Description: "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata", + Default: map[string]interface{}{}, + Ref: ref(metav1.ObjectMeta{}.OpenAPIModelName()), }, }, - "level": { + "spec": { SchemaProps: spec.SchemaProps{ - Description: "Level is SELinux level label that applies to the container.", - Type: []string{"string"}, - Format: "", + Description: "spec is the desired state of the IPAddress. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status", + Default: map[string]interface{}{}, + Ref: ref(networkingv1.IPAddressSpec{}.OpenAPIModelName()), }, }, }, }, }, + Dependencies: []string{ + networkingv1.IPAddressSpec{}.OpenAPIModelName(), metav1.ObjectMeta{}.OpenAPIModelName()}, } } -func schema_k8sio_api_core_v1_ScaleIOPersistentVolumeSource(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_k8sio_api_networking_v1_IPAddressList(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "ScaleIOPersistentVolumeSource represents a persistent ScaleIO volume", + Description: "IPAddressList contains a list of IPAddress.", Type: []string{"object"}, Properties: map[string]spec.Schema{ - "gateway": { - SchemaProps: spec.SchemaProps{ - Description: "gateway is the host address of the ScaleIO API Gateway.", - Default: "", - Type: []string{"string"}, - Format: "", - }, - }, - "system": { - SchemaProps: spec.SchemaProps{ - Description: "system is the name of the storage system as configured in ScaleIO.", - Default: "", - Type: []string{"string"}, - Format: "", - }, - }, - "secretRef": { - SchemaProps: spec.SchemaProps{ - Description: "secretRef references to the secret for ScaleIO user and other sensitive information. If this is not provided, Login operation will fail.", - Ref: ref(corev1.SecretReference{}.OpenAPIModelName()), - }, - }, - "sslEnabled": { - SchemaProps: spec.SchemaProps{ - Description: "sslEnabled is the flag to enable/disable SSL communication with Gateway, default false", - Type: []string{"boolean"}, - Format: "", - }, - }, - "protectionDomain": { - SchemaProps: spec.SchemaProps{ - Description: "protectionDomain is the name of the ScaleIO Protection Domain for the configured storage.", - Type: []string{"string"}, - Format: "", - }, - }, - "storagePool": { - SchemaProps: spec.SchemaProps{ - Description: "storagePool is the ScaleIO Storage Pool associated with the protection domain.", - Type: []string{"string"}, - Format: "", - }, - }, - "storageMode": { + "kind": { SchemaProps: spec.SchemaProps{ - Description: "storageMode indicates whether the storage for a volume should be ThickProvisioned or ThinProvisioned. Default is ThinProvisioned.", - Default: "ThinProvisioned", + Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", Type: []string{"string"}, Format: "", }, }, - "volumeName": { + "apiVersion": { SchemaProps: spec.SchemaProps{ - Description: "volumeName is the name of a volume already created in the ScaleIO system that is associated with this volume source.", + Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", Type: []string{"string"}, Format: "", }, }, - "fsType": { + "metadata": { SchemaProps: spec.SchemaProps{ - Description: "fsType is the filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\", \"ntfs\". Default is \"xfs\"", - Default: "xfs", - Type: []string{"string"}, - Format: "", + Description: "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata", + Default: map[string]interface{}{}, + Ref: ref(metav1.ListMeta{}.OpenAPIModelName()), }, }, - "readOnly": { + "items": { SchemaProps: spec.SchemaProps{ - Description: "readOnly defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts.", - Type: []string{"boolean"}, - Format: "", + Description: "items is the list of IPAddresses.", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref(networkingv1.IPAddress{}.OpenAPIModelName()), + }, + }, + }, }, }, }, - Required: []string{"gateway", "system", "secretRef"}, + Required: []string{"items"}, }, }, Dependencies: []string{ - corev1.SecretReference{}.OpenAPIModelName()}, + networkingv1.IPAddress{}.OpenAPIModelName(), metav1.ListMeta{}.OpenAPIModelName()}, } } -func schema_k8sio_api_core_v1_ScaleIOVolumeSource(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_k8sio_api_networking_v1_IPAddressSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "ScaleIOVolumeSource represents a persistent ScaleIO volume", + Description: "IPAddressSpec describe the attributes in an IP Address.", Type: []string{"object"}, Properties: map[string]spec.Schema{ - "gateway": { - SchemaProps: spec.SchemaProps{ - Description: "gateway is the host address of the ScaleIO API Gateway.", - Default: "", - Type: []string{"string"}, - Format: "", - }, - }, - "system": { - SchemaProps: spec.SchemaProps{ - Description: "system is the name of the storage system as configured in ScaleIO.", - Default: "", - Type: []string{"string"}, - Format: "", - }, - }, - "secretRef": { - SchemaProps: spec.SchemaProps{ - Description: "secretRef references to the secret for ScaleIO user and other sensitive information. If this is not provided, Login operation will fail.", - Ref: ref(corev1.LocalObjectReference{}.OpenAPIModelName()), - }, - }, - "sslEnabled": { - SchemaProps: spec.SchemaProps{ - Description: "sslEnabled Flag enable/disable SSL communication with Gateway, default false", - Type: []string{"boolean"}, - Format: "", - }, - }, - "protectionDomain": { - SchemaProps: spec.SchemaProps{ - Description: "protectionDomain is the name of the ScaleIO Protection Domain for the configured storage.", - Type: []string{"string"}, - Format: "", - }, - }, - "storagePool": { - SchemaProps: spec.SchemaProps{ - Description: "storagePool is the ScaleIO Storage Pool associated with the protection domain.", - Type: []string{"string"}, - Format: "", - }, - }, - "storageMode": { - SchemaProps: spec.SchemaProps{ - Description: "storageMode indicates whether the storage for a volume should be ThickProvisioned or ThinProvisioned. Default is ThinProvisioned.", - Default: "ThinProvisioned", - Type: []string{"string"}, - Format: "", - }, - }, - "volumeName": { - SchemaProps: spec.SchemaProps{ - Description: "volumeName is the name of a volume already created in the ScaleIO system that is associated with this volume source.", - Type: []string{"string"}, - Format: "", - }, - }, - "fsType": { - SchemaProps: spec.SchemaProps{ - Description: "fsType is the filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\", \"ntfs\". Default is \"xfs\".", - Default: "xfs", - Type: []string{"string"}, - Format: "", - }, - }, - "readOnly": { + "parentRef": { SchemaProps: spec.SchemaProps{ - Description: "readOnly Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts.", - Type: []string{"boolean"}, - Format: "", + Description: "ParentRef references the resource that an IPAddress is attached to. An IPAddress must reference a parent object.", + Ref: ref(networkingv1.ParentReference{}.OpenAPIModelName()), }, }, }, - Required: []string{"gateway", "system", "secretRef"}, + Required: []string{"parentRef"}, }, }, Dependencies: []string{ - corev1.LocalObjectReference{}.OpenAPIModelName()}, + networkingv1.ParentReference{}.OpenAPIModelName()}, } } -func schema_k8sio_api_core_v1_ScopeSelector(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_k8sio_api_networking_v1_IPBlock(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "A scope selector represents the AND of the selectors represented by the scoped-resource selector requirements.", + Description: "IPBlock describes a particular CIDR (Ex. \"192.168.1.0/24\",\"2001:db8::/64\") that is allowed to the pods matched by a NetworkPolicySpec's podSelector. The except entry describes CIDRs that should not be included within this rule.", Type: []string{"object"}, Properties: map[string]spec.Schema{ - "matchExpressions": { + "cidr": { + SchemaProps: spec.SchemaProps{ + Description: "cidr is a string representing the IPBlock Valid examples are \"192.168.1.0/24\" or \"2001:db8::/64\"", + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + "except": { VendorExtensible: spec.VendorExtensible{ Extensions: spec.Extensions{ "x-kubernetes-list-type": "atomic", }, }, SchemaProps: spec.SchemaProps{ - Description: "A list of scope selector requirements by scope of the resources.", + Description: "except is a slice of CIDRs that should not be included within an IPBlock Valid examples are \"192.168.1.0/24\" or \"2001:db8::/64\" Except values will be rejected if they are outside the cidr range", Type: []string{"array"}, Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref(corev1.ScopedResourceSelectorRequirement{}.OpenAPIModelName()), + Default: "", + Type: []string{"string"}, + Format: "", }, }, }, }, }, }, - }, - VendorExtensible: spec.VendorExtensible{ - Extensions: spec.Extensions{ - "x-kubernetes-map-type": "atomic", - }, + Required: []string{"cidr"}, }, }, - Dependencies: []string{ - corev1.ScopedResourceSelectorRequirement{}.OpenAPIModelName()}, } } -func schema_k8sio_api_core_v1_ScopedResourceSelectorRequirement(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_k8sio_api_networking_v1_Ingress(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "A scoped-resource selector requirement is a selector that contains values, a scope name, and an operator that relates the scope name and values.", + Description: "Ingress is a collection of rules that allow inbound connections to reach the endpoints defined by a backend. An Ingress can be configured to give services externally-reachable urls, load balance traffic, terminate SSL, offer name based virtual hosting etc.", Type: []string{"object"}, Properties: map[string]spec.Schema{ - "scopeName": { + "kind": { SchemaProps: spec.SchemaProps{ - Description: "The name of the scope that the selector applies to.\n\nPossible enum values:\n - `\"BestEffort\"` Match all pod objects that have best effort quality of service\n - `\"CrossNamespacePodAffinity\"` Match all pod objects that have cross-namespace pod (anti)affinity mentioned.\n - `\"NotBestEffort\"` Match all pod objects that do not have best effort quality of service\n - `\"NotTerminating\"` Match all pod objects where spec.activeDeadlineSeconds is nil\n - `\"PriorityClass\"` Match all pod objects that have priority class mentioned\n - `\"Terminating\"` Match all pod objects where spec.activeDeadlineSeconds >=0\n - `\"VolumeAttributesClass\"` Match all pvc objects that have volume attributes class mentioned.", - Default: "", + Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", Type: []string{"string"}, Format: "", - Enum: []interface{}{"BestEffort", "CrossNamespacePodAffinity", "NotBestEffort", "NotTerminating", "PriorityClass", "Terminating", "VolumeAttributesClass"}, }, }, - "operator": { + "apiVersion": { SchemaProps: spec.SchemaProps{ - Description: "Represents a scope's relationship to a set of values. Valid operators are In, NotIn, Exists, DoesNotExist.\n\nPossible enum values:\n - `\"DoesNotExist\"`\n - `\"Exists\"`\n - `\"In\"`\n - `\"NotIn\"`", - Default: "", + Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", Type: []string{"string"}, Format: "", - Enum: []interface{}{"DoesNotExist", "Exists", "In", "NotIn"}, }, }, - "values": { - VendorExtensible: spec.VendorExtensible{ - Extensions: spec.Extensions{ - "x-kubernetes-list-type": "atomic", - }, + "metadata": { + SchemaProps: spec.SchemaProps{ + Description: "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata", + Default: map[string]interface{}{}, + Ref: ref(metav1.ObjectMeta{}.OpenAPIModelName()), + }, + }, + "spec": { + SchemaProps: spec.SchemaProps{ + Description: "spec is the desired state of the Ingress. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status", + Default: map[string]interface{}{}, + Ref: ref(networkingv1.IngressSpec{}.OpenAPIModelName()), }, + }, + "status": { SchemaProps: spec.SchemaProps{ - Description: "An array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. This array is replaced during a strategic merge patch.", - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: "", - Type: []string{"string"}, - Format: "", - }, - }, - }, + Description: "status is the current state of the Ingress. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status", + Default: map[string]interface{}{}, + Ref: ref(networkingv1.IngressStatus{}.OpenAPIModelName()), }, }, }, - Required: []string{"scopeName", "operator"}, }, }, + Dependencies: []string{ + networkingv1.IngressSpec{}.OpenAPIModelName(), networkingv1.IngressStatus{}.OpenAPIModelName(), metav1.ObjectMeta{}.OpenAPIModelName()}, } } -func schema_k8sio_api_core_v1_SeccompProfile(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_k8sio_api_networking_v1_IngressBackend(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "SeccompProfile defines a pod/container's seccomp profile settings. Only one profile source may be set.", + Description: "IngressBackend describes all endpoints for a given service and port.", Type: []string{"object"}, Properties: map[string]spec.Schema{ - "type": { + "service": { SchemaProps: spec.SchemaProps{ - Description: "type indicates which kind of seccomp profile will be applied. Valid options are:\n\nLocalhost - a profile defined in a file on the node should be used. RuntimeDefault - the container runtime default profile should be used. Unconfined - no profile should be applied.\n\nPossible enum values:\n - `\"Localhost\"` indicates a profile defined in a file on the node should be used. The file's location relative to /seccomp.\n - `\"RuntimeDefault\"` represents the default container runtime seccomp profile.\n - `\"Unconfined\"` indicates no seccomp profile is applied (A.K.A. unconfined).", - Default: "", - Type: []string{"string"}, - Format: "", - Enum: []interface{}{"Localhost", "RuntimeDefault", "Unconfined"}, + Description: "service references a service as a backend. This is a mutually exclusive setting with \"Resource\".", + Ref: ref(networkingv1.IngressServiceBackend{}.OpenAPIModelName()), }, }, - "localhostProfile": { + "resource": { SchemaProps: spec.SchemaProps{ - Description: "localhostProfile indicates a profile defined in a file on the node should be used. The profile must be preconfigured on the node to work. Must be a descending path, relative to the kubelet's configured seccomp profile location. Must be set if type is \"Localhost\". Must NOT be set for any other type.", - Type: []string{"string"}, - Format: "", - }, - }, - }, - Required: []string{"type"}, - }, - VendorExtensible: spec.VendorExtensible{ - Extensions: spec.Extensions{ - "x-kubernetes-unions": []interface{}{ - map[string]interface{}{ - "discriminator": "type", - "fields-to-discriminateBy": map[string]interface{}{ - "localhostProfile": "LocalhostProfile", - }, + Description: "resource is an ObjectRef to another Kubernetes resource in the namespace of the Ingress object. If resource is specified, a service.Name and service.Port must not be specified. This is a mutually exclusive setting with \"Service\".", + Ref: ref(corev1.TypedLocalObjectReference{}.OpenAPIModelName()), }, }, }, }, }, + Dependencies: []string{ + corev1.TypedLocalObjectReference{}.OpenAPIModelName(), networkingv1.IngressServiceBackend{}.OpenAPIModelName()}, } } -func schema_k8sio_api_core_v1_Secret(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_k8sio_api_networking_v1_IngressClass(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "Secret holds secret data of a certain type. The total bytes of the values in the Data field must be less than MaxSecretSize bytes.", + Description: "IngressClass represents the class of the Ingress, referenced by the Ingress Spec. The `ingressclass.kubernetes.io/is-default-class` annotation can be used to indicate that an IngressClass should be considered default. When a single IngressClass resource has this annotation set to true, new Ingress resources without a class specified will be assigned this default class.", Type: []string{"object"}, Properties: map[string]spec.Schema{ "kind": { @@ -46669,134 +49273,156 @@ func schema_k8sio_api_core_v1_Secret(ref common.ReferenceCallback) common.OpenAP Ref: ref(metav1.ObjectMeta{}.OpenAPIModelName()), }, }, - "immutable": { + "spec": { SchemaProps: spec.SchemaProps{ - Description: "Immutable, if set to true, ensures that data stored in the Secret cannot be updated (only object metadata can be modified). If not set to true, the field can be modified at any time. Defaulted to nil.", - Type: []string{"boolean"}, + Description: "spec is the desired state of the IngressClass. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status", + Default: map[string]interface{}{}, + Ref: ref(networkingv1.IngressClassSpec{}.OpenAPIModelName()), + }, + }, + }, + }, + }, + Dependencies: []string{ + networkingv1.IngressClassSpec{}.OpenAPIModelName(), metav1.ObjectMeta{}.OpenAPIModelName()}, + } +} + +func schema_k8sio_api_networking_v1_IngressClassList(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "IngressClassList is a collection of IngressClasses.", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "kind": { + SchemaProps: spec.SchemaProps{ + Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + Type: []string{"string"}, Format: "", }, }, - "data": { + "apiVersion": { SchemaProps: spec.SchemaProps{ - Description: "Data contains the secret data. Each key must consist of alphanumeric characters, '-', '_' or '.'. The serialized form of the secret data is a base64 encoded string, representing the arbitrary (possibly non-string) data value here. Described in https://tools.ietf.org/html/rfc4648#section-4", - Type: []string{"object"}, - AdditionalProperties: &spec.SchemaOrBool{ - Allows: true, - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Type: []string{"string"}, - Format: "byte", - }, - }, - }, + Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + Type: []string{"string"}, + Format: "", }, }, - "stringData": { + "metadata": { SchemaProps: spec.SchemaProps{ - Description: "stringData allows specifying non-binary secret data in string form. It is provided as a write-only input field for convenience. All keys and values are merged into the data field on write, overwriting any existing values. The stringData field is never output when reading from the API.", - Type: []string{"object"}, - AdditionalProperties: &spec.SchemaOrBool{ - Allows: true, + Description: "Standard list metadata.", + Default: map[string]interface{}{}, + Ref: ref(metav1.ListMeta{}.OpenAPIModelName()), + }, + }, + "items": { + SchemaProps: spec.SchemaProps{ + Description: "items is the list of IngressClasses.", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ - Default: "", - Type: []string{"string"}, - Format: "", + Default: map[string]interface{}{}, + Ref: ref(networkingv1.IngressClass{}.OpenAPIModelName()), }, }, }, }, }, - "type": { - SchemaProps: spec.SchemaProps{ - Description: "Used to facilitate programmatic handling of secret data. More info: https://kubernetes.io/docs/concepts/configuration/secret/#secret-types", - Type: []string{"string"}, - Format: "", - }, - }, }, + Required: []string{"items"}, }, }, Dependencies: []string{ - metav1.ObjectMeta{}.OpenAPIModelName()}, + networkingv1.IngressClass{}.OpenAPIModelName(), metav1.ListMeta{}.OpenAPIModelName()}, } } -func schema_k8sio_api_core_v1_SecretEnvSource(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_k8sio_api_networking_v1_IngressClassParametersReference(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "SecretEnvSource selects a Secret to populate the environment variables with.\n\nThe contents of the target Secret's Data field will represent the key-value pairs as environment variables.", + Description: "IngressClassParametersReference identifies an API object. This can be used to specify a cluster or namespace-scoped resource.", Type: []string{"object"}, Properties: map[string]spec.Schema{ + "apiGroup": { + SchemaProps: spec.SchemaProps{ + Description: "apiGroup is the group for the resource being referenced. If APIGroup is not specified, the specified Kind must be in the core API group. For any other third-party types, APIGroup is required.", + Type: []string{"string"}, + Format: "", + }, + }, + "kind": { + SchemaProps: spec.SchemaProps{ + Description: "kind is the type of resource being referenced.", + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, "name": { SchemaProps: spec.SchemaProps{ - Description: "Name of the referent. This field is effectively required, but due to backwards compatibility is allowed to be empty. Instances of this type with an empty value here are almost certainly wrong. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", + Description: "name is the name of resource being referenced.", Default: "", Type: []string{"string"}, Format: "", }, }, - "optional": { + "scope": { SchemaProps: spec.SchemaProps{ - Description: "Specify whether the Secret must be defined", - Type: []string{"boolean"}, + Description: "scope represents if this refers to a cluster or namespace scoped resource. This may be set to \"Cluster\" (default) or \"Namespace\".", + Type: []string{"string"}, + Format: "", + }, + }, + "namespace": { + SchemaProps: spec.SchemaProps{ + Description: "namespace is the namespace of the resource being referenced. This field is required when scope is set to \"Namespace\" and must be unset when scope is set to \"Cluster\".", + Type: []string{"string"}, Format: "", }, }, }, + Required: []string{"kind", "name"}, }, }, } } -func schema_k8sio_api_core_v1_SecretKeySelector(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_k8sio_api_networking_v1_IngressClassSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "SecretKeySelector selects a key of a Secret.", + Description: "IngressClassSpec provides information about the class of an Ingress.", Type: []string{"object"}, Properties: map[string]spec.Schema{ - "name": { - SchemaProps: spec.SchemaProps{ - Description: "Name of the referent. This field is effectively required, but due to backwards compatibility is allowed to be empty. Instances of this type with an empty value here are almost certainly wrong. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - Default: "", - Type: []string{"string"}, - Format: "", - }, - }, - "key": { + "controller": { SchemaProps: spec.SchemaProps{ - Description: "The key of the secret to select from. Must be a valid secret key.", - Default: "", + Description: "controller refers to the name of the controller that should handle this class. This allows for different \"flavors\" that are controlled by the same controller. For example, you may have different parameters for the same implementing controller. This should be specified as a domain-prefixed path no more than 250 characters in length, e.g. \"acme.io/ingress-controller\". This field is immutable.", Type: []string{"string"}, Format: "", }, }, - "optional": { + "parameters": { SchemaProps: spec.SchemaProps{ - Description: "Specify whether the Secret or its key must be defined", - Type: []string{"boolean"}, - Format: "", + Description: "parameters is a link to a custom resource containing additional configuration for the controller. This is optional if the controller does not require extra parameters.", + Ref: ref(networkingv1.IngressClassParametersReference{}.OpenAPIModelName()), }, }, }, - Required: []string{"key"}, - }, - VendorExtensible: spec.VendorExtensible{ - Extensions: spec.Extensions{ - "x-kubernetes-map-type": "atomic", - }, }, }, + Dependencies: []string{ + networkingv1.IngressClassParametersReference{}.OpenAPIModelName()}, } } -func schema_k8sio_api_core_v1_SecretList(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_k8sio_api_networking_v1_IngressList(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "SecretList is a list of Secret.", + Description: "IngressList is a collection of Ingress.", Type: []string{"object"}, Properties: map[string]spec.Schema{ "kind": { @@ -46815,20 +49441,20 @@ func schema_k8sio_api_core_v1_SecretList(ref common.ReferenceCallback) common.Op }, "metadata": { SchemaProps: spec.SchemaProps{ - Description: "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + Description: "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata", Default: map[string]interface{}{}, Ref: ref(metav1.ListMeta{}.OpenAPIModelName()), }, }, "items": { SchemaProps: spec.SchemaProps{ - Description: "Items is a list of secret objects. More info: https://kubernetes.io/docs/concepts/configuration/secret", + Description: "items is the list of Ingress.", Type: []string{"array"}, Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref(corev1.Secret{}.OpenAPIModelName()), + Ref: ref(networkingv1.Ingress{}.OpenAPIModelName()), }, }, }, @@ -46839,418 +49465,341 @@ func schema_k8sio_api_core_v1_SecretList(ref common.ReferenceCallback) common.Op }, }, Dependencies: []string{ - corev1.Secret{}.OpenAPIModelName(), metav1.ListMeta{}.OpenAPIModelName()}, + networkingv1.Ingress{}.OpenAPIModelName(), metav1.ListMeta{}.OpenAPIModelName()}, } } -func schema_k8sio_api_core_v1_SecretProjection(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_k8sio_api_networking_v1_IngressLoadBalancerIngress(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "Adapts a secret into a projected volume.\n\nThe contents of the target Secret's Data field will be presented in a projected volume as files using the keys in the Data field as the file names. Note that this is identical to a secret volume source without the default mode.", + Description: "IngressLoadBalancerIngress represents the status of a load-balancer ingress point.", Type: []string{"object"}, Properties: map[string]spec.Schema{ - "name": { + "ip": { SchemaProps: spec.SchemaProps{ - Description: "Name of the referent. This field is effectively required, but due to backwards compatibility is allowed to be empty. Instances of this type with an empty value here are almost certainly wrong. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - Default: "", + Description: "ip is set for load-balancer ingress points that are IP based.", Type: []string{"string"}, Format: "", }, }, - "items": { + "hostname": { + SchemaProps: spec.SchemaProps{ + Description: "hostname is set for load-balancer ingress points that are DNS based.", + Type: []string{"string"}, + Format: "", + }, + }, + "ports": { VendorExtensible: spec.VendorExtensible{ Extensions: spec.Extensions{ "x-kubernetes-list-type": "atomic", }, }, SchemaProps: spec.SchemaProps{ - Description: "items if unspecified, each key-value pair in the Data field of the referenced Secret will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the Secret, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'.", + Description: "ports provides information about the ports exposed by this LoadBalancer.", Type: []string{"array"}, Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref(corev1.KeyToPath{}.OpenAPIModelName()), + Ref: ref(networkingv1.IngressPortStatus{}.OpenAPIModelName()), }, }, }, }, }, - "optional": { - SchemaProps: spec.SchemaProps{ - Description: "optional field specify whether the Secret or its key must be defined", - Type: []string{"boolean"}, - Format: "", - }, - }, }, }, }, Dependencies: []string{ - corev1.KeyToPath{}.OpenAPIModelName()}, - } -} - -func schema_k8sio_api_core_v1_SecretReference(ref common.ReferenceCallback) common.OpenAPIDefinition { - return common.OpenAPIDefinition{ - Schema: spec.Schema{ - SchemaProps: spec.SchemaProps{ - Description: "SecretReference represents a Secret Reference. It has enough information to retrieve secret in any namespace", - Type: []string{"object"}, - Properties: map[string]spec.Schema{ - "name": { - SchemaProps: spec.SchemaProps{ - Description: "name is unique within a namespace to reference a secret resource.", - Type: []string{"string"}, - Format: "", - }, - }, - "namespace": { - SchemaProps: spec.SchemaProps{ - Description: "namespace defines the space within which the secret name must be unique.", - Type: []string{"string"}, - Format: "", - }, - }, - }, - }, - VendorExtensible: spec.VendorExtensible{ - Extensions: spec.Extensions{ - "x-kubernetes-map-type": "atomic", - }, - }, - }, + networkingv1.IngressPortStatus{}.OpenAPIModelName()}, } } -func schema_k8sio_api_core_v1_SecretVolumeSource(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_k8sio_api_networking_v1_IngressLoadBalancerStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "Adapts a Secret into a volume.\n\nThe contents of the target Secret's Data field will be presented in a volume as files using the keys in the Data field as the file names. Secret volumes support ownership management and SELinux relabeling.", + Description: "IngressLoadBalancerStatus represents the status of a load-balancer.", Type: []string{"object"}, Properties: map[string]spec.Schema{ - "secretName": { - SchemaProps: spec.SchemaProps{ - Description: "secretName is the name of the secret in the pod's namespace to use. More info: https://kubernetes.io/docs/concepts/storage/volumes#secret", - Type: []string{"string"}, - Format: "", - }, - }, - "items": { + "ingress": { VendorExtensible: spec.VendorExtensible{ Extensions: spec.Extensions{ "x-kubernetes-list-type": "atomic", }, }, SchemaProps: spec.SchemaProps{ - Description: "items If unspecified, each key-value pair in the Data field of the referenced Secret will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the Secret, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'.", + Description: "ingress is a list containing ingress points for the load-balancer.", Type: []string{"array"}, Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref(corev1.KeyToPath{}.OpenAPIModelName()), + Ref: ref(networkingv1.IngressLoadBalancerIngress{}.OpenAPIModelName()), }, }, }, }, }, - "defaultMode": { - SchemaProps: spec.SchemaProps{ - Description: "defaultMode is Optional: mode bits used to set permissions on created files by default. Must be an octal value between 0000 and 0777 or a decimal value between 0 and 511. YAML accepts both octal and decimal values, JSON requires decimal values for mode bits. Defaults to 0644. Directories within the path are not affected by this setting. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set.", - Type: []string{"integer"}, - Format: "int32", - }, - }, - "optional": { - SchemaProps: spec.SchemaProps{ - Description: "optional field specify whether the Secret or its keys must be defined", - Type: []string{"boolean"}, - Format: "", - }, - }, }, }, }, Dependencies: []string{ - corev1.KeyToPath{}.OpenAPIModelName()}, + networkingv1.IngressLoadBalancerIngress{}.OpenAPIModelName()}, } } -func schema_k8sio_api_core_v1_SecurityContext(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_k8sio_api_networking_v1_IngressPortStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "SecurityContext holds security configuration that will be applied to a container. Some fields are present in both SecurityContext and PodSecurityContext. When both are set, the values in SecurityContext take precedence.", + Description: "IngressPortStatus represents the error condition of a service port", Type: []string{"object"}, Properties: map[string]spec.Schema{ - "capabilities": { - SchemaProps: spec.SchemaProps{ - Description: "The capabilities to add/drop when running containers. Defaults to the default set of capabilities granted by the container runtime. Note that this field cannot be set when spec.os.name is windows.", - Ref: ref(corev1.Capabilities{}.OpenAPIModelName()), - }, - }, - "privileged": { - SchemaProps: spec.SchemaProps{ - Description: "Run container in privileged mode. Processes in privileged containers are essentially equivalent to root on the host. Defaults to false. Note that this field cannot be set when spec.os.name is windows.", - Type: []string{"boolean"}, - Format: "", - }, - }, - "seLinuxOptions": { - SchemaProps: spec.SchemaProps{ - Description: "The SELinux context to be applied to the container. If unspecified, the container runtime will allocate a random SELinux context for each container. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. Note that this field cannot be set when spec.os.name is windows.", - Ref: ref(corev1.SELinuxOptions{}.OpenAPIModelName()), - }, - }, - "windowsOptions": { - SchemaProps: spec.SchemaProps{ - Description: "The Windows specific settings applied to all containers. If unspecified, the options from the PodSecurityContext will be used. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. Note that this field cannot be set when spec.os.name is linux.", - Ref: ref(corev1.WindowsSecurityContextOptions{}.OpenAPIModelName()), - }, - }, - "runAsUser": { - SchemaProps: spec.SchemaProps{ - Description: "The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. Note that this field cannot be set when spec.os.name is windows.", - Type: []string{"integer"}, - Format: "int64", - }, - }, - "runAsGroup": { + "port": { SchemaProps: spec.SchemaProps{ - Description: "The GID to run the entrypoint of the container process. Uses runtime default if unset. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. Note that this field cannot be set when spec.os.name is windows.", + Description: "port is the port number of the ingress port.", + Default: 0, Type: []string{"integer"}, - Format: "int64", - }, - }, - "runAsNonRoot": { - SchemaProps: spec.SchemaProps{ - Description: "Indicates that the container must run as a non-root user. If true, the Kubelet will validate the image at runtime to ensure that it does not run as UID 0 (root) and fail to start the container if it does. If unset or false, no such validation will be performed. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence.", - Type: []string{"boolean"}, - Format: "", - }, - }, - "readOnlyRootFilesystem": { - SchemaProps: spec.SchemaProps{ - Description: "Whether this container has a read-only root filesystem. Default is false. Note that this field cannot be set when spec.os.name is windows.", - Type: []string{"boolean"}, - Format: "", + Format: "int32", }, }, - "allowPrivilegeEscalation": { + "protocol": { SchemaProps: spec.SchemaProps{ - Description: "AllowPrivilegeEscalation controls whether a process can gain more privileges than its parent process. This bool directly controls if the no_new_privs flag will be set on the container process. AllowPrivilegeEscalation is true always when the container is: 1) run as Privileged 2) has CAP_SYS_ADMIN Note that this field cannot be set when spec.os.name is windows.", - Type: []string{"boolean"}, + Description: "protocol is the protocol of the ingress port. The supported values are: \"TCP\", \"UDP\", \"SCTP\"\n\nPossible enum values:\n - `\"SCTP\"` is the SCTP protocol.\n - `\"TCP\"` is the TCP protocol.\n - `\"UDP\"` is the UDP protocol.", + Default: "", + Type: []string{"string"}, Format: "", + Enum: []interface{}{"SCTP", "TCP", "UDP"}, }, }, - "procMount": { + "error": { SchemaProps: spec.SchemaProps{ - Description: "procMount denotes the type of proc mount to use for the containers. The default value is Default which uses the container runtime defaults for readonly paths and masked paths. This requires the ProcMountType feature flag to be enabled. Note that this field cannot be set when spec.os.name is windows.\n\nPossible enum values:\n - `\"Default\"` uses the container runtime defaults for readonly and masked paths for /proc. Most container runtimes mask certain paths in /proc to avoid accidental security exposure of special devices or information.\n - `\"Unmasked\"` bypasses the default masking behavior of the container runtime and ensures the newly created /proc the container stays in tact with no modifications.", + Description: "error is to record the problem with the service port The format of the error shall comply with the following rules: - built-in error values shall be specified in this file and those shall use\n CamelCase names\n- cloud provider specific error values must have names that comply with the\n format foo.example.com/CamelCase.", Type: []string{"string"}, Format: "", - Enum: []interface{}{"Default", "Unmasked"}, - }, - }, - "seccompProfile": { - SchemaProps: spec.SchemaProps{ - Description: "The seccomp options to use by this container. If seccomp options are provided at both the pod & container level, the container options override the pod options. Note that this field cannot be set when spec.os.name is windows.", - Ref: ref(corev1.SeccompProfile{}.OpenAPIModelName()), - }, - }, - "appArmorProfile": { - SchemaProps: spec.SchemaProps{ - Description: "appArmorProfile is the AppArmor options to use by this container. If set, this profile overrides the pod's appArmorProfile. Note that this field cannot be set when spec.os.name is windows.", - Ref: ref(corev1.AppArmorProfile{}.OpenAPIModelName()), }, }, }, + Required: []string{"port", "protocol"}, }, }, - Dependencies: []string{ - corev1.AppArmorProfile{}.OpenAPIModelName(), corev1.Capabilities{}.OpenAPIModelName(), corev1.SELinuxOptions{}.OpenAPIModelName(), corev1.SeccompProfile{}.OpenAPIModelName(), corev1.WindowsSecurityContextOptions{}.OpenAPIModelName()}, } } -func schema_k8sio_api_core_v1_SerializedReference(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_k8sio_api_networking_v1_IngressRule(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "SerializedReference is a reference to serialized object.", + Description: "IngressRule represents the rules mapping the paths under a specified host to the related backend services. Incoming requests are first evaluated for a host match, then routed to the backend associated with the matching IngressRuleValue.", Type: []string{"object"}, Properties: map[string]spec.Schema{ - "kind": { - SchemaProps: spec.SchemaProps{ - Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", - Type: []string{"string"}, - Format: "", - }, - }, - "apiVersion": { + "host": { SchemaProps: spec.SchemaProps{ - Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + Description: "host is the fully qualified domain name of a network host, as defined by RFC 3986. Note the following deviations from the \"host\" part of the URI as defined in RFC 3986: 1. IPs are not allowed. Currently an IngressRuleValue can only apply to\n the IP in the Spec of the parent Ingress.\n2. The `:` delimiter is not respected because ports are not allowed.\n\t Currently the port of an Ingress is implicitly :80 for http and\n\t :443 for https.\nBoth these may change in the future. Incoming requests are matched against the host before the IngressRuleValue. If the host is unspecified, the Ingress routes all traffic based on the specified IngressRuleValue.\n\nhost can be \"precise\" which is a domain name without the terminating dot of a network host (e.g. \"foo.bar.com\") or \"wildcard\", which is a domain name prefixed with a single wildcard label (e.g. \"*.foo.com\"). The wildcard character '*' must appear by itself as the first DNS label and matches only a single label. You cannot have a wildcard label by itself (e.g. Host == \"*\"). Requests will be matched against the Host field in the following way: 1. If host is precise, the request matches this rule if the http host header is equal to Host. 2. If host is a wildcard, then the request matches this rule if the http host header is to equal to the suffix (removing the first label) of the wildcard rule.", Type: []string{"string"}, Format: "", }, }, - "reference": { + "http": { SchemaProps: spec.SchemaProps{ - Description: "The reference to an object in the system.", - Default: map[string]interface{}{}, - Ref: ref(corev1.ObjectReference{}.OpenAPIModelName()), + Ref: ref(networkingv1.HTTPIngressRuleValue{}.OpenAPIModelName()), }, }, }, }, }, Dependencies: []string{ - corev1.ObjectReference{}.OpenAPIModelName()}, + networkingv1.HTTPIngressRuleValue{}.OpenAPIModelName()}, } } -func schema_k8sio_api_core_v1_Service(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_k8sio_api_networking_v1_IngressRuleValue(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "Service is a named abstraction of software service (for example, mysql) consisting of local port (for example 3306) that the proxy listens on, and the selector that determines which pods will answer requests sent through the proxy.", + Description: "IngressRuleValue represents a rule to apply against incoming requests. If the rule is satisfied, the request is routed to the specified backend. Currently mixing different types of rules in a single Ingress is disallowed, so exactly one of the following must be set.", Type: []string{"object"}, Properties: map[string]spec.Schema{ - "kind": { + "http": { SchemaProps: spec.SchemaProps{ - Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", - Type: []string{"string"}, - Format: "", + Ref: ref(networkingv1.HTTPIngressRuleValue{}.OpenAPIModelName()), }, }, - "apiVersion": { + }, + }, + }, + Dependencies: []string{ + networkingv1.HTTPIngressRuleValue{}.OpenAPIModelName()}, + } +} + +func schema_k8sio_api_networking_v1_IngressServiceBackend(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "IngressServiceBackend references a Kubernetes Service as a Backend.", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "name": { SchemaProps: spec.SchemaProps{ - Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + Description: "name is the referenced service. The service must exist in the same namespace as the Ingress object.", + Default: "", Type: []string{"string"}, Format: "", }, }, - "metadata": { - SchemaProps: spec.SchemaProps{ - Description: "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata", - Default: map[string]interface{}{}, - Ref: ref(metav1.ObjectMeta{}.OpenAPIModelName()), - }, - }, - "spec": { - SchemaProps: spec.SchemaProps{ - Description: "Spec defines the behavior of a service. https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status", - Default: map[string]interface{}{}, - Ref: ref(corev1.ServiceSpec{}.OpenAPIModelName()), - }, - }, - "status": { + "port": { SchemaProps: spec.SchemaProps{ - Description: "Most recently observed status of the service. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status", + Description: "port of the referenced service. A port name or port number is required for a IngressServiceBackend.", Default: map[string]interface{}{}, - Ref: ref(corev1.ServiceStatus{}.OpenAPIModelName()), + Ref: ref(networkingv1.ServiceBackendPort{}.OpenAPIModelName()), }, }, }, + Required: []string{"name"}, }, }, Dependencies: []string{ - corev1.ServiceSpec{}.OpenAPIModelName(), corev1.ServiceStatus{}.OpenAPIModelName(), metav1.ObjectMeta{}.OpenAPIModelName()}, + networkingv1.ServiceBackendPort{}.OpenAPIModelName()}, } } -func schema_k8sio_api_core_v1_ServiceAccount(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_k8sio_api_networking_v1_IngressSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "ServiceAccount binds together: * a name, understood by users, and perhaps by peripheral systems, for an identity * a principal that can be authenticated and authorized * a set of secrets", + Description: "IngressSpec describes the Ingress the user wishes to exist.", Type: []string{"object"}, Properties: map[string]spec.Schema{ - "kind": { + "ingressClassName": { SchemaProps: spec.SchemaProps{ - Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + Description: "ingressClassName is the name of an IngressClass cluster resource. Ingress controller implementations use this field to know whether they should be serving this Ingress resource, by a transitive connection (controller -> IngressClass -> Ingress resource). Although the `kubernetes.io/ingress.class` annotation (simple constant name) was never formally defined, it was widely supported by Ingress controllers to create a direct binding between Ingress controller and Ingress resources. Newly created Ingress resources should prefer using the field. However, even though the annotation is officially deprecated, for backwards compatibility reasons, ingress controllers should still honor that annotation if present.", Type: []string{"string"}, Format: "", }, }, - "apiVersion": { + "defaultBackend": { SchemaProps: spec.SchemaProps{ - Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", - Type: []string{"string"}, - Format: "", + Description: "defaultBackend is the backend that should handle requests that don't match any rule. If Rules are not specified, DefaultBackend must be specified. If DefaultBackend is not set, the handling of requests that do not match any of the rules will be up to the Ingress controller.", + Ref: ref(networkingv1.IngressBackend{}.OpenAPIModelName()), }, }, - "metadata": { + "tls": { + VendorExtensible: spec.VendorExtensible{ + Extensions: spec.Extensions{ + "x-kubernetes-list-type": "atomic", + }, + }, SchemaProps: spec.SchemaProps{ - Description: "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata", - Default: map[string]interface{}{}, - Ref: ref(metav1.ObjectMeta{}.OpenAPIModelName()), + Description: "tls represents the TLS configuration. Currently the Ingress only supports a single TLS port, 443. If multiple members of this list specify different hosts, they will be multiplexed on the same port according to the hostname specified through the SNI TLS extension, if the ingress controller fulfilling the ingress supports SNI.", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref(networkingv1.IngressTLS{}.OpenAPIModelName()), + }, + }, + }, }, }, - "secrets": { + "rules": { VendorExtensible: spec.VendorExtensible{ Extensions: spec.Extensions{ - "x-kubernetes-list-map-keys": []interface{}{ - "name", - }, - "x-kubernetes-list-type": "map", - "x-kubernetes-patch-merge-key": "name", - "x-kubernetes-patch-strategy": "merge", + "x-kubernetes-list-type": "atomic", }, }, SchemaProps: spec.SchemaProps{ - Description: "Secrets is a list of the secrets in the same namespace that pods running using this ServiceAccount are allowed to use. Pods are only limited to this list if this service account has a \"kubernetes.io/enforce-mountable-secrets\" annotation set to \"true\". The \"kubernetes.io/enforce-mountable-secrets\" annotation is deprecated since v1.32. Prefer separate namespaces to isolate access to mounted secrets. This field should not be used to find auto-generated service account token secrets for use outside of pods. Instead, tokens can be requested directly using the TokenRequest API, or service account token secrets can be manually created. More info: https://kubernetes.io/docs/concepts/configuration/secret", + Description: "rules is a list of host rules used to configure the Ingress. If unspecified, or no rule matches, all traffic is sent to the default backend.", Type: []string{"array"}, Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref(corev1.ObjectReference{}.OpenAPIModelName()), + Ref: ref(networkingv1.IngressRule{}.OpenAPIModelName()), }, }, }, }, }, - "imagePullSecrets": { + }, + }, + }, + Dependencies: []string{ + networkingv1.IngressBackend{}.OpenAPIModelName(), networkingv1.IngressRule{}.OpenAPIModelName(), networkingv1.IngressTLS{}.OpenAPIModelName()}, + } +} + +func schema_k8sio_api_networking_v1_IngressStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "IngressStatus describe the current state of the Ingress.", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "loadBalancer": { + SchemaProps: spec.SchemaProps{ + Description: "loadBalancer contains the current status of the load-balancer.", + Default: map[string]interface{}{}, + Ref: ref(networkingv1.IngressLoadBalancerStatus{}.OpenAPIModelName()), + }, + }, + }, + }, + }, + Dependencies: []string{ + networkingv1.IngressLoadBalancerStatus{}.OpenAPIModelName()}, + } +} + +func schema_k8sio_api_networking_v1_IngressTLS(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "IngressTLS describes the transport layer security associated with an ingress.", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "hosts": { VendorExtensible: spec.VendorExtensible{ Extensions: spec.Extensions{ "x-kubernetes-list-type": "atomic", }, }, SchemaProps: spec.SchemaProps{ - Description: "ImagePullSecrets is a list of references to secrets in the same namespace to use for pulling any images in pods that reference this ServiceAccount. ImagePullSecrets are distinct from Secrets because Secrets can be mounted in the pod, but ImagePullSecrets are only accessed by the kubelet. More info: https://kubernetes.io/docs/concepts/containers/images/#specifying-imagepullsecrets-on-a-pod", + Description: "hosts is a list of hosts included in the TLS certificate. The values in this list must match the name/s used in the tlsSecret. Defaults to the wildcard host setting for the loadbalancer controller fulfilling this Ingress, if left unspecified.", Type: []string{"array"}, Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref(corev1.LocalObjectReference{}.OpenAPIModelName()), + Default: "", + Type: []string{"string"}, + Format: "", }, }, }, }, }, - "automountServiceAccountToken": { + "secretName": { SchemaProps: spec.SchemaProps{ - Description: "AutomountServiceAccountToken indicates whether pods running as this service account should have an API token automatically mounted. Can be overridden at the pod level.", - Type: []string{"boolean"}, + Description: "secretName is the name of the secret used to terminate TLS traffic on port 443. Field is left optional to allow TLS routing based on SNI hostname alone. If the SNI host in a listener conflicts with the \"Host\" header field used by an IngressRule, the SNI host is used for termination and value of the \"Host\" header is used for routing.", + Type: []string{"string"}, Format: "", }, }, }, }, }, - Dependencies: []string{ - corev1.LocalObjectReference{}.OpenAPIModelName(), corev1.ObjectReference{}.OpenAPIModelName(), metav1.ObjectMeta{}.OpenAPIModelName()}, } } -func schema_k8sio_api_core_v1_ServiceAccountList(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_k8sio_api_networking_v1_NetworkPolicy(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "ServiceAccountList is a list of ServiceAccount objects", + Description: "NetworkPolicy describes what network traffic is allowed for a set of Pods", Type: []string{"object"}, Properties: map[string]spec.Schema{ "kind": { @@ -47266,78 +49815,140 @@ func schema_k8sio_api_core_v1_ServiceAccountList(ref common.ReferenceCallback) c Type: []string{"string"}, Format: "", }, - }, - "metadata": { + }, + "metadata": { + SchemaProps: spec.SchemaProps{ + Description: "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata", + Default: map[string]interface{}{}, + Ref: ref(metav1.ObjectMeta{}.OpenAPIModelName()), + }, + }, + "spec": { + SchemaProps: spec.SchemaProps{ + Description: "spec represents the specification of the desired behavior for this NetworkPolicy.", + Default: map[string]interface{}{}, + Ref: ref(networkingv1.NetworkPolicySpec{}.OpenAPIModelName()), + }, + }, + }, + }, + }, + Dependencies: []string{ + networkingv1.NetworkPolicySpec{}.OpenAPIModelName(), metav1.ObjectMeta{}.OpenAPIModelName()}, + } +} + +func schema_k8sio_api_networking_v1_NetworkPolicyEgressRule(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "NetworkPolicyEgressRule describes a particular set of traffic that is allowed out of pods matched by a NetworkPolicySpec's podSelector. The traffic must match both ports and to. This type is beta-level in 1.8", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "ports": { + VendorExtensible: spec.VendorExtensible{ + Extensions: spec.Extensions{ + "x-kubernetes-list-type": "atomic", + }, + }, SchemaProps: spec.SchemaProps{ - Description: "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", - Default: map[string]interface{}{}, - Ref: ref(metav1.ListMeta{}.OpenAPIModelName()), + Description: "ports is a list of destination ports for outgoing traffic. Each item in this list is combined using a logical OR. If this field is empty or missing, this rule matches all ports (traffic not restricted by port). If this field is present and contains at least one item, then this rule allows traffic only if the traffic matches at least one port in the list.", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref(networkingv1.NetworkPolicyPort{}.OpenAPIModelName()), + }, + }, + }, }, }, - "items": { + "to": { + VendorExtensible: spec.VendorExtensible{ + Extensions: spec.Extensions{ + "x-kubernetes-list-type": "atomic", + }, + }, SchemaProps: spec.SchemaProps{ - Description: "List of ServiceAccounts. More info: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/", + Description: "to is a list of destinations for outgoing traffic of pods selected for this rule. Items in this list are combined using a logical OR operation. If this field is empty or missing, this rule matches all destinations (traffic not restricted by destination). If this field is present and contains at least one item, this rule allows traffic only if the traffic matches at least one item in the to list.", Type: []string{"array"}, Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref(corev1.ServiceAccount{}.OpenAPIModelName()), + Ref: ref(networkingv1.NetworkPolicyPeer{}.OpenAPIModelName()), }, }, }, }, }, }, - Required: []string{"items"}, }, }, Dependencies: []string{ - corev1.ServiceAccount{}.OpenAPIModelName(), metav1.ListMeta{}.OpenAPIModelName()}, + networkingv1.NetworkPolicyPeer{}.OpenAPIModelName(), networkingv1.NetworkPolicyPort{}.OpenAPIModelName()}, } } -func schema_k8sio_api_core_v1_ServiceAccountTokenProjection(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_k8sio_api_networking_v1_NetworkPolicyIngressRule(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "ServiceAccountTokenProjection represents a projected service account token volume. This projection can be used to insert a service account token into the pods runtime filesystem for use against APIs (Kubernetes API Server or otherwise).", + Description: "NetworkPolicyIngressRule describes a particular set of traffic that is allowed to the pods matched by a NetworkPolicySpec's podSelector. The traffic must match both ports and from.", Type: []string{"object"}, Properties: map[string]spec.Schema{ - "audience": { - SchemaProps: spec.SchemaProps{ - Description: "audience is the intended audience of the token. A recipient of a token must identify itself with an identifier specified in the audience of the token, and otherwise should reject the token. The audience defaults to the identifier of the apiserver.", - Type: []string{"string"}, - Format: "", + "ports": { + VendorExtensible: spec.VendorExtensible{ + Extensions: spec.Extensions{ + "x-kubernetes-list-type": "atomic", + }, }, - }, - "expirationSeconds": { SchemaProps: spec.SchemaProps{ - Description: "expirationSeconds is the requested duration of validity of the service account token. As the token approaches expiration, the kubelet volume plugin will proactively rotate the service account token. The kubelet will start trying to rotate the token if the token is older than 80 percent of its time to live or if the token is older than 24 hours.Defaults to 1 hour and must be at least 10 minutes.", - Type: []string{"integer"}, - Format: "int64", + Description: "ports is a list of ports which should be made accessible on the pods selected for this rule. Each item in this list is combined using a logical OR. If this field is empty or missing, this rule matches all ports (traffic not restricted by port). If this field is present and contains at least one item, then this rule allows traffic only if the traffic matches at least one port in the list.", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref(networkingv1.NetworkPolicyPort{}.OpenAPIModelName()), + }, + }, + }, }, }, - "path": { + "from": { + VendorExtensible: spec.VendorExtensible{ + Extensions: spec.Extensions{ + "x-kubernetes-list-type": "atomic", + }, + }, SchemaProps: spec.SchemaProps{ - Description: "path is the path relative to the mount point of the file to project the token into.", - Default: "", - Type: []string{"string"}, - Format: "", + Description: "from is a list of sources which should be able to access the pods selected for this rule. Items in this list are combined using a logical OR operation. If this field is empty or missing, this rule matches all sources (traffic not restricted by source). If this field is present and contains at least one item, this rule allows traffic only if the traffic matches at least one item in the from list.", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref(networkingv1.NetworkPolicyPeer{}.OpenAPIModelName()), + }, + }, + }, }, }, }, - Required: []string{"path"}, }, }, + Dependencies: []string{ + networkingv1.NetworkPolicyPeer{}.OpenAPIModelName(), networkingv1.NetworkPolicyPort{}.OpenAPIModelName()}, } } -func schema_k8sio_api_core_v1_ServiceList(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_k8sio_api_networking_v1_NetworkPolicyList(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "ServiceList holds a list of services.", + Description: "NetworkPolicyList is a list of NetworkPolicy objects.", Type: []string{"object"}, Properties: map[string]spec.Schema{ "kind": { @@ -47356,20 +49967,20 @@ func schema_k8sio_api_core_v1_ServiceList(ref common.ReferenceCallback) common.O }, "metadata": { SchemaProps: spec.SchemaProps{ - Description: "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + Description: "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata", Default: map[string]interface{}{}, Ref: ref(metav1.ListMeta{}.OpenAPIModelName()), }, }, "items": { SchemaProps: spec.SchemaProps{ - Description: "List of services", + Description: "items is a list of schema objects.", Type: []string{"array"}, Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref(corev1.Service{}.OpenAPIModelName()), + Ref: ref(networkingv1.NetworkPolicy{}.OpenAPIModelName()), }, }, }, @@ -47380,200 +49991,139 @@ func schema_k8sio_api_core_v1_ServiceList(ref common.ReferenceCallback) common.O }, }, Dependencies: []string{ - corev1.Service{}.OpenAPIModelName(), metav1.ListMeta{}.OpenAPIModelName()}, + networkingv1.NetworkPolicy{}.OpenAPIModelName(), metav1.ListMeta{}.OpenAPIModelName()}, } } -func schema_k8sio_api_core_v1_ServicePort(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_k8sio_api_networking_v1_NetworkPolicyPeer(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "ServicePort contains information on service's port.", + Description: "NetworkPolicyPeer describes a peer to allow traffic to/from. Only certain combinations of fields are allowed", Type: []string{"object"}, Properties: map[string]spec.Schema{ - "name": { - SchemaProps: spec.SchemaProps{ - Description: "The name of this port within the service. This must be a DNS_LABEL. All ports within a ServiceSpec must have unique names. When considering the endpoints for a Service, this must match the 'name' field in the EndpointPort. Optional if only one ServicePort is defined on this service.", - Type: []string{"string"}, - Format: "", - }, - }, - "protocol": { - SchemaProps: spec.SchemaProps{ - Description: "The IP protocol for this port. Supports \"TCP\", \"UDP\", and \"SCTP\". Default is TCP.\n\nPossible enum values:\n - `\"SCTP\"` is the SCTP protocol.\n - `\"TCP\"` is the TCP protocol.\n - `\"UDP\"` is the UDP protocol.", - Default: "TCP", - Type: []string{"string"}, - Format: "", - Enum: []interface{}{"SCTP", "TCP", "UDP"}, - }, - }, - "appProtocol": { - SchemaProps: spec.SchemaProps{ - Description: "The application protocol for this port. This is used as a hint for implementations to offer richer behavior for protocols that they understand. This field follows standard Kubernetes label syntax. Valid values are either:\n\n* Un-prefixed protocol names - reserved for IANA standard service names (as per RFC-6335 and https://www.iana.org/assignments/service-names).\n\n* Kubernetes-defined prefixed names:\n * 'kubernetes.io/h2c' - HTTP/2 prior knowledge over cleartext as described in https://www.rfc-editor.org/rfc/rfc9113.html#name-starting-http-2-with-prior-\n * 'kubernetes.io/ws' - WebSocket over cleartext as described in https://www.rfc-editor.org/rfc/rfc6455\n * 'kubernetes.io/wss' - WebSocket over TLS as described in https://www.rfc-editor.org/rfc/rfc6455\n\n* Other protocols should use implementation-defined prefixed names such as mycompany.com/my-custom-protocol.", - Type: []string{"string"}, - Format: "", - }, - }, - "port": { + "podSelector": { SchemaProps: spec.SchemaProps{ - Description: "The port that will be exposed by this service.", - Default: 0, - Type: []string{"integer"}, - Format: "int32", + Description: "podSelector is a label selector which selects pods. This field follows standard label selector semantics; if present but empty, it selects all pods.\n\nIf namespaceSelector is also set, then the NetworkPolicyPeer as a whole selects the pods matching podSelector in the Namespaces selected by NamespaceSelector. Otherwise it selects the pods matching podSelector in the policy's own namespace.", + Ref: ref(metav1.LabelSelector{}.OpenAPIModelName()), }, }, - "targetPort": { + "namespaceSelector": { SchemaProps: spec.SchemaProps{ - Description: "Number or name of the port to access on the pods targeted by the service. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. If this is a string, it will be looked up as a named port in the target Pod's container ports. If this is not specified, the value of the 'port' field is used (an identity map). This field is ignored for services with clusterIP=None, and should be omitted or set equal to the 'port' field. More info: https://kubernetes.io/docs/concepts/services-networking/service/#defining-a-service", - Ref: ref("k8s.io/apimachinery/pkg/util/intstr.IntOrString"), + Description: "namespaceSelector selects namespaces using cluster-scoped labels. This field follows standard label selector semantics; if present but empty, it selects all namespaces.\n\nIf podSelector is also set, then the NetworkPolicyPeer as a whole selects the pods matching podSelector in the namespaces selected by namespaceSelector. Otherwise it selects all pods in the namespaces selected by namespaceSelector.", + Ref: ref(metav1.LabelSelector{}.OpenAPIModelName()), }, }, - "nodePort": { + "ipBlock": { SchemaProps: spec.SchemaProps{ - Description: "The port on each node on which this service is exposed when type is NodePort or LoadBalancer. Usually assigned by the system. If a value is specified, in-range, and not in use it will be used, otherwise the operation will fail. If not specified, a port will be allocated if this Service requires one. If this field is specified when creating a Service which does not need it, creation will fail. This field will be wiped when updating a Service to no longer need it (e.g. changing type from NodePort to ClusterIP). More info: https://kubernetes.io/docs/concepts/services-networking/service/#type-nodeport", - Type: []string{"integer"}, - Format: "int32", + Description: "ipBlock defines policy on a particular IPBlock. If this field is set then neither of the other fields can be.", + Ref: ref(networkingv1.IPBlock{}.OpenAPIModelName()), }, }, }, - Required: []string{"port"}, }, }, Dependencies: []string{ - "k8s.io/apimachinery/pkg/util/intstr.IntOrString"}, + networkingv1.IPBlock{}.OpenAPIModelName(), metav1.LabelSelector{}.OpenAPIModelName()}, } } -func schema_k8sio_api_core_v1_ServiceProxyOptions(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_k8sio_api_networking_v1_NetworkPolicyPort(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "ServiceProxyOptions is the query options to a Service's proxy call.", + Description: "NetworkPolicyPort describes a port to allow traffic on", Type: []string{"object"}, Properties: map[string]spec.Schema{ - "kind": { + "protocol": { SchemaProps: spec.SchemaProps{ - Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + Description: "protocol represents the protocol (TCP, UDP, or SCTP) which traffic must match. If not specified, this field defaults to TCP.\n\nPossible enum values:\n - `\"SCTP\"` is the SCTP protocol.\n - `\"TCP\"` is the TCP protocol.\n - `\"UDP\"` is the UDP protocol.", Type: []string{"string"}, Format: "", + Enum: []interface{}{"SCTP", "TCP", "UDP"}, }, }, - "apiVersion": { + "port": { SchemaProps: spec.SchemaProps{ - Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", - Type: []string{"string"}, - Format: "", + Description: "port represents the port on the given protocol. This can either be a numerical or named port on a pod. If this field is not provided, this matches all port names and numbers. If present, only traffic on the specified protocol AND port will be matched.", + Ref: ref(intstr.IntOrString{}.OpenAPIModelName()), }, }, - "path": { + "endPort": { SchemaProps: spec.SchemaProps{ - Description: "Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy.", - Type: []string{"string"}, - Format: "", + Description: "endPort indicates that the range of ports from port to endPort if set, inclusive, should be allowed by the policy. This field cannot be defined if the port field is not defined or if the port field is defined as a named (string) port. The endPort must be equal or greater than port.", + Type: []string{"integer"}, + Format: "int32", }, }, }, }, }, + Dependencies: []string{ + intstr.IntOrString{}.OpenAPIModelName()}, } } -func schema_k8sio_api_core_v1_ServiceSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_k8sio_api_networking_v1_NetworkPolicySpec(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "ServiceSpec describes the attributes that a user creates on a service.", + Description: "NetworkPolicySpec provides the specification of a NetworkPolicy", Type: []string{"object"}, Properties: map[string]spec.Schema{ - "ports": { - VendorExtensible: spec.VendorExtensible{ - Extensions: spec.Extensions{ - "x-kubernetes-list-map-keys": []interface{}{ - "port", - "protocol", - }, - "x-kubernetes-list-type": "map", - "x-kubernetes-patch-merge-key": "port", - "x-kubernetes-patch-strategy": "merge", - }, - }, + "podSelector": { SchemaProps: spec.SchemaProps{ - Description: "The list of ports that are exposed by this service. More info: https://kubernetes.io/docs/concepts/services-networking/service/#virtual-ips-and-service-proxies", - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref(corev1.ServicePort{}.OpenAPIModelName()), - }, - }, - }, + Description: "podSelector selects the pods to which this NetworkPolicy object applies. The array of rules is applied to any pods selected by this field. An empty selector matches all pods in the policy's namespace. Multiple network policies can select the same set of pods. In this case, the ingress rules for each are combined additively. This field is optional. If it is not specified, it defaults to an empty selector.", + Default: map[string]interface{}{}, + Ref: ref(metav1.LabelSelector{}.OpenAPIModelName()), }, }, - "selector": { + "ingress": { VendorExtensible: spec.VendorExtensible{ Extensions: spec.Extensions{ - "x-kubernetes-map-type": "atomic", + "x-kubernetes-list-type": "atomic", }, }, SchemaProps: spec.SchemaProps{ - Description: "Route service traffic to pods with label keys and values matching this selector. If empty or not present, the service is assumed to have an external process managing its endpoints, which Kubernetes will not modify. Only applies to types ClusterIP, NodePort, and LoadBalancer. Ignored if type is ExternalName. More info: https://kubernetes.io/docs/concepts/services-networking/service/", - Type: []string{"object"}, - AdditionalProperties: &spec.SchemaOrBool{ - Allows: true, + Description: "ingress is a list of ingress rules to be applied to the selected pods. Traffic is allowed to a pod if there are no NetworkPolicies selecting the pod (and cluster policy otherwise allows the traffic), OR if the traffic source is the pod's local node, OR if the traffic matches at least one ingress rule across all of the NetworkPolicy objects whose podSelector matches the pod. If this field is empty then this NetworkPolicy does not allow any traffic (and serves solely to ensure that the pods it selects are isolated by default)", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ - Default: "", - Type: []string{"string"}, - Format: "", + Default: map[string]interface{}{}, + Ref: ref(networkingv1.NetworkPolicyIngressRule{}.OpenAPIModelName()), }, }, }, }, }, - "clusterIP": { - SchemaProps: spec.SchemaProps{ - Description: "clusterIP is the IP address of the service and is usually assigned randomly. If an address is specified manually, is in-range (as per system configuration), and is not in use, it will be allocated to the service; otherwise creation of the service will fail. This field may not be changed through updates unless the type field is also being changed to ExternalName (which requires this field to be blank) or the type field is being changed from ExternalName (in which case this field may optionally be specified, as describe above). Valid values are \"None\", empty string (\"\"), or a valid IP address. Setting this to \"None\" makes a \"headless service\" (no virtual IP), which is useful when direct endpoint connections are preferred and proxying is not required. Only applies to types ClusterIP, NodePort, and LoadBalancer. If this field is specified when creating a Service of type ExternalName, creation will fail. This field will be wiped when updating a Service to type ExternalName. More info: https://kubernetes.io/docs/concepts/services-networking/service/#virtual-ips-and-service-proxies", - Type: []string{"string"}, - Format: "", - }, - }, - "clusterIPs": { + "egress": { VendorExtensible: spec.VendorExtensible{ Extensions: spec.Extensions{ "x-kubernetes-list-type": "atomic", }, }, SchemaProps: spec.SchemaProps{ - Description: "ClusterIPs is a list of IP addresses assigned to this service, and are usually assigned randomly. If an address is specified manually, is in-range (as per system configuration), and is not in use, it will be allocated to the service; otherwise creation of the service will fail. This field may not be changed through updates unless the type field is also being changed to ExternalName (which requires this field to be empty) or the type field is being changed from ExternalName (in which case this field may optionally be specified, as describe above). Valid values are \"None\", empty string (\"\"), or a valid IP address. Setting this to \"None\" makes a \"headless service\" (no virtual IP), which is useful when direct endpoint connections are preferred and proxying is not required. Only applies to types ClusterIP, NodePort, and LoadBalancer. If this field is specified when creating a Service of type ExternalName, creation will fail. This field will be wiped when updating a Service to type ExternalName. If this field is not specified, it will be initialized from the clusterIP field. If this field is specified, clients must ensure that clusterIPs[0] and clusterIP have the same value.\n\nThis field may hold a maximum of two entries (dual-stack IPs, in either order). These IPs must correspond to the values of the ipFamilies field. Both clusterIPs and ipFamilies are governed by the ipFamilyPolicy field. More info: https://kubernetes.io/docs/concepts/services-networking/service/#virtual-ips-and-service-proxies", + Description: "egress is a list of egress rules to be applied to the selected pods. Outgoing traffic is allowed if there are no NetworkPolicies selecting the pod (and cluster policy otherwise allows the traffic), OR if the traffic matches at least one egress rule across all of the NetworkPolicy objects whose podSelector matches the pod. If this field is empty then this NetworkPolicy limits all outgoing traffic (and serves solely to ensure that the pods it selects are isolated by default). This field is beta-level in 1.8", Type: []string{"array"}, Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ - Default: "", - Type: []string{"string"}, - Format: "", + Default: map[string]interface{}{}, + Ref: ref(networkingv1.NetworkPolicyEgressRule{}.OpenAPIModelName()), }, }, }, }, }, - "type": { - SchemaProps: spec.SchemaProps{ - Description: "type determines how the Service is exposed. Defaults to ClusterIP. Valid options are ExternalName, ClusterIP, NodePort, and LoadBalancer. \"ClusterIP\" allocates a cluster-internal IP address for load-balancing to endpoints. Endpoints are determined by the selector or if that is not specified, by manual construction of an Endpoints object or EndpointSlice objects. If clusterIP is \"None\", no virtual IP is allocated and the endpoints are published as a set of endpoints rather than a virtual IP. \"NodePort\" builds on ClusterIP and allocates a port on every node which routes to the same endpoints as the clusterIP. \"LoadBalancer\" builds on NodePort and creates an external load-balancer (if supported in the current cloud) which routes to the same endpoints as the clusterIP. \"ExternalName\" aliases this service to the specified externalName. Several other fields do not apply to ExternalName services. More info: https://kubernetes.io/docs/concepts/services-networking/service/#publishing-services-service-types\n\nPossible enum values:\n - `\"ClusterIP\"` means a service will only be accessible inside the cluster, via the cluster IP.\n - `\"ExternalName\"` means a service consists of only a reference to an external name that kubedns or equivalent will return as a CNAME record, with no exposing or proxying of any pods involved.\n - `\"LoadBalancer\"` means a service will be exposed via an external load balancer (if the cloud provider supports it), in addition to 'NodePort' type.\n - `\"NodePort\"` means a service will be exposed on one port of every node, in addition to 'ClusterIP' type.", - Type: []string{"string"}, - Format: "", - Enum: []interface{}{"ClusterIP", "ExternalName", "LoadBalancer", "NodePort"}, - }, - }, - "externalIPs": { + "policyTypes": { VendorExtensible: spec.VendorExtensible{ Extensions: spec.Extensions{ "x-kubernetes-list-type": "atomic", }, }, SchemaProps: spec.SchemaProps{ - Description: "externalIPs is a list of IP addresses for which nodes in the cluster will also accept traffic for this service. These IPs are not managed by Kubernetes. The user is responsible for ensuring that traffic arrives at a node with this IP. A common example is external load-balancers that are not part of the Kubernetes system.", + Description: "policyTypes is a list of rule types that the NetworkPolicy relates to. Valid options are [\"Ingress\"], [\"Egress\"], or [\"Ingress\", \"Egress\"]. If this field is not specified, it will default based on the existence of ingress or egress rules; policies that contain an egress section are assumed to affect egress, and all policies (whether or not they contain an ingress section) are assumed to affect ingress. If you want to write an egress-only policy, you must explicitly specify policyTypes [ \"Egress\" ]. Likewise, if you want to write a policy that specifies that no egress is allowed, you must specify a policyTypes value that include \"Egress\" (since such a policy would not include an egress section and would otherwise default to just [ \"Ingress\" ]). This field is beta-level in 1.8", Type: []string{"array"}, Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ @@ -47581,670 +50131,872 @@ func schema_k8sio_api_core_v1_ServiceSpec(ref common.ReferenceCallback) common.O Default: "", Type: []string{"string"}, Format: "", + Enum: []interface{}{"Egress", "Ingress"}, }, }, }, }, }, - "sessionAffinity": { + }, + }, + }, + Dependencies: []string{ + networkingv1.NetworkPolicyEgressRule{}.OpenAPIModelName(), networkingv1.NetworkPolicyIngressRule{}.OpenAPIModelName(), metav1.LabelSelector{}.OpenAPIModelName()}, + } +} + +func schema_k8sio_api_networking_v1_ParentReference(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "ParentReference describes a reference to a parent object.", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "group": { SchemaProps: spec.SchemaProps{ - Description: "Supports \"ClientIP\" and \"None\". Used to maintain session affinity. Enable client IP based session affinity. Must be ClientIP or None. Defaults to None. More info: https://kubernetes.io/docs/concepts/services-networking/service/#virtual-ips-and-service-proxies\n\nPossible enum values:\n - `\"ClientIP\"` is the Client IP based.\n - `\"None\"` - no session affinity.", + Description: "Group is the group of the object being referenced.", Type: []string{"string"}, Format: "", - Enum: []interface{}{"ClientIP", "None"}, }, }, - "loadBalancerIP": { + "resource": { SchemaProps: spec.SchemaProps{ - Description: "Only applies to Service Type: LoadBalancer. This feature depends on whether the underlying cloud-provider supports specifying the loadBalancerIP when a load balancer is created. This field will be ignored if the cloud-provider does not support the feature. Deprecated: This field was under-specified and its meaning varies across implementations. Using it is non-portable and it may not support dual-stack. Users are encouraged to use implementation-specific annotations when available.", + Description: "Resource is the resource of the object being referenced.", Type: []string{"string"}, Format: "", }, }, - "loadBalancerSourceRanges": { - VendorExtensible: spec.VendorExtensible{ - Extensions: spec.Extensions{ - "x-kubernetes-list-type": "atomic", - }, - }, + "namespace": { SchemaProps: spec.SchemaProps{ - Description: "If specified and supported by the platform, this will restrict traffic through the cloud-provider load-balancer will be restricted to the specified client IPs. This field will be ignored if the cloud-provider does not support the feature.\" More info: https://kubernetes.io/docs/tasks/access-application-cluster/create-external-load-balancer/", - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: "", - Type: []string{"string"}, - Format: "", - }, - }, - }, + Description: "Namespace is the namespace of the object being referenced.", + Type: []string{"string"}, + Format: "", }, }, - "externalName": { + "name": { SchemaProps: spec.SchemaProps{ - Description: "externalName is the external reference that discovery mechanisms will return as an alias for this service (e.g. a DNS CNAME record). No proxying will be involved. Must be a lowercase RFC-1123 hostname (https://tools.ietf.org/html/rfc1123) and requires `type` to be \"ExternalName\".", + Description: "Name is the name of the object being referenced.", Type: []string{"string"}, Format: "", }, }, - "externalTrafficPolicy": { + }, + Required: []string{"resource", "name"}, + }, + }, + } +} + +func schema_k8sio_api_networking_v1_ServiceBackendPort(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "ServiceBackendPort is the service port being referenced.", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "name": { SchemaProps: spec.SchemaProps{ - Description: "externalTrafficPolicy describes how nodes distribute service traffic they receive on one of the Service's \"externally-facing\" addresses (NodePorts, ExternalIPs, and LoadBalancer IPs). If set to \"Local\", the proxy will configure the service in a way that assumes that external load balancers will take care of balancing the service traffic between nodes, and so each node will deliver traffic only to the node-local endpoints of the service, without masquerading the client source IP. (Traffic mistakenly sent to a node with no endpoints will be dropped.) The default value, \"Cluster\", uses the standard behavior of routing to all endpoints evenly (possibly modified by topology and other features). Note that traffic sent to an External IP or LoadBalancer IP from within the cluster will always get \"Cluster\" semantics, but clients sending to a NodePort from within the cluster may need to take traffic policy into account when picking a node.\n\nPossible enum values:\n - `\"Cluster\"` routes traffic to all endpoints.\n - `\"Local\"` preserves the source IP of the traffic by routing only to endpoints on the same node as the traffic was received on (dropping the traffic if there are no local endpoints).", + Description: "name is the name of the port on the Service. This is a mutually exclusive setting with \"Number\".", Type: []string{"string"}, Format: "", - Enum: []interface{}{"Cluster", "Local"}, }, }, - "healthCheckNodePort": { + "number": { SchemaProps: spec.SchemaProps{ - Description: "healthCheckNodePort specifies the healthcheck nodePort for the service. This only applies when type is set to LoadBalancer and externalTrafficPolicy is set to Local. If a value is specified, is in-range, and is not in use, it will be used. If not specified, a value will be automatically allocated. External systems (e.g. load-balancers) can use this port to determine if a given node holds endpoints for this service or not. If this field is specified when creating a Service which does not need it, creation will fail. This field will be wiped when updating a Service to no longer need it (e.g. changing type). This field cannot be updated once set.", + Description: "number is the numerical port number (e.g. 80) on the Service. This is a mutually exclusive setting with \"Name\".", Type: []string{"integer"}, Format: "int32", }, }, - "publishNotReadyAddresses": { - SchemaProps: spec.SchemaProps{ - Description: "publishNotReadyAddresses indicates that any agent which deals with endpoints for this Service should disregard any indications of ready/not-ready. The primary use case for setting this field is for a StatefulSet's Headless Service to propagate SRV DNS records for its Pods for the purpose of peer discovery. The Kubernetes controllers that generate Endpoints and EndpointSlice resources for Services interpret this to mean that all endpoints are considered \"ready\" even if the Pods themselves are not. Agents which consume only Kubernetes generated endpoints through the Endpoints or EndpointSlice resources can safely assume this behavior.", - Type: []string{"boolean"}, - Format: "", - }, - }, - "sessionAffinityConfig": { - SchemaProps: spec.SchemaProps{ - Description: "sessionAffinityConfig contains the configurations of session affinity.", - Ref: ref(corev1.SessionAffinityConfig{}.OpenAPIModelName()), - }, - }, - "ipFamilies": { - VendorExtensible: spec.VendorExtensible{ - Extensions: spec.Extensions{ - "x-kubernetes-list-type": "atomic", - }, - }, - SchemaProps: spec.SchemaProps{ - Description: "IPFamilies is a list of IP families (e.g. IPv4, IPv6) assigned to this service. This field is usually assigned automatically based on cluster configuration and the ipFamilyPolicy field. If this field is specified manually, the requested family is available in the cluster, and ipFamilyPolicy allows it, it will be used; otherwise creation of the service will fail. This field is conditionally mutable: it allows for adding or removing a secondary IP family, but it does not allow changing the primary IP family of the Service. Valid values are \"IPv4\" and \"IPv6\". This field only applies to Services of types ClusterIP, NodePort, and LoadBalancer, and does apply to \"headless\" services. This field will be wiped when updating a Service to type ExternalName.\n\nThis field may hold a maximum of two entries (dual-stack families, in either order). These families must correspond to the values of the clusterIPs field, if specified. Both clusterIPs and ipFamilies are governed by the ipFamilyPolicy field.", - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: "", - Type: []string{"string"}, - Format: "", - Enum: []interface{}{"", "IPv4", "IPv6"}, - }, - }, - }, - }, - }, - "ipFamilyPolicy": { + }, + }, + VendorExtensible: spec.VendorExtensible{ + Extensions: spec.Extensions{ + "x-kubernetes-map-type": "atomic", + }, + }, + }, + } +} + +func schema_k8sio_api_networking_v1_ServiceCIDR(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "ServiceCIDR defines a range of IP addresses using CIDR format (e.g. 192.168.0.0/24 or 2001:db2::/64). This range is used to allocate ClusterIPs to Service objects.", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "kind": { SchemaProps: spec.SchemaProps{ - Description: "IPFamilyPolicy represents the dual-stack-ness requested or required by this Service. If there is no value provided, then this field will be set to SingleStack. Services can be \"SingleStack\" (a single IP family), \"PreferDualStack\" (two IP families on dual-stack configured clusters or a single IP family on single-stack clusters), or \"RequireDualStack\" (two IP families on dual-stack configured clusters, otherwise fail). The ipFamilies and clusterIPs fields depend on the value of this field. This field will be wiped when updating a service to type ExternalName.\n\nPossible enum values:\n - `\"PreferDualStack\"` indicates that this service prefers dual-stack when the cluster is configured for dual-stack. If the cluster is not configured for dual-stack the service will be assigned a single IPFamily. If the IPFamily is not set in service.spec.ipFamilies then the service will be assigned the default IPFamily configured on the cluster\n - `\"RequireDualStack\"` indicates that this service requires dual-stack. Using IPFamilyPolicyRequireDualStack on a single stack cluster will result in validation errors. The IPFamilies (and their order) assigned to this service is based on service.spec.ipFamilies. If service.spec.ipFamilies was not provided then it will be assigned according to how they are configured on the cluster. If service.spec.ipFamilies has only one entry then the alternative IPFamily will be added by apiserver\n - `\"SingleStack\"` indicates that this service is required to have a single IPFamily. The IPFamily assigned is based on the default IPFamily used by the cluster or as identified by service.spec.ipFamilies field", + Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", Type: []string{"string"}, Format: "", - Enum: []interface{}{"PreferDualStack", "RequireDualStack", "SingleStack"}, }, }, - "allocateLoadBalancerNodePorts": { + "apiVersion": { SchemaProps: spec.SchemaProps{ - Description: "allocateLoadBalancerNodePorts defines if NodePorts will be automatically allocated for services with type LoadBalancer. Default is \"true\". It may be set to \"false\" if the cluster load-balancer does not rely on NodePorts. If the caller requests specific NodePorts (by specifying a value), those requests will be respected, regardless of this field. This field may only be set for services with type LoadBalancer and will be cleared if the type is changed to any other type.", - Type: []string{"boolean"}, + Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + Type: []string{"string"}, Format: "", }, }, - "loadBalancerClass": { + "metadata": { SchemaProps: spec.SchemaProps{ - Description: "loadBalancerClass is the class of the load balancer implementation this Service belongs to. If specified, the value of this field must be a label-style identifier, with an optional prefix, e.g. \"internal-vip\" or \"example.com/internal-vip\". Unprefixed names are reserved for end-users. This field can only be set when the Service type is 'LoadBalancer'. If not set, the default load balancer implementation is used, today this is typically done through the cloud provider integration, but should apply for any default implementation. If set, it is assumed that a load balancer implementation is watching for Services with a matching class. Any default load balancer implementation (e.g. cloud providers) should ignore Services that set this field. This field can only be set when creating or updating a Service to type 'LoadBalancer'. Once set, it can not be changed. This field will be wiped when a service is updated to a non 'LoadBalancer' type.", - Type: []string{"string"}, - Format: "", + Description: "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata", + Default: map[string]interface{}{}, + Ref: ref(metav1.ObjectMeta{}.OpenAPIModelName()), }, }, - "internalTrafficPolicy": { + "spec": { SchemaProps: spec.SchemaProps{ - Description: "InternalTrafficPolicy describes how nodes distribute service traffic they receive on the ClusterIP. If set to \"Local\", the proxy will assume that pods only want to talk to endpoints of the service on the same node as the pod, dropping the traffic if there are no local endpoints. The default value, \"Cluster\", uses the standard behavior of routing to all endpoints evenly (possibly modified by topology and other features).\n\nPossible enum values:\n - `\"Cluster\"` routes traffic to all endpoints.\n - `\"Local\"` routes traffic only to endpoints on the same node as the client pod (dropping the traffic if there are no local endpoints).", - Type: []string{"string"}, - Format: "", - Enum: []interface{}{"Cluster", "Local"}, + Description: "spec is the desired state of the ServiceCIDR. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status", + Default: map[string]interface{}{}, + Ref: ref(networkingv1.ServiceCIDRSpec{}.OpenAPIModelName()), }, }, - "trafficDistribution": { + "status": { SchemaProps: spec.SchemaProps{ - Description: "TrafficDistribution offers a way to express preferences for how traffic is distributed to Service endpoints. Implementations can use this field as a hint, but are not required to guarantee strict adherence. If the field is not set, the implementation will apply its default routing strategy. If set to \"PreferClose\", implementations should prioritize endpoints that are in the same zone.", - Type: []string{"string"}, - Format: "", + Description: "status represents the current state of the ServiceCIDR. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status", + Default: map[string]interface{}{}, + Ref: ref(networkingv1.ServiceCIDRStatus{}.OpenAPIModelName()), }, }, }, }, }, Dependencies: []string{ - corev1.ServicePort{}.OpenAPIModelName(), corev1.SessionAffinityConfig{}.OpenAPIModelName()}, + networkingv1.ServiceCIDRSpec{}.OpenAPIModelName(), networkingv1.ServiceCIDRStatus{}.OpenAPIModelName(), metav1.ObjectMeta{}.OpenAPIModelName()}, } } -func schema_k8sio_api_core_v1_ServiceStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_k8sio_api_networking_v1_ServiceCIDRList(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "ServiceStatus represents the current status of a service.", + Description: "ServiceCIDRList contains a list of ServiceCIDR objects.", Type: []string{"object"}, Properties: map[string]spec.Schema{ - "loadBalancer": { + "kind": { SchemaProps: spec.SchemaProps{ - Description: "LoadBalancer contains the current status of the load-balancer, if one is present.", - Default: map[string]interface{}{}, - Ref: ref(corev1.LoadBalancerStatus{}.OpenAPIModelName()), + Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + Type: []string{"string"}, + Format: "", }, }, - "conditions": { - VendorExtensible: spec.VendorExtensible{ - Extensions: spec.Extensions{ - "x-kubernetes-list-map-keys": []interface{}{ - "type", - }, - "x-kubernetes-list-type": "map", - "x-kubernetes-patch-merge-key": "type", - "x-kubernetes-patch-strategy": "merge", - }, + "apiVersion": { + SchemaProps: spec.SchemaProps{ + Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + Type: []string{"string"}, + Format: "", }, + }, + "metadata": { SchemaProps: spec.SchemaProps{ - Description: "Current service state", + Description: "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata", + Default: map[string]interface{}{}, + Ref: ref(metav1.ListMeta{}.OpenAPIModelName()), + }, + }, + "items": { + SchemaProps: spec.SchemaProps{ + Description: "items is the list of ServiceCIDRs.", Type: []string{"array"}, Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref(metav1.Condition{}.OpenAPIModelName()), + Ref: ref(networkingv1.ServiceCIDR{}.OpenAPIModelName()), }, }, }, }, }, }, + Required: []string{"items"}, }, }, Dependencies: []string{ - corev1.LoadBalancerStatus{}.OpenAPIModelName(), metav1.Condition{}.OpenAPIModelName()}, + networkingv1.ServiceCIDR{}.OpenAPIModelName(), metav1.ListMeta{}.OpenAPIModelName()}, } } -func schema_k8sio_api_core_v1_SessionAffinityConfig(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_k8sio_api_networking_v1_ServiceCIDRSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "SessionAffinityConfig represents the configurations of session affinity.", + Description: "ServiceCIDRSpec define the CIDRs the user wants to use for allocating ClusterIPs for Services.", Type: []string{"object"}, Properties: map[string]spec.Schema{ - "clientIP": { + "cidrs": { + VendorExtensible: spec.VendorExtensible{ + Extensions: spec.Extensions{ + "x-kubernetes-list-type": "atomic", + }, + }, SchemaProps: spec.SchemaProps{ - Description: "clientIP contains the configurations of Client IP based session affinity.", - Ref: ref(corev1.ClientIPConfig{}.OpenAPIModelName()), + Description: "CIDRs defines the IP blocks in CIDR notation (e.g. \"192.168.0.0/24\" or \"2001:db8::/64\") from which to assign service cluster IPs. Max of two CIDRs is allowed, one of each IP family. This field is immutable.", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + }, }, }, }, }, }, - Dependencies: []string{ - corev1.ClientIPConfig{}.OpenAPIModelName()}, } } -func schema_k8sio_api_core_v1_SleepAction(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_k8sio_api_networking_v1_ServiceCIDRStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "SleepAction describes a \"sleep\" action.", + Description: "ServiceCIDRStatus describes the current state of the ServiceCIDR.", Type: []string{"object"}, Properties: map[string]spec.Schema{ - "seconds": { + "conditions": { + VendorExtensible: spec.VendorExtensible{ + Extensions: spec.Extensions{ + "x-kubernetes-list-map-keys": []interface{}{ + "type", + }, + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "type", + "x-kubernetes-patch-strategy": "merge", + }, + }, SchemaProps: spec.SchemaProps{ - Description: "Seconds is the number of seconds to sleep.", - Default: 0, - Type: []string{"integer"}, - Format: "int64", + Description: "conditions holds an array of metav1.Condition that describe the state of the ServiceCIDR. Current service state", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref(metav1.Condition{}.OpenAPIModelName()), + }, + }, + }, }, }, }, - Required: []string{"seconds"}, }, }, + Dependencies: []string{ + metav1.Condition{}.OpenAPIModelName()}, } } -func schema_k8sio_api_core_v1_StorageOSPersistentVolumeSource(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_k8sio_api_rbac_v1_AggregationRule(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "Represents a StorageOS persistent volume resource.", + Description: "AggregationRule describes how to locate ClusterRoles to aggregate into the ClusterRole", Type: []string{"object"}, Properties: map[string]spec.Schema{ - "volumeName": { - SchemaProps: spec.SchemaProps{ - Description: "volumeName is the human-readable name of the StorageOS volume. Volume names are only unique within a namespace.", - Type: []string{"string"}, - Format: "", - }, - }, - "volumeNamespace": { - SchemaProps: spec.SchemaProps{ - Description: "volumeNamespace specifies the scope of the volume within StorageOS. If no namespace is specified then the Pod's namespace will be used. This allows the Kubernetes name scoping to be mirrored within StorageOS for tighter integration. Set VolumeName to any name to override the default behaviour. Set to \"default\" if you are not using namespaces within StorageOS. Namespaces that do not pre-exist within StorageOS will be created.", - Type: []string{"string"}, - Format: "", - }, - }, - "fsType": { - SchemaProps: spec.SchemaProps{ - Description: "fsType is the filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified.", - Type: []string{"string"}, - Format: "", - }, - }, - "readOnly": { - SchemaProps: spec.SchemaProps{ - Description: "readOnly defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts.", - Type: []string{"boolean"}, - Format: "", + "clusterRoleSelectors": { + VendorExtensible: spec.VendorExtensible{ + Extensions: spec.Extensions{ + "x-kubernetes-list-type": "atomic", + }, }, - }, - "secretRef": { SchemaProps: spec.SchemaProps{ - Description: "secretRef specifies the secret to use for obtaining the StorageOS API credentials. If not specified, default values will be attempted.", - Ref: ref(corev1.ObjectReference{}.OpenAPIModelName()), + Description: "ClusterRoleSelectors holds a list of selectors which will be used to find ClusterRoles and create the rules. If any of the selectors match, then the ClusterRole's permissions will be added", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref(metav1.LabelSelector{}.OpenAPIModelName()), + }, + }, + }, }, }, }, }, }, Dependencies: []string{ - corev1.ObjectReference{}.OpenAPIModelName()}, + metav1.LabelSelector{}.OpenAPIModelName()}, } } -func schema_k8sio_api_core_v1_StorageOSVolumeSource(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_k8sio_api_rbac_v1_ClusterRole(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "Represents a StorageOS persistent volume resource.", + Description: "ClusterRole is a cluster level, logical grouping of PolicyRules that can be referenced as a unit by a RoleBinding or ClusterRoleBinding.", Type: []string{"object"}, Properties: map[string]spec.Schema{ - "volumeName": { + "kind": { SchemaProps: spec.SchemaProps{ - Description: "volumeName is the human-readable name of the StorageOS volume. Volume names are only unique within a namespace.", + Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", Type: []string{"string"}, Format: "", }, }, - "volumeNamespace": { + "apiVersion": { SchemaProps: spec.SchemaProps{ - Description: "volumeNamespace specifies the scope of the volume within StorageOS. If no namespace is specified then the Pod's namespace will be used. This allows the Kubernetes name scoping to be mirrored within StorageOS for tighter integration. Set VolumeName to any name to override the default behaviour. Set to \"default\" if you are not using namespaces within StorageOS. Namespaces that do not pre-exist within StorageOS will be created.", + Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", Type: []string{"string"}, Format: "", }, }, - "fsType": { + "metadata": { SchemaProps: spec.SchemaProps{ - Description: "fsType is the filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified.", - Type: []string{"string"}, - Format: "", + Description: "Standard object's metadata.", + Default: map[string]interface{}{}, + Ref: ref(metav1.ObjectMeta{}.OpenAPIModelName()), }, }, - "readOnly": { + "rules": { + VendorExtensible: spec.VendorExtensible{ + Extensions: spec.Extensions{ + "x-kubernetes-list-type": "atomic", + }, + }, SchemaProps: spec.SchemaProps{ - Description: "readOnly defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts.", - Type: []string{"boolean"}, - Format: "", + Description: "Rules holds all the PolicyRules for this ClusterRole", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref(rbacv1.PolicyRule{}.OpenAPIModelName()), + }, + }, + }, }, }, - "secretRef": { + "aggregationRule": { SchemaProps: spec.SchemaProps{ - Description: "secretRef specifies the secret to use for obtaining the StorageOS API credentials. If not specified, default values will be attempted.", - Ref: ref(corev1.LocalObjectReference{}.OpenAPIModelName()), + Description: "AggregationRule is an optional field that describes how to build the Rules for this ClusterRole. If AggregationRule is set, then the Rules are controller managed and direct changes to Rules will be stomped by the controller.", + Ref: ref(rbacv1.AggregationRule{}.OpenAPIModelName()), }, }, }, }, }, Dependencies: []string{ - corev1.LocalObjectReference{}.OpenAPIModelName()}, + rbacv1.AggregationRule{}.OpenAPIModelName(), rbacv1.PolicyRule{}.OpenAPIModelName(), metav1.ObjectMeta{}.OpenAPIModelName()}, } } -func schema_k8sio_api_core_v1_Sysctl(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_k8sio_api_rbac_v1_ClusterRoleBinding(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "Sysctl defines a kernel parameter to be set", + Description: "ClusterRoleBinding references a ClusterRole, but not contain it. It can reference a ClusterRole in the global namespace, and adds who information via Subject.", Type: []string{"object"}, Properties: map[string]spec.Schema{ - "name": { + "kind": { SchemaProps: spec.SchemaProps{ - Description: "Name of a property to set", - Default: "", + Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", Type: []string{"string"}, Format: "", }, }, - "value": { + "apiVersion": { SchemaProps: spec.SchemaProps{ - Description: "Value of a property to set", - Default: "", + Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", Type: []string{"string"}, Format: "", }, }, + "metadata": { + SchemaProps: spec.SchemaProps{ + Description: "Standard object's metadata.", + Default: map[string]interface{}{}, + Ref: ref(metav1.ObjectMeta{}.OpenAPIModelName()), + }, + }, + "subjects": { + VendorExtensible: spec.VendorExtensible{ + Extensions: spec.Extensions{ + "x-kubernetes-list-type": "atomic", + }, + }, + SchemaProps: spec.SchemaProps{ + Description: "Subjects holds references to the objects the role applies to.", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref(rbacv1.Subject{}.OpenAPIModelName()), + }, + }, + }, + }, + }, + "roleRef": { + SchemaProps: spec.SchemaProps{ + Description: "RoleRef can only reference a ClusterRole in the global namespace. If the RoleRef cannot be resolved, the Authorizer must return an error. This field is immutable.", + Default: map[string]interface{}{}, + Ref: ref(rbacv1.RoleRef{}.OpenAPIModelName()), + }, + }, }, - Required: []string{"name", "value"}, + Required: []string{"roleRef"}, }, }, + Dependencies: []string{ + rbacv1.RoleRef{}.OpenAPIModelName(), rbacv1.Subject{}.OpenAPIModelName(), metav1.ObjectMeta{}.OpenAPIModelName()}, } } -func schema_k8sio_api_core_v1_TCPSocketAction(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_k8sio_api_rbac_v1_ClusterRoleBindingList(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "TCPSocketAction describes an action based on opening a socket", + Description: "ClusterRoleBindingList is a collection of ClusterRoleBindings", Type: []string{"object"}, Properties: map[string]spec.Schema{ - "port": { + "kind": { SchemaProps: spec.SchemaProps{ - Description: "Number or name of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME.", - Ref: ref("k8s.io/apimachinery/pkg/util/intstr.IntOrString"), + Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + Type: []string{"string"}, + Format: "", }, }, - "host": { + "apiVersion": { SchemaProps: spec.SchemaProps{ - Description: "Optional: Host name to connect to, defaults to the pod IP.", + Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", Type: []string{"string"}, Format: "", }, }, + "metadata": { + SchemaProps: spec.SchemaProps{ + Description: "Standard object's metadata.", + Default: map[string]interface{}{}, + Ref: ref(metav1.ListMeta{}.OpenAPIModelName()), + }, + }, + "items": { + SchemaProps: spec.SchemaProps{ + Description: "Items is a list of ClusterRoleBindings", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref(rbacv1.ClusterRoleBinding{}.OpenAPIModelName()), + }, + }, + }, + }, + }, }, - Required: []string{"port"}, + Required: []string{"items"}, }, }, Dependencies: []string{ - "k8s.io/apimachinery/pkg/util/intstr.IntOrString"}, + rbacv1.ClusterRoleBinding{}.OpenAPIModelName(), metav1.ListMeta{}.OpenAPIModelName()}, } } -func schema_k8sio_api_core_v1_Taint(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_k8sio_api_rbac_v1_ClusterRoleList(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "The node this Taint is attached to has the \"effect\" on any pod that does not tolerate the Taint.", + Description: "ClusterRoleList is a collection of ClusterRoles", Type: []string{"object"}, Properties: map[string]spec.Schema{ - "key": { + "kind": { SchemaProps: spec.SchemaProps{ - Description: "Required. The taint key to be applied to a node.", - Default: "", + Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", Type: []string{"string"}, Format: "", }, }, - "value": { + "apiVersion": { SchemaProps: spec.SchemaProps{ - Description: "The taint value corresponding to the taint key.", + Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", Type: []string{"string"}, Format: "", }, }, - "effect": { + "metadata": { SchemaProps: spec.SchemaProps{ - Description: "Required. The effect of the taint on pods that do not tolerate the taint. Valid effects are NoSchedule, PreferNoSchedule and NoExecute.\n\nPossible enum values:\n - `\"NoExecute\"` Evict any already-running pods that do not tolerate the taint. Currently enforced by NodeController.\n - `\"NoSchedule\"` Do not allow new pods to schedule onto the node unless they tolerate the taint, but allow all pods submitted to Kubelet without going through the scheduler to start, and allow all already-running pods to continue running. Enforced by the scheduler.\n - `\"PreferNoSchedule\"` Like TaintEffectNoSchedule, but the scheduler tries not to schedule new pods onto the node, rather than prohibiting new pods from scheduling onto the node entirely. Enforced by the scheduler.", - Default: "", - Type: []string{"string"}, - Format: "", - Enum: []interface{}{"NoExecute", "NoSchedule", "PreferNoSchedule"}, + Description: "Standard object's metadata.", + Default: map[string]interface{}{}, + Ref: ref(metav1.ListMeta{}.OpenAPIModelName()), }, }, - "timeAdded": { + "items": { SchemaProps: spec.SchemaProps{ - Description: "TimeAdded represents the time at which the taint was added.", - Ref: ref(metav1.Time{}.OpenAPIModelName()), + Description: "Items is a list of ClusterRoles", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref(rbacv1.ClusterRole{}.OpenAPIModelName()), + }, + }, + }, }, }, }, - Required: []string{"key", "effect"}, + Required: []string{"items"}, }, }, Dependencies: []string{ - metav1.Time{}.OpenAPIModelName()}, + rbacv1.ClusterRole{}.OpenAPIModelName(), metav1.ListMeta{}.OpenAPIModelName()}, } } -func schema_k8sio_api_core_v1_Toleration(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_k8sio_api_rbac_v1_PolicyRule(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "The pod this Toleration is attached to tolerates any taint that matches the triple using the matching operator .", + Description: "PolicyRule holds information that describes a policy rule, but does not contain information about who the rule applies to or which namespace the rule applies to.", Type: []string{"object"}, Properties: map[string]spec.Schema{ - "key": { + "verbs": { + VendorExtensible: spec.VendorExtensible{ + Extensions: spec.Extensions{ + "x-kubernetes-list-type": "atomic", + }, + }, SchemaProps: spec.SchemaProps{ - Description: "Key is the taint key that the toleration applies to. Empty means match all taint keys. If the key is empty, operator must be Exists; this combination means to match all values and all keys.", - Type: []string{"string"}, - Format: "", + Description: "Verbs is a list of Verbs that apply to ALL the ResourceKinds contained in this rule. '*' represents all verbs.", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + }, }, }, - "operator": { + "apiGroups": { + VendorExtensible: spec.VendorExtensible{ + Extensions: spec.Extensions{ + "x-kubernetes-list-type": "atomic", + }, + }, SchemaProps: spec.SchemaProps{ - Description: "Operator represents a key's relationship to the value. Valid operators are Exists, Equal, Lt, and Gt. Defaults to Equal. Exists is equivalent to wildcard for value, so that a pod can tolerate all taints of a particular category. Lt and Gt perform numeric comparisons (requires feature gate TaintTolerationComparisonOperators).\n\nPossible enum values:\n - `\"Equal\"`\n - `\"Exists\"`\n - `\"Gt\"`\n - `\"Lt\"`", - Type: []string{"string"}, - Format: "", - Enum: []interface{}{"Equal", "Exists", "Gt", "Lt"}, + Description: "APIGroups is the name of the APIGroup that contains the resources. If multiple API groups are specified, any action requested against one of the enumerated resources in any API group will be allowed. \"\" represents the core API group and \"*\" represents all API groups.", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + }, }, }, - "value": { + "resources": { + VendorExtensible: spec.VendorExtensible{ + Extensions: spec.Extensions{ + "x-kubernetes-list-type": "atomic", + }, + }, SchemaProps: spec.SchemaProps{ - Description: "Value is the taint value the toleration matches to. If the operator is Exists, the value should be empty, otherwise just a regular string.", - Type: []string{"string"}, - Format: "", + Description: "Resources is a list of resources this rule applies to. '*' represents all resources.", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + }, }, }, - "effect": { + "resourceNames": { + VendorExtensible: spec.VendorExtensible{ + Extensions: spec.Extensions{ + "x-kubernetes-list-type": "atomic", + }, + }, SchemaProps: spec.SchemaProps{ - Description: "Effect indicates the taint effect to match. Empty means match all taint effects. When specified, allowed values are NoSchedule, PreferNoSchedule and NoExecute.\n\nPossible enum values:\n - `\"NoExecute\"` Evict any already-running pods that do not tolerate the taint. Currently enforced by NodeController.\n - `\"NoSchedule\"` Do not allow new pods to schedule onto the node unless they tolerate the taint, but allow all pods submitted to Kubelet without going through the scheduler to start, and allow all already-running pods to continue running. Enforced by the scheduler.\n - `\"PreferNoSchedule\"` Like TaintEffectNoSchedule, but the scheduler tries not to schedule new pods onto the node, rather than prohibiting new pods from scheduling onto the node entirely. Enforced by the scheduler.", - Type: []string{"string"}, - Format: "", - Enum: []interface{}{"NoExecute", "NoSchedule", "PreferNoSchedule"}, + Description: "ResourceNames is an optional white list of names that the rule applies to. An empty set means that everything is allowed.", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + }, }, }, - "tolerationSeconds": { + "nonResourceURLs": { + VendorExtensible: spec.VendorExtensible{ + Extensions: spec.Extensions{ + "x-kubernetes-list-type": "atomic", + }, + }, SchemaProps: spec.SchemaProps{ - Description: "TolerationSeconds represents the period of time the toleration (which must be of effect NoExecute, otherwise this field is ignored) tolerates the taint. By default, it is not set, which means tolerate the taint forever (do not evict). Zero and negative values will be treated as 0 (evict immediately) by the system.", - Type: []string{"integer"}, - Format: "int64", + Description: "NonResourceURLs is a set of partial urls that a user should have access to. *s are allowed, but only as the full, final step in the path Since non-resource URLs are not namespaced, this field is only applicable for ClusterRoles referenced from a ClusterRoleBinding. Rules can either apply to API resources (such as \"pods\" or \"secrets\") or non-resource URL paths (such as \"/api\"), but not both.", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + }, }, }, }, + Required: []string{"verbs"}, }, }, } } -func schema_k8sio_api_core_v1_TopologySelectorLabelRequirement(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_k8sio_api_rbac_v1_Role(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "A topology selector requirement is a selector that matches given label. This is an alpha feature and may change in the future.", + Description: "Role is a namespaced, logical grouping of PolicyRules that can be referenced as a unit by a RoleBinding.", Type: []string{"object"}, Properties: map[string]spec.Schema{ - "key": { + "kind": { SchemaProps: spec.SchemaProps{ - Description: "The label key that the selector applies to.", - Default: "", + Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", Type: []string{"string"}, Format: "", }, }, - "values": { + "apiVersion": { + SchemaProps: spec.SchemaProps{ + Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + Type: []string{"string"}, + Format: "", + }, + }, + "metadata": { + SchemaProps: spec.SchemaProps{ + Description: "Standard object's metadata.", + Default: map[string]interface{}{}, + Ref: ref(metav1.ObjectMeta{}.OpenAPIModelName()), + }, + }, + "rules": { VendorExtensible: spec.VendorExtensible{ Extensions: spec.Extensions{ "x-kubernetes-list-type": "atomic", }, }, SchemaProps: spec.SchemaProps{ - Description: "An array of string values. One value must match the label to be selected. Each entry in Values is ORed.", + Description: "Rules holds all the PolicyRules for this Role", Type: []string{"array"}, Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ - Default: "", - Type: []string{"string"}, - Format: "", + Default: map[string]interface{}{}, + Ref: ref(rbacv1.PolicyRule{}.OpenAPIModelName()), }, }, }, }, }, }, - Required: []string{"key", "values"}, }, }, + Dependencies: []string{ + rbacv1.PolicyRule{}.OpenAPIModelName(), metav1.ObjectMeta{}.OpenAPIModelName()}, } } -func schema_k8sio_api_core_v1_TopologySelectorTerm(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_k8sio_api_rbac_v1_RoleBinding(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "A topology selector term represents the result of label queries. A null or empty topology selector term matches no objects. The requirements of them are ANDed. It provides a subset of functionality as NodeSelectorTerm. This is an alpha feature and may change in the future.", + Description: "RoleBinding references a role, but does not contain it. It can reference a Role in the same namespace or a ClusterRole in the global namespace. It adds who information via Subjects and namespace information by which namespace it exists in. RoleBindings in a given namespace only have effect in that namespace.", Type: []string{"object"}, Properties: map[string]spec.Schema{ - "matchLabelExpressions": { + "kind": { + SchemaProps: spec.SchemaProps{ + Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + Type: []string{"string"}, + Format: "", + }, + }, + "apiVersion": { + SchemaProps: spec.SchemaProps{ + Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + Type: []string{"string"}, + Format: "", + }, + }, + "metadata": { + SchemaProps: spec.SchemaProps{ + Description: "Standard object's metadata.", + Default: map[string]interface{}{}, + Ref: ref(metav1.ObjectMeta{}.OpenAPIModelName()), + }, + }, + "subjects": { VendorExtensible: spec.VendorExtensible{ Extensions: spec.Extensions{ "x-kubernetes-list-type": "atomic", }, }, SchemaProps: spec.SchemaProps{ - Description: "A list of topology selector requirements by labels.", + Description: "Subjects holds references to the objects the role applies to.", Type: []string{"array"}, Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ Default: map[string]interface{}{}, - Ref: ref(corev1.TopologySelectorLabelRequirement{}.OpenAPIModelName()), + Ref: ref(rbacv1.Subject{}.OpenAPIModelName()), }, }, }, }, }, + "roleRef": { + SchemaProps: spec.SchemaProps{ + Description: "RoleRef can reference a Role in the current namespace or a ClusterRole in the global namespace. If the RoleRef cannot be resolved, the Authorizer must return an error. This field is immutable.", + Default: map[string]interface{}{}, + Ref: ref(rbacv1.RoleRef{}.OpenAPIModelName()), + }, + }, }, - }, - VendorExtensible: spec.VendorExtensible{ - Extensions: spec.Extensions{ - "x-kubernetes-map-type": "atomic", - }, + Required: []string{"roleRef"}, }, }, Dependencies: []string{ - corev1.TopologySelectorLabelRequirement{}.OpenAPIModelName()}, + rbacv1.RoleRef{}.OpenAPIModelName(), rbacv1.Subject{}.OpenAPIModelName(), metav1.ObjectMeta{}.OpenAPIModelName()}, } } -func schema_k8sio_api_core_v1_TopologySpreadConstraint(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_k8sio_api_rbac_v1_RoleBindingList(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "TopologySpreadConstraint specifies how to spread matching pods among the given topology.", + Description: "RoleBindingList is a collection of RoleBindings", Type: []string{"object"}, Properties: map[string]spec.Schema{ - "maxSkew": { - SchemaProps: spec.SchemaProps{ - Description: "MaxSkew describes the degree to which pods may be unevenly distributed. When `whenUnsatisfiable=DoNotSchedule`, it is the maximum permitted difference between the number of matching pods in the target topology and the global minimum. The global minimum is the minimum number of matching pods in an eligible domain or zero if the number of eligible domains is less than MinDomains. For example, in a 3-zone cluster, MaxSkew is set to 1, and pods with the same labelSelector spread as 2/2/1: In this case, the global minimum is 1. | zone1 | zone2 | zone3 | | P P | P P | P | - if MaxSkew is 1, incoming pod can only be scheduled to zone3 to become 2/2/2; scheduling it onto zone1(zone2) would make the ActualSkew(3-1) on zone1(zone2) violate MaxSkew(1). - if MaxSkew is 2, incoming pod can be scheduled onto any zone. When `whenUnsatisfiable=ScheduleAnyway`, it is used to give higher precedence to topologies that satisfy it. It's a required field. Default value is 1 and 0 is not allowed.", - Default: 0, - Type: []string{"integer"}, - Format: "int32", - }, - }, - "topologyKey": { + "kind": { SchemaProps: spec.SchemaProps{ - Description: "TopologyKey is the key of node labels. Nodes that have a label with this key and identical values are considered to be in the same topology. We consider each as a \"bucket\", and try to put balanced number of pods into each bucket. We define a domain as a particular instance of a topology. Also, we define an eligible domain as a domain whose nodes meet the requirements of nodeAffinityPolicy and nodeTaintsPolicy. e.g. If TopologyKey is \"kubernetes.io/hostname\", each Node is a domain of that topology. And, if TopologyKey is \"topology.kubernetes.io/zone\", each zone is a domain of that topology. It's a required field.", - Default: "", + Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", Type: []string{"string"}, Format: "", }, }, - "whenUnsatisfiable": { + "apiVersion": { SchemaProps: spec.SchemaProps{ - Description: "WhenUnsatisfiable indicates how to deal with a pod if it doesn't satisfy the spread constraint. - DoNotSchedule (default) tells the scheduler not to schedule it. - ScheduleAnyway tells the scheduler to schedule the pod in any location,\n but giving higher precedence to topologies that would help reduce the\n skew.\nA constraint is considered \"Unsatisfiable\" for an incoming pod if and only if every possible node assignment for that pod would violate \"MaxSkew\" on some topology. For example, in a 3-zone cluster, MaxSkew is set to 1, and pods with the same labelSelector spread as 3/1/1: | zone1 | zone2 | zone3 | | P P P | P | P | If WhenUnsatisfiable is set to DoNotSchedule, incoming pod can only be scheduled to zone2(zone3) to become 3/2/1(3/1/2) as ActualSkew(2-1) on zone2(zone3) satisfies MaxSkew(1). In other words, the cluster can still be imbalanced, but scheduler won't make it *more* imbalanced. It's a required field.\n\nPossible enum values:\n - `\"DoNotSchedule\"` instructs the scheduler not to schedule the pod when constraints are not satisfied.\n - `\"ScheduleAnyway\"` instructs the scheduler to schedule the pod even if constraints are not satisfied.", - Default: "", + Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", Type: []string{"string"}, Format: "", - Enum: []interface{}{"DoNotSchedule", "ScheduleAnyway"}, }, }, - "labelSelector": { + "metadata": { SchemaProps: spec.SchemaProps{ - Description: "LabelSelector is used to find matching pods. Pods that match this label selector are counted to determine the number of pods in their corresponding topology domain.", - Ref: ref(metav1.LabelSelector{}.OpenAPIModelName()), + Description: "Standard object's metadata.", + Default: map[string]interface{}{}, + Ref: ref(metav1.ListMeta{}.OpenAPIModelName()), }, }, - "minDomains": { + "items": { SchemaProps: spec.SchemaProps{ - Description: "MinDomains indicates a minimum number of eligible domains. When the number of eligible domains with matching topology keys is less than minDomains, Pod Topology Spread treats \"global minimum\" as 0, and then the calculation of Skew is performed. And when the number of eligible domains with matching topology keys equals or greater than minDomains, this value has no effect on scheduling. As a result, when the number of eligible domains is less than minDomains, scheduler won't schedule more than maxSkew Pods to those domains. If value is nil, the constraint behaves as if MinDomains is equal to 1. Valid values are integers greater than 0. When value is not nil, WhenUnsatisfiable must be DoNotSchedule.\n\nFor example, in a 3-zone cluster, MaxSkew is set to 2, MinDomains is set to 5 and pods with the same labelSelector spread as 2/2/2: | zone1 | zone2 | zone3 | | P P | P P | P P | The number of domains is less than 5(MinDomains), so \"global minimum\" is treated as 0. In this situation, new pod with the same labelSelector cannot be scheduled, because computed skew will be 3(3 - 0) if new Pod is scheduled to any of the three zones, it will violate MaxSkew.", - Type: []string{"integer"}, - Format: "int32", + Description: "Items is a list of RoleBindings", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref(rbacv1.RoleBinding{}.OpenAPIModelName()), + }, + }, + }, }, }, - "nodeAffinityPolicy": { + }, + Required: []string{"items"}, + }, + }, + Dependencies: []string{ + rbacv1.RoleBinding{}.OpenAPIModelName(), metav1.ListMeta{}.OpenAPIModelName()}, + } +} + +func schema_k8sio_api_rbac_v1_RoleList(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "RoleList is a collection of Roles", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "kind": { SchemaProps: spec.SchemaProps{ - Description: "NodeAffinityPolicy indicates how we will treat Pod's nodeAffinity/nodeSelector when calculating pod topology spread skew. Options are: - Honor: only nodes matching nodeAffinity/nodeSelector are included in the calculations. - Ignore: nodeAffinity/nodeSelector are ignored. All nodes are included in the calculations.\n\nIf this value is nil, the behavior is equivalent to the Honor policy.\n\nPossible enum values:\n - `\"Honor\"` means use this scheduling directive when calculating pod topology spread skew.\n - `\"Ignore\"` means ignore this scheduling directive when calculating pod topology spread skew.", + Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", Type: []string{"string"}, Format: "", - Enum: []interface{}{"Honor", "Ignore"}, }, }, - "nodeTaintsPolicy": { + "apiVersion": { SchemaProps: spec.SchemaProps{ - Description: "NodeTaintsPolicy indicates how we will treat node taints when calculating pod topology spread skew. Options are: - Honor: nodes without taints, along with tainted nodes for which the incoming pod has a toleration, are included. - Ignore: node taints are ignored. All nodes are included.\n\nIf this value is nil, the behavior is equivalent to the Ignore policy.\n\nPossible enum values:\n - `\"Honor\"` means use this scheduling directive when calculating pod topology spread skew.\n - `\"Ignore\"` means ignore this scheduling directive when calculating pod topology spread skew.", + Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", Type: []string{"string"}, Format: "", - Enum: []interface{}{"Honor", "Ignore"}, }, }, - "matchLabelKeys": { - VendorExtensible: spec.VendorExtensible{ - Extensions: spec.Extensions{ - "x-kubernetes-list-type": "atomic", - }, + "metadata": { + SchemaProps: spec.SchemaProps{ + Description: "Standard object's metadata.", + Default: map[string]interface{}{}, + Ref: ref(metav1.ListMeta{}.OpenAPIModelName()), }, + }, + "items": { SchemaProps: spec.SchemaProps{ - Description: "MatchLabelKeys is a set of pod label keys to select the pods over which spreading will be calculated. The keys are used to lookup values from the incoming pod labels, those key-value labels are ANDed with labelSelector to select the group of existing pods over which spreading will be calculated for the incoming pod. The same key is forbidden to exist in both MatchLabelKeys and LabelSelector. MatchLabelKeys cannot be set when LabelSelector isn't set. Keys that don't exist in the incoming pod labels will be ignored. A null or empty list means only match against labelSelector.\n\nThis is a beta field and requires the MatchLabelKeysInPodTopologySpread feature gate to be enabled (enabled by default).", + Description: "Items is a list of Roles", Type: []string{"array"}, Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ - Default: "", - Type: []string{"string"}, - Format: "", + Default: map[string]interface{}{}, + Ref: ref(rbacv1.Role{}.OpenAPIModelName()), }, }, }, }, }, }, - Required: []string{"maxSkew", "topologyKey", "whenUnsatisfiable"}, + Required: []string{"items"}, }, }, Dependencies: []string{ - metav1.LabelSelector{}.OpenAPIModelName()}, + rbacv1.Role{}.OpenAPIModelName(), metav1.ListMeta{}.OpenAPIModelName()}, } } -func schema_k8sio_api_core_v1_TypedLocalObjectReference(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_k8sio_api_rbac_v1_RoleRef(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "TypedLocalObjectReference contains enough information to let you locate the typed referenced object inside the same namespace.", + Description: "RoleRef contains information that points to the role being used", Type: []string{"object"}, Properties: map[string]spec.Schema{ "apiGroup": { SchemaProps: spec.SchemaProps{ - Description: "APIGroup is the group for the resource being referenced. If APIGroup is not specified, the specified Kind must be in the core API group. For any other third-party types, APIGroup is required.", + Description: "APIGroup is the group for the resource being referenced", + Default: "", Type: []string{"string"}, Format: "", }, @@ -48266,7 +51018,7 @@ func schema_k8sio_api_core_v1_TypedLocalObjectReference(ref common.ReferenceCall }, }, }, - Required: []string{"kind", "name"}, + Required: []string{"apiGroup", "kind", "name"}, }, VendorExtensible: spec.VendorExtensible{ Extensions: spec.Extensions{ @@ -48277,31 +51029,31 @@ func schema_k8sio_api_core_v1_TypedLocalObjectReference(ref common.ReferenceCall } } -func schema_k8sio_api_core_v1_TypedObjectReference(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_k8sio_api_rbac_v1_Subject(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "TypedObjectReference contains enough information to let you locate the typed referenced object", + Description: "Subject contains a reference to the object or user identities a role binding applies to. This can either hold a direct API object reference, or a value for non-objects such as user and group names.", Type: []string{"object"}, Properties: map[string]spec.Schema{ - "apiGroup": { + "kind": { SchemaProps: spec.SchemaProps{ - Description: "APIGroup is the group for the resource being referenced. If APIGroup is not specified, the specified Kind must be in the core API group. For any other third-party types, APIGroup is required.", + Description: "Kind of object being referenced. Values defined by this API group are \"User\", \"Group\", and \"ServiceAccount\". If the Authorizer does not recognized the kind value, the Authorizer should report an error.", + Default: "", Type: []string{"string"}, Format: "", }, }, - "kind": { + "apiGroup": { SchemaProps: spec.SchemaProps{ - Description: "Kind is the type of resource being referenced", - Default: "", + Description: "APIGroup holds the API group of the referenced subject. Defaults to \"\" for ServiceAccount subjects. Defaults to \"rbac.authorization.k8s.io\" for User and Group subjects.", Type: []string{"string"}, Format: "", }, }, "name": { SchemaProps: spec.SchemaProps{ - Description: "Name is the name of resource being referenced", + Description: "Name of the object being referenced.", Default: "", Type: []string{"string"}, Format: "", @@ -48309,7 +51061,7 @@ func schema_k8sio_api_core_v1_TypedObjectReference(ref common.ReferenceCallback) }, "namespace": { SchemaProps: spec.SchemaProps{ - Description: "Namespace is the namespace of resource being referenced Note that when a namespace is specified, a gateway.networking.k8s.io/ReferenceGrant object is required in the referent namespace to allow that namespace's owner to accept the reference. See the ReferenceGrant documentation for details. (Alpha) This field requires the CrossNamespaceVolumeDataSource feature gate to be enabled.", + Description: "Namespace of the referenced object. If the object kind is non-namespace, such as \"User\" or \"Group\", and this value is not empty the Authorizer should report an error.", Type: []string{"string"}, Format: "", }, @@ -48317,811 +51069,1161 @@ func schema_k8sio_api_core_v1_TypedObjectReference(ref common.ReferenceCallback) }, Required: []string{"kind", "name"}, }, + VendorExtensible: spec.VendorExtensible{ + Extensions: spec.Extensions{ + "x-kubernetes-map-type": "atomic", + }, + }, }, } } -func schema_k8sio_api_core_v1_Volume(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_k8sio_api_storage_v1_CSIDriver(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "Volume represents a named volume in a pod that may be accessed by any container in the pod.", + Description: "CSIDriver captures information about a Container Storage Interface (CSI) volume driver deployed on the cluster. Kubernetes attach detach controller uses this object to determine whether attach is required. Kubelet uses this object to determine whether pod information needs to be passed on mount. CSIDriver objects are non-namespaced.", Type: []string{"object"}, Properties: map[string]spec.Schema{ - "name": { + "kind": { SchemaProps: spec.SchemaProps{ - Description: "name of the volume. Must be a DNS_LABEL and unique within the pod. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", - Default: "", + Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", Type: []string{"string"}, Format: "", }, }, - "hostPath": { - SchemaProps: spec.SchemaProps{ - Description: "hostPath represents a pre-existing file or directory on the host machine that is directly exposed to the container. This is generally used for system agents or other privileged things that are allowed to see the host machine. Most containers will NOT need this. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath", - Ref: ref(corev1.HostPathVolumeSource{}.OpenAPIModelName()), - }, - }, - "emptyDir": { - SchemaProps: spec.SchemaProps{ - Description: "emptyDir represents a temporary directory that shares a pod's lifetime. More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir", - Ref: ref(corev1.EmptyDirVolumeSource{}.OpenAPIModelName()), - }, - }, - "gcePersistentDisk": { - SchemaProps: spec.SchemaProps{ - Description: "gcePersistentDisk represents a GCE Disk resource that is attached to a kubelet's host machine and then exposed to the pod. Deprecated: GCEPersistentDisk is deprecated. All operations for the in-tree gcePersistentDisk type are redirected to the pd.csi.storage.gke.io CSI driver. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk", - Ref: ref(corev1.GCEPersistentDiskVolumeSource{}.OpenAPIModelName()), - }, - }, - "awsElasticBlockStore": { - SchemaProps: spec.SchemaProps{ - Description: "awsElasticBlockStore represents an AWS Disk resource that is attached to a kubelet's host machine and then exposed to the pod. Deprecated: AWSElasticBlockStore is deprecated. All operations for the in-tree awsElasticBlockStore type are redirected to the ebs.csi.aws.com CSI driver. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore", - Ref: ref(corev1.AWSElasticBlockStoreVolumeSource{}.OpenAPIModelName()), - }, - }, - "gitRepo": { - SchemaProps: spec.SchemaProps{ - Description: "gitRepo represents a git repository at a particular revision. Deprecated: GitRepo is deprecated. To provision a container with a git repo, mount an EmptyDir into an InitContainer that clones the repo using git, then mount the EmptyDir into the Pod's container.", - Ref: ref(corev1.GitRepoVolumeSource{}.OpenAPIModelName()), - }, - }, - "secret": { - SchemaProps: spec.SchemaProps{ - Description: "secret represents a secret that should populate this volume. More info: https://kubernetes.io/docs/concepts/storage/volumes#secret", - Ref: ref(corev1.SecretVolumeSource{}.OpenAPIModelName()), - }, - }, - "nfs": { - SchemaProps: spec.SchemaProps{ - Description: "nfs represents an NFS mount on the host that shares a pod's lifetime More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs", - Ref: ref(corev1.NFSVolumeSource{}.OpenAPIModelName()), - }, - }, - "iscsi": { - SchemaProps: spec.SchemaProps{ - Description: "iscsi represents an ISCSI Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes/#iscsi", - Ref: ref(corev1.ISCSIVolumeSource{}.OpenAPIModelName()), - }, - }, - "glusterfs": { - SchemaProps: spec.SchemaProps{ - Description: "glusterfs represents a Glusterfs mount on the host that shares a pod's lifetime. Deprecated: Glusterfs is deprecated and the in-tree glusterfs type is no longer supported.", - Ref: ref(corev1.GlusterfsVolumeSource{}.OpenAPIModelName()), - }, - }, - "persistentVolumeClaim": { - SchemaProps: spec.SchemaProps{ - Description: "persistentVolumeClaimVolumeSource represents a reference to a PersistentVolumeClaim in the same namespace. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims", - Ref: ref(corev1.PersistentVolumeClaimVolumeSource{}.OpenAPIModelName()), - }, - }, - "rbd": { - SchemaProps: spec.SchemaProps{ - Description: "rbd represents a Rados Block Device mount on the host that shares a pod's lifetime. Deprecated: RBD is deprecated and the in-tree rbd type is no longer supported.", - Ref: ref(corev1.RBDVolumeSource{}.OpenAPIModelName()), - }, - }, - "flexVolume": { - SchemaProps: spec.SchemaProps{ - Description: "flexVolume represents a generic volume resource that is provisioned/attached using an exec based plugin. Deprecated: FlexVolume is deprecated. Consider using a CSIDriver instead.", - Ref: ref(corev1.FlexVolumeSource{}.OpenAPIModelName()), - }, - }, - "cinder": { - SchemaProps: spec.SchemaProps{ - Description: "cinder represents a cinder volume attached and mounted on kubelets host machine. Deprecated: Cinder is deprecated. All operations for the in-tree cinder type are redirected to the cinder.csi.openstack.org CSI driver. More info: https://examples.k8s.io/mysql-cinder-pd/README.md", - Ref: ref(corev1.CinderVolumeSource{}.OpenAPIModelName()), - }, - }, - "cephfs": { + "apiVersion": { SchemaProps: spec.SchemaProps{ - Description: "cephFS represents a Ceph FS mount on the host that shares a pod's lifetime. Deprecated: CephFS is deprecated and the in-tree cephfs type is no longer supported.", - Ref: ref(corev1.CephFSVolumeSource{}.OpenAPIModelName()), + Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + Type: []string{"string"}, + Format: "", }, }, - "flocker": { + "metadata": { SchemaProps: spec.SchemaProps{ - Description: "flocker represents a Flocker volume attached to a kubelet's host machine. This depends on the Flocker control service being running. Deprecated: Flocker is deprecated and the in-tree flocker type is no longer supported.", - Ref: ref(corev1.FlockerVolumeSource{}.OpenAPIModelName()), + Description: "Standard object metadata. metadata.Name indicates the name of the CSI driver that this object refers to; it MUST be the same name returned by the CSI GetPluginName() call for that driver. The driver name must be 63 characters or less, beginning and ending with an alphanumeric character ([a-z0-9A-Z]) with dashes (-), dots (.), and alphanumerics between. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata", + Default: map[string]interface{}{}, + Ref: ref(metav1.ObjectMeta{}.OpenAPIModelName()), }, }, - "downwardAPI": { + "spec": { SchemaProps: spec.SchemaProps{ - Description: "downwardAPI represents downward API about the pod that should populate this volume", - Ref: ref(corev1.DownwardAPIVolumeSource{}.OpenAPIModelName()), + Description: "spec represents the specification of the CSI Driver.", + Default: map[string]interface{}{}, + Ref: ref(storagev1.CSIDriverSpec{}.OpenAPIModelName()), }, }, - "fc": { + }, + Required: []string{"spec"}, + }, + }, + Dependencies: []string{ + storagev1.CSIDriverSpec{}.OpenAPIModelName(), metav1.ObjectMeta{}.OpenAPIModelName()}, + } +} + +func schema_k8sio_api_storage_v1_CSIDriverList(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "CSIDriverList is a collection of CSIDriver objects.", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "kind": { SchemaProps: spec.SchemaProps{ - Description: "fc represents a Fibre Channel resource that is attached to a kubelet's host machine and then exposed to the pod.", - Ref: ref(corev1.FCVolumeSource{}.OpenAPIModelName()), + Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + Type: []string{"string"}, + Format: "", }, }, - "azureFile": { + "apiVersion": { SchemaProps: spec.SchemaProps{ - Description: "azureFile represents an Azure File Service mount on the host and bind mount to the pod. Deprecated: AzureFile is deprecated. All operations for the in-tree azureFile type are redirected to the file.csi.azure.com CSI driver.", - Ref: ref(corev1.AzureFileVolumeSource{}.OpenAPIModelName()), + Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + Type: []string{"string"}, + Format: "", }, }, - "configMap": { + "metadata": { SchemaProps: spec.SchemaProps{ - Description: "configMap represents a configMap that should populate this volume", - Ref: ref(corev1.ConfigMapVolumeSource{}.OpenAPIModelName()), + Description: "Standard list metadata More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata", + Default: map[string]interface{}{}, + Ref: ref(metav1.ListMeta{}.OpenAPIModelName()), }, }, - "vsphereVolume": { + "items": { SchemaProps: spec.SchemaProps{ - Description: "vsphereVolume represents a vSphere volume attached and mounted on kubelets host machine. Deprecated: VsphereVolume is deprecated. All operations for the in-tree vsphereVolume type are redirected to the csi.vsphere.vmware.com CSI driver.", - Ref: ref(corev1.VsphereVirtualDiskVolumeSource{}.OpenAPIModelName()), + Description: "items is the list of CSIDriver", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref(storagev1.CSIDriver{}.OpenAPIModelName()), + }, + }, + }, }, }, - "quobyte": { + }, + Required: []string{"items"}, + }, + }, + Dependencies: []string{ + storagev1.CSIDriver{}.OpenAPIModelName(), metav1.ListMeta{}.OpenAPIModelName()}, + } +} + +func schema_k8sio_api_storage_v1_CSIDriverSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "CSIDriverSpec is the specification of a CSIDriver.", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "attachRequired": { SchemaProps: spec.SchemaProps{ - Description: "quobyte represents a Quobyte mount on the host that shares a pod's lifetime. Deprecated: Quobyte is deprecated and the in-tree quobyte type is no longer supported.", - Ref: ref(corev1.QuobyteVolumeSource{}.OpenAPIModelName()), + Description: "attachRequired indicates this CSI volume driver requires an attach operation (because it implements the CSI ControllerPublishVolume() method), and that the Kubernetes attach detach controller should call the attach volume interface which checks the volumeattachment status and waits until the volume is attached before proceeding to mounting. The CSI external-attacher coordinates with CSI volume driver and updates the volumeattachment status when the attach operation is complete. If the value is specified to false, the attach operation will be skipped. Otherwise the attach operation will be called.\n\nThis field is immutable.", + Type: []string{"boolean"}, + Format: "", }, }, - "azureDisk": { + "podInfoOnMount": { SchemaProps: spec.SchemaProps{ - Description: "azureDisk represents an Azure Data Disk mount on the host and bind mount to the pod. Deprecated: AzureDisk is deprecated. All operations for the in-tree azureDisk type are redirected to the disk.csi.azure.com CSI driver.", - Ref: ref(corev1.AzureDiskVolumeSource{}.OpenAPIModelName()), + Description: "podInfoOnMount indicates this CSI volume driver requires additional pod information (like podName, podUID, etc.) during mount operations, if set to true. If set to false, pod information will not be passed on mount. Default is false.\n\nThe CSI driver specifies podInfoOnMount as part of driver deployment. If true, Kubelet will pass pod information as VolumeContext in the CSI NodePublishVolume() calls. The CSI driver is responsible for parsing and validating the information passed in as VolumeContext.\n\nThe following VolumeContext will be passed if podInfoOnMount is set to true. This list might grow, but the prefix will be used. \"csi.storage.k8s.io/pod.name\": pod.Name \"csi.storage.k8s.io/pod.namespace\": pod.Namespace \"csi.storage.k8s.io/pod.uid\": string(pod.UID) \"csi.storage.k8s.io/ephemeral\": \"true\" if the volume is an ephemeral inline volume\n defined by a CSIVolumeSource, otherwise \"false\"\n\n\"csi.storage.k8s.io/ephemeral\" is a new feature in Kubernetes 1.16. It is only required for drivers which support both the \"Persistent\" and \"Ephemeral\" VolumeLifecycleMode. Other drivers can leave pod info disabled and/or ignore this field. As Kubernetes 1.15 doesn't support this field, drivers can only support one mode when deployed on such a cluster and the deployment determines which mode that is, for example via a command line parameter of the driver.\n\nThis field was immutable in Kubernetes < 1.29 and now is mutable.", + Type: []string{"boolean"}, + Format: "", }, }, - "photonPersistentDisk": { + "volumeLifecycleModes": { + VendorExtensible: spec.VendorExtensible{ + Extensions: spec.Extensions{ + "x-kubernetes-list-type": "set", + }, + }, SchemaProps: spec.SchemaProps{ - Description: "photonPersistentDisk represents a PhotonController persistent disk attached and mounted on kubelets host machine. Deprecated: PhotonPersistentDisk is deprecated and the in-tree photonPersistentDisk type is no longer supported.", - Ref: ref(corev1.PhotonPersistentDiskVolumeSource{}.OpenAPIModelName()), + Description: "volumeLifecycleModes defines what kind of volumes this CSI volume driver supports. The default if the list is empty is \"Persistent\", which is the usage defined by the CSI specification and implemented in Kubernetes via the usual PV/PVC mechanism.\n\nThe other mode is \"Ephemeral\". In this mode, volumes are defined inline inside the pod spec with CSIVolumeSource and their lifecycle is tied to the lifecycle of that pod. A driver has to be aware of this because it is only going to get a NodePublishVolume call for such a volume.\n\nFor more information about implementing this mode, see https://kubernetes-csi.github.io/docs/ephemeral-local-volumes.html A driver can support one or more of these modes and more modes may be added in the future.\n\nThis field is beta. This field is immutable.", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + }, }, }, - "projected": { + "storageCapacity": { SchemaProps: spec.SchemaProps{ - Description: "projected items for all in one resources secrets, configmaps, and downward API", - Ref: ref(corev1.ProjectedVolumeSource{}.OpenAPIModelName()), + Description: "storageCapacity indicates that the CSI volume driver wants pod scheduling to consider the storage capacity that the driver deployment will report by creating CSIStorageCapacity objects with capacity information, if set to true.\n\nThe check can be enabled immediately when deploying a driver. In that case, provisioning new volumes with late binding will pause until the driver deployment has published some suitable CSIStorageCapacity object.\n\nAlternatively, the driver can be deployed with the field unset or false and it can be flipped later when storage capacity information has been published.\n\nThis field was immutable in Kubernetes <= 1.22 and now is mutable.", + Type: []string{"boolean"}, + Format: "", }, }, - "portworxVolume": { + "fsGroupPolicy": { SchemaProps: spec.SchemaProps{ - Description: "portworxVolume represents a portworx volume attached and mounted on kubelets host machine. Deprecated: PortworxVolume is deprecated. All operations for the in-tree portworxVolume type are redirected to the pxd.portworx.com CSI driver when the CSIMigrationPortworx feature-gate is on.", - Ref: ref(corev1.PortworxVolumeSource{}.OpenAPIModelName()), + Description: "fsGroupPolicy defines if the underlying volume supports changing ownership and permission of the volume before being mounted. Refer to the specific FSGroupPolicy values for additional details.\n\nThis field was immutable in Kubernetes < 1.29 and now is mutable.\n\nDefaults to ReadWriteOnceWithFSType, which will examine each volume to determine if Kubernetes should modify ownership and permissions of the volume. With the default policy the defined fsGroup will only be applied if a fstype is defined and the volume's access mode contains ReadWriteOnce.", + Type: []string{"string"}, + Format: "", }, }, - "scaleIO": { + "tokenRequests": { + VendorExtensible: spec.VendorExtensible{ + Extensions: spec.Extensions{ + "x-kubernetes-list-type": "atomic", + }, + }, SchemaProps: spec.SchemaProps{ - Description: "scaleIO represents a ScaleIO persistent volume attached and mounted on Kubernetes nodes. Deprecated: ScaleIO is deprecated and the in-tree scaleIO type is no longer supported.", - Ref: ref(corev1.ScaleIOVolumeSource{}.OpenAPIModelName()), + Description: "tokenRequests indicates the CSI driver needs pods' service account tokens it is mounting volume for to do necessary authentication. Kubelet will pass the tokens in VolumeContext in the CSI NodePublishVolume calls. The CSI driver should parse and validate the following VolumeContext: \"csi.storage.k8s.io/serviceAccount.tokens\": {\n \"\": {\n \"token\": ,\n \"expirationTimestamp\": ,\n },\n ...\n}\n\nNote: Audience in each TokenRequest should be different and at most one token is empty string. To receive a new token after expiry, RequiresRepublish can be used to trigger NodePublishVolume periodically.", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref(storagev1.TokenRequest{}.OpenAPIModelName()), + }, + }, + }, }, }, - "storageos": { + "requiresRepublish": { SchemaProps: spec.SchemaProps{ - Description: "storageOS represents a StorageOS volume attached and mounted on Kubernetes nodes. Deprecated: StorageOS is deprecated and the in-tree storageos type is no longer supported.", - Ref: ref(corev1.StorageOSVolumeSource{}.OpenAPIModelName()), + Description: "requiresRepublish indicates the CSI driver wants `NodePublishVolume` being periodically called to reflect any possible change in the mounted volume. This field defaults to false.\n\nNote: After a successful initial NodePublishVolume call, subsequent calls to NodePublishVolume should only update the contents of the volume. New mount points will not be seen by a running container.", + Type: []string{"boolean"}, + Format: "", }, }, - "csi": { + "seLinuxMount": { SchemaProps: spec.SchemaProps{ - Description: "csi (Container Storage Interface) represents ephemeral storage that is handled by certain external CSI drivers.", - Ref: ref(corev1.CSIVolumeSource{}.OpenAPIModelName()), + Description: "seLinuxMount specifies if the CSI driver supports \"-o context\" mount option.\n\nWhen \"true\", the CSI driver must ensure that all volumes provided by this CSI driver can be mounted separately with different `-o context` options. This is typical for storage backends that provide volumes as filesystems on block devices or as independent shared volumes. Kubernetes will call NodeStage / NodePublish with \"-o context=xyz\" mount option when mounting a ReadWriteOncePod volume used in Pod that has explicitly set SELinux context. In the future, it may be expanded to other volume AccessModes. In any case, Kubernetes will ensure that the volume is mounted only with a single SELinux context.\n\nWhen \"false\", Kubernetes won't pass any special SELinux mount options to the driver. This is typical for volumes that represent subdirectories of a bigger shared filesystem.\n\nDefault is \"false\".", + Type: []string{"boolean"}, + Format: "", }, }, - "ephemeral": { + "nodeAllocatableUpdatePeriodSeconds": { SchemaProps: spec.SchemaProps{ - Description: "ephemeral represents a volume that is handled by a cluster storage driver. The volume's lifecycle is tied to the pod that defines it - it will be created before the pod starts, and deleted when the pod is removed.\n\nUse this if: a) the volume is only needed while the pod runs, b) features of normal volumes like restoring from snapshot or capacity\n tracking are needed,\nc) the storage driver is specified through a storage class, and d) the storage driver supports dynamic volume provisioning through\n a PersistentVolumeClaim (see EphemeralVolumeSource for more\n information on the connection between this volume type\n and PersistentVolumeClaim).\n\nUse PersistentVolumeClaim or one of the vendor-specific APIs for volumes that persist for longer than the lifecycle of an individual pod.\n\nUse CSI for light-weight local ephemeral volumes if the CSI driver is meant to be used that way - see the documentation of the driver for more information.\n\nA pod can use both types of ephemeral volumes and persistent volumes at the same time.", - Ref: ref(corev1.EphemeralVolumeSource{}.OpenAPIModelName()), + Description: "nodeAllocatableUpdatePeriodSeconds specifies the interval between periodic updates of the CSINode allocatable capacity for this driver. When set, both periodic updates and updates triggered by capacity-related failures are enabled. If not set, no updates occur (neither periodic nor upon detecting capacity-related failures), and the allocatable.count remains static. The minimum allowed value for this field is 10 seconds.\n\nThis is a beta feature and requires the MutableCSINodeAllocatableCount feature gate to be enabled.\n\nThis field is mutable.", + Type: []string{"integer"}, + Format: "int64", }, }, - "image": { + "serviceAccountTokenInSecrets": { SchemaProps: spec.SchemaProps{ - Description: "image represents an OCI object (a container image or artifact) pulled and mounted on the kubelet's host machine. The volume is resolved at pod startup depending on which PullPolicy value is provided:\n\n- Always: the kubelet always attempts to pull the reference. Container creation will fail If the pull fails. - Never: the kubelet never pulls the reference and only uses a local image or artifact. Container creation will fail if the reference isn't present. - IfNotPresent: the kubelet pulls if the reference isn't already present on disk. Container creation will fail if the reference isn't present and the pull fails.\n\nThe volume gets re-resolved if the pod gets deleted and recreated, which means that new remote content will become available on pod recreation. A failure to resolve or pull the image during pod startup will block containers from starting and may add significant latency. Failures will be retried using normal volume backoff and will be reported on the pod reason and message. The types of objects that may be mounted by this volume are defined by the container runtime implementation on a host machine and at minimum must include all valid types supported by the container image field. The OCI object gets mounted in a single directory (spec.containers[*].volumeMounts.mountPath) by merging the manifest layers in the same way as for container images. The volume will be mounted read-only (ro) and non-executable files (noexec). Sub path mounts for containers are not supported (spec.containers[*].volumeMounts.subpath) before 1.33. The field spec.securityContext.fsGroupChangePolicy has no effect on this volume type.", - Ref: ref(corev1.ImageVolumeSource{}.OpenAPIModelName()), + Description: "serviceAccountTokenInSecrets is an opt-in for CSI drivers to indicate that service account tokens should be passed via the Secrets field in NodePublishVolumeRequest instead of the VolumeContext field. The CSI specification provides a dedicated Secrets field for sensitive information like tokens, which is the appropriate mechanism for handling credentials. This addresses security concerns where sensitive tokens were being logged as part of volume context.\n\nWhen \"true\", kubelet will pass the tokens only in the Secrets field with the key \"csi.storage.k8s.io/serviceAccount.tokens\". The CSI driver must be updated to read tokens from the Secrets field instead of VolumeContext.\n\nWhen \"false\" or not set, kubelet will pass the tokens in VolumeContext with the key \"csi.storage.k8s.io/serviceAccount.tokens\" (existing behavior). This maintains backward compatibility with existing CSI drivers.\n\nThis field can only be set when TokenRequests is configured. The API server will reject CSIDriver specs that set this field without TokenRequests.\n\nDefault behavior if unset is to pass tokens in the VolumeContext field.", + Type: []string{"boolean"}, + Format: "", }, }, }, - Required: []string{"name"}, }, }, Dependencies: []string{ - corev1.AWSElasticBlockStoreVolumeSource{}.OpenAPIModelName(), corev1.AzureDiskVolumeSource{}.OpenAPIModelName(), corev1.AzureFileVolumeSource{}.OpenAPIModelName(), corev1.CSIVolumeSource{}.OpenAPIModelName(), corev1.CephFSVolumeSource{}.OpenAPIModelName(), corev1.CinderVolumeSource{}.OpenAPIModelName(), corev1.ConfigMapVolumeSource{}.OpenAPIModelName(), corev1.DownwardAPIVolumeSource{}.OpenAPIModelName(), corev1.EmptyDirVolumeSource{}.OpenAPIModelName(), corev1.EphemeralVolumeSource{}.OpenAPIModelName(), corev1.FCVolumeSource{}.OpenAPIModelName(), corev1.FlexVolumeSource{}.OpenAPIModelName(), corev1.FlockerVolumeSource{}.OpenAPIModelName(), corev1.GCEPersistentDiskVolumeSource{}.OpenAPIModelName(), corev1.GitRepoVolumeSource{}.OpenAPIModelName(), corev1.GlusterfsVolumeSource{}.OpenAPIModelName(), corev1.HostPathVolumeSource{}.OpenAPIModelName(), corev1.ISCSIVolumeSource{}.OpenAPIModelName(), corev1.ImageVolumeSource{}.OpenAPIModelName(), corev1.NFSVolumeSource{}.OpenAPIModelName(), corev1.PersistentVolumeClaimVolumeSource{}.OpenAPIModelName(), corev1.PhotonPersistentDiskVolumeSource{}.OpenAPIModelName(), corev1.PortworxVolumeSource{}.OpenAPIModelName(), corev1.ProjectedVolumeSource{}.OpenAPIModelName(), corev1.QuobyteVolumeSource{}.OpenAPIModelName(), corev1.RBDVolumeSource{}.OpenAPIModelName(), corev1.ScaleIOVolumeSource{}.OpenAPIModelName(), corev1.SecretVolumeSource{}.OpenAPIModelName(), corev1.StorageOSVolumeSource{}.OpenAPIModelName(), corev1.VsphereVirtualDiskVolumeSource{}.OpenAPIModelName()}, + storagev1.TokenRequest{}.OpenAPIModelName()}, } } -func schema_k8sio_api_core_v1_VolumeDevice(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_k8sio_api_storage_v1_CSINode(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "volumeDevice describes a mapping of a raw block device within a container.", + Description: "CSINode holds information about all CSI drivers installed on a node. CSI drivers do not need to create the CSINode object directly. As long as they use the node-driver-registrar sidecar container, the kubelet will automatically populate the CSINode object for the CSI driver as part of kubelet plugin registration. CSINode has the same name as a node. If the object is missing, it means either there are no CSI Drivers available on the node, or the Kubelet version is low enough that it doesn't create this object. CSINode has an OwnerReference that points to the corresponding node object.", Type: []string{"object"}, Properties: map[string]spec.Schema{ - "name": { + "kind": { SchemaProps: spec.SchemaProps{ - Description: "name must match the name of a persistentVolumeClaim in the pod", - Default: "", + Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", Type: []string{"string"}, Format: "", }, }, - "devicePath": { + "apiVersion": { SchemaProps: spec.SchemaProps{ - Description: "devicePath is the path inside of the container that the device will be mapped to.", - Default: "", + Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", Type: []string{"string"}, Format: "", }, }, + "metadata": { + SchemaProps: spec.SchemaProps{ + Description: "Standard object's metadata. metadata.name must be the Kubernetes node name.", + Default: map[string]interface{}{}, + Ref: ref(metav1.ObjectMeta{}.OpenAPIModelName()), + }, + }, + "spec": { + SchemaProps: spec.SchemaProps{ + Description: "spec is the specification of CSINode", + Default: map[string]interface{}{}, + Ref: ref(storagev1.CSINodeSpec{}.OpenAPIModelName()), + }, + }, }, - Required: []string{"name", "devicePath"}, + Required: []string{"spec"}, }, }, + Dependencies: []string{ + storagev1.CSINodeSpec{}.OpenAPIModelName(), metav1.ObjectMeta{}.OpenAPIModelName()}, } } -func schema_k8sio_api_core_v1_VolumeMount(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_k8sio_api_storage_v1_CSINodeDriver(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "VolumeMount describes a mounting of a Volume within a container.", + Description: "CSINodeDriver holds information about the specification of one CSI driver installed on a node", Type: []string{"object"}, Properties: map[string]spec.Schema{ "name": { SchemaProps: spec.SchemaProps{ - Description: "This must match the Name of a Volume.", + Description: "name represents the name of the CSI driver that this object refers to. This MUST be the same name returned by the CSI GetPluginName() call for that driver.", Default: "", Type: []string{"string"}, Format: "", }, }, - "readOnly": { - SchemaProps: spec.SchemaProps{ - Description: "Mounted read-only if true, read-write otherwise (false or unspecified). Defaults to false.", - Type: []string{"boolean"}, - Format: "", - }, - }, - "recursiveReadOnly": { - SchemaProps: spec.SchemaProps{ - Description: "RecursiveReadOnly specifies whether read-only mounts should be handled recursively.\n\nIf ReadOnly is false, this field has no meaning and must be unspecified.\n\nIf ReadOnly is true, and this field is set to Disabled, the mount is not made recursively read-only. If this field is set to IfPossible, the mount is made recursively read-only, if it is supported by the container runtime. If this field is set to Enabled, the mount is made recursively read-only if it is supported by the container runtime, otherwise the pod will not be started and an error will be generated to indicate the reason.\n\nIf this field is set to IfPossible or Enabled, MountPropagation must be set to None (or be unspecified, which defaults to None).\n\nIf this field is not specified, it is treated as an equivalent of Disabled.", - Type: []string{"string"}, - Format: "", - }, - }, - "mountPath": { + "nodeID": { SchemaProps: spec.SchemaProps{ - Description: "Path within the container at which the volume should be mounted. Must not contain ':'.", + Description: "nodeID of the node from the driver point of view. This field enables Kubernetes to communicate with storage systems that do not share the same nomenclature for nodes. For example, Kubernetes may refer to a given node as \"node1\", but the storage system may refer to the same node as \"nodeA\". When Kubernetes issues a command to the storage system to attach a volume to a specific node, it can use this field to refer to the node name using the ID that the storage system will understand, e.g. \"nodeA\" instead of \"node1\". This field is required.", Default: "", Type: []string{"string"}, Format: "", }, }, - "subPath": { - SchemaProps: spec.SchemaProps{ - Description: "Path within the volume from which the container's volume should be mounted. Defaults to \"\" (volume's root).", - Type: []string{"string"}, - Format: "", + "topologyKeys": { + VendorExtensible: spec.VendorExtensible{ + Extensions: spec.Extensions{ + "x-kubernetes-list-type": "atomic", + }, }, - }, - "mountPropagation": { SchemaProps: spec.SchemaProps{ - Description: "mountPropagation determines how mounts are propagated from the host to container and the other way around. When not set, MountPropagationNone is used. This field is beta in 1.10. When RecursiveReadOnly is set to IfPossible or to Enabled, MountPropagation must be None or unspecified (which defaults to None).\n\nPossible enum values:\n - `\"Bidirectional\"` means that the volume in a container will receive new mounts from the host or other containers, and its own mounts will be propagated from the container to the host or other containers. Note that this mode is recursively applied to all mounts in the volume (\"rshared\" in Linux terminology).\n - `\"HostToContainer\"` means that the volume in a container will receive new mounts from the host or other containers, but filesystems mounted inside the container won't be propagated to the host or other containers. Note that this mode is recursively applied to all mounts in the volume (\"rslave\" in Linux terminology).\n - `\"None\"` means that the volume in a container will not receive new mounts from the host or other containers, and filesystems mounted inside the container won't be propagated to the host or other containers. Note that this mode corresponds to \"private\" in Linux terminology.", - Type: []string{"string"}, - Format: "", - Enum: []interface{}{"Bidirectional", "HostToContainer", "None"}, + Description: "topologyKeys is the list of keys supported by the driver. When a driver is initialized on a cluster, it provides a set of topology keys that it understands (e.g. \"company.com/zone\", \"company.com/region\"). When a driver is initialized on a node, it provides the same topology keys along with values. Kubelet will expose these topology keys as labels on its own node object. When Kubernetes does topology aware provisioning, it can use this list to determine which labels it should retrieve from the node object and pass back to the driver. It is possible for different nodes to use different topology keys. This can be empty if driver does not support topology.", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + }, }, }, - "subPathExpr": { + "allocatable": { SchemaProps: spec.SchemaProps{ - Description: "Expanded path within the volume from which the container's volume should be mounted. Behaves similarly to SubPath but environment variable references $(VAR_NAME) are expanded using the container's environment. Defaults to \"\" (volume's root). SubPathExpr and SubPath are mutually exclusive.", - Type: []string{"string"}, - Format: "", + Description: "allocatable represents the volume resources of a node that are available for scheduling. This field is beta.", + Ref: ref(storagev1.VolumeNodeResources{}.OpenAPIModelName()), }, }, }, - Required: []string{"name", "mountPath"}, + Required: []string{"name", "nodeID"}, }, }, + Dependencies: []string{ + storagev1.VolumeNodeResources{}.OpenAPIModelName()}, } } -func schema_k8sio_api_core_v1_VolumeMountStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_k8sio_api_storage_v1_CSINodeList(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "VolumeMountStatus shows status of volume mounts.", + Description: "CSINodeList is a collection of CSINode objects.", Type: []string{"object"}, Properties: map[string]spec.Schema{ - "name": { + "kind": { SchemaProps: spec.SchemaProps{ - Description: "Name corresponds to the name of the original VolumeMount.", - Default: "", + Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", Type: []string{"string"}, Format: "", }, }, - "mountPath": { + "apiVersion": { SchemaProps: spec.SchemaProps{ - Description: "MountPath corresponds to the original VolumeMount.", - Default: "", + Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", Type: []string{"string"}, Format: "", }, }, - "readOnly": { + "metadata": { SchemaProps: spec.SchemaProps{ - Description: "ReadOnly corresponds to the original VolumeMount.", - Type: []string{"boolean"}, - Format: "", + Description: "Standard list metadata More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata", + Default: map[string]interface{}{}, + Ref: ref(metav1.ListMeta{}.OpenAPIModelName()), }, }, - "recursiveReadOnly": { + "items": { SchemaProps: spec.SchemaProps{ - Description: "RecursiveReadOnly must be set to Disabled, Enabled, or unspecified (for non-readonly mounts). An IfPossible value in the original VolumeMount must be translated to Disabled or Enabled, depending on the mount result.", - Type: []string{"string"}, - Format: "", + Description: "items is the list of CSINode", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref(storagev1.CSINode{}.OpenAPIModelName()), + }, + }, + }, }, }, }, - Required: []string{"name", "mountPath"}, + Required: []string{"items"}, }, }, + Dependencies: []string{ + storagev1.CSINode{}.OpenAPIModelName(), metav1.ListMeta{}.OpenAPIModelName()}, } } -func schema_k8sio_api_core_v1_VolumeNodeAffinity(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_k8sio_api_storage_v1_CSINodeSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "VolumeNodeAffinity defines constraints that limit what nodes this volume can be accessed from.", + Description: "CSINodeSpec holds information about the specification of all CSI drivers installed on a node", Type: []string{"object"}, Properties: map[string]spec.Schema{ - "required": { + "drivers": { + VendorExtensible: spec.VendorExtensible{ + Extensions: spec.Extensions{ + "x-kubernetes-list-map-keys": []interface{}{ + "name", + }, + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "name", + "x-kubernetes-patch-strategy": "merge", + }, + }, SchemaProps: spec.SchemaProps{ - Description: "required specifies hard node constraints that must be met.", - Ref: ref(corev1.NodeSelector{}.OpenAPIModelName()), + Description: "drivers is a list of information of all CSI Drivers existing on a node. If all drivers in the list are uninstalled, this can become empty.", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref(storagev1.CSINodeDriver{}.OpenAPIModelName()), + }, + }, + }, }, }, }, + Required: []string{"drivers"}, }, }, Dependencies: []string{ - corev1.NodeSelector{}.OpenAPIModelName()}, + storagev1.CSINodeDriver{}.OpenAPIModelName()}, } } -func schema_k8sio_api_core_v1_VolumeProjection(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_k8sio_api_storage_v1_CSIStorageCapacity(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "Projection that may be projected along with other supported volume types. Exactly one of these fields must be set.", + Description: "CSIStorageCapacity stores the result of one CSI GetCapacity call. For a given StorageClass, this describes the available capacity in a particular topology segment. This can be used when considering where to instantiate new PersistentVolumes.\n\nFor example this can express things like: - StorageClass \"standard\" has \"1234 GiB\" available in \"topology.kubernetes.io/zone=us-east1\" - StorageClass \"localssd\" has \"10 GiB\" available in \"kubernetes.io/hostname=knode-abc123\"\n\nThe following three cases all imply that no capacity is available for a certain combination: - no object exists with suitable topology and storage class name - such an object exists, but the capacity is unset - such an object exists, but the capacity is zero\n\nThe producer of these objects can decide which approach is more suitable.\n\nThey are consumed by the kube-scheduler when a CSI driver opts into capacity-aware scheduling with CSIDriverSpec.StorageCapacity. The scheduler compares the MaximumVolumeSize against the requested size of pending volumes to filter out unsuitable nodes. If MaximumVolumeSize is unset, it falls back to a comparison against the less precise Capacity. If that is also unset, the scheduler assumes that capacity is insufficient and tries some other node.", Type: []string{"object"}, Properties: map[string]spec.Schema{ - "secret": { + "kind": { SchemaProps: spec.SchemaProps{ - Description: "secret information about the secret data to project", - Ref: ref(corev1.SecretProjection{}.OpenAPIModelName()), + Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + Type: []string{"string"}, + Format: "", }, }, - "downwardAPI": { + "apiVersion": { SchemaProps: spec.SchemaProps{ - Description: "downwardAPI information about the downwardAPI data to project", - Ref: ref(corev1.DownwardAPIProjection{}.OpenAPIModelName()), + Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + Type: []string{"string"}, + Format: "", }, }, - "configMap": { + "metadata": { SchemaProps: spec.SchemaProps{ - Description: "configMap information about the configMap data to project", - Ref: ref(corev1.ConfigMapProjection{}.OpenAPIModelName()), + Description: "Standard object's metadata. The name has no particular meaning. It must be a DNS subdomain (dots allowed, 253 characters). To ensure that there are no conflicts with other CSI drivers on the cluster, the recommendation is to use csisc-, a generated name, or a reverse-domain name which ends with the unique CSI driver name.\n\nObjects are namespaced.\n\nMore info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata", + Default: map[string]interface{}{}, + Ref: ref(metav1.ObjectMeta{}.OpenAPIModelName()), }, }, - "serviceAccountToken": { + "nodeTopology": { SchemaProps: spec.SchemaProps{ - Description: "serviceAccountToken is information about the serviceAccountToken data to project", - Ref: ref(corev1.ServiceAccountTokenProjection{}.OpenAPIModelName()), + Description: "nodeTopology defines which nodes have access to the storage for which capacity was reported. If not set, the storage is not accessible from any node in the cluster. If empty, the storage is accessible from all nodes. This field is immutable.", + Ref: ref(metav1.LabelSelector{}.OpenAPIModelName()), }, }, - "clusterTrustBundle": { + "storageClassName": { SchemaProps: spec.SchemaProps{ - Description: "ClusterTrustBundle allows a pod to access the `.spec.trustBundle` field of ClusterTrustBundle objects in an auto-updating file.\n\nAlpha, gated by the ClusterTrustBundleProjection feature gate.\n\nClusterTrustBundle objects can either be selected by name, or by the combination of signer name and a label selector.\n\nKubelet performs aggressive normalization of the PEM contents written into the pod filesystem. Esoteric PEM features such as inter-block comments and block headers are stripped. Certificates are deduplicated. The ordering of certificates within the file is arbitrary, and Kubelet may change the order over time.", - Ref: ref(corev1.ClusterTrustBundleProjection{}.OpenAPIModelName()), + Description: "storageClassName represents the name of the StorageClass that the reported capacity applies to. It must meet the same requirements as the name of a StorageClass object (non-empty, DNS subdomain). If that object no longer exists, the CSIStorageCapacity object is obsolete and should be removed by its creator. This field is immutable.", + Default: "", + Type: []string{"string"}, + Format: "", }, }, - "podCertificate": { + "capacity": { SchemaProps: spec.SchemaProps{ - Description: "Projects an auto-rotating credential bundle (private key and certificate chain) that the pod can use either as a TLS client or server.\n\nKubelet generates a private key and uses it to send a PodCertificateRequest to the named signer. Once the signer approves the request and issues a certificate chain, Kubelet writes the key and certificate chain to the pod filesystem. The pod does not start until certificates have been issued for each podCertificate projected volume source in its spec.\n\nKubelet will begin trying to rotate the certificate at the time indicated by the signer using the PodCertificateRequest.Status.BeginRefreshAt timestamp.\n\nKubelet can write a single file, indicated by the credentialBundlePath field, or separate files, indicated by the keyPath and certificateChainPath fields.\n\nThe credential bundle is a single file in PEM format. The first PEM entry is the private key (in PKCS#8 format), and the remaining PEM entries are the certificate chain issued by the signer (typically, signers will return their certificate chain in leaf-to-root order).\n\nPrefer using the credential bundle format, since your application code can read it atomically. If you use keyPath and certificateChainPath, your application must make two separate file reads. If these coincide with a certificate rotation, it is possible that the private key and leaf certificate you read may not correspond to each other. Your application will need to check for this condition, and re-read until they are consistent.\n\nThe named signer controls chooses the format of the certificate it issues; consult the signer implementation's documentation to learn how to use the certificates it issues.", - Ref: ref(corev1.PodCertificateProjection{}.OpenAPIModelName()), + Description: "capacity is the value reported by the CSI driver in its GetCapacityResponse for a GetCapacityRequest with topology and parameters that match the previous fields.\n\nThe semantic is currently (CSI spec 1.2) defined as: The available capacity, in bytes, of the storage that can be used to provision volumes. If not set, that information is currently unavailable.", + Ref: ref(resource.Quantity{}.OpenAPIModelName()), + }, + }, + "maximumVolumeSize": { + SchemaProps: spec.SchemaProps{ + Description: "maximumVolumeSize is the value reported by the CSI driver in its GetCapacityResponse for a GetCapacityRequest with topology and parameters that match the previous fields.\n\nThis is defined since CSI spec 1.4.0 as the largest size that may be used in a CreateVolumeRequest.capacity_range.required_bytes field to create a volume with the same parameters as those in GetCapacityRequest. The corresponding value in the Kubernetes API is ResourceRequirements.Requests in a volume claim.", + Ref: ref(resource.Quantity{}.OpenAPIModelName()), }, }, }, + Required: []string{"storageClassName"}, }, }, Dependencies: []string{ - corev1.ClusterTrustBundleProjection{}.OpenAPIModelName(), corev1.ConfigMapProjection{}.OpenAPIModelName(), corev1.DownwardAPIProjection{}.OpenAPIModelName(), corev1.PodCertificateProjection{}.OpenAPIModelName(), corev1.SecretProjection{}.OpenAPIModelName(), corev1.ServiceAccountTokenProjection{}.OpenAPIModelName()}, + resource.Quantity{}.OpenAPIModelName(), metav1.LabelSelector{}.OpenAPIModelName(), metav1.ObjectMeta{}.OpenAPIModelName()}, } } -func schema_k8sio_api_core_v1_VolumeResourceRequirements(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_k8sio_api_storage_v1_CSIStorageCapacityList(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "VolumeResourceRequirements describes the storage resource requirements for a volume.", + Description: "CSIStorageCapacityList is a collection of CSIStorageCapacity objects.", Type: []string{"object"}, Properties: map[string]spec.Schema{ - "limits": { + "kind": { SchemaProps: spec.SchemaProps{ - Description: "Limits describes the maximum amount of compute resources allowed. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/", - Type: []string{"object"}, - AdditionalProperties: &spec.SchemaOrBool{ - Allows: true, - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Ref: ref("k8s.io/apimachinery/pkg/api/resource.Quantity"), - }, - }, - }, + Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + Type: []string{"string"}, + Format: "", }, }, - "requests": { + "apiVersion": { SchemaProps: spec.SchemaProps{ - Description: "Requests describes the minimum amount of compute resources required. If Requests is omitted for a container, it defaults to Limits if that is explicitly specified, otherwise to an implementation-defined value. Requests cannot exceed Limits. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/", - Type: []string{"object"}, - AdditionalProperties: &spec.SchemaOrBool{ - Allows: true, + Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + Type: []string{"string"}, + Format: "", + }, + }, + "metadata": { + SchemaProps: spec.SchemaProps{ + Description: "Standard list metadata More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata", + Default: map[string]interface{}{}, + Ref: ref(metav1.ListMeta{}.OpenAPIModelName()), + }, + }, + "items": { + SchemaProps: spec.SchemaProps{ + Description: "items is the list of CSIStorageCapacity objects.", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ - Ref: ref("k8s.io/apimachinery/pkg/api/resource.Quantity"), + Default: map[string]interface{}{}, + Ref: ref(storagev1.CSIStorageCapacity{}.OpenAPIModelName()), }, }, }, }, }, }, + Required: []string{"items"}, }, }, Dependencies: []string{ - "k8s.io/apimachinery/pkg/api/resource.Quantity"}, + storagev1.CSIStorageCapacity{}.OpenAPIModelName(), metav1.ListMeta{}.OpenAPIModelName()}, } } -func schema_k8sio_api_core_v1_VolumeSource(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_k8sio_api_storage_v1_StorageClass(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "Represents the source of a volume to mount. Only one of its members may be specified.", + Description: "StorageClass describes the parameters for a class of storage for which PersistentVolumes can be dynamically provisioned.\n\nStorageClasses are non-namespaced; the name of the storage class according to etcd is in ObjectMeta.Name.", Type: []string{"object"}, Properties: map[string]spec.Schema{ - "hostPath": { + "kind": { SchemaProps: spec.SchemaProps{ - Description: "hostPath represents a pre-existing file or directory on the host machine that is directly exposed to the container. This is generally used for system agents or other privileged things that are allowed to see the host machine. Most containers will NOT need this. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath", - Ref: ref(corev1.HostPathVolumeSource{}.OpenAPIModelName()), + Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + Type: []string{"string"}, + Format: "", }, }, - "emptyDir": { + "apiVersion": { SchemaProps: spec.SchemaProps{ - Description: "emptyDir represents a temporary directory that shares a pod's lifetime. More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir", - Ref: ref(corev1.EmptyDirVolumeSource{}.OpenAPIModelName()), + Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + Type: []string{"string"}, + Format: "", }, }, - "gcePersistentDisk": { + "metadata": { SchemaProps: spec.SchemaProps{ - Description: "gcePersistentDisk represents a GCE Disk resource that is attached to a kubelet's host machine and then exposed to the pod. Deprecated: GCEPersistentDisk is deprecated. All operations for the in-tree gcePersistentDisk type are redirected to the pd.csi.storage.gke.io CSI driver. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk", - Ref: ref(corev1.GCEPersistentDiskVolumeSource{}.OpenAPIModelName()), + Description: "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata", + Default: map[string]interface{}{}, + Ref: ref(metav1.ObjectMeta{}.OpenAPIModelName()), }, }, - "awsElasticBlockStore": { + "provisioner": { SchemaProps: spec.SchemaProps{ - Description: "awsElasticBlockStore represents an AWS Disk resource that is attached to a kubelet's host machine and then exposed to the pod. Deprecated: AWSElasticBlockStore is deprecated. All operations for the in-tree awsElasticBlockStore type are redirected to the ebs.csi.aws.com CSI driver. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore", - Ref: ref(corev1.AWSElasticBlockStoreVolumeSource{}.OpenAPIModelName()), + Description: "provisioner indicates the type of the provisioner.", + Default: "", + Type: []string{"string"}, + Format: "", }, }, - "gitRepo": { + "parameters": { SchemaProps: spec.SchemaProps{ - Description: "gitRepo represents a git repository at a particular revision. Deprecated: GitRepo is deprecated. To provision a container with a git repo, mount an EmptyDir into an InitContainer that clones the repo using git, then mount the EmptyDir into the Pod's container.", - Ref: ref(corev1.GitRepoVolumeSource{}.OpenAPIModelName()), + Description: "parameters holds the parameters for the provisioner that should create volumes of this storage class.", + Type: []string{"object"}, + AdditionalProperties: &spec.SchemaOrBool{ + Allows: true, + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + }, }, }, - "secret": { + "reclaimPolicy": { SchemaProps: spec.SchemaProps{ - Description: "secret represents a secret that should populate this volume. More info: https://kubernetes.io/docs/concepts/storage/volumes#secret", - Ref: ref(corev1.SecretVolumeSource{}.OpenAPIModelName()), + Description: "reclaimPolicy controls the reclaimPolicy for dynamically provisioned PersistentVolumes of this storage class. Defaults to Delete.\n\nPossible enum values:\n - `\"Delete\"` means the volume will be deleted from Kubernetes on release from its claim. The volume plugin must support Deletion.\n - `\"Recycle\"` means the volume will be recycled back into the pool of unbound persistent volumes on release from its claim. The volume plugin must support Recycling.\n - `\"Retain\"` means the volume will be left in its current phase (Released) for manual reclamation by the administrator. The default policy is Retain.", + Type: []string{"string"}, + Format: "", + Enum: []interface{}{"Delete", "Recycle", "Retain"}, }, }, - "nfs": { + "mountOptions": { + VendorExtensible: spec.VendorExtensible{ + Extensions: spec.Extensions{ + "x-kubernetes-list-type": "atomic", + }, + }, SchemaProps: spec.SchemaProps{ - Description: "nfs represents an NFS mount on the host that shares a pod's lifetime More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs", - Ref: ref(corev1.NFSVolumeSource{}.OpenAPIModelName()), + Description: "mountOptions controls the mountOptions for dynamically provisioned PersistentVolumes of this storage class. e.g. [\"ro\", \"soft\"]. Not validated - mount of the PVs will simply fail if one is invalid.", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + }, }, }, - "iscsi": { + "allowVolumeExpansion": { SchemaProps: spec.SchemaProps{ - Description: "iscsi represents an ISCSI Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes/#iscsi", - Ref: ref(corev1.ISCSIVolumeSource{}.OpenAPIModelName()), + Description: "allowVolumeExpansion shows whether the storage class allow volume expand.", + Type: []string{"boolean"}, + Format: "", }, }, - "glusterfs": { + "volumeBindingMode": { SchemaProps: spec.SchemaProps{ - Description: "glusterfs represents a Glusterfs mount on the host that shares a pod's lifetime. Deprecated: Glusterfs is deprecated and the in-tree glusterfs type is no longer supported.", - Ref: ref(corev1.GlusterfsVolumeSource{}.OpenAPIModelName()), + Description: "volumeBindingMode indicates how PersistentVolumeClaims should be provisioned and bound. When unset, VolumeBindingImmediate is used. This field is only honored by servers that enable the VolumeScheduling feature.\n\nPossible enum values:\n - `\"Immediate\"` indicates that PersistentVolumeClaims should be immediately provisioned and bound. This is the default mode.\n - `\"WaitForFirstConsumer\"` indicates that PersistentVolumeClaims should not be provisioned and bound until the first Pod is created that references the PeristentVolumeClaim. The volume provisioning and binding will occur during Pod scheduing.", + Type: []string{"string"}, + Format: "", + Enum: []interface{}{"Immediate", "WaitForFirstConsumer"}, }, }, - "persistentVolumeClaim": { + "allowedTopologies": { + VendorExtensible: spec.VendorExtensible{ + Extensions: spec.Extensions{ + "x-kubernetes-list-type": "atomic", + }, + }, SchemaProps: spec.SchemaProps{ - Description: "persistentVolumeClaimVolumeSource represents a reference to a PersistentVolumeClaim in the same namespace. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims", - Ref: ref(corev1.PersistentVolumeClaimVolumeSource{}.OpenAPIModelName()), + Description: "allowedTopologies restrict the node topologies where volumes can be dynamically provisioned. Each volume plugin defines its own supported topology specifications. An empty TopologySelectorTerm list means there is no topology restriction. This field is only honored by servers that enable the VolumeScheduling feature.", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref(corev1.TopologySelectorTerm{}.OpenAPIModelName()), + }, + }, + }, }, }, - "rbd": { + }, + Required: []string{"provisioner"}, + }, + }, + Dependencies: []string{ + corev1.TopologySelectorTerm{}.OpenAPIModelName(), metav1.ObjectMeta{}.OpenAPIModelName()}, + } +} + +func schema_k8sio_api_storage_v1_StorageClassList(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "StorageClassList is a collection of storage classes.", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "kind": { SchemaProps: spec.SchemaProps{ - Description: "rbd represents a Rados Block Device mount on the host that shares a pod's lifetime. Deprecated: RBD is deprecated and the in-tree rbd type is no longer supported.", - Ref: ref(corev1.RBDVolumeSource{}.OpenAPIModelName()), + Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + Type: []string{"string"}, + Format: "", }, }, - "flexVolume": { + "apiVersion": { SchemaProps: spec.SchemaProps{ - Description: "flexVolume represents a generic volume resource that is provisioned/attached using an exec based plugin. Deprecated: FlexVolume is deprecated. Consider using a CSIDriver instead.", - Ref: ref(corev1.FlexVolumeSource{}.OpenAPIModelName()), + Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + Type: []string{"string"}, + Format: "", }, }, - "cinder": { + "metadata": { SchemaProps: spec.SchemaProps{ - Description: "cinder represents a cinder volume attached and mounted on kubelets host machine. Deprecated: Cinder is deprecated. All operations for the in-tree cinder type are redirected to the cinder.csi.openstack.org CSI driver. More info: https://examples.k8s.io/mysql-cinder-pd/README.md", - Ref: ref(corev1.CinderVolumeSource{}.OpenAPIModelName()), + Description: "Standard list metadata More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata", + Default: map[string]interface{}{}, + Ref: ref(metav1.ListMeta{}.OpenAPIModelName()), + }, + }, + "items": { + SchemaProps: spec.SchemaProps{ + Description: "items is the list of StorageClasses", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref(storagev1.StorageClass{}.OpenAPIModelName()), + }, + }, + }, + }, + }, + }, + Required: []string{"items"}, + }, + }, + Dependencies: []string{ + storagev1.StorageClass{}.OpenAPIModelName(), metav1.ListMeta{}.OpenAPIModelName()}, + } +} + +func schema_k8sio_api_storage_v1_TokenRequest(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "TokenRequest contains parameters of a service account token.", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "audience": { + SchemaProps: spec.SchemaProps{ + Description: "audience is the intended audience of the token in \"TokenRequestSpec\". It will default to the audiences of kube apiserver.", + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + "expirationSeconds": { + SchemaProps: spec.SchemaProps{ + Description: "expirationSeconds is the duration of validity of the token in \"TokenRequestSpec\". It has the same default value of \"ExpirationSeconds\" in \"TokenRequestSpec\".", + Type: []string{"integer"}, + Format: "int64", + }, + }, + }, + Required: []string{"audience"}, + }, + }, + } +} + +func schema_k8sio_api_storage_v1_VolumeAttachment(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "VolumeAttachment captures the intent to attach or detach the specified volume to/from the specified node.\n\nVolumeAttachment objects are non-namespaced.", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "kind": { + SchemaProps: spec.SchemaProps{ + Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + Type: []string{"string"}, + Format: "", }, }, - "cephfs": { + "apiVersion": { SchemaProps: spec.SchemaProps{ - Description: "cephFS represents a Ceph FS mount on the host that shares a pod's lifetime. Deprecated: CephFS is deprecated and the in-tree cephfs type is no longer supported.", - Ref: ref(corev1.CephFSVolumeSource{}.OpenAPIModelName()), + Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + Type: []string{"string"}, + Format: "", }, }, - "flocker": { + "metadata": { SchemaProps: spec.SchemaProps{ - Description: "flocker represents a Flocker volume attached to a kubelet's host machine. This depends on the Flocker control service being running. Deprecated: Flocker is deprecated and the in-tree flocker type is no longer supported.", - Ref: ref(corev1.FlockerVolumeSource{}.OpenAPIModelName()), + Description: "Standard object metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata", + Default: map[string]interface{}{}, + Ref: ref(metav1.ObjectMeta{}.OpenAPIModelName()), }, }, - "downwardAPI": { + "spec": { SchemaProps: spec.SchemaProps{ - Description: "downwardAPI represents downward API about the pod that should populate this volume", - Ref: ref(corev1.DownwardAPIVolumeSource{}.OpenAPIModelName()), + Description: "spec represents specification of the desired attach/detach volume behavior. Populated by the Kubernetes system.", + Default: map[string]interface{}{}, + Ref: ref(storagev1.VolumeAttachmentSpec{}.OpenAPIModelName()), }, }, - "fc": { + "status": { SchemaProps: spec.SchemaProps{ - Description: "fc represents a Fibre Channel resource that is attached to a kubelet's host machine and then exposed to the pod.", - Ref: ref(corev1.FCVolumeSource{}.OpenAPIModelName()), + Description: "status represents status of the VolumeAttachment request. Populated by the entity completing the attach or detach operation, i.e. the external-attacher.", + Default: map[string]interface{}{}, + Ref: ref(storagev1.VolumeAttachmentStatus{}.OpenAPIModelName()), }, }, - "azureFile": { + }, + Required: []string{"spec"}, + }, + }, + Dependencies: []string{ + storagev1.VolumeAttachmentSpec{}.OpenAPIModelName(), storagev1.VolumeAttachmentStatus{}.OpenAPIModelName(), metav1.ObjectMeta{}.OpenAPIModelName()}, + } +} + +func schema_k8sio_api_storage_v1_VolumeAttachmentList(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "VolumeAttachmentList is a collection of VolumeAttachment objects.", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "kind": { SchemaProps: spec.SchemaProps{ - Description: "azureFile represents an Azure File Service mount on the host and bind mount to the pod. Deprecated: AzureFile is deprecated. All operations for the in-tree azureFile type are redirected to the file.csi.azure.com CSI driver.", - Ref: ref(corev1.AzureFileVolumeSource{}.OpenAPIModelName()), + Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + Type: []string{"string"}, + Format: "", }, }, - "configMap": { + "apiVersion": { SchemaProps: spec.SchemaProps{ - Description: "configMap represents a configMap that should populate this volume", - Ref: ref(corev1.ConfigMapVolumeSource{}.OpenAPIModelName()), + Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + Type: []string{"string"}, + Format: "", }, }, - "vsphereVolume": { + "metadata": { SchemaProps: spec.SchemaProps{ - Description: "vsphereVolume represents a vSphere volume attached and mounted on kubelets host machine. Deprecated: VsphereVolume is deprecated. All operations for the in-tree vsphereVolume type are redirected to the csi.vsphere.vmware.com CSI driver.", - Ref: ref(corev1.VsphereVirtualDiskVolumeSource{}.OpenAPIModelName()), + Description: "Standard list metadata More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata", + Default: map[string]interface{}{}, + Ref: ref(metav1.ListMeta{}.OpenAPIModelName()), }, }, - "quobyte": { + "items": { SchemaProps: spec.SchemaProps{ - Description: "quobyte represents a Quobyte mount on the host that shares a pod's lifetime. Deprecated: Quobyte is deprecated and the in-tree quobyte type is no longer supported.", - Ref: ref(corev1.QuobyteVolumeSource{}.OpenAPIModelName()), + Description: "items is the list of VolumeAttachments", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref(storagev1.VolumeAttachment{}.OpenAPIModelName()), + }, + }, + }, }, }, - "azureDisk": { + }, + Required: []string{"items"}, + }, + }, + Dependencies: []string{ + storagev1.VolumeAttachment{}.OpenAPIModelName(), metav1.ListMeta{}.OpenAPIModelName()}, + } +} + +func schema_k8sio_api_storage_v1_VolumeAttachmentSource(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "VolumeAttachmentSource represents a volume that should be attached. Right now only PersistentVolumes can be attached via external attacher, in the future we may allow also inline volumes in pods. Exactly one member can be set.", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "persistentVolumeName": { SchemaProps: spec.SchemaProps{ - Description: "azureDisk represents an Azure Data Disk mount on the host and bind mount to the pod. Deprecated: AzureDisk is deprecated. All operations for the in-tree azureDisk type are redirected to the disk.csi.azure.com CSI driver.", - Ref: ref(corev1.AzureDiskVolumeSource{}.OpenAPIModelName()), + Description: "persistentVolumeName represents the name of the persistent volume to attach.", + Type: []string{"string"}, + Format: "", }, }, - "photonPersistentDisk": { + "inlineVolumeSpec": { SchemaProps: spec.SchemaProps{ - Description: "photonPersistentDisk represents a PhotonController persistent disk attached and mounted on kubelets host machine. Deprecated: PhotonPersistentDisk is deprecated and the in-tree photonPersistentDisk type is no longer supported.", - Ref: ref(corev1.PhotonPersistentDiskVolumeSource{}.OpenAPIModelName()), + Description: "inlineVolumeSpec contains all the information necessary to attach a persistent volume defined by a pod's inline VolumeSource. This field is populated only for the CSIMigration feature. It contains translated fields from a pod's inline VolumeSource to a PersistentVolumeSpec. This field is beta-level and is only honored by servers that enabled the CSIMigration feature.", + Ref: ref(corev1.PersistentVolumeSpec{}.OpenAPIModelName()), }, }, - "projected": { + }, + }, + }, + Dependencies: []string{ + corev1.PersistentVolumeSpec{}.OpenAPIModelName()}, + } +} + +func schema_k8sio_api_storage_v1_VolumeAttachmentSpec(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "VolumeAttachmentSpec is the specification of a VolumeAttachment request.", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "attacher": { SchemaProps: spec.SchemaProps{ - Description: "projected items for all in one resources secrets, configmaps, and downward API", - Ref: ref(corev1.ProjectedVolumeSource{}.OpenAPIModelName()), + Description: "attacher indicates the name of the volume driver that MUST handle this request. This is the name returned by GetPluginName().", + Default: "", + Type: []string{"string"}, + Format: "", }, }, - "portworxVolume": { + "source": { SchemaProps: spec.SchemaProps{ - Description: "portworxVolume represents a portworx volume attached and mounted on kubelets host machine. Deprecated: PortworxVolume is deprecated. All operations for the in-tree portworxVolume type are redirected to the pxd.portworx.com CSI driver when the CSIMigrationPortworx feature-gate is on.", - Ref: ref(corev1.PortworxVolumeSource{}.OpenAPIModelName()), + Description: "source represents the volume that should be attached.", + Default: map[string]interface{}{}, + Ref: ref(storagev1.VolumeAttachmentSource{}.OpenAPIModelName()), }, }, - "scaleIO": { + "nodeName": { SchemaProps: spec.SchemaProps{ - Description: "scaleIO represents a ScaleIO persistent volume attached and mounted on Kubernetes nodes. Deprecated: ScaleIO is deprecated and the in-tree scaleIO type is no longer supported.", - Ref: ref(corev1.ScaleIOVolumeSource{}.OpenAPIModelName()), + Description: "nodeName represents the node that the volume should be attached to.", + Default: "", + Type: []string{"string"}, + Format: "", }, }, - "storageos": { + }, + Required: []string{"attacher", "source", "nodeName"}, + }, + }, + Dependencies: []string{ + storagev1.VolumeAttachmentSource{}.OpenAPIModelName()}, + } +} + +func schema_k8sio_api_storage_v1_VolumeAttachmentStatus(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "VolumeAttachmentStatus is the status of a VolumeAttachment request.", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "attached": { SchemaProps: spec.SchemaProps{ - Description: "storageOS represents a StorageOS volume attached and mounted on Kubernetes nodes. Deprecated: StorageOS is deprecated and the in-tree storageos type is no longer supported.", - Ref: ref(corev1.StorageOSVolumeSource{}.OpenAPIModelName()), + Description: "attached indicates the volume is successfully attached. This field must only be set by the entity completing the attach operation, i.e. the external-attacher.", + Default: false, + Type: []string{"boolean"}, + Format: "", }, }, - "csi": { + "attachmentMetadata": { SchemaProps: spec.SchemaProps{ - Description: "csi (Container Storage Interface) represents ephemeral storage that is handled by certain external CSI drivers.", - Ref: ref(corev1.CSIVolumeSource{}.OpenAPIModelName()), + Description: "attachmentMetadata is populated with any information returned by the attach operation, upon successful attach, that must be passed into subsequent WaitForAttach or Mount calls. This field must only be set by the entity completing the attach operation, i.e. the external-attacher.", + Type: []string{"object"}, + AdditionalProperties: &spec.SchemaOrBool{ + Allows: true, + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + }, }, }, - "ephemeral": { + "attachError": { SchemaProps: spec.SchemaProps{ - Description: "ephemeral represents a volume that is handled by a cluster storage driver. The volume's lifecycle is tied to the pod that defines it - it will be created before the pod starts, and deleted when the pod is removed.\n\nUse this if: a) the volume is only needed while the pod runs, b) features of normal volumes like restoring from snapshot or capacity\n tracking are needed,\nc) the storage driver is specified through a storage class, and d) the storage driver supports dynamic volume provisioning through\n a PersistentVolumeClaim (see EphemeralVolumeSource for more\n information on the connection between this volume type\n and PersistentVolumeClaim).\n\nUse PersistentVolumeClaim or one of the vendor-specific APIs for volumes that persist for longer than the lifecycle of an individual pod.\n\nUse CSI for light-weight local ephemeral volumes if the CSI driver is meant to be used that way - see the documentation of the driver for more information.\n\nA pod can use both types of ephemeral volumes and persistent volumes at the same time.", - Ref: ref(corev1.EphemeralVolumeSource{}.OpenAPIModelName()), + Description: "attachError represents the last error encountered during attach operation, if any. This field must only be set by the entity completing the attach operation, i.e. the external-attacher.", + Ref: ref(storagev1.VolumeError{}.OpenAPIModelName()), }, }, - "image": { + "detachError": { SchemaProps: spec.SchemaProps{ - Description: "image represents an OCI object (a container image or artifact) pulled and mounted on the kubelet's host machine. The volume is resolved at pod startup depending on which PullPolicy value is provided:\n\n- Always: the kubelet always attempts to pull the reference. Container creation will fail If the pull fails. - Never: the kubelet never pulls the reference and only uses a local image or artifact. Container creation will fail if the reference isn't present. - IfNotPresent: the kubelet pulls if the reference isn't already present on disk. Container creation will fail if the reference isn't present and the pull fails.\n\nThe volume gets re-resolved if the pod gets deleted and recreated, which means that new remote content will become available on pod recreation. A failure to resolve or pull the image during pod startup will block containers from starting and may add significant latency. Failures will be retried using normal volume backoff and will be reported on the pod reason and message. The types of objects that may be mounted by this volume are defined by the container runtime implementation on a host machine and at minimum must include all valid types supported by the container image field. The OCI object gets mounted in a single directory (spec.containers[*].volumeMounts.mountPath) by merging the manifest layers in the same way as for container images. The volume will be mounted read-only (ro) and non-executable files (noexec). Sub path mounts for containers are not supported (spec.containers[*].volumeMounts.subpath) before 1.33. The field spec.securityContext.fsGroupChangePolicy has no effect on this volume type.", - Ref: ref(corev1.ImageVolumeSource{}.OpenAPIModelName()), + Description: "detachError represents the last error encountered during detach operation, if any. This field must only be set by the entity completing the detach operation, i.e. the external-attacher.", + Ref: ref(storagev1.VolumeError{}.OpenAPIModelName()), }, }, }, + Required: []string{"attached"}, }, }, Dependencies: []string{ - corev1.AWSElasticBlockStoreVolumeSource{}.OpenAPIModelName(), corev1.AzureDiskVolumeSource{}.OpenAPIModelName(), corev1.AzureFileVolumeSource{}.OpenAPIModelName(), corev1.CSIVolumeSource{}.OpenAPIModelName(), corev1.CephFSVolumeSource{}.OpenAPIModelName(), corev1.CinderVolumeSource{}.OpenAPIModelName(), corev1.ConfigMapVolumeSource{}.OpenAPIModelName(), corev1.DownwardAPIVolumeSource{}.OpenAPIModelName(), corev1.EmptyDirVolumeSource{}.OpenAPIModelName(), corev1.EphemeralVolumeSource{}.OpenAPIModelName(), corev1.FCVolumeSource{}.OpenAPIModelName(), corev1.FlexVolumeSource{}.OpenAPIModelName(), corev1.FlockerVolumeSource{}.OpenAPIModelName(), corev1.GCEPersistentDiskVolumeSource{}.OpenAPIModelName(), corev1.GitRepoVolumeSource{}.OpenAPIModelName(), corev1.GlusterfsVolumeSource{}.OpenAPIModelName(), corev1.HostPathVolumeSource{}.OpenAPIModelName(), corev1.ISCSIVolumeSource{}.OpenAPIModelName(), corev1.ImageVolumeSource{}.OpenAPIModelName(), corev1.NFSVolumeSource{}.OpenAPIModelName(), corev1.PersistentVolumeClaimVolumeSource{}.OpenAPIModelName(), corev1.PhotonPersistentDiskVolumeSource{}.OpenAPIModelName(), corev1.PortworxVolumeSource{}.OpenAPIModelName(), corev1.ProjectedVolumeSource{}.OpenAPIModelName(), corev1.QuobyteVolumeSource{}.OpenAPIModelName(), corev1.RBDVolumeSource{}.OpenAPIModelName(), corev1.ScaleIOVolumeSource{}.OpenAPIModelName(), corev1.SecretVolumeSource{}.OpenAPIModelName(), corev1.StorageOSVolumeSource{}.OpenAPIModelName(), corev1.VsphereVirtualDiskVolumeSource{}.OpenAPIModelName()}, + storagev1.VolumeError{}.OpenAPIModelName()}, } } -func schema_k8sio_api_core_v1_VsphereVirtualDiskVolumeSource(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_k8sio_api_storage_v1_VolumeAttributesClass(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "Represents a vSphere volume resource.", + Description: "VolumeAttributesClass represents a specification of mutable volume attributes defined by the CSI driver. The class can be specified during dynamic provisioning of PersistentVolumeClaims, and changed in the PersistentVolumeClaim spec after provisioning.", Type: []string{"object"}, Properties: map[string]spec.Schema{ - "volumePath": { + "kind": { SchemaProps: spec.SchemaProps{ - Description: "volumePath is the path that identifies vSphere volume vmdk", - Default: "", + Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", Type: []string{"string"}, Format: "", }, }, - "fsType": { + "apiVersion": { SchemaProps: spec.SchemaProps{ - Description: "fsType is filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified.", + Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", Type: []string{"string"}, Format: "", }, }, - "storagePolicyName": { + "metadata": { SchemaProps: spec.SchemaProps{ - Description: "storagePolicyName is the storage Policy Based Management (SPBM) profile name.", - Type: []string{"string"}, - Format: "", + Description: "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata", + Default: map[string]interface{}{}, + Ref: ref(metav1.ObjectMeta{}.OpenAPIModelName()), }, }, - "storagePolicyID": { + "driverName": { SchemaProps: spec.SchemaProps{ - Description: "storagePolicyID is the storage Policy Based Management (SPBM) profile ID associated with the StoragePolicyName.", + Description: "Name of the CSI driver This field is immutable.", + Default: "", Type: []string{"string"}, Format: "", }, }, + "parameters": { + SchemaProps: spec.SchemaProps{ + Description: "parameters hold volume attributes defined by the CSI driver. These values are opaque to the Kubernetes and are passed directly to the CSI driver. The underlying storage provider supports changing these attributes on an existing volume, however the parameters field itself is immutable. To invoke a volume update, a new VolumeAttributesClass should be created with new parameters, and the PersistentVolumeClaim should be updated to reference the new VolumeAttributesClass.\n\nThis field is required and must contain at least one key/value pair. The keys cannot be empty, and the maximum number of parameters is 512, with a cumulative max size of 256K. If the CSI driver rejects invalid parameters, the target PersistentVolumeClaim will be set to an \"Infeasible\" state in the modifyVolumeStatus field.", + Type: []string{"object"}, + AdditionalProperties: &spec.SchemaOrBool{ + Allows: true, + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: "", + Type: []string{"string"}, + Format: "", + }, + }, + }, + }, + }, }, - Required: []string{"volumePath"}, + Required: []string{"driverName"}, }, }, + Dependencies: []string{ + metav1.ObjectMeta{}.OpenAPIModelName()}, } } -func schema_k8sio_api_core_v1_WeightedPodAffinityTerm(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_k8sio_api_storage_v1_VolumeAttributesClassList(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "The weights of all of the matched WeightedPodAffinityTerm fields are added per-node to find the most preferred node(s)", + Description: "VolumeAttributesClassList is a collection of VolumeAttributesClass objects.", Type: []string{"object"}, Properties: map[string]spec.Schema{ - "weight": { + "kind": { SchemaProps: spec.SchemaProps{ - Description: "weight associated with matching the corresponding podAffinityTerm, in the range 1-100.", - Default: 0, - Type: []string{"integer"}, - Format: "int32", + Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + Type: []string{"string"}, + Format: "", }, }, - "podAffinityTerm": { + "apiVersion": { SchemaProps: spec.SchemaProps{ - Description: "Required. A pod affinity term, associated with the corresponding weight.", + Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + Type: []string{"string"}, + Format: "", + }, + }, + "metadata": { + SchemaProps: spec.SchemaProps{ + Description: "Standard list metadata More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata", Default: map[string]interface{}{}, - Ref: ref(corev1.PodAffinityTerm{}.OpenAPIModelName()), + Ref: ref(metav1.ListMeta{}.OpenAPIModelName()), + }, + }, + "items": { + SchemaProps: spec.SchemaProps{ + Description: "items is the list of VolumeAttributesClass objects.", + Type: []string{"array"}, + Items: &spec.SchemaOrArray{ + Schema: &spec.Schema{ + SchemaProps: spec.SchemaProps{ + Default: map[string]interface{}{}, + Ref: ref(storagev1.VolumeAttributesClass{}.OpenAPIModelName()), + }, + }, + }, }, }, }, - Required: []string{"weight", "podAffinityTerm"}, + Required: []string{"items"}, }, }, Dependencies: []string{ - corev1.PodAffinityTerm{}.OpenAPIModelName()}, + storagev1.VolumeAttributesClass{}.OpenAPIModelName(), metav1.ListMeta{}.OpenAPIModelName()}, } } -func schema_k8sio_api_core_v1_WindowsSecurityContextOptions(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_k8sio_api_storage_v1_VolumeError(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "WindowsSecurityContextOptions contain Windows-specific options and credentials.", + Description: "VolumeError captures an error encountered during a volume operation.", Type: []string{"object"}, Properties: map[string]spec.Schema{ - "gmsaCredentialSpecName": { - SchemaProps: spec.SchemaProps{ - Description: "GMSACredentialSpecName is the name of the GMSA credential spec to use.", - Type: []string{"string"}, - Format: "", - }, - }, - "gmsaCredentialSpec": { + "time": { SchemaProps: spec.SchemaProps{ - Description: "GMSACredentialSpec is where the GMSA admission webhook (https://github.com/kubernetes-sigs/windows-gmsa) inlines the contents of the GMSA credential spec named by the GMSACredentialSpecName field.", - Type: []string{"string"}, - Format: "", + Description: "time represents the time the error was encountered.", + Ref: ref(metav1.Time{}.OpenAPIModelName()), }, }, - "runAsUserName": { + "message": { SchemaProps: spec.SchemaProps{ - Description: "The UserName in Windows to run the entrypoint of the container process. Defaults to the user specified in image metadata if unspecified. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence.", + Description: "message represents the error encountered during Attach or Detach operation. This string may be logged, so it should not contain sensitive information.", Type: []string{"string"}, Format: "", }, }, - "hostProcess": { + "errorCode": { SchemaProps: spec.SchemaProps{ - Description: "HostProcess determines if a container should be run as a 'Host Process' container. All of a Pod's containers must have the same effective HostProcess value (it is not allowed to have a mix of HostProcess containers and non-HostProcess containers). In addition, if HostProcess is true then HostNetwork must also be set to true.", - Type: []string{"boolean"}, - Format: "", + Description: "errorCode is a numeric gRPC code representing the error encountered during Attach or Detach operations.\n\nThis is an optional, beta field that requires the MutableCSINodeAllocatableCount feature gate being enabled to be set.", + Type: []string{"integer"}, + Format: "int32", }, }, }, }, }, + Dependencies: []string{ + metav1.Time{}.OpenAPIModelName()}, } } -func schema_k8sio_api_core_v1_WorkloadReference(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_k8sio_api_storage_v1_VolumeNodeResources(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "WorkloadReference identifies the Workload object and PodGroup membership that a Pod belongs to. The scheduler uses this information to apply workload-aware scheduling semantics.", + Description: "VolumeNodeResources is a set of resource limits for scheduling of volumes.", Type: []string{"object"}, Properties: map[string]spec.Schema{ - "name": { + "count": { SchemaProps: spec.SchemaProps{ - Description: "Name defines the name of the Workload object this Pod belongs to. Workload must be in the same namespace as the Pod. If it doesn't match any existing Workload, the Pod will remain unschedulable until a Workload object is created and observed by the kube-scheduler. It must be a DNS subdomain.", - Default: "", - Type: []string{"string"}, - Format: "", + Description: "count indicates the maximum number of unique volumes managed by the CSI driver that can be used on a node. A volume that is both attached and mounted on a node is considered to be used once, not twice. The same rule applies for a unique volume that is shared among multiple pods on the same node. If this field is not specified, then the supported number of volumes on this node is unbounded.", + Type: []string{"integer"}, + Format: "int32", }, }, - "podGroup": { + }, + }, + }, + } +} + +func schema_apimachinery_pkg_api_resource_Quantity(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.EmbedOpenAPIDefinitionIntoV2Extension(common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "Quantity is a fixed-point representation of a number. It provides convenient marshaling/unmarshaling in JSON and YAML, in addition to String() and AsInt64() accessors.\n\nThe serialization format is:\n\n``` ::= \n\n\t(Note that may be empty, from the \"\" case in .)\n\n ::= 0 | 1 | ... | 9 ::= | ::= | . | . | . ::= \"+\" | \"-\" ::= | ::= | | ::= Ki | Mi | Gi | Ti | Pi | Ei\n\n\t(International System of units; See: http://physics.nist.gov/cuu/Units/binary.html)\n\n ::= m | \"\" | k | M | G | T | P | E\n\n\t(Note that 1024 = 1Ki but 1000 = 1k; I didn't choose the capitalization.)\n\n ::= \"e\" | \"E\" ```\n\nNo matter which of the three exponent forms is used, no quantity may represent a number greater than 2^63-1 in magnitude, nor may it have more than 3 decimal places. Numbers larger or more precise will be capped or rounded up. (E.g.: 0.1m will rounded up to 1m.) This may be extended in the future if we require larger or smaller quantities.\n\nWhen a Quantity is parsed from a string, it will remember the type of suffix it had, and will use the same type again when it is serialized.\n\nBefore serializing, Quantity will be put in \"canonical form\". This means that Exponent/suffix will be adjusted up or down (with a corresponding increase or decrease in Mantissa) such that:\n\n- No precision is lost - No fractional digits will be emitted - The exponent (or suffix) is as large as possible.\n\nThe sign will be omitted unless the number is negative.\n\nExamples:\n\n- 1.5 will be serialized as \"1500m\" - 1.5Gi will be serialized as \"1536Mi\"\n\nNote that the quantity will NEVER be internally represented by a floating point number. That is the whole point of this exercise.\n\nNon-canonical values will still parse as long as they are well formed, but will be re-emitted in their canonical form. (So always use canonical form, or don't diff.)\n\nThis format is intended to make it difficult to use these numbers without writing some sort of special handling code in the hopes that that will cause implementors to also use a fixed point implementation.", + OneOf: common.GenerateOpenAPIV3OneOfSchema(resource.Quantity{}.OpenAPIV3OneOfTypes()), + Format: resource.Quantity{}.OpenAPISchemaFormat(), + }, + }, + }, common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "Quantity is a fixed-point representation of a number. It provides convenient marshaling/unmarshaling in JSON and YAML, in addition to String() and AsInt64() accessors.\n\nThe serialization format is:\n\n``` ::= \n\n\t(Note that may be empty, from the \"\" case in .)\n\n ::= 0 | 1 | ... | 9 ::= | ::= | . | . | . ::= \"+\" | \"-\" ::= | ::= | | ::= Ki | Mi | Gi | Ti | Pi | Ei\n\n\t(International System of units; See: http://physics.nist.gov/cuu/Units/binary.html)\n\n ::= m | \"\" | k | M | G | T | P | E\n\n\t(Note that 1024 = 1Ki but 1000 = 1k; I didn't choose the capitalization.)\n\n ::= \"e\" | \"E\" ```\n\nNo matter which of the three exponent forms is used, no quantity may represent a number greater than 2^63-1 in magnitude, nor may it have more than 3 decimal places. Numbers larger or more precise will be capped or rounded up. (E.g.: 0.1m will rounded up to 1m.) This may be extended in the future if we require larger or smaller quantities.\n\nWhen a Quantity is parsed from a string, it will remember the type of suffix it had, and will use the same type again when it is serialized.\n\nBefore serializing, Quantity will be put in \"canonical form\". This means that Exponent/suffix will be adjusted up or down (with a corresponding increase or decrease in Mantissa) such that:\n\n- No precision is lost - No fractional digits will be emitted - The exponent (or suffix) is as large as possible.\n\nThe sign will be omitted unless the number is negative.\n\nExamples:\n\n- 1.5 will be serialized as \"1500m\" - 1.5Gi will be serialized as \"1536Mi\"\n\nNote that the quantity will NEVER be internally represented by a floating point number. That is the whole point of this exercise.\n\nNon-canonical values will still parse as long as they are well formed, but will be re-emitted in their canonical form. (So always use canonical form, or don't diff.)\n\nThis format is intended to make it difficult to use these numbers without writing some sort of special handling code in the hopes that that will cause implementors to also use a fixed point implementation.", + Type: resource.Quantity{}.OpenAPISchemaType(), + Format: resource.Quantity{}.OpenAPISchemaFormat(), + }, + }, + }) +} + +func schema_apimachinery_pkg_api_resource_int64Amount(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "int64Amount represents a fixed precision numerator and arbitrary scale exponent. It is faster than operations on inf.Dec for values that can be represented as int64.", + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "value": { SchemaProps: spec.SchemaProps{ - Description: "PodGroup is the name of the PodGroup within the Workload that this Pod belongs to. If it doesn't match any existing PodGroup within the Workload, the Pod will remain unschedulable until the Workload object is recreated and observed by the kube-scheduler. It must be a DNS label.", - Default: "", - Type: []string{"string"}, - Format: "", + Default: 0, + Type: []string{"integer"}, + Format: "int64", }, }, - "podGroupReplicaKey": { + "scale": { SchemaProps: spec.SchemaProps{ - Description: "PodGroupReplicaKey specifies the replica key of the PodGroup to which this Pod belongs. It is used to distinguish pods belonging to different replicas of the same pod group. The pod group policy is applied separately to each replica. When set, it must be a DNS label.", - Type: []string{"string"}, - Format: "", + Default: 0, + Type: []string{"integer"}, + Format: "int32", }, }, }, - Required: []string{"name", "podGroup"}, + Required: []string{"value", "scale"}, }, }, } @@ -50233,7 +53335,7 @@ func schema_pkg_apis_meta_v1_List(ref common.ReferenceCallback) common.OpenAPIDe Items: &spec.SchemaOrArray{ Schema: &spec.Schema{ SchemaProps: spec.SchemaProps{ - Ref: ref("k8s.io/apimachinery/pkg/runtime.RawExtension"), + Ref: ref(runtime.RawExtension{}.OpenAPIModelName()), }, }, }, @@ -50244,7 +53346,7 @@ func schema_pkg_apis_meta_v1_List(ref common.ReferenceCallback) common.OpenAPIDe }, }, Dependencies: []string{ - metav1.ListMeta{}.OpenAPIModelName(), "k8s.io/apimachinery/pkg/runtime.RawExtension"}, + metav1.ListMeta{}.OpenAPIModelName(), runtime.RawExtension{}.OpenAPIModelName()}, } } @@ -51345,7 +54447,7 @@ func schema_pkg_apis_meta_v1_TableRow(ref common.ReferenceCallback) common.OpenA "object": { SchemaProps: spec.SchemaProps{ Description: "This field contains the requested additional information about each object based on the includeObject policy when requesting the Table. If \"None\", this field is empty, if \"Object\" this will be the default serialization of the object for the current API version, and if \"Metadata\" (the default) will contain the object metadata. Check the returned kind and apiVersion of the object before parsing. The media type of the object will always match the enclosing list - if this as a JSON table, these will be JSON encoded objects.", - Ref: ref("k8s.io/apimachinery/pkg/runtime.RawExtension"), + Ref: ref(runtime.RawExtension{}.OpenAPIModelName()), }, }, }, @@ -51353,7 +54455,7 @@ func schema_pkg_apis_meta_v1_TableRow(ref common.ReferenceCallback) common.OpenA }, }, Dependencies: []string{ - metav1.TableRowCondition{}.OpenAPIModelName(), "k8s.io/apimachinery/pkg/runtime.RawExtension"}, + metav1.TableRowCondition{}.OpenAPIModelName(), runtime.RawExtension{}.OpenAPIModelName()}, } } @@ -51548,7 +54650,7 @@ func schema_pkg_apis_meta_v1_WatchEvent(ref common.ReferenceCallback) common.Ope "object": { SchemaProps: spec.SchemaProps{ Description: "Object is:\n * If Type is Added or Modified: the new state of the object.\n * If Type is Deleted: the state of the object immediately before deletion.\n * If Type is Error: *Status is recommended; other types may make sense\n depending on context.", - Ref: ref("k8s.io/apimachinery/pkg/runtime.RawExtension"), + Ref: ref(runtime.RawExtension{}.OpenAPIModelName()), }, }, }, @@ -51556,275 +54658,211 @@ func schema_pkg_apis_meta_v1_WatchEvent(ref common.ReferenceCallback) common.Ope }, }, Dependencies: []string{ - "k8s.io/apimachinery/pkg/runtime.RawExtension"}, + runtime.RawExtension{}.OpenAPIModelName()}, + } +} + +func schema_k8sio_apimachinery_pkg_runtime_RawExtension(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "RawExtension is used to hold extensions in external versions.\n\nTo use this, make a field which has RawExtension as its type in your external, versioned struct, and Object in your internal struct. You also need to register your various plugin types.\n\n// Internal package:\n\n\ttype MyAPIObject struct {\n\t\truntime.TypeMeta `json:\",inline\"`\n\t\tMyPlugin runtime.Object `json:\"myPlugin\"`\n\t}\n\n\ttype PluginA struct {\n\t\tAOption string `json:\"aOption\"`\n\t}\n\n// External package:\n\n\ttype MyAPIObject struct {\n\t\truntime.TypeMeta `json:\",inline\"`\n\t\tMyPlugin runtime.RawExtension `json:\"myPlugin\"`\n\t}\n\n\ttype PluginA struct {\n\t\tAOption string `json:\"aOption\"`\n\t}\n\n// On the wire, the JSON will look something like this:\n\n\t{\n\t\t\"kind\":\"MyAPIObject\",\n\t\t\"apiVersion\":\"v1\",\n\t\t\"myPlugin\": {\n\t\t\t\"kind\":\"PluginA\",\n\t\t\t\"aOption\":\"foo\",\n\t\t},\n\t}\n\nSo what happens? Decode first uses json or yaml to unmarshal the serialized data into your external MyAPIObject. That causes the raw JSON to be stored, but not unpacked. The next step is to copy (using pkg/conversion) into the internal struct. The runtime package's DefaultScheme has conversion functions installed which will unpack the JSON stored in RawExtension, turning it into the correct object type, and storing it in the Object. (TODO: In the case where the object is of an unknown type, a runtime.Unknown object will be created and stored.)", + Type: []string{"object"}, + }, + }, } } -func schema_pkg_apis_metrics_v1beta1_ContainerMetrics(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_k8sio_apimachinery_pkg_runtime_TypeMeta(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "ContainerMetrics sets resource usage metrics of a container.", + Description: "TypeMeta is shared by all top level objects. The proper way to use it is to inline it in your type, like this:\n\n\ttype MyAwesomeAPIObject struct {\n\t runtime.TypeMeta `json:\",inline\"`\n\t ... // other fields\n\t}\n\nfunc (obj *MyAwesomeAPIObject) SetGroupVersionKind(gvk *metav1.GroupVersionKind) { metav1.UpdateTypeMeta(obj,gvk) }; GroupVersionKind() *GroupVersionKind\n\nTypeMeta is provided here for convenience. You may use it directly from this package or define your own with the same fields.", Type: []string{"object"}, Properties: map[string]spec.Schema{ - "name": { + "apiVersion": { SchemaProps: spec.SchemaProps{ - Description: "Container name corresponding to the one from pod.spec.containers.", - Default: "", - Type: []string{"string"}, - Format: "", + Type: []string{"string"}, + Format: "", }, }, - "usage": { + "kind": { SchemaProps: spec.SchemaProps{ - Description: "The memory usage is the memory working set.", - Type: []string{"object"}, - AdditionalProperties: &spec.SchemaOrBool{ - Allows: true, - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Ref: ref("k8s.io/apimachinery/pkg/api/resource.Quantity"), - }, - }, - }, + Type: []string{"string"}, + Format: "", }, }, }, - Required: []string{"name", "usage"}, }, }, - Dependencies: []string{ - "k8s.io/apimachinery/pkg/api/resource.Quantity"}, } } -func schema_pkg_apis_metrics_v1beta1_NodeMetrics(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_k8sio_apimachinery_pkg_runtime_Unknown(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "NodeMetrics sets resource usage metrics of a node.", + Description: "Unknown allows api objects with unknown types to be passed-through. This can be used to deal with the API objects from a plug-in. Unknown objects still have functioning TypeMeta features-- kind, version, etc. metadata and field mutatation.", Type: []string{"object"}, Properties: map[string]spec.Schema{ - "kind": { - SchemaProps: spec.SchemaProps{ - Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", - Type: []string{"string"}, - Format: "", - }, - }, "apiVersion": { SchemaProps: spec.SchemaProps{ - Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", - Type: []string{"string"}, - Format: "", - }, - }, - "metadata": { - SchemaProps: spec.SchemaProps{ - Description: "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata", - Default: map[string]interface{}{}, - Ref: ref(metav1.ObjectMeta{}.OpenAPIModelName()), + Type: []string{"string"}, + Format: "", }, }, - "timestamp": { + "kind": { SchemaProps: spec.SchemaProps{ - Description: "The following fields define time interval from which metrics were collected from the interval [Timestamp-Window, Timestamp].", - Ref: ref(metav1.Time{}.OpenAPIModelName()), + Type: []string{"string"}, + Format: "", }, }, - "window": { + "ContentEncoding": { SchemaProps: spec.SchemaProps{ - Ref: ref(metav1.Duration{}.OpenAPIModelName()), + Description: "ContentEncoding is encoding used to encode 'Raw' data. Unspecified means no encoding.", + Default: "", + Type: []string{"string"}, + Format: "", }, }, - "usage": { + "ContentType": { SchemaProps: spec.SchemaProps{ - Description: "The memory usage is the memory working set.", - Type: []string{"object"}, - AdditionalProperties: &spec.SchemaOrBool{ - Allows: true, - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Ref: ref("k8s.io/apimachinery/pkg/api/resource.Quantity"), - }, - }, - }, + Description: "ContentType is serialization method used to serialize 'Raw'. Unspecified means ContentTypeJSON.", + Default: "", + Type: []string{"string"}, + Format: "", }, }, }, - Required: []string{"timestamp", "window", "usage"}, + Required: []string{"ContentEncoding", "ContentType"}, }, }, - Dependencies: []string{ - "k8s.io/apimachinery/pkg/api/resource.Quantity", metav1.Duration{}.OpenAPIModelName(), metav1.ObjectMeta{}.OpenAPIModelName(), metav1.Time{}.OpenAPIModelName()}, } } -func schema_pkg_apis_metrics_v1beta1_NodeMetricsList(ref common.ReferenceCallback) common.OpenAPIDefinition { +func schema_apimachinery_pkg_util_intstr_IntOrString(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.EmbedOpenAPIDefinitionIntoV2Extension(common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "IntOrString is a type that can hold an int32 or a string. When used in JSON or YAML marshalling and unmarshalling, it produces or consumes the inner type. This allows you to have, for example, a JSON field that can accept a name or number.", + OneOf: common.GenerateOpenAPIV3OneOfSchema(intstr.IntOrString{}.OpenAPIV3OneOfTypes()), + Format: intstr.IntOrString{}.OpenAPISchemaFormat(), + }, + }, + }, common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Description: "IntOrString is a type that can hold an int32 or a string. When used in JSON or YAML marshalling and unmarshalling, it produces or consumes the inner type. This allows you to have, for example, a JSON field that can accept a name or number.", + Type: intstr.IntOrString{}.OpenAPISchemaType(), + Format: intstr.IntOrString{}.OpenAPISchemaFormat(), + }, + }, + }) +} + +func schema_k8sio_apimachinery_pkg_version_Info(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ SchemaProps: spec.SchemaProps{ - Description: "NodeMetricsList is a list of NodeMetrics.", + Description: "Info contains versioning information. how we'll want to distribute that information.", Type: []string{"object"}, Properties: map[string]spec.Schema{ - "kind": { + "major": { SchemaProps: spec.SchemaProps{ - Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + Description: "Major is the major version of the binary version", + Default: "", Type: []string{"string"}, Format: "", }, }, - "apiVersion": { + "minor": { SchemaProps: spec.SchemaProps{ - Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + Description: "Minor is the minor version of the binary version", + Default: "", Type: []string{"string"}, Format: "", }, }, - "metadata": { - SchemaProps: spec.SchemaProps{ - Description: "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", - Default: map[string]interface{}{}, - Ref: ref(metav1.ListMeta{}.OpenAPIModelName()), - }, - }, - "items": { + "emulationMajor": { SchemaProps: spec.SchemaProps{ - Description: "List of node metrics.", - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("k8s.io/metrics/pkg/apis/metrics/v1beta1.NodeMetrics"), - }, - }, - }, + Description: "EmulationMajor is the major version of the emulation version", + Type: []string{"string"}, + Format: "", }, }, - }, - Required: []string{"items"}, - }, - }, - Dependencies: []string{ - metav1.ListMeta{}.OpenAPIModelName(), "k8s.io/metrics/pkg/apis/metrics/v1beta1.NodeMetrics"}, - } -} - -func schema_pkg_apis_metrics_v1beta1_PodMetrics(ref common.ReferenceCallback) common.OpenAPIDefinition { - return common.OpenAPIDefinition{ - Schema: spec.Schema{ - SchemaProps: spec.SchemaProps{ - Description: "PodMetrics sets resource usage metrics of a pod.", - Type: []string{"object"}, - Properties: map[string]spec.Schema{ - "kind": { + "emulationMinor": { SchemaProps: spec.SchemaProps{ - Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + Description: "EmulationMinor is the minor version of the emulation version", Type: []string{"string"}, Format: "", }, }, - "apiVersion": { + "minCompatibilityMajor": { SchemaProps: spec.SchemaProps{ - Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + Description: "MinCompatibilityMajor is the major version of the minimum compatibility version", Type: []string{"string"}, Format: "", }, }, - "metadata": { + "minCompatibilityMinor": { SchemaProps: spec.SchemaProps{ - Description: "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata", - Default: map[string]interface{}{}, - Ref: ref(metav1.ObjectMeta{}.OpenAPIModelName()), + Description: "MinCompatibilityMinor is the minor version of the minimum compatibility version", + Type: []string{"string"}, + Format: "", }, }, - "timestamp": { + "gitVersion": { SchemaProps: spec.SchemaProps{ - Description: "The following fields define time interval from which metrics were collected from the interval [Timestamp-Window, Timestamp].", - Ref: ref(metav1.Time{}.OpenAPIModelName()), + Default: "", + Type: []string{"string"}, + Format: "", }, }, - "window": { + "gitCommit": { SchemaProps: spec.SchemaProps{ - Ref: ref(metav1.Duration{}.OpenAPIModelName()), + Default: "", + Type: []string{"string"}, + Format: "", }, }, - "containers": { - VendorExtensible: spec.VendorExtensible{ - Extensions: spec.Extensions{ - "x-kubernetes-list-type": "atomic", - }, - }, + "gitTreeState": { SchemaProps: spec.SchemaProps{ - Description: "Metrics for all containers are collected within the same time window.", - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("k8s.io/metrics/pkg/apis/metrics/v1beta1.ContainerMetrics"), - }, - }, - }, + Default: "", + Type: []string{"string"}, + Format: "", }, }, - }, - Required: []string{"timestamp", "window", "containers"}, - }, - }, - Dependencies: []string{ - metav1.Duration{}.OpenAPIModelName(), metav1.ObjectMeta{}.OpenAPIModelName(), metav1.Time{}.OpenAPIModelName(), "k8s.io/metrics/pkg/apis/metrics/v1beta1.ContainerMetrics"}, - } -} - -func schema_pkg_apis_metrics_v1beta1_PodMetricsList(ref common.ReferenceCallback) common.OpenAPIDefinition { - return common.OpenAPIDefinition{ - Schema: spec.Schema{ - SchemaProps: spec.SchemaProps{ - Description: "PodMetricsList is a list of PodMetrics.", - Type: []string{"object"}, - Properties: map[string]spec.Schema{ - "kind": { + "buildDate": { SchemaProps: spec.SchemaProps{ - Description: "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", - Type: []string{"string"}, - Format: "", + Default: "", + Type: []string{"string"}, + Format: "", }, }, - "apiVersion": { + "goVersion": { SchemaProps: spec.SchemaProps{ - Description: "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", - Type: []string{"string"}, - Format: "", + Default: "", + Type: []string{"string"}, + Format: "", }, }, - "metadata": { + "compiler": { SchemaProps: spec.SchemaProps{ - Description: "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", - Default: map[string]interface{}{}, - Ref: ref(metav1.ListMeta{}.OpenAPIModelName()), + Default: "", + Type: []string{"string"}, + Format: "", }, }, - "items": { + "platform": { SchemaProps: spec.SchemaProps{ - Description: "List of pod metrics.", - Type: []string{"array"}, - Items: &spec.SchemaOrArray{ - Schema: &spec.Schema{ - SchemaProps: spec.SchemaProps{ - Default: map[string]interface{}{}, - Ref: ref("k8s.io/metrics/pkg/apis/metrics/v1beta1.PodMetrics"), - }, - }, - }, + Default: "", + Type: []string{"string"}, + Format: "", }, }, }, - Required: []string{"items"}, + Required: []string{"major", "minor", "gitVersion", "gitCommit", "gitTreeState", "buildDate", "goVersion", "compiler", "platform"}, }, }, - Dependencies: []string{ - metav1.ListMeta{}.OpenAPIModelName(), "k8s.io/metrics/pkg/apis/metrics/v1beta1.PodMetrics"}, } } diff --git a/pkg/product/replace.go b/pkg/product/replace.go index 1d1e213..e2111ad 100644 --- a/pkg/product/replace.go +++ b/pkg/product/replace.go @@ -22,11 +22,11 @@ import ( func Replace(content string) string { switch Name() { case licenseapi.DevsyPro: - content = strings.Replace(content, "devsy.sh", "devsy.pro", -1) - content = strings.Replace(content, "devsy.host", "devsy.host", -1) + content = strings.ReplaceAll(content, "devsy.sh", "devsy.pro") + content = strings.ReplaceAll(content, "devsy.host", "devsy.pro") - content = strings.Replace(content, "devsy", "devsy platform", -1) - content = strings.Replace(content, "Devsy", "vCluster Platform", -1) + content = strings.ReplaceAll(content, "devsy", "devsy platform") + content = strings.ReplaceAll(content, "Devsy", "Devsy Platform") case licenseapi.DevsyOrg: } diff --git a/pkg/token/token.go b/pkg/token/token.go index d68c5c5..a700fe7 100644 --- a/pkg/token/token.go +++ b/pkg/token/token.go @@ -6,10 +6,10 @@ import ( ) type PrivateClaims struct { - Loft Devsy `json:"devsy.sh,omitempty"` + Devsy Devsy `json:"devsy.sh,omitzero"` } -const LoftAdminKind = "LoftAdmin" +const DevsyAdminKind = "DevsyAdmin" type Devsy struct { // The UID of the user or team that this token is for